aspose file tools*
The moose likes Servlets and the fly likes How do navigate to two different url using the formating of html  in servlet response Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How do navigate to two different url using the formating of html  in servlet response" Watch "How do navigate to two different url using the formating of html  in servlet response" New topic
Author

How do navigate to two different url using the formating of html in servlet response

Naba jyoti
Greenhorn

Joined: Oct 18, 2008
Posts: 2

Hello i guess even my question is confusing!!! Well what i want to ask here is that how do i navigate to two different urls using the following servlet codes? I have created two servlets "SeesionEnd" and "SearchJob". I want navigation to happen when user clicks on the Buttons generated from the code below.....the formating part is killing me...m a newbie to servlets...i think the onclick=nevigate(....... ) part is not properly formated. please help me fixing it.

a slice of my servlet below.....




How do i format the above two line . If i use it like above the buttons does no respond. please help format it , i do understand that it is no more a standard to generate HTML codes from servlet..........

akkineni sreekanth
Greenhorn

Joined: Jun 08, 2009
Posts: 6
hello
what you are saying iam not understanding
please make it clear
Naba jyoti
Greenhorn

Joined: Oct 18, 2008
Posts: 2
Hi what i am asking is how to format those two particular lines "...onclick=navigate(... ..)" properly to make it correct so that the buttons generated will respond i.e move to the mentioned urls on clicking.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61413
    
  67

Firstly, please be sure to use code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information. You can go back and change your post to add code tags by clicking the button on your post.

Secondly, beginner or not, you should learn to do things properly from the start. Generating HTML from a servlet went out in 1999. Your servlet should do any processing that it needs and then forward to a JSP for generating the HTML.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do navigate to two different url using the formating of html in servlet response