Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

using jsp:forward  RSS feed

 
Angelo Watson
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!