RE: .do as welcome-file

2003-09-24 Thread shishir.katdare
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-nameredirector/servlet-name
servlet-classyourpackage.Redirector/servlet-class
/servlet

servlet-mapping
servlet-nameredirector/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

Re: .do as welcome-file

2003-09-24 Thread Adam Hardy
You can configure action mappings without form beans - just leave out 
the name attribute.

However you would probably be better off using a filter to check for 
login status.

Adam

On 09/24/2003 10:19 AM [EMAIL PROTECTED] wrote:
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-nameredirector/servlet-name
  servlet-classyourpackage.Redirector/servlet-class
/servlet
servlet-mapping
  servlet-nameredirector/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

Re: .do as welcome-file

2003-09-23 Thread Sgarlata Matt
Unfortunately, you cannot do that.  You must specify a physical file.  A
standard technique is to make your welcome file a .jsp that redirects the
user to your struts start page, in this case /start/start.do.  You can
probably find more info about this in the archives.

Matt
- Original Message - 
From: Adolfo Miguelez [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 6:59 AM
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]



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



RE: .do as welcome-file

2003-09-23 Thread Mainguy, Mike
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]



Re: .do as welcome-file

2003-09-23 Thread Adam Hardy
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]


RE: .do as welcome-file

2003-09-23 Thread Menke, John
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-nameredirector/servlet-name
servlet-classyourpackage.Redirector/servlet-class
/servlet

servlet-mapping
servlet-nameredirector/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]



Re: .do as welcome-file

2003-09-23 Thread Christian Bollmeyer
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-nameredirector/servlet-name
 servlet-classyourpackage.Redirector/servlet-class
 /servlet

 servlet-mapping
 servlet-nameredirector/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]



RE: .do as welcome-file

2003-09-23 Thread Menke, John
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-nameredirector/servlet-name
 servlet-classyourpackage.Redirector/servlet-class
 /servlet

 servlet-mapping
 servlet-nameredirector/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]



RE: .do as welcome-file

2003-09-23 Thread Kevin Peters
We do this too.  Works like a charm.

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


*** 
This electronic mail transmission contains confidential and/or privileged 
information intended only for the person(s) named.  Any use, distribution, 
copying or disclosure by another person is strictly prohibited. 
*** 



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



Re: .do as welcome-file

2003-09-23 Thread Adam Hardy
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-nameredirector/servlet-name
   servlet-classyourpackage.Redirector/servlet-class
/servlet
servlet-mapping
   servlet-nameredirector/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

RE: .do as welcome-file

2003-09-23 Thread Mainguy, Mike
This is actually the way I do it.

-Original Message-
From: Menke, John [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 23, 2003 9:58 AM
To: 'Struts Users Mailing List'
Subject: RE: .do as welcome-file


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-nameredirector/servlet-name
 servlet-classyourpackage.Redirector/servlet-class
 /servlet

 servlet-mapping
 servlet-nameredirector/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

Re: .do as welcome-file

2003-09-23 Thread Ed Robbins
I like to do it with a filter.  I can accomplish several things with it, 
tighter security, I prevent someone from calling any of my jsp's 
directly and I can then have the welcome page be an action.

Ed

Mainguy, Mike wrote:

This is actually the way I do it.

-Original Message-
From: Menke, John [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 23, 2003 9:58 AM
To: 'Struts Users Mailing List'
Subject: RE: .do as welcome-file

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-nameredirector/servlet-name
   servlet-classyourpackage.Redirector/servlet-class
/servlet
servlet-mapping
   servlet-nameredirector/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

Re: .do as welcome-file

2003-09-23 Thread Christian Bollmeyer
It's a matter of personal preferences. Mine is to move
all .jsp etc. files to a directory underneath /WEB-INF
and make use of ForwardAction instead. I found this
to be the easiest approach to enforce the 'Action
First' rule, in particular when combined with Tiles.
Of course, my 'default' start page is an Action, too
(usually named main.do, start.do or the like).

-- Chris

- Original Message - 
From: Ed Robbins [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 4:57 PM
Subject: Re: .do as welcome-file


 I like to do it with a filter.  I can accomplish several things with it, 
 tighter security, I prevent someone from calling any of my jsp's 
 directly and I can then have the welcome page be an action.
 
 Ed
 
 Mainguy, Mike wrote:
 
 This is actually the way I do it.
 
 -Original Message-
 From: Menke, John [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, September 23, 2003 9:58 AM
 To: 'Struts Users Mailing List'
 Subject: RE: .do as welcome-file
 
 
 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

-- CLIP!


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