Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Naba jyoti
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello
what you are saying iam not understanding
please make it clear
 
Naba jyoti
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64838
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic