File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes using jsp:forward Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "using jsp:forward" Watch "using jsp:forward" New topic
Author

using jsp:forward

Angelo Watson
Ranch Hand

Joined: Oct 27, 2002
Posts: 39
I have an html and two JSP files all in the same directory.
The names are forward.html, forward.jsp, and forward2.jsp
Its a simple login page, where the forward.html prompts the user to login, and forward.jsp examines it and if its successful it forwards it to forward2.jsp
the forward.jsp has only JSP codes and I think thats where the problem is, Here is the code:
%
if((request.getParameter("userName").equals("Angelo")) &&
(request.getParameter("password").equals("Penalosa") )) {
%
jsp:forward page="forward2.jsp" /
% } else { %
%@ include file="forward.html" %
% } %
Im getting status code 500, Can some please help
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: using jsp:forward
 
Similar Threads
Strings n Scriplet
Problem with forward and include JSP tag
JSP
jsp:forward doubt
RequestDisptacher include() and forward()