Sharon Melissa

Greenhorn
+ Follow
since Aug 12, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sharon Melissa

@ bear

Thanks for sharing this article on JSP
JSP is handled on the server side. So unless you want to "forward" the page before the user gets the page, you would need Client side scripting like JavaScript.

The JavaScript code would be something like:
Code:

<input type="button" value="Add" onClick="javascript:window.location='some.jsp';">

If you wanted the JSP to specify the page to "forward", you could have something like this;
Code:

<%
String myPage = "some.jsp";
%>
<input type="button" value="Add" onClick="javascript:window.location='<%= myPage %>';">

or something along those lines.