Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes invoking a JSP page 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 » Servlets
Bookmark "invoking a JSP page" Watch "invoking a JSP page" New topic
Author

invoking a JSP page

Bob Moranski
Ranch Hand

Joined: Nov 22, 2000
Posts: 177
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

Joined: Sep 29, 2000
Posts: 8521
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.


"JavaRanch, where the deer and the Certified play" - David O'Meara
Bob Moranski
Ranch Hand

Joined: Nov 22, 2000
Posts: 177
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

Joined: Jan 31, 2000
Posts: 1467
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

Joined: Nov 22, 2000
Posts: 177
Thank you maha! I put the JSPs in Web-inf/classes! How embarrassing...
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
Don't be embarrassed, Bob
It happens to the best of us! (He he...)


Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
 
 
subject: invoking a JSP page
 
Similar Threads
servlet
As i am drawing sequence diagram for prepare itinerary...
doubt (question) on Tag File attribute scopes (Q18 p557)
HFS&JSP confusion...
Nothing available in JSP from Servlet