• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

invoking a JSP page

 
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you maha! I put the JSPs in Web-inf/classes! How embarrassing...
 
Desperado
Posts: 3226
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Don't be embarrassed, Bob
It happens to the best of us! (He he...)
 
30 seconds to difuse a loaf of bread ... here, use this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic