struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sudipta Sarkar <>
Subject Opening page in a new window
Date Mon, 01 Apr 2002 17:42:14 GMT
  I have a application with the following feature:

  I have a form with some text fields and a submit button.
  When I press submit I need to do some database interaction and the result of
that I store in seesion.
  The results then  need to be displayed on a different page on a new browser

  What I did is:
   In the action class did the database calls and the put the results in
   The JSP page uses the results present in the session (which was populated
in the action class) and displays them.
I have used something like the following
  <html:form method="post"  action="/report"
onSubmit="javascript:openReportWindow('report.jsp')" >
 to open the jsp page in a new window.(openReportwindow is my javascript
function which open a new window)
  What is happening is that the jsp page is saying bean not found in session
and that is because the jsp page is trying to get the bean before the
action's perform method has finished and hence its not finding the bean.
What should I do in order the jsp page tries to get the session variable/beans
after the perform method has finished i.e the data in put into session from
the database.  
Thanks in advance.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message