This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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..........
what you are saying iam not understanding
please make it clear
Joined: Oct 18, 2008
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.
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.