Can some one tell me if the action main.do as defined as 
<jsp:forward page="/main.do" />
be achieved without using the action form or its actually a forward thats an action 
class without use of form bean ?
as i need to use the same for checking if the user is already logged in and if not 
then forward to the login page ?
-----Original Message-----
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: 23 September 2003 15:16
To: Struts Users Mailing List
Subject: Re: .do as welcome-file


for security's sake I don't have any JSPs outside of WEB-INF, so this is 
the only solution, unless I wanted to use a http-redirect, which I don't.

Adam

On 09/23/2003 03:58 PM Menke, John wrote:
> I guess it's all the same as long as it works.  You solution might be
> simpler actually no web.xml configs for the servlet
> 
> -----Original Message-----
> From: Christian Bollmeyer [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 23, 2003 9:52 AM
> To: Struts Users Mailing List
> Subject: Re: .do as welcome-file
> 
> 
> I usually just put s/th like this in my index.jsp
> 
> <jsp:forward page="/main.do" />
> 
> and that's it. Whats the possible advantage
> of using a redirect or other solutions that
> also require a physical file in the root dir?
> 
> -- Chris
> 
> ----- Original Message -----
> From: "Menke, John" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Tuesday, September 23, 2003 3:28 PM
> Subject: RE: .do as welcome-file
> 
> 
> 
>>Here's a trick to get an action to execute as home page in your webapp
>>without having to
>>do the jsp redirect.
>>
>>Put a file called webapp.launch in the root directory of your webapp
>>
>>Then configure these settings in your web.xml
>>
>>
>><servlet>
>>    <servlet-name>redirector</servlet-name>
>>    <servlet-class>yourpackage.Redirector</servlet-class>
>></servlet>
>>
>><servlet-mapping>
>>    <servlet-name>redirector</servlet-name>
>>    <url-pattern>*.launch</url-pattern>
>></servlet-mapping>
>>
>>package yourpackage;
>>
>>import javax.servlet.*;
>>import javax.servlet.http.*;
>>
>>import java.io.*;
>>import java.util.*;
>>
>>
>>/**
>> *  Redirector to start application on browse to root url
>> *
>>
>> */
>>public class Redirector extends HttpServlet {
>>
>>    /**
>>     *  Stub method
>>     */
>>    public void destroy() {
>>    }
>>
>>
>>    /**
>>     *  Forward the user to start page of webapp
>>     *
>>     [EMAIL PROTECTED]  request
>>     [EMAIL PROTECTED]  response
>>     [EMAIL PROTECTED]  ServletException
>>     [EMAIL PROTECTED]  IOException
>>     */
>>    public void doGet(HttpServletRequest request, HttpServletResponse
>>response)
>>      throws ServletException, IOException {
>>        response.sendRedirect("home.do");
>>
>>    }
>>
>>
>>    /**
>>     *  Description of the Method
>>     */
>>    public void init() throws ServletException {
>>    }
>>}
>>
>>-----Original Message-----
>>From: Adam Hardy [mailto:[EMAIL PROTECTED]
>>Sent: Tuesday, September 23, 2003 9:05 AM
>>To: Struts Users Mailing List
>>Subject: Re: .do as welcome-file
>>
>>
>>I can confirm that this hack works for tomcat. Create the dummy file
>>start/start.do and tomcat will be happy, and you will still get the
>>actual struts mapping.
>>
>>On 09/23/2003 02:06 PM Mainguy, Mike wrote:
>>
>>>I haven't tried it, but I've been told that, in tomcat, if you create a
>>
>>file
>>
>>>with that exact name it will work properly.  Evidently you cannot
> 
> specify
> 
>>a
>>
>>>servlet path as a welcome file.
>>>
>>>-----Original Message-----
>>>From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]
>>>Sent: Tuesday, September 23, 2003 7:00 AM
>>>To: [EMAIL PROTECTED]
>>>Subject: .do as welcome-file
>>>
>>>
>>>Does anyone has figured out how to do this?
>>>
>>><welcome-file-list>
>>><welcome-file>/start/start.do</welcome-file>
>>></welcome-file-list>
>>>
>>>I am not able to make it work.
>>>
>>>TIA,
>>>
>>>Adolfo.
>>>
>>>_________________________________________________________________
>>>Protect your PC - get McAfee.com VirusScan Online
>>>http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>This message and its contents (to include attachments) are the property
> 
> of
> 
>>Kmart Corporation (Kmart) and may contain confidential and proprietary
>>information. You are hereby notified that any disclosure, copying, or
>>distribution of this message, or the taking of any action based on
>>information contained herein is strictly prohibited. Unauthorized use of
>>information contained herein may subject you to civil and criminal
>>prosecution and penalties. If you are not the intended recipient, you
> 
> should
> 
>>delete this message immediately.
>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>--
>>struts 1.1 + tomcat 4.1.27 + java 1.4.2
>>Linux 2.4.20 RH9
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-- 
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to