File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Return to previous screen (option) in Tomcat 7.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Return to previous screen (option) in Tomcat 7.0" Watch "Return to previous screen (option) in Tomcat 7.0" New topic
Author

Return to previous screen (option) in Tomcat 7.0

Nada Bajnaid
Ranch Hand

Joined: Aug 14, 2011
Posts: 45
I have the following code in my doGet



in my doPost I add a potton "New Search" that should returned me to the previous code in the doGet. I call the form 'search form' with href but it didn't work



Any clue?

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61309
    
  66

Why are you emitting HTML from a servlet? That's the job of a JSP. It makes it really hard to figure out what your HTML is really like.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Nada Bajnaid
Ranch Hand

Joined: Aug 14, 2011
Posts: 45
Hi Bear
Do you mean that I should use seprate file for each HTML screen? What is the right way to have things organized and easy controlled. Aslo what is the best way to have my output be in graphical represenation rather than just text?

Many thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61309
    
  66

Nada Bajnaid wrote:Do you mean that I should use seprate file for each HTML screen? What is the right way to have things organized and easy controlled.

This article describes the best-practice approach to organizing web applications.

Aslo what is the best way to have my output be in graphical represenation rather than just text?

I'm not sure what you mean bv this.
Nada Bajnaid
Ranch Hand

Joined: Aug 14, 2011
Posts: 45
Thanks Bear
 
GeeCON Prague 2014
 
subject: Return to previous screen (option) in Tomcat 7.0