Ikai
Even this basic page scope isn't working for me.
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException, ServletException {
req.setAttribute(helloWorld, Testing);
RequestDispatcher dispatcher =
Doyou see these issues locally or when deployed?
On Tue, Nov 17, 2009 at 9:03 PM, Obelix anand.sanka...@gmail.com wrote:
Ikai
Even this basic page scope isn't working for me.
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws
I am having the same problem. Object on my local GAE install can't be
stored in the session. Very detrimental for user session management.
Here is the line in my appengine-web.xml:
sessions-enabledtrue/sessions-enabled
I store my user in session from inside a Filter:
HttpSession session =
Steph,
I have modified my code to make use of
RequestDispatcher dispatcher =
req.getRequestDispatcher(redirect);
dispatcher.forward(req, resp);
and this seems to fix the issue.
Once i have authenticated my user and forwarded, every subsequent
redirect or forward
Ilya,
This will surface the object in request scope, but you should not be having
problems with objects stored in session scope. I'm investigating the issues
regarding objects in session scope when deployed.
On Thu, Nov 12, 2009 at 10:39 AM, IlyaE ilyaelk...@gmail.com wrote:
Steph,
I have
Steph,
Ilya is actually having the opposite problem. I'm can't reproduce either
issue. Can you give me more information about what you are trying to set
into the session? What version of the SDK are you using?
On Thu, Nov 12, 2009 at 12:35 AM, Steph steph@gmail.com wrote:
I am having the
Ikai,
I'm not sure i understand.
I was having issues doing something like this in my servlet
request.getSession().setAttribute(a,a); and then resp.sendRedirect
(redirect);
When trying to access 'a' in the redirected jsp, i kept getting null.
Once i changed my redirect to a forward, i did
Ilya,
One thing you will want to check will be if sessions are enabled. Sessions
are off by default, so you'll have to add this line to your
appengine-web.xml file:
sessions-enabledtrue/sessions-enabled
http://code.google.com/appengine/docs/java/config/appconfig.html#Enabling_Sessions
On
Well as i found out, session attributes don't always guarantee that
they are sent back to the same JVM thus i keep getting null objects in
my view. While i saw a similar discussion before the only examples i
found were for Python. I'm looking for a simple java example that
saves an object in the
Ilya,
Are you looking to persist objects for a lifetime of a session, or are you
looking to minimize the logic you are using in your JSPs?
As a general design principle, we recommend that you minimize usage of
session scope. Variables bound to session scope are serialized and stored to
I'm looking to track a user session if they have logged in using my
own user manager, but i was having trouble passing my user object back
to the session once the app was deployed. I will give this a shot but
i wonder if this was because i was redirecting instead of forwarding.
I was doing this
11 matches
Mail list logo