Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

edit and submit in servlets  RSS feed

Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on creating a samll forum, which include some servlets. Once user posts data, he can hit 'sumbit' button ('in which case store()' is executed) or 'preview' button ('in which case showPreview()' is executed) in the following servlet.
As you can see in showPreview() besides showing preview it also outputs 'sumbit' button and 'edit' button. While in preview scrren if user clicks on edit button it should go to 'http://localhost:8080/test/index.html'. I couldn't figure out how to do this. If he clicks 'submit' button it should call store method.
If someone can help me with this i will appreciate it very much.

[ July 14, 2003: Message edited by: Cindy Glass ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!