Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

dynamic data display on a web page  RSS feed

 
harsha galla
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a jsp page where in there are some forms for user to fill.When a user fills a form it should be dealt by a servlet which stores the details in a database and they prints out an output confirming the storing or throws an exception in case of failure. I want to display the result also in the initial jsp page just below the form..Can anybody suggest a way to go about..
As an example it could be something like gmail whrein you enter the username and password and incase they are wrong the result is shown dynamically on the same page.

Thanks in advance
 
Amit Ghorpade
Bartender
Posts: 2856
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are looking for Struts . Its a big thing in itself, and if you dont want it that way then another simple way is to pass the message as the parameter to the JSP.

Hope this helps
 
harsha galla
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply, i wanted a simple thing only..can you explain in detail how you post message in jsp..
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts is a monster that isn't ever needed. The tasks that the poster outlines can be performed with simple Servlets, JSP and JDBC.

harsha, what part has you blocked? It sounds like you have a good handle on what needs to be done. Could you explains what's stopping you from proceeding?
[ October 17, 2008: Message edited by: Bear Bibeault ]
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!