You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ralph Einfeldt <ra...@uptime-isc.de> on 2002/07/03 16:17:09 UTC

AW: j_security_check to forward the request to a default page if the forward to page does not exist

It's not possible to do that.
This is by design, not a bug.


A dirty hack might do the trick:
  Write a servlet filter that sets the value
  if it is not set. Configure this filter 
  to be triggered, whenever j_security_check
  is requested. (If that's realy possible I 
  don't know)

> -----Ursprüngliche Nachricht-----
> Von: BBui@sjm.com [mailto:BBui@sjm.com]
> Gesendet: Mittwoch, 3. Juli 2002 16:09
> An: tomcat-user@jakarta.apache.org
> Betreff: j_security_check to forward the request to a default page if
> the forward to page does not exist
> 
> Does anyone know how to tell j_security_check to forward a 
> request to a default page if the "forward-to" value is empty?
> 

--
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>


Redirecting one jsp to another

Posted by Mark O'Driscoll <ma...@eircom.net>.
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>