File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javascript and JSP

 
Revati Pathak
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am facing very strange problem in my JSP. in my JSP i want to execute certain Javascript code and then suppose i want to use forword tag.
but actually instead of executing the Javascript code it is redirecting the control to another page.
is there any solution for this problem?
-Revati
 
Ramneek Handa
Ranch Hand
Posts: 44
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Revati
java script will run on client side and forword will work on server side.
you can not run javascript at server side.
 
Vimal Gandhi
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ya thats true that javascript work on client & forward work on server side, but you can varify your code with javascript on client side with onclick event on any button if it is there else on any link.
ok try on it
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic