This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP page, works the first time  RSS feed

 
John Eipe
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have a small application that does the following.
input from JSP page -> Controller(updates a db table based on input) -> Page Controller(populates the contents of db table into an ArrayList<....> and sets it as session attribute) -> (JSP reads the value of that session attribute).

When I run this program, it works the first time. Then, I close my browser, and opens it to run it again but nothing gets displayed on page!!!

Thanks,
John
 
Vijitha Kumara
Saloon Keeper
Posts: 3997
42
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
... and opens it to run it again but nothing gets displayed on page!!!

You have to be more specific in details here (TellTheDetails). What are these two JSPs, same or different? How you access these pages (URL)?

And, have you tried having some log statements in the components (Servlets etc...) to see what's happening?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!