JSPs do not have a designated place except that they should not go under the
web-inf directory anywhere.  Files in the web-inf directory are not exposed
to the outside world.

You can place them in the root folder of your web application or you can
make a JSP folder off of your web application root directory if you prefer.
If you put a JSP in the root directory of the default web application then
the url will be http://<yourserver>/<yourjspfilename .  If you put it in
another sub directory then you will have to add that directory's name to the
URL before the jsp filename.

If you put a .jsp file in a web application other than the default
application then that web application's url must be inserted right after
your sever name.  For example, if I had an application called dss whose url
was "/dss", and I put a .jsp file in a directory called "jsp" under the root
of that application, then the url would be
http://<mysevername>/dss/jsp/<myjspfilename> .

I hope this helps.

-----Original Message-----
From: Jackie Comeau [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 3:00 PM
To: JRun-Talk
Subject: JSP using built-in custom tags


Newbie question, I'm sure.

When playing with jsp to get familiar with it I was putting the jsp in my
wwwroot directory of my IIS webserver.

Now, I have a servlet, redirecting to a JSP which should send an email
using the sendmail tag which are part of the jsptags library in 3.0.

My question is, where should I be putting the jsp file?

I'm still not running it on a J2EE platform, so it's in JRun 3.0 running
backwards compatibility. I see no folder to put jsp's other than where the
class files go under WEB-INF. If I put it with the servlets, it expects a
.java file. I tried adding a jsp folder. Where does everyone put their
jsp's?

My jsp seems to find the tag within the tag lib okay, but then it has
problems getting to the doStartTag method. See error below...jsp file is in
the wwwroot directory of the server, but even if I move it somewhere else,
I get similar error messages. Thanks for any input on this!

500 Internal Server Error

/email.jsp:

javax.servlet.ServletException: Exception thrown processing JSP page.
javax.servlet.jsp.JspTagException:
        at allaire.taglib.SendMailTag.doStartTag(SendMailTag.java:387)
        at jrun__email2ejspa._jspService(jrun__email2ejspa.java, Compiled
Code)
        at allaire.jrun.jsp.HttpJSPServlet.service(HttpJSPServlet.java:40)
        at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
        at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled
Code)
        at
allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.jav
a:34)
        at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:174)
        at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
        at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled
Code)
        at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher
.java:88)
        at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
        at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
        at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:354)
        at allaire.jrun.ThreadPool.run(ThreadPool.java, Compiled Code)
        at allaire.jrun.WorkerThread.run(WorkerThread.java, Compiled Code)

Jackie Comeau

Programmer Analyst
Framingham State College
Ext. 4023

"Every person is responsible for all the good within the scope of his
abilities, and for no more."
--Gail Hamilton
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to