• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

invoking a JSP page

 
Bob Moranski
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I was wondering what is the proper url for invoking a JSP page. Can someone simple paste one here?
Thank you.
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well the home page for JavaRanch is a JSP page (Paul just converted everything over - isn't he clever?). Looks like any other URL to me. Perhaps your question needs to be rephrased.
 
Bob Moranski
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I meant in servlets, we can invoke MyServlet with www.myurl.com/servletApp/servlet/MyServlet. How do we do it when the page is a JSP? www.myurl.com/servletApp/MyJSP.jsp?
 
maha anna
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. For www.myurl.com/servletApp/MyJSP.jsp? is valid one. In this case 'MyJSP.jsp' page should physically be in .../webapps/servletApp/MyHSP.jsp
You can also invoke like this www.myurl.com/servletApp/subDir/MyJSP.jsp? . IN this case
'MyJSP.jsp' page should physically be in .../webapps/servletApp/subDir/MyHSP.jsp
regds
maha anna
 
Bob Moranski
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you maha! I put the JSPs in Web-inf/classes! How embarrassing...
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't be embarrassed, Bob
It happens to the best of us! (He he...)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic