aspose file tools
The moose likes Servlets and the fly likes edit and submit in servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "edit and submit in servlets" Watch "edit and submit in servlets" New topic
Author

edit and submit in servlets

srini kami
Greenhorn

Joined: Dec 29, 2002
Posts: 26
Hi
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 ]

Thank you<br />Srini
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: edit and submit in servlets
 
Similar Threads
Is SSI supported on tomcat
if (req.getMethod().equals("HEAD")) return
UrlRewriting+servlets -Error
form data not passing to servlet file
ERROR : HTTP Status 405 - HTTP method GET is not supported by this URL