my dog learned polymorphism*
The moose likes JSP and the fly likes Jsp page problem 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 "Jsp page problem" Watch "Jsp page problem" New topic

Jsp page problem

Gibson Tang

Joined: Aug 05, 2004
Posts: 10
I have a JSP page that takes in a query string called
"website2.jsp?UserName=angyuit".The jsp page is in the webserver,but calling that page returns a "404 File Not Found" error.But running that page without the query string redirects me to another page which shows something which was not on my JSP page.Can anyone give any clues?
Gert Cuppens
Ranch Hand

Joined: Jul 13, 2003
Posts: 87
Whenever I see a "file not found" error, I know I have to look for 2 things.
1) Is the path correct ? Sometimes, adding a slash (/) can do the trick.
2) Is the called servlet or JSP defined in the web.xml. If it is not, then there is no way for the web server to know where it should look.
It is sorta covered in the JavaRanch Style Guide.
subject: Jsp page problem
Similar Threads
Helper tool to Build SQL in JSP??
Using % sign within a scriptlet
How do you pass a string from servlet to jsp if jsp is on another server?
SQL Injection Attack and JDBC
Passing values from Javascript to JSP application