File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlets " Watch "Servlets " New topic


Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I am working on a project in servlets. i have to generate a html with just buttons with the help of a servlet and welcome the user to the site in it. If we select the button that is generated with the help of servlet then it should redirect to another html.
I tried out with the help of javascript in the html that i am generating with the servlet but the javascript is not working.
If any of you have servlets with javascript embeded can u please post it or mail it to me, so that it will be of great help to me. If any another alternative is also there for this problem, i would like to know abt it.
Ranch Hand

Joined: Aug 06, 2000
Posts: 60
u can do it with javascript itself rather than servlets. only this is u have to give is location.href or location.replace with the site name using an onclick function 4 each button

I agree. Here's the link:
subject: Servlets
It's not a secret anymore!