You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mark O'Driscoll <ma...@eircom.net> on 2002/07/03 18:33:20 UTC

Redirecting one jsp to another

Can I easily redirect a single JSP to another?

Like:

<servlet-mapping>
    <servlet-name>/one.jsp</servlet-name>
    <url-pattern>/two.jsp</url-pattern>
</servlet-mapping>

I know this doesn't work ... but what, if any, is the alternative.

I really want to call lots of jsps the same name.

e.g.
Warning.jsp, Info.jsp, Error.jsp all end up at Message.jsp where I can
determine the name and take appropriate action.

TIA

Mark


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


server.xml

Posted by Johnny <ke...@mimos.my>.
 Hi all,

 If I developed my own class for my application in Tomcat, what should add
inside the /conf/server.xml?

 I received "Internal Server Error" when I added this dtd session inside the
server.xml

  <Resource name="bean/VerifyFactory" auth="Container" type="Verify"/>
        <ResourceParams name="bean/VerifyFactory">
            <parameter>
              <name>factory</name>
              <value>org.apache.naming.factory.Factory</value>
            </parameter>
        </ResourceParams>

 Is there any resource or reference site that teach how to set up the
parameters inside this dtd session?

 Regards,
 Johnny.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>