-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm dealing with a legacy Java application with a large, fairly messy codebase. There's a fairly standard 'User' object that gets stored in the HttpSession between requests, so the servlets do stuff like this at the top:
HttpSession session = request.getSession(true);
User user = (User)session.getAttribute("User");
The…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
What technique should we use to make the httpsession object not loaded heavily with data.
Example :
Request 1 ---- httpSession loaded with an arraylist of 50,000 different objects. session.setAttribute("data",arraylist);
Request 2 ---- httpSession loaded with an arraylist of 40,000 different…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm developing a web application running on Tomcat 6, with Flex as Frontend. I'm testing my backend with TestNG. Currently, I'm trying to test the following method in my Java-Backend:
public UserPE login(String mail, String password) {
UserPE dbuser = findUserByMail(mail);
if (dbuser ==…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am writting a Twitter web app by using Twitter4J on GAE/J.
I am saving Twitter and Request Token objects in session so that to be used after call back.
I have two servlets. IndexServlet sets session and HomeServlet get from session (hits on call back by twitter oAuth).
If I comment out session…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a ASP.NET MVC 1.0 Controller which implements a HttpSession object for storing sorted result
How I can test the Controller from MbUnit?
>>> More