RE: Re[2]: Welcome file and struts

2002-08-16 Thread Andrew Hill

My application isnt using any JSP's and I need to go through an action
before I can get to any views - even the login page. (Id prefer a dummy file
to a meta refresh index.html page as I feel it would load a wee bit
quicker).

-Original Message-
From: Cliff Rowley [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 16, 2002 19:03
To: [EMAIL PROTECTED]
Subject: RE: Re[2]: Welcome file and struts


Feels a bit weird having part of your deployment depend on a dummy file
though.  I went for the index.jsp idea myself.

On Fri, 2002-08-16 at 11:40, Andrew Hill wrote:
> Ooo.
> The idea from Dennis Muhlestein seems better than my tactic.
> What a neat idea. Think I might switch to doing it this way.
>
> To quote his posting: "Anyway, I added index.do to the list of files for
> apache to
> automatically pull up and then just made a dummy file called index.do
> tomcat gets the request and it works just fine."
>
>
> -Original Message-
> From: Dariusz Wojtas [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 16, 2002 18:30
> To: Struts Users Mailing List
> Subject: Re[2]: Welcome file and struts
>
>
> That topic was discussed here
>   http://www.mail-archive.com/struts-user@jakarta.apache.org/msg34650.html
>
> Darek
>
> Friday, August 16, 2002, 12:30:00 PM, you wrote:
> MD> I don´t want get impatient ;-), but usually there is a lot more action
> here!
> MD> It´s just my luck that when I answer a question, everyone seems to be
on
> MD> vacation :-) !
>
> MD> Has anyone else experienced this problem?  Is there a workaround?
>
> MD> Thanks,
>
> MD> Michael
>
>
> MD> - Original Message -
> MD> From: "Michael Delamere" <[EMAIL PROTECTED]>
> MD> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> MD> Sent: Friday, August 16, 2002 10:32 AM
> MD> Subject: Welcome file and struts
>
>
> >> Hi folks!
> >>
> >> I have got a question concerning the welcome file in the web.xml.  I
have
> >> tried the following:
> >>
> >>   
> >> /index.do
> >>   
> >>
> >> Could it be that tomcat has problems with this because the file doesn´t
> >> physically exist?  The reason for assuming this is that index.vm
> (velocity
> >> template) seems to work!?
> >>
> >> Could someone please give me some guidelines on how to get tomcat to
load
> MD> my
> >> index.do on startup.
> >>
> >> Any help would be really appreciated.
> >>
> >> Thanks,
> >>
> >> Michael
>
> --
> Best regards,
>  Dariusz Wojtas mailto:[EMAIL PROTECTED]
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
--

Regards

---
 Cliff Rowley| [EMAIL PROTECTED]
 Software Engineer   |   www.doctype.co.uk
 +44 (0) 1206 514263 | www.cliffrowley.com
---


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


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




RE: Re[2]: Welcome file and struts

2002-08-16 Thread Cliff Rowley

Feels a bit weird having part of your deployment depend on a dummy file
though.  I went for the index.jsp idea myself.

On Fri, 2002-08-16 at 11:40, Andrew Hill wrote:
> Ooo.
> The idea from Dennis Muhlestein seems better than my tactic.
> What a neat idea. Think I might switch to doing it this way.
> 
> To quote his posting: "Anyway, I added index.do to the list of files for
> apache to
> automatically pull up and then just made a dummy file called index.do
> tomcat gets the request and it works just fine."
> 
> 
> -Original Message-
> From: Dariusz Wojtas [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 16, 2002 18:30
> To: Struts Users Mailing List
> Subject: Re[2]: Welcome file and struts
> 
> 
> That topic was discussed here
>   http://www.mail-archive.com/struts-user@jakarta.apache.org/msg34650.html
> 
> Darek
> 
> Friday, August 16, 2002, 12:30:00 PM, you wrote:
> MD> I don´t want get impatient ;-), but usually there is a lot more action
> here!
> MD> It´s just my luck that when I answer a question, everyone seems to be on
> MD> vacation :-) !
> 
> MD> Has anyone else experienced this problem?  Is there a workaround?
> 
> MD> Thanks,
> 
> MD> Michael
> 
> 
> MD> - Original Message -
> MD> From: "Michael Delamere" <[EMAIL PROTECTED]>
> MD> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> MD> Sent: Friday, August 16, 2002 10:32 AM
> MD> Subject: Welcome file and struts
> 
> 
> >> Hi folks!
> >>
> >> I have got a question concerning the welcome file in the web.xml.  I have
> >> tried the following:
> >>
> >>   
> >> /index.do
> >>   
> >>
> >> Could it be that tomcat has problems with this because the file doesn´t
> >> physically exist?  The reason for assuming this is that index.vm
> (velocity
> >> template) seems to work!?
> >>
> >> Could someone please give me some guidelines on how to get tomcat to load
> MD> my
> >> index.do on startup.
> >>
> >> Any help would be really appreciated.
> >>
> >> Thanks,
> >>
> >> Michael
> 
> --
> Best regards,
>  Dariusz Wojtas mailto:[EMAIL PROTECTED]
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 
-- 

Regards

---
 Cliff Rowley| [EMAIL PROTECTED]
 Software Engineer   |   www.doctype.co.uk
 +44 (0) 1206 514263 | www.cliffrowley.com
---


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




RE: Re[2]: Welcome file and struts

2002-08-16 Thread Andrew Hill

Ooo.
The idea from Dennis Muhlestein seems better than my tactic.
What a neat idea. Think I might switch to doing it this way.

To quote his posting: "Anyway, I added index.do to the list of files for
apache to
automatically pull up and then just made a dummy file called index.do
tomcat gets the request and it works just fine."


-Original Message-
From: Dariusz Wojtas [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 16, 2002 18:30
To: Struts Users Mailing List
Subject: Re[2]: Welcome file and struts


That topic was discussed here
  http://www.mail-archive.com/struts-user@jakarta.apache.org/msg34650.html

Darek

Friday, August 16, 2002, 12:30:00 PM, you wrote:
MD> I don´t want get impatient ;-), but usually there is a lot more action
here!
MD> It´s just my luck that when I answer a question, everyone seems to be on
MD> vacation :-) !

MD> Has anyone else experienced this problem?  Is there a workaround?

MD> Thanks,

MD> Michael


MD> - Original Message -
MD> From: "Michael Delamere" <[EMAIL PROTECTED]>
MD> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
MD> Sent: Friday, August 16, 2002 10:32 AM
MD> Subject: Welcome file and struts


>> Hi folks!
>>
>> I have got a question concerning the welcome file in the web.xml.  I have
>> tried the following:
>>
>>   
>> /index.do
>>   
>>
>> Could it be that tomcat has problems with this because the file doesn´t
>> physically exist?  The reason for assuming this is that index.vm
(velocity
>> template) seems to work!?
>>
>> Could someone please give me some guidelines on how to get tomcat to load
MD> my
>> index.do on startup.
>>
>> Any help would be really appreciated.
>>
>> Thanks,
>>
>> Michael

--
Best regards,
 Dariusz Wojtas mailto:[EMAIL PROTECTED]


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


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




Re: Re[2]: Welcome file and struts

2002-08-16 Thread Michael Delamere

thanks!

Nevertheless, it´s fairly quiet for a friday :-) !

Regards,

Michael

p.s. I found another solution which involved a META-Refresh, but I think the
thread below has a better solution (if it works :-) ).


- Original Message -
From: "Dariusz Wojtas" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, August 16, 2002 12:30 PM
Subject: Re[2]: Welcome file and struts


> That topic was discussed here
>   http://www.mail-archive.com/struts-user@jakarta.apache.org/msg34650.html
>
> Darek
>
> Friday, August 16, 2002, 12:30:00 PM, you wrote:
> MD> I don´t want get impatient ;-), but usually there is a lot more action
here!
> MD> It´s just my luck that when I answer a question, everyone seems to be
on
> MD> vacation :-) !
>
> MD> Has anyone else experienced this problem?  Is there a workaround?
>
> MD> Thanks,
>
> MD> Michael
>
>
> MD> - Original Message -
> MD> From: "Michael Delamere" <[EMAIL PROTECTED]>
> MD> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> MD> Sent: Friday, August 16, 2002 10:32 AM
> MD> Subject: Welcome file and struts
>
>
> >> Hi folks!
> >>
> >> I have got a question concerning the welcome file in the web.xml.  I
have
> >> tried the following:
> >>
> >>   
> >> /index.do
> >>   
> >>
> >> Could it be that tomcat has problems with this because the file doesn´t
> >> physically exist?  The reason for assuming this is that index.vm
(velocity
> >> template) seems to work!?
> >>
> >> Could someone please give me some guidelines on how to get tomcat to
load
> MD> my
> >> index.do on startup.
> >>
> >> Any help would be really appreciated.
> >>
> >> Thanks,
> >>
> >> Michael
>
> --
> Best regards,
>  Dariusz Wojtas mailto:[EMAIL PROTECTED]
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


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




RE: Welcome file and struts

2002-08-16 Thread Andrew Hill

Oops. Sorry guess I missed the original post!
Yeh. I couldnt get this one to work either. Darn nuisance.

I ended up creating a very simple .html file that used a meta refresh to
redirect to the required action thusly:


  

  
  
 
  


-Original Message-
From: Michael Delamere [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 16, 2002 18:30
To: Struts Users Mailing List
Subject: Re: Welcome file and struts


I don´t want get impatient ;-), but usually there is a lot more action here!
It´s just my luck that when I answer a question, everyone seems to be on
vacation :-) !

Has anyone else experienced this problem?  Is there a workaround?

Thanks,

Michael


- Original Message -
From: "Michael Delamere" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, August 16, 2002 10:32 AM
Subject: Welcome file and struts


> Hi folks!
>
> I have got a question concerning the welcome file in the web.xml.  I have
> tried the following:
>
>   
> /index.do
>   
>
> Could it be that tomcat has problems with this because the file doesn´t
> physically exist?  The reason for assuming this is that index.vm (velocity
> template) seems to work!?
>
> Could someone please give me some guidelines on how to get tomcat to load
my
> index.do on startup.
>
> Any help would be really appreciated.
>
> Thanks,
>
> Michael
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


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


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




Re[2]: Welcome file and struts

2002-08-16 Thread Dariusz Wojtas

That topic was discussed here
  http://www.mail-archive.com/struts-user@jakarta.apache.org/msg34650.html

Darek

Friday, August 16, 2002, 12:30:00 PM, you wrote:
MD> I don´t want get impatient ;-), but usually there is a lot more action here!
MD> It´s just my luck that when I answer a question, everyone seems to be on
MD> vacation :-) !

MD> Has anyone else experienced this problem?  Is there a workaround?

MD> Thanks,

MD> Michael


MD> - Original Message -
MD> From: "Michael Delamere" <[EMAIL PROTECTED]>
MD> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
MD> Sent: Friday, August 16, 2002 10:32 AM
MD> Subject: Welcome file and struts


>> Hi folks!
>>
>> I have got a question concerning the welcome file in the web.xml.  I have
>> tried the following:
>>
>>   
>> /index.do
>>   
>>
>> Could it be that tomcat has problems with this because the file doesn´t
>> physically exist?  The reason for assuming this is that index.vm (velocity
>> template) seems to work!?
>>
>> Could someone please give me some guidelines on how to get tomcat to load
MD> my
>> index.do on startup.
>>
>> Any help would be really appreciated.
>>
>> Thanks,
>>
>> Michael

-- 
Best regards,
 Dariusz Wojtas mailto:[EMAIL PROTECTED]


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




Re: Welcome file and struts

2002-08-16 Thread Michael Delamere

I don´t want get impatient ;-), but usually there is a lot more action here!
It´s just my luck that when I answer a question, everyone seems to be on
vacation :-) !

Has anyone else experienced this problem?  Is there a workaround?

Thanks,

Michael


- Original Message -
From: "Michael Delamere" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, August 16, 2002 10:32 AM
Subject: Welcome file and struts


> Hi folks!
>
> I have got a question concerning the welcome file in the web.xml.  I have
> tried the following:
>
>   
> /index.do
>   
>
> Could it be that tomcat has problems with this because the file doesn´t
> physically exist?  The reason for assuming this is that index.vm (velocity
> template) seems to work!?
>
> Could someone please give me some guidelines on how to get tomcat to load
my
> index.do on startup.
>
> Any help would be really appreciated.
>
> Thanks,
>
> Michael
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


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




Welcome file and struts

2002-08-16 Thread Michael Delamere

Hi folks!

I have got a question concerning the welcome file in the web.xml.  I have
tried the following:

  
/index.do
  

Could it be that tomcat has problems with this because the file doesn´t
physically exist?  The reason for assuming this is that index.vm (velocity
template) seems to work!?

Could someone please give me some guidelines on how to get tomcat to load my
index.do on startup.

Any help would be really appreciated.

Thanks,

Michael




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




RE: Welcome file, servlet mapping in web.xml file

2002-07-18 Thread James Mitchell


>  localhost:8080/EGPS/banking/action/login.jsp

It looks like you are confusing pathmapping with welcome file list

Try this instead:
http://localhost:8080/EGPS/banking/login.jsp

I removed "/action" because that's what you need to call an action, which
will forward to your jsp.

Good luck.

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta



> -Original Message-
> From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
> Sent: Thursday, July 18, 2002 9:55 PM
> To: [EMAIL PROTECTED]
> Subject: Welcome file, servlet mapping in web.xml file
>
>
> Subject: Welcome file, servlet mapping in web.xml file
> From: "BillB" <[EMAIL PROTECTED]>
>  ===
>
> Given the following web.xml entry:
>
>   
> banking
> org.apache.struts.action.ActionServlet
> 
>   config
>   /WEB-INF/struts-config.xml
> 
> 
>   debug
>   3
> 
> 
>   detail
>   3
> 
> 
>   validating
>   true
> 
> 1
>   
>
>   
> banking
> /action/*
>   
>
>
> login.jsp -file-list
> >
>
> and a jsp file called login.jsp in the root webapp directory, what else is
> required to view the page
> with the URL: localhost:8080/EGPS/banking/action/login.jsp? I continually
> get a 500 error saying the
> resource isn't found. Is there something I'm missing?
>
> Thanks,
> Bill
>



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




Welcome file, servlet mapping in web.xml file

2002-07-18 Thread @Basebeans.com

Subject: Welcome file, servlet mapping in web.xml file
From: "BillB" <[EMAIL PROTECTED]>
 ===

Given the following web.xml entry:

  
banking
org.apache.struts.action.ActionServlet

  config
  /WEB-INF/struts-config.xml


  debug
  3


  detail
  3


  validating
  true

1
  

  
banking
/action/*
  


login.jsp

and a jsp file called login.jsp in the root webapp directory, what else is
required to view the page
with the URL: localhost:8080/EGPS/banking/action/login.jsp? I continually
get a 500 error saying the
resource isn't found. Is there something I'm missing?

Thanks,
Bill




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




RE: Welcome back Mark!

2002-07-15 Thread Chappell, Simon P

I shall look forward to them.

Drink any Bishop's Tipple or Newcastle Brown Ale? Before I gave up alchohol, they used 
to be my two regular pints.

Simon

>-Original Message-
>From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 15, 2002 4:48 PM
>To: 'Struts Users Mailing List'
>Subject: RE: Welcome back Mark!
>
>
>Many of them - good and bad!  I'll put together a synopsis
>
>Man, my head is not even into work yet.  Been debugging our 
>Struts app all
>day and the only thing I can think about is all those glorious beers in
>England, France, Belgium and Holland.
>
>Mark
>
>-Original Message-
>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 15, 2002 5:15 PM
>To: Struts Users Mailing List
>Subject: Welcome back Mark!
>
>
>Man it's been quiet around here!
>
>Any good tales to tell?
>
>Simon
>

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




RE: Welcome back Mark!

2002-07-15 Thread Galbreath, Mark

Many of them - good and bad!  I'll put together a synopsis

Man, my head is not even into work yet.  Been debugging our Struts app all
day and the only thing I can think about is all those glorious beers in
England, France, Belgium and Holland.

Mark

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 5:15 PM
To: Struts Users Mailing List
Subject: Welcome back Mark!


Man it's been quiet around here!

Any good tales to tell?

Simon

>-Original Message-
>From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 15, 2002 4:06 PM
>To: 'Struts Users Mailing List'
>Subject: RE: html:errors ActionErrors accessible as scripting variable?
>
>
><%
>ActionErrors ae = ( ActionErrors) request.getAttribute( 
>Action.ERROR_KEY);
>boolean err = false;
>if( ae != null) { err = true;  }
>%>
>
><% 
>if( err) { do_something }
>%>
>
>Mark (back from Amsterdam)
>
>-Original Message-
>From: Chang, Henrique [mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 15, 2002 4:46 PM
>To: 'Struts Users Mailing List'
>Subject: html:errors ActionErrors accessible as scripting variable?
>
>
>I have JSP page that should determine whether there are errors 
>or not in
>order to display certain parts of the page.
>So, is there a way to access the ActionErrors object in a JSP 
>as a scripting
>variable, or even better, a tag lib structure so that I can 
>check for the
>existence of the ActionErrors instance in the JSP page?
>
>Thanks,
>Henrique
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>--
>To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


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

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




Welcome back Mark!

2002-07-15 Thread Chappell, Simon P

Man it's been quiet around here!

Any good tales to tell?

Simon

>-Original Message-
>From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 15, 2002 4:06 PM
>To: 'Struts Users Mailing List'
>Subject: RE: html:errors ActionErrors accessible as scripting variable?
>
>
><%
>ActionErrors ae = ( ActionErrors) request.getAttribute( 
>Action.ERROR_KEY);
>boolean err = false;
>if( ae != null) { err = true;  }
>%>
>
><% 
>if( err) { do_something }
>%>
>
>Mark (back from Amsterdam)
>
>-Original Message-
>From: Chang, Henrique [mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 15, 2002 4:46 PM
>To: 'Struts Users Mailing List'
>Subject: html:errors ActionErrors accessible as scripting variable?
>
>
>I have JSP page that should determine whether there are errors 
>or not in
>order to display certain parts of the page.
>So, is there a way to access the ActionErrors object in a JSP 
>as a scripting
>variable, or even better, a tag lib structure so that I can 
>check for the
>existence of the ActionErrors instance in the JSP page?
>
>Thanks,
>Henrique
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>--
>To unsubscribe, e-mail:   

For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: tile definition as welcome file?

2002-06-27 Thread Cedric Dumoulin


  The welcome file should denote a valid URL. So I think you can put any struts action 
URL forwarding to a tile definition. Also, you can put a jsp page URL inserting the 
definition.
  What you can't do is to put a definition name as welcome file ;-) .

 Hope this help,

Cedric

Jerry Jalenak wrote:

> By using the  in web.xml, it is possible to have a
> different HTML or JSP page displayed when a user accesses a specific URL.
> Is it possible to specify a tiles definition? something like the following?
>
> 
> myFirstPage
> 
>
> where myFirstPage is defined in struts-config.xml as
>
> 
> 
> 
>
> 
> 
> 
> 
> 
>
> and myFirstPage_Tiles is defined in my tiles-config.xml?  Is there a better
> way of doing this?
>
> Thanks!
>
> Jerry Jalenak
> Development Manager, Web Publishing
> LabOne, Inc.
>
> This transmission (and any information attached to it) may be confidential and is 
>intended solely for the use of the individual or entity to which it is addressed. If 
>you are not the intended recipient or the person responsible for delivering the 
>transmission to the intended recipient, be advised that you have received this 
>transmission in error and that any use, dissemination, forwarding, printing, or 
>copying of this information is strictly prohibited. If you have received this 
>transmission in error, please immediately notify LabOne at (800)388-4675.
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


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




RE: Action as Welcome File

2002-06-26 Thread James Mitchell

I have solved this with index.jsp doing a forward to /index.do

I have a modified version of the Struts-example that shows this (and a few
other changes).

Here's the zip:
http://struts-atlanta.open-tools.org/download/struts-example-jsp-mod.zip



James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://struts-atlanta.open-tools.org




> -Original Message-
> From: Dennis Muhlestein [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 26, 2002 6:28 PM
> To: Struts Users Mailing List
> Subject: Re: Action as Welcome File
>
>
> We use apache in from of tomcat.  Because there is no index.do, we would
> get a directory listing (if that was turned on but it isn't because
> well...).
>
> Anyway, I added index.do to the list of files for apache to
> automatically pull up and then just made a dummy file called index.do
>
> tomcat gets the request and it works just fine.
>
> -Dennis
>
> On Wed, 2002-06-26 at 16:07, Jerry Jalenak wrote:
> > Is it possible to do the following?
> >
> > in web.xml..
> >
> > 
> > action
> > .
> > .
> > .
> > 
> >
> > 
> > action
> > *.do
> > 
> >
> > 
> > index.do
> > 
> >
> > I am trying to get index.do to run first before anything else
> happens.  What
> > I get is a directory listing of the web application folder.  I'm running
> > this under Tomcat 3.3.1.  Is anyone doing this? Can it even be done?
> >
> > Jerry
> >
> > This transmission (and any information attached to it) may be
> confidential and is intended solely for the use of the individual
> or entity to which it is addressed. If you are not the intended
> recipient or the person responsible for delivering the
> transmission to the intended recipient, be advised that you have
> received this transmission in error and that any use,
> dissemination, forwarding, printing, or copying of this
> information is strictly prohibited. If you have received this
> transmission in error, please immediately notify LabOne at (800)388-4675.
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>


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




Re: Action as Welcome File

2002-06-26 Thread Dave Bettin

Create a index.jsp and place a  tag to
forward to index.do.

Dave
--- Jerry Jalenak <[EMAIL PROTECTED]> wrote:
> Is it possible to do the following?
> 
> in web.xml..
> 
>   
>   action
>   .
>   .
>   .
>   
> 
>   
>   action
>   *.do
>   
> 
>   
>   index.do
>   
> 
> I am trying to get index.do to run first before
> anything else happens.  What
> I get is a directory listing of the web application
> folder.  I'm running
> this under Tomcat 3.3.1.  Is anyone doing this? Can
> it even be done?
> 
> Jerry
> 
> This transmission (and any information attached to
> it) may be confidential and is intended solely for
> the use of the individual or entity to which it is
> addressed. If you are not the intended recipient or
> the person responsible for delivering the
> transmission to the intended recipient, be advised
> that you have received this transmission in error
> and that any use, dissemination, forwarding,
> printing, or copying of this information is strictly
> prohibited. If you have received this transmission
> in error, please immediately notify LabOne at
> (800)388-4675.
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Action as Welcome File

2002-06-26 Thread Dennis Muhlestein

We use apache in from of tomcat.  Because there is no index.do, we would
get a directory listing (if that was turned on but it isn't because
well...).

Anyway, I added index.do to the list of files for apache to
automatically pull up and then just made a dummy file called index.do

tomcat gets the request and it works just fine.

-Dennis

On Wed, 2002-06-26 at 16:07, Jerry Jalenak wrote:
> Is it possible to do the following?
> 
> in web.xml..
> 
>   
>   action
>   .
>   .
>   .
>   
> 
>   
>   action
>   *.do
>   
> 
>   
>   index.do
>   
> 
> I am trying to get index.do to run first before anything else happens.  What
> I get is a directory listing of the web application folder.  I'm running
> this under Tomcat 3.3.1.  Is anyone doing this? Can it even be done?
> 
> Jerry
> 
> This transmission (and any information attached to it) may be confidential and is 
>intended solely for the use of the individual or entity to which it is addressed. If 
>you are not the intended recipient or the person responsible for delivering the 
>transmission to the intended recipient, be advised that you have received this 
>transmission in error and that any use, dissemination, forwarding, printing, or 
>copying of this information is strictly prohibited. If you have received this 
>transmission in error, please immediately notify LabOne at (800)388-4675.
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Action as Welcome File

2002-06-26 Thread Kevin . Bedell




Another approach is to use the "refresh" META tag. This is supported by most browsers.

Specifically:

 
  index.html
 

Then, in index.html:

  
  
  Redirect to our home page
 Please click here to if 
you are not automatically redirected to our home page
  
  
  Please click here if you are not 
automatically redirected to our home page
  
  

For most all browsers this should automatically redirect them to the home page.

Good luck,

Kevin






"Rathore, Pavan" <[EMAIL PROTECTED]> on 06/26/2002 06:09:43 PM

Please respond to "Struts Users Mailing List"
  <[EMAIL PROTECTED]>

To:   "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
cc:    (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:  RE: Action as Welcome File


Instead of that You can make a dummy (xyz.jsp) and then in xyz.asp you can
Redirect to index.do

Pavan

-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 26, 2002 3:07 PM
To: '[EMAIL PROTECTED]'
Subject: Action as Welcome File


Is it possible to do the following?

in web.xml..

 
  action
  .
  .
  .
 

 
  action
  *.do
 

 
  index.do
 

I am trying to get index.do to run first before anything else happens.
What
I get is a directory listing of the web application folder.  I'm running
this under Tomcat 3.3.1.  Is anyone doing this? Can it even be done?

Jerry

This transmission (and any information attached to it) may be confidential
and is intended solely for the use of the individual or entity to which it
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be
advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is
strictly prohibited. If you have received this transmission in error,
please
immediately notify LabOne at (800)388-4675.



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

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








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




RE: Action as Welcome File

2002-06-26 Thread Rathore, Pavan

Instead of that You can make a dummy (xyz.jsp) and then in xyz.asp you can
Redirect to index.do

Pavan

-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 26, 2002 3:07 PM
To: '[EMAIL PROTECTED]'
Subject: Action as Welcome File


Is it possible to do the following?

in web.xml..


action
.
.
.



action
*.do



index.do


I am trying to get index.do to run first before anything else happens.  What
I get is a directory listing of the web application folder.  I'm running
this under Tomcat 3.3.1.  Is anyone doing this? Can it even be done?

Jerry

This transmission (and any information attached to it) may be confidential
and is intended solely for the use of the individual or entity to which it
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be
advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is
strictly prohibited. If you have received this transmission in error, please
immediately notify LabOne at (800)388-4675.



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

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




Action as Welcome File

2002-06-26 Thread Jerry Jalenak

Is it possible to do the following?

in web.xml..


action
.
.
.



action
*.do



index.do


I am trying to get index.do to run first before anything else happens.  What
I get is a directory listing of the web application folder.  I'm running
this under Tomcat 3.3.1.  Is anyone doing this? Can it even be done?

Jerry

This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at (800)388-4675.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




tile definition as welcome file?

2002-06-26 Thread Jerry Jalenak

By using the  in web.xml, it is possible to have a
different HTML or JSP page displayed when a user accesses a specific URL.
Is it possible to specify a tiles definition? something like the following?


myFirstPage


where myFirstPage is defined in struts-config.xml as











and myFirstPage_Tiles is defined in my tiles-config.xml?  Is there a better
way of doing this? 

Thanks!

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.

This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at (800)388-4675.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Welcome page

2002-04-30 Thread Bhaskar Gopalan

Hi,

I guess both VA4.0 and Appserver use the webapp file to determine the
welcome page, etc. It works in
VA but not in Appserver. When I give the complete path to the jsp file in
the browser, it opens the page.

Any clues?

Thnx,
GB

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




Re: struts and tomcat - Welcome list

2002-04-06 Thread Ted Husted

For the welcome page, the containers look for a physical file rather
than going through the usual servlet mappings. The best solution is to
define a welcome ActionForward and use that for the welcome page. 

<%@ taglib uri="/tags/struts-logic" prefix="logic" %>


You can then use a global forward to send them to index.do, or whatever.

  


-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


"Struts Newsgroup (@Basebeans.com)" wrote:
> 
> Subject: struts and tomcat - Welcome list
> From: "Hermod Opstvedt" <[EMAIL PROTECTED]>
>  ===
> Hi all
> 
> Why does putting for instance "index.do" into the welcome-file-list in the
> web.xml for my application not work. Doing that just gives me a filelisting
> of the contents under web-application. If I write the URL straight into my
> browser it works ok. Also, is there a way to specify a "default" action in
> struts.
> 
> regards
> Hermod
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

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




struts and tomcat - Welcome list

2002-04-01 Thread @Basebeans.com

Subject: struts and tomcat - Welcome list
From: "Hermod Opstvedt" <[EMAIL PROTECTED]>
 ===
Hi all

Why does putting for instance "index.do" into the welcome-file-list in the
web.xml for my application not work. Doing that just gives me a filelisting
of the contents under web-application. If I write the URL straight into my
browser it works ok. Also, is there a way to specify a "default" action in
struts.


regards
Hermod



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




RE: configure welcome page

2002-03-02 Thread Phase Web and Multimedia

I thought Tomcat 4.0 allowed for some filtering that could avoid this and
send a request straight to an Action.

Brandon Goodin

-Original Message-
From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 2:10 PM
To: [EMAIL PROTECTED]
Subject: Re: configure welcome page


Subject: Re: configure welcome page
From: "Don Miller" <[EMAIL PROTECTED]>
 ===
Your problem is due to a common misconception of how the welcome file list
works.  The welcome file list in the web.xml file defines the default
file(s) for all directories, including the root and all subdirectories.  It
does not specify the URL of a default page for the web application.  If you
request http://myserver/myapp/, the application looks for
http://myserver/myapp/index.jsp.  If you request
http://myserver/myapp/mydirectory/, the application looks for
http://myserver/myapp/mydirectory/index.jsp.

The only work-around for your situation is to perform a forward from
/index.jsp to /WEB-INF/JSP/index.jsp.

I hope this helps.

Don

"Patria Lukman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> hi everyone
>
> am a newbie in Struts and have been playing around with some examples. I
> know it might sound obvious, but I have looked it up in the archive mail
and
> have not found anything.
> I want to move the welcome page ( index.jsp)  of my app from the root to
> WEB-INF/JSP/index.jsp and for that I modified the web.xml file, in the <
> welcome-file>index.jsp  to
> /WEB-INF/JSP/index.jsp but it gives a "not
> resource found" error when i access the app I also tried it without
the
> "/" before WEB-INF
> any hints?
>
> __
> Patria Handatjaia Lukman
>
> NdexSystems Inc. 360 St-Jacques Ouest, Suite 2000
> Montréal, Qc. H2Y 1P5
> Office phone: 1-514-288-0908 Ext 110
> [EMAIL PROTECTED]
>
> Quote of the century:
> "Life is a carnaval..."
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>



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



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




Re: configure welcome page

2002-02-28 Thread @Basebeans.com

Subject: Re: configure welcome page
From: "Don Miller" <[EMAIL PROTECTED]>
 ===
Your problem is due to a common misconception of how the welcome file list
works.  The welcome file list in the web.xml file defines the default
file(s) for all directories, including the root and all subdirectories.  It
does not specify the URL of a default page for the web application.  If you
request http://myserver/myapp/, the application looks for
http://myserver/myapp/index.jsp.;  If you request
http://myserver/myapp/mydirectory/, the application looks for
http://myserver/myapp/mydirectory/index.jsp.;

The only work-around for your situation is to perform a forward from
/index.jsp to /WEB-INF/JSP/index.jsp.

I hope this helps.

Don

"Patria Lukman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> hi everyone
>
> am a newbie in Struts and have been playing around with some examples. I
> know it might sound obvious, but I have looked it up in the archive mail
and
> have not found anything.
> I want to move the welcome page ( index.jsp)  of my app from the root to
> WEB-INF/JSP/index.jsp and for that I modified the web.xml file, in the <
> welcome-file>index.jsp  to
> /WEB-INF/JSP/index.jsp but it gives a "not
> resource found" error when i access the app I also tried it without
the
> "/" before WEB-INF
> any hints?
>
> __
> Patria Handatjaia Lukman
>
> NdexSystems Inc. 360 St-Jacques Ouest, Suite 2000
> Montréal, Qc. H2Y 1P5
> Office phone: 1-514-288-0908 Ext 110
> [EMAIL PROTECTED]
>
> Quote of the century:
> "Life is a carnaval..."
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>



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




configure welcome page

2002-02-28 Thread Patria Lukman

hi everyone

am a newbie in Struts and have been playing around with some examples. I
know it might sound obvious, but I have looked it up in the archive mail and
have not found anything.
I want to move the welcome page ( index.jsp)  of my app from the root to
WEB-INF/JSP/index.jsp and for that I modified the web.xml file, in the <
welcome-file>index.jsp  to
/WEB-INF/JSP/index.jsp but it gives a "not
resource found" error when i access the app I also tried it without the
"/" before WEB-INF
any hints?

__
Patria Handatjaia Lukman

NdexSystems Inc. 360 St-Jacques Ouest, Suite 2000
Montréal, Qc. H2Y 1P5
Office phone: 1-514-288-0908 Ext 110
[EMAIL PROTECTED]

Quote of the century:
"Life is a carnaval..."



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




Subject: configure the welcome page

2002-02-07 Thread @Basebeans.com

Subject: Subject: configure the welcome page
4856:From: "Brian K. Buckley" <[EMAIL PROTECTED]>
 ===

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




Re: welcome-file-list

2002-01-25 Thread Mark Woon

Anna Chen wrote:

> Can I put an action instead of a page in the welcome-file-list like:
>  
>  /do/login
>  

Nope.  The servlet container will look for an actual file at that path.

You need to have a index.html/jsp that forwards to your login page.  For
example, an index.jsp that had:

<%@ page contentType="text/html" %>



-Mark
Who remembers asking a similar question when he first got his hands on
Struts...


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




welcome-file-list

2002-01-25 Thread Anna Chen

Hi, All

Can I put an action instead of a page in the welcome-file-list like:
 
 /do/login
 

Thanks

Anna






Re: index.do as welcome file?

2002-01-05 Thread Ted Husted

Using an Action as a welcome doesn't work, but you can use an index.jsp
to forward to a welcome Action. 

<%@ page language="java" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>



-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Building Java web applications with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/



> Mark Woon wrote:
> 
> > I've just started looking at Struts, and I'm trying to figure out how
> > to set an action as the default file for the webapp?  For example, I
> > have an index.do Action, and I'd like that served by default instead
> > of index.htm[l].  Is this possible?
> 
> After looking at the struts-config.xml DTD (thanks, Muthu!) , it looked
> as if the unknown attribute would solve this problem, but a quick trial
> of
> 
>  type="test.IndexAction"
> unknown="true">
> 
> 
> showed that this isn't the solution that I'm looking for.  Am I doing
> something wrong?  Is ther another way to go about this?
> 
> Thanks,
> -Mark
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

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




RE: index.do as welcome file?

2002-01-05 Thread James Dasher

If this is solely a cosmetic thing, why not make an index.jsp your
welcome file, and have it requestDispatcher.forward into your struts
frameworkPut it in a bean if it makes you happy.
I haven't tried this, but I don't see why it wouldn't work

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of
Mark Woon
Sent: Friday, January 04, 2002 9:26 PM
To: Struts Users Mailing List
Subject: index.do as welcome file?


Mark Woon wrote:

> I've just started looking at Struts, and I'm trying to figure out how 
> to set an action as the default file for the webapp?  For example, I 
> have an index.do Action, and I'd like that served by default instead 
> of index.htm[l].  Is this possible?

After looking at the struts-config.xml DTD (thanks, Muthu!) , it looked
as if the unknown attribute would solve this problem, but a quick trial
of




showed that this isn't the solution that I'm looking for.  Am I doing
something wrong?  Is ther another way to go about this?

Thanks,
-Mark



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




Re: index.do as welcome file?

2002-01-04 Thread Barry L. White

Mark Woon wrote:

>Mark Woon wrote:
>
>>I've just started looking at Struts, and I'm trying to figure out how to
>>set an action as the default file for the webapp?  For example, I have
>>an index.do Action, and I'd like that served by default instead of
>>index.htm[l].  Is this possible?
>>
>
>After looking at the struts-config.xml DTD (thanks, Muthu!) , it looked as if
>the unknown attribute would solve this problem, but a quick trial of
>
>type="test.IndexAction"
>unknown="true">
>
>
>showed that this isn't the solution that I'm looking for.  Am I doing something
>wrong?  Is ther another way to go about this?
>
>Thanks,
>-Mark
>
>
You can do the same thing by just having a index.jsp page that just 
forwards to your index.do servlet.

Barry




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




index.do as welcome file?

2002-01-04 Thread Mark Woon

Mark Woon wrote:

> I've just started looking at Struts, and I'm trying to figure out how to
> set an action as the default file for the webapp?  For example, I have
> an index.do Action, and I'd like that served by default instead of
> index.htm[l].  Is this possible?

After looking at the struts-config.xml DTD (thanks, Muthu!) , it looked as if
the unknown attribute would solve this problem, but a quick trial of




showed that this isn't the solution that I'm looking for.  Am I doing something
wrong?  Is ther another way to go about this?

Thanks,
-Mark




Re: welcome file in web.xml with pre-compiled jsp's? - tomcat bug!!

2001-08-29 Thread dhay



Just for your information - turns out this is a bug in Tomcat!

I submitted it (Bug No 3309) and they propose to fix it, maybe by 3.3.1.  At the
moment, work around is to stick an uncompiled version in directory, or to use
javascript to perform a forward in a regular html page to your pre-compiled jsp.

Cheers,

Dave






Re: welcome file in web.xml with pre-compiled jsp's?

2001-08-24 Thread dhay



Yep, that's the conclusion I came to.   I already posted to tomcat user mailing
list, but no response.

Dave





Ted Husted <[EMAIL PROTECTED]> on 08/24/2001 04:07:41 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Re: welcome file in web.xml with pre-compiled jsp's?



In any event, it's not a bug in Struts, so you might want to take it up
with the support group for your container.

[EMAIL PROTECTED] wrote:
>
> Hi Bill,
>
> I just want to have what works with uncompiled jsp's work with compiled jsps!
>
> My welcome page is called index.jsp, but when I compile it and put it in a jar
> file, it is not found for the first page (though I can call it directly).  Is
> this some kind of bug?
>
> Cheers,
>
> Dave
>
> PS  I can work around it with a index.htm as a welcome page that redirects you
> with javascript to index.jsp, but that's very clumsy!









Re: welcome file in web.xml with pre-compiled jsp's?

2001-08-24 Thread Ted Husted

In any event, it's not a bug in Struts, so you might want to take it up
with the support group for your container.

[EMAIL PROTECTED] wrote:
> 
> Hi Bill,
> 
> I just want to have what works with uncompiled jsp's work with compiled jsps!
> 
> My welcome page is called index.jsp, but when I compile it and put it in a jar
> file, it is not found for the first page (though I can call it directly).  Is
> this some kind of bug?
> 
> Cheers,
> 
> Dave
> 
> PS  I can work around it with a index.htm as a welcome page that redirects you
> with javascript to index.jsp, but that's very clumsy!



Re: welcome file in web.xml with pre-compiled jsp's?

2001-08-24 Thread Joey Gibson

On Fri, 24 Aug 2001 10:34:03 -0700, John Raley <[EMAIL PROTECTED]> wrote:

||| Joey Gibson wrote:
||| 
||| >
||| >   An ever-so-slightly-less-clumsy way to do this it to have an index.jsp
||| >that looks like this:
||| >
||| >   
||| >
||| But if index.jsp is precompiled (and removed) this won't function as a 
||| welcome file (i.e. something that will be shown if they request 
||| http: ).

True. I've not done pre-compiled jsps before, but I would imagine you
could just not precompile this one file? If not, then forget what I just
said.

Joey

-- Sun Certified Java2 Programmer
-- My Pocket Smalltalk Stuff: www.joeygibson.com/st
--
-- "We thought about killin' him, but we kinda 
--  hated to go that far" - Briscoe Darling




Re: welcome file in web.xml with pre-compiled jsp's?

2001-08-24 Thread John Raley

Joey Gibson wrote:

>
>   An ever-so-slightly-less-clumsy way to do this it to have an index.jsp
>that looks like this:
>
>   
>
But if index.jsp is precompiled (and removed) this won't function as a 
welcome file (i.e. something that will be shown if they request 
http: ).




Re: welcome file in web.xml with pre-compiled jsp's?

2001-08-24 Thread Joey Gibson

On Fri, 24 Aug 2001 12:40:04 -0400, [EMAIL PROTECTED] wrote:

||| PS  I can work around it with a index.htm as a welcome page that redirects you
||| with javascript to index.jsp, but that's very clumsy!

An ever-so-slightly-less-clumsy way to do this it to have an index.jsp
that looks like this:



This at least avoids the javascript and browser redirection.

Joey

-- Sun Certified Java2 Programmer
-- My Pocket Smalltalk Stuff: www.joeygibson.com/st
--
-- "We thought about killin' him, but we kinda 
--  hated to go that far" - Briscoe Darling




Re: welcome file in web.xml with pre-compiled jsp's?

2001-08-24 Thread dhay



Hi Bill,

I just want to have what works with uncompiled jsp's work with compiled jsps!

My welcome page is called index.jsp, but when I compile it and put it in a jar
file, it is not found for the first page (though I can call it directly).  Is
this some kind of bug?

Cheers,

Dave

PS  I can work around it with a index.htm as a welcome page that redirects you
with javascript to index.jsp, but that's very clumsy!




Bill Clinton <[EMAIL PROTECTED]> on 08/24/2001
10:37:46 AM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Re: welcome file in web.xml with pre-compiled jsp's?



Hello,
I don't know if I understand your question completely, but are you
saying that having a servlet (or the ActionServlet) as a welcome page
would solve your problem? Or must it be a .jsp?
I am using the ActionServlet to forward to my welcome page.  I have
index.do listed as my welcome file.  To get this to work, I had to put a
blank file called index.do in my WEB-INF directory.  This seems to work
fine in both resin and orion.

Bill


[EMAIL PROTECTED] wrote:

>
> Hi everyone,
>
> I am pre-compiling my jsp's in my struts web app, and everything works fine,
> except specifying the welcome file in the web.xml.
>
> If I do not pre-compile everything, having index.jsp as the first page works
> great.  However, when I pre-compile index.jsp it doesn't work.  Putting an
> uncompiled index.jsp back in the root directory makes it work again.  I guess
it
> is because I am now calling a servlet instead of page, but not sure how to get
> around this.
>
> Does anyone know if there is something special I have to do, or if there is
> anywhere else I can specify the first page as a servlet?
>
> Thanks,
>
> Dave
>
> Web.xml:
>
> 
>
>PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>   "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
>
> 
> 
>
>
>
>
> 
> index.jsp
>
>
>
>
> action
> 
> beans.AppController
> 
> 
>   application
>   ApplicationResources
> 
> 
> 
>   config
>   /WEB-INF/struts-config.xml
> 
> 
> 
>   debug
>   2
> 
> 
> 
>   detail
>   2
> 
> 2
>
>
>
>
>   java.lang.Exception
>   /error.jsp
>
>
>
>
> 
> changeLogFileName
> 
> 
> JspServ.changeLogFileName
> 
>
>
>
> 
> chooseDevice
> 
> 
> JspServ.chooseDevice
> 
>
>
>
> 
> dataDir
> 
> 
> JspServ.dataDir
> 
>
>
>
> 
> dataDirFrame
> 
> 
> JspServ.dataDirFrame
> 
>
>
>
> 
> error
> 
> 
> JspServ.error
> 
>
>
>
> 
> index
> 
> 
> JspServ.index
> 
>
>
>
> 
> indexBar
> 
> 
> JspServ.indexBar
> 
>
>
>
> 
> log
> 
> 
> JspServ.log
> 
>
>
>
> 
> logFilter
> 
> 
> JspServ.logFilter
> 
>
>
>
> 
> logFrame
> 
> 
> JspServ.logFrame
> 
>
>
>
> 
> logging
> 
> 
> JspServ.logging
> 
>
>
>
> 
> loggingFrame
> 
> 
> JspServ.loggingFrame
> 
>
>
>
> 
> loggingSaveCancel
> 
> 
> JspServ.loggingSaveCancel
> 
>
>
>
> 
> login
> 
> 
> JspServ.login
> 
>
>
>
> 
> messages
> 
> 
> JspServ.messages
> 
>
>
>
> 
> parameters
> 
> 
> JspServ.parameters
> 
>
>
>
> 
> parametersFrame
> 
> 
> JspServ.parametersFrame
> 
>
>
>
> 
> parametersSaveCancel
> 
> 
> JspServ.parametersSaveCancel
> 
>
>
>
> 
> serialNosFrame
> 
> 
> JspServ.serialNosFrame
> 
>
>
>
> 
> serialNos
> 
> 
> 

Re: welcome file in web.xml with pre-compiled jsp's?

2001-08-24 Thread Bill Clinton

Hello,
I don't know if I understand your question completely, but are you 
saying that having a servlet (or the ActionServlet) as a welcome page 
would solve your problem? Or must it be a .jsp?
I am using the ActionServlet to forward to my welcome page.  I have 
index.do listed as my welcome file.  To get this to work, I had to put a 
blank file called index.do in my WEB-INF directory.  This seems to work 
fine in both resin and orion.

Bill


[EMAIL PROTECTED] wrote:

> 
> Hi everyone,
> 
> I am pre-compiling my jsp's in my struts web app, and everything works fine,
> except specifying the welcome file in the web.xml.
> 
> If I do not pre-compile everything, having index.jsp as the first page works
> great.  However, when I pre-compile index.jsp it doesn't work.  Putting an
> uncompiled index.jsp back in the root directory makes it work again.  I guess it
> is because I am now calling a servlet instead of page, but not sure how to get
> around this.
> 
> Does anyone know if there is something special I have to do, or if there is
> anywhere else I can specify the first page as a servlet?
> 
> Thanks,
> 
> Dave
> 
> Web.xml:
> 
> 
> 
>PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>   "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> 
> 
> 
> 
> 
>
>
> 
> index.jsp
>
> 
>
>
> action
> 
> beans.AppController
> 
> 
>   application
>   ApplicationResources
> 
> 
> 
>   config
>   /WEB-INF/struts-config.xml
> 
> 
> 
>   debug
>   2
> 
> 
> 
>   detail
>   2
> 
> 2
>
> 
>
>
>   java.lang.Exception
>   /error.jsp
>
> 
> 
>
> 
> changeLogFileName
> 
> 
> JspServ.changeLogFileName
> 
>
> 
>
> 
> chooseDevice
> 
> 
> JspServ.chooseDevice
> 
>
> 
>
> 
> dataDir
> 
> 
> JspServ.dataDir
> 
>
> 
>
> 
> dataDirFrame
> 
> 
> JspServ.dataDirFrame
> 
>
> 
>
> 
> error
> 
> 
> JspServ.error
> 
>
> 
>
> 
> index
> 
> 
> JspServ.index
> 
>
> 
>
> 
> indexBar
> 
> 
> JspServ.indexBar
> 
>
> 
>
> 
> log
> 
> 
> JspServ.log
> 
>
> 
>
> 
> logFilter
> 
> 
> JspServ.logFilter
> 
>
> 
>
> 
> logFrame
> 
> 
> JspServ.logFrame
> 
>
> 
>
> 
> logging
> 
> 
> JspServ.logging
> 
>
> 
>
> 
> loggingFrame
> 
> 
> JspServ.loggingFrame
> 
>
> 
>
> 
> loggingSaveCancel
> 
> 
> JspServ.loggingSaveCancel
> 
>
> 
>
> 
> login
> 
> 
> JspServ.login
> 
>
> 
>
> 
> messages
> 
> 
> JspServ.messages
> 
>
> 
>
> 
> parameters
> 
> 
> JspServ.parameters
> 
>
> 
>
> 
> parametersFrame
> 
> 
> JspServ.parametersFrame
> 
>
> 
>
> 
> parametersSaveCancel
> 
> 
> JspServ.parametersSaveCancel
> 
>
> 
>
> 
> serialNosFrame
> 
> 
> JspServ.serialNosFrame
> 
>
> 
>
> 
> serialNos
> 
> 
> JspServ.serialNos
> 
>
> 
>
> 
> snapshot
> 
> 
> JspServ.snapshot
> 
>
> 
>
> 
> snapshotFilter
> 
> 
> JspServ.snapshotFilter
> 
>
> 
>
> 
> snapshotFrame
> 
> 
> JspServ.snapshotFrame
> 
>
> 
>
> 
> telnet
> 
> 
> JspServ.telnet
> 
>
> 
>
> 
> telnetFrame
> 
> 
> JspServ.telnetFrame
> 
>
> 
>

Re: welcome file in web.xml with pre-compiled jsp's?

2001-08-23 Thread John Raley

Anyone have a solution for this?  I'm having the same problem.  Thanks.

[EMAIL PROTECTED] wrote:

>
>Hi everyone,
>
>I am pre-compiling my jsp's in my struts web app, and everything works fine,
>except specifying the welcome file in the web.xml.
>
>If I do not pre-compile everything, having index.jsp as the first page works
>great.  However, when I pre-compile index.jsp it doesn't work.  Putting an
>uncompiled index.jsp back in the root directory makes it work again.  I guess it
>is because I am now calling a servlet instead of page, but not sure how to get
>around this.
>
>Does anyone know if there is something special I have to do, or if there is
>anywhere else I can specify the first page as a servlet?
>
>Thanks,
>
>Dave
>
>Web.xml:
>
>
>
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>  "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
>
>
>
>
>
>   
>   
>
>index.jsp
>   
>
>   
>   
>action
>
>beans.AppController
>
>
>  application
>  ApplicationResources
>
>
>
>  config
>  /WEB-INF/struts-config.xml
>
>
>
>  debug
>  2
>
>
>
>  detail
>  2
>
>2
>   
>
>   
>   
>  java.lang.Exception
>  /error.jsp
>   
>
>
>   
>
>changeLogFileName
>
>
>JspServ.changeLogFileName
>
>   
>
>   
>
>chooseDevice
>
>
>JspServ.chooseDevice
>
>   
>
>   
>
>dataDir
>
>
>JspServ.dataDir
>
>   
>
>   
>
>dataDirFrame
>
>
>JspServ.dataDirFrame
>
>   
>
>   
>
>error
>
>
>JspServ.error
>
>   
>
>   
>
>index
>
>
>JspServ.index
>
>   
>
>   
>
>indexBar
>
>
>JspServ.indexBar
>
>   
>
>   
>
>log
>
>
>JspServ.log
>
>   
>
>   
>
>logFilter
>
>
>JspServ.logFilter
>
>   
>
>   
>
>logFrame
>
>
>JspServ.logFrame
>
>   
>
>   
>
>logging
>
>
>JspServ.logging
>
>   
>
>   
>
>loggingFrame
>
>
>JspServ.loggingFrame
>
>   
>
>   
>
>loggingSaveCancel
>
>
>JspServ.loggingSaveCancel
>
>   
>
>   
>
>login
>
>
>JspServ.login
>
>   
>
>   
>
>messages
>
>
>JspServ.messages
>
>   
>
>   
>
>parameters
>
>
>JspServ.parameters
>
>   
>
>   
>
>parametersFrame
>
>
>JspServ.parametersFrame
>
>   
>
>   
>
>parametersSaveCancel
>
>
>JspServ.parametersSaveCancel
>
>   
>
>   
>
>serialNosFrame
>
>
>JspServ.serialNosFrame
>
>   
>
>   
>
>serialNos
>
>
>JspServ.serialNos
>
>   
>
>   
>
>snapshot
>
>
>JspServ.snapshot
>
>   
>
>   
>
>snapshotFilter
>
>
>JspServ.snapshotFilter
>
>   
>
>   
>
>snapshotFrame
>
>
>JspServ.snapshotFrame
>
>   
>
>   
>
>telnet
>
>
>JspServ.telnet
>
>   
>
>   
>
>telnetFrame
>
>
>JspServ.telnetFrame
>
>   
>
>   
>
>telnetInstr
>
>
>JspServ.telnetInstr
>
>   
>
>   
>
>trace
>
>
>JspServ.trace
>
>   
>
>   
>
>traceFrame
>
>
>JspServ.traceFrame
>
>   
>
>   
>
>traceSaveCancel
>
>
>JspServ.traceSaveCancel
>
>   
>
>
>   
>   
>action
>*.do
>   
>
>   
>
>   changeLogFileName
>
>
>   /changeLogFileName.jsp
>
>   
>
>   
>
>   chooseDevice
>

welcome file in web.xml with pre-compiled jsp's?

2001-08-21 Thread dhay



Hi everyone,

I am pre-compiling my jsp's in my struts web app, and everything works fine,
except specifying the welcome file in the web.xml.

If I do not pre-compile everything, having index.jsp as the first page works
great.  However, when I pre-compile index.jsp it doesn't work.  Putting an
uncompiled index.jsp back in the root directory makes it work again.  I guess it
is because I am now calling a servlet instead of page, but not sure how to get
around this.

Does anyone know if there is something special I have to do, or if there is
anywhere else I can specify the first page as a servlet?

Thanks,

Dave

Web.xml:



http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>





   
   

index.jsp
   

   
   
action

beans.AppController


  application
  ApplicationResources



  config
  /WEB-INF/struts-config.xml



  debug
  2



  detail
  2

2
   

   
   
  java.lang.Exception
  /error.jsp
   


   

changeLogFileName


JspServ.changeLogFileName

   

   

chooseDevice


JspServ.chooseDevice

   

   

dataDir


JspServ.dataDir

   

   

dataDirFrame


JspServ.dataDirFrame

   

   

error


JspServ.error

   

   

index


JspServ.index

   

   

indexBar


JspServ.indexBar

   

   

log


JspServ.log

   

   

logFilter


JspServ.logFilter

   

   

logFrame


JspServ.logFrame

   

   

logging


JspServ.logging

   

   

loggingFrame


JspServ.loggingFrame

   

   

loggingSaveCancel


JspServ.loggingSaveCancel

   

   

login


JspServ.login

   

   

messages


JspServ.messages

   

   

parameters


JspServ.parameters

   

   

parametersFrame


JspServ.parametersFrame

   

   

parametersSaveCancel


JspServ.parametersSaveCancel

   

   

serialNosFrame


JspServ.serialNosFrame

   

   

serialNos


JspServ.serialNos

   

   

snapshot


JspServ.snapshot

   

   

snapshotFilter


JspServ.snapshotFilter

   

   

snapshotFrame


JspServ.snapshotFrame

   

   

telnet


JspServ.telnet

   

   

telnetFrame


JspServ.telnetFrame

   

   

telnetInstr


JspServ.telnetInstr

   

   

trace


JspServ.trace

   

   

traceFrame


JspServ.traceFrame

   

   

traceSaveCancel


JspServ.traceSaveCancel

   


   
   
action
*.do
   

   

   changeLogFileName


   /changeLogFileName.jsp

   

   

   chooseDevice


   /chooseDevice.jsp

   

   

   dataDir


   /dataDir.jsp

   

   

   dataDirFrame


   /dataDirFrame.jsp

   

   

   error


   /error.jsp

   

   

   index


   /index.jsp

   

   

   indexBar


   /indexBar.jsp

   

   

   log


   /log.jsp

   

   

   logFilter


   /logFilter.jsp

   

   

   logFrame


   /logFrame.jsp

   

   

   logging


   /logging.jsp

   

   

   loggingFrame


   /loggingFrame.jsp

   

   

   loggingSaveCancel


   /loggingSaveCancel.jsp

   

   

   login


   /login.jsp

   

   

   messages


   /messages.jsp

   

   

   parameters


   /parameters.jsp

   

   

   parametersFrame


   /parametersFrame.jsp

   

   

   parametersSaveCancel


   /parametersSaveCancel.jsp

   

   

   serialNosFrame


   /serialNosFrame.jsp

   

   

   serialNos


   /serialNos.jsp

   

   

   snapshot


   /snapshot.jsp

   

   

   snapshotFilter


   /snapshotFilter.jsp

   

   

   snapshotFrame


   /snapshotFrame.jsp

   

   

   telnet


   /telnet.jsp

   

   

   telnetFrame


 

Re: action as the welcome page

2001-08-15 Thread Rama Krishna

supposing for  http://xyz/abc i want to goto an action and display
someresults, the following works for me.

the following welcome-file-list is needed otherwise, it doesnot work. i get
a 404 error.


web.xml
index.cm

config.xml





hope this helps.
ramakrishna.

- Original Message -
From: "Gogineni, Pratima" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 15, 2001 11:58 AM
Subject: action as the welcome page


> Hi,
>
> I have seen some messages in the news groups which seem to indicate that
it
> may be possible to set an action as the welcome page, though a couple of
> people were having problems with it.
>
> I tried doing this - set my welcome page to login.do (also tried
/login.do).
> After authentication I get a 404 error that says ADM/login.do not found
(ADM
> is my context).
>
> The /login action has been defined in struts-config.xml and I can forward
to
> it through a jsp page.
>
> Im trying to find out if anyone else has been able to do this, if it is
> possible to do this at all, if I am doing something wrong ...
>
> Thanks
> Pratima
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 15, 2001 10:29 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: action mapping not working
>
>
>
>
> ...but when you finish going through the Action class (Question), you want
> to
> then go to the jsp, not the action again, which would give you an infinite
> loop!
> ;-)
>
> Dave
>
>
>
>
>
> "Larry Maturo" <[EMAIL PROTECTED]> on
08/15/2001
> 01:23:32 PM
>
> Please respond to [EMAIL PROTECTED];
> Please
>   respond to [EMAIL PROTECTED]
>
> To:   [EMAIL PROTECTED]
> cc:(bcc: David Hay/Lex/Lexmark)
> Subject:  RE: action mapping not working
>
>
>
> Hi Dave,
>
> You wrote:
> Presumably you call your action Question from somewhere, execute it, and
> when
> it's done, you forward to question.jsp, not to the Question action again!
>
> Actually, I need to go through the Action Class each time, to repopulate
> the jsp from the database, since it represents a question, and I want
> the answers to contain whatever the user last entered, and I stored in the
> database for them.  A breakpoint in my Action Class indeed shows it gets
> hit each time I press back or next.
>
> Again, thanks for the help.  I don't need to understand it as long as it
> works.  Ah yes, the enigma that is struts. :-)
>
> -- Larry
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 15, 2001 12:13 PM
> To: [EMAIL PROTECTED]
> Subject: RE: action mapping not working
>
>
>
>
> Larry,
>
> Presumably you call your action Question from somewhere, execute it, and
> when
> it's done, you forward to question.jsp, not to the Question action again!
> Hence
> the action has already executed, and you want to go to the jsp page.
>
> With the others, I guess you want to perform the action and then display
the
> jsp, so the forward here should be another action, and the forward for the
> ReviewInstructions action is then a jsp page.
>
> Cheers,
>
> Dave
>
>
>
>
>
>
> "Larry Maturo" <[EMAIL PROTECTED]> on
08/15/2001
> 01:02:57 PM
>
> Please respond to [EMAIL PROTECTED]
>
> To:   "David_Hay/Lex/Lexmark.LEXMARK"@sweeper.lex.lexmark.com,
>   [EMAIL PROTECTED]
> cc:(bcc: David Hay/Lex/Lexmark)
> Subject:  RE: action mapping not working
>
>
>
> Hi Dave
>
> You wrote"
> If you want the action to be called, you should forward to the action, not
> the
> jsp eg
>
>   
>
> Below is my new mapping:
>
>  type="com.athensgroup.eval.action.QuestionAction"
> name="QuestionForm"
> scope="request"
> input="/jsp/Question.jsp">
> 
> 
> 
> 
>
> I don't understand why it works, but it does.  Thank you.  Any idea
> why sucess works even though it is different than the others?
>
> -- Larry
>
>
>
>
>
>
>
>
>
>
>
>
>
>



action as the welcome page

2001-08-15 Thread Gogineni, Pratima

Hi,

I have seen some messages in the news groups which seem to indicate that it
may be possible to set an action as the welcome page, though a couple of
people were having problems with it.

I tried doing this - set my welcome page to login.do (also tried /login.do).
After authentication I get a 404 error that says ADM/login.do not found (ADM
is my context).

The /login action has been defined in struts-config.xml and I can forward to
it through a jsp page.

Im trying to find out if anyone else has been able to do this, if it is
possible to do this at all, if I am doing something wrong ...

Thanks
Pratima

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 15, 2001 10:29 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: action mapping not working




...but when you finish going through the Action class (Question), you want
to
then go to the jsp, not the action again, which would give you an infinite
loop!
;-)

Dave





"Larry Maturo" <[EMAIL PROTECTED]> on 08/15/2001
01:23:32 PM

Please respond to [EMAIL PROTECTED];
Please
  respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  RE: action mapping not working



Hi Dave,

You wrote:
Presumably you call your action Question from somewhere, execute it, and
when
it's done, you forward to question.jsp, not to the Question action again!

Actually, I need to go through the Action Class each time, to repopulate
the jsp from the database, since it represents a question, and I want
the answers to contain whatever the user last entered, and I stored in the
database for them.  A breakpoint in my Action Class indeed shows it gets
hit each time I press back or next.

Again, thanks for the help.  I don't need to understand it as long as it
works.  Ah yes, the enigma that is struts. :-)

-- Larry



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 15, 2001 12:13 PM
To: [EMAIL PROTECTED]
Subject: RE: action mapping not working




Larry,

Presumably you call your action Question from somewhere, execute it, and
when
it's done, you forward to question.jsp, not to the Question action again!
Hence
the action has already executed, and you want to go to the jsp page.

With the others, I guess you want to perform the action and then display the
jsp, so the forward here should be another action, and the forward for the
ReviewInstructions action is then a jsp page.

Cheers,

Dave






"Larry Maturo" <[EMAIL PROTECTED]> on 08/15/2001
01:02:57 PM

Please respond to [EMAIL PROTECTED]

To:   "David_Hay/Lex/Lexmark.LEXMARK"@sweeper.lex.lexmark.com,
  [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  RE: action mapping not working



Hi Dave

You wrote"
If you want the action to be called, you should forward to the action, not
the
jsp eg

  

Below is my new mapping:







I don't understand why it works, but it does.  Thank you.  Any idea
why sucess works even though it is different than the others?

-- Larry
















FW: action as the welcome page

2001-08-15 Thread Gogineni, Pratima



-Original Message-
From: Gogineni, Pratima 
Sent: Wednesday, August 15, 2001 11:59 AM
To: '[EMAIL PROTECTED]'
Subject: action as the welcome page


Hi,

I have seen some messages in the news groups which seem to indicate that it
may be possible to set an action as the welcome page, though a couple of
people were having problems with it.

I tried doing this - set my welcome page to login.do (also tried /login.do).
After authentication I get a 404 error that says ADM/login.do not found (ADM
is my context).

The /login action has been defined in struts-config.xml and I can forward to
it through a jsp page.

Im trying to find out if anyone else has been able to do this, if it is
possible to do this at all, if I am doing something wrong ...

Thanks
Pratima

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 15, 2001 10:29 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: action mapping not working




...but when you finish going through the Action class (Question), you want
to
then go to the jsp, not the action again, which would give you an infinite
loop!
;-)

Dave





"Larry Maturo" <[EMAIL PROTECTED]> on 08/15/2001
01:23:32 PM

Please respond to [EMAIL PROTECTED];
Please
  respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  RE: action mapping not working



Hi Dave,

You wrote:
Presumably you call your action Question from somewhere, execute it, and
when
it's done, you forward to question.jsp, not to the Question action again!

Actually, I need to go through the Action Class each time, to repopulate
the jsp from the database, since it represents a question, and I want
the answers to contain whatever the user last entered, and I stored in the
database for them.  A breakpoint in my Action Class indeed shows it gets
hit each time I press back or next.

Again, thanks for the help.  I don't need to understand it as long as it
works.  Ah yes, the enigma that is struts. :-)

-- Larry



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 15, 2001 12:13 PM
To: [EMAIL PROTECTED]
Subject: RE: action mapping not working




Larry,

Presumably you call your action Question from somewhere, execute it, and
when
it's done, you forward to question.jsp, not to the Question action again!
Hence
the action has already executed, and you want to go to the jsp page.

With the others, I guess you want to perform the action and then display the
jsp, so the forward here should be another action, and the forward for the
ReviewInstructions action is then a jsp page.

Cheers,

Dave






"Larry Maturo" <[EMAIL PROTECTED]> on 08/15/2001
01:02:57 PM

Please respond to [EMAIL PROTECTED]

To:   "David_Hay/Lex/Lexmark.LEXMARK"@sweeper.lex.lexmark.com,
  [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  RE: action mapping not working



Hi Dave

You wrote"
If you want the action to be called, you should forward to the action, not
the
jsp eg

  

Below is my new mapping:







I don't understand why it works, but it does.  Thank you.  Any idea
why sucess works even though it is different than the others?

-- Larry
















RE: Welcome Page Action

2001-07-14 Thread Tim Colson

Ted suggested this solution to solve having a  welcome page redirect to a
struts action.

I tried it but encountered an issue because my default action requires
tomcat-based authentication.

Ex. path="/protected/mainmenu.do"

The redirect to this action works for http://host:8080/myapp/ ->
mainmenu.do, however, the user is not prompted for authentication.
Presumably because authentication (handled in web.xml for all /protected/*
URI's) happens prior to the struts logic:forward activity.

mainmenu.do freaks out a bit, because it expects to only be seen by an
authenticated user.

Suggestions on how one might fix that?

Thanks,
Timothy



> index.jsp:
>
> <%
> /**
>  * Redirect default requests to Welcome action.
> */
> %>
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
> 
>
> Struts-config:
>
> 
>   name="welcome"
> path="/announcements.do"/>
> 
>
> You could also use "announcements" instead of "welcome", but I tend to
> standardize on forwarding to Welcome and put the specifics in the
> config.
>
>
> -- Ted Husted, Husted dot Com, Fairport NY USA.
> -- Custom Software ~ Technical Services.
> -- Tel 716 737-3463.
> -- http://www.husted.com/about/struts/
>
>
> Calvin Lau wrote:
> >
> > I'm trying to figure out the best way of making my
> > welcome page (index.jsp) run an action that will show
> > my annoucements.  I have an AnnouncementsForm that I
> > use with announcements.do elsewhere, but I'm not sure
> > how I should make the index.jsp page run this same
> > action.  Is there any way to map an action to this
> > page without making all other .jsp pages go through
> > the Action servlet?
> >
> > The makeshift solution I have now is to change the
> > name of my jsp file to index.do and to make that my
> > welcome page.  This hardly seems like a good solution
> > though and I would think this problem has come up
> > often enough where there's something better.  I
> > imagine many welcome pages have dynamic content that
> > requires an action to be run.
>




RE: Welcome Page Action

2001-07-13 Thread Siggelkow, Bill

Maybe you could use a jsp:include to include the response from the
announcements.do ...

-Original Message-
From: Calvin Lau [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 8:05 AM
To: [EMAIL PROTECTED]
Subject: Welcome Page Action


I'm trying to figure out the best way of making my
welcome page (index.jsp) run an action that will show
my annoucements.  I have an AnnouncementsForm that I
use with announcements.do elsewhere, but I'm not sure
how I should make the index.jsp page run this same
action.  Is there any way to map an action to this
page without making all other .jsp pages go through
the Action servlet?

The makeshift solution I have now is to change the
name of my jsp file to index.do and to make that my
welcome page.  This hardly seems like a good solution
though and I would think this problem has come up
often enough where there's something better.  I
imagine many welcome pages have dynamic content that
requires an action to be run.  

Any ideas would be very appreciated.  Thanks,

Calvin

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



Re: Welcome Page Action

2001-07-13 Thread Ted Husted

index.jsp:

<%
/**
 * Redirect default requests to Welcome action.
*/
%>
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>


Struts-config: 


 


You could also use "announcements" instead of "welcome", but I tend to
standardize on forwarding to Welcome and put the specifics in the
config.


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/


Calvin Lau wrote:
> 
> I'm trying to figure out the best way of making my
> welcome page (index.jsp) run an action that will show
> my annoucements.  I have an AnnouncementsForm that I
> use with announcements.do elsewhere, but I'm not sure
> how I should make the index.jsp page run this same
> action.  Is there any way to map an action to this
> page without making all other .jsp pages go through
> the Action servlet?
> 
> The makeshift solution I have now is to change the
> name of my jsp file to index.do and to make that my
> welcome page.  This hardly seems like a good solution
> though and I would think this problem has come up
> often enough where there's something better.  I
> imagine many welcome pages have dynamic content that
> requires an action to be run.



Welcome Page Action

2001-07-13 Thread Calvin Lau

I'm trying to figure out the best way of making my
welcome page (index.jsp) run an action that will show
my annoucements.  I have an AnnouncementsForm that I
use with announcements.do elsewhere, but I'm not sure
how I should make the index.jsp page run this same
action.  Is there any way to map an action to this
page without making all other .jsp pages go through
the Action servlet?

The makeshift solution I have now is to change the
name of my jsp file to index.do and to make that my
welcome page.  This hardly seems like a good solution
though and I would think this problem has come up
often enough where there's something better.  I
imagine many welcome pages have dynamic content that
requires an action to be run.  

Any ideas would be very appreciated.  Thanks,

Calvin

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



Fwd: WELCOME to struts-user@jakarta.apache.org

2001-06-13 Thread Wayland Chan

For the people who didn't read this email when they
initially subscribed...please read for hints on
administrivia.


--- [EMAIL PROTECTED] wrote:
> Date: 22 Feb 2001 04:24:28 -
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: WELCOME to [EMAIL PROTECTED]
> 
> Hi! This is the ezmlm program. I'm managing the
> [EMAIL PROTECTED] mailing list.
> 
> Acknowledgment: I have added the address
> 
>[EMAIL PROTECTED]
> 
> to the struts-user mailing list.
> 
> Welcome to [EMAIL PROTECTED]!
> 
> Please save this message so that you know the
> address you are
> subscribed under, in case you later want to
> unsubscribe or change your
> subscription address.
> 
> 
> --- Administrative commands for the struts-user list
> ---
> 

** FOLLOWING IS VERY VERY VERY IMPORTANT **

> I can handle administrative requests automatically.
> Please
> do not send them to the list address! Instead, send
> your message to the correct command address:
> 
> To subscribe to the list, send a message to:
><[EMAIL PROTECTED]>
> 
> To remove your address from the list, send a message
> to:
><[EMAIL PROTECTED]>
> 
> Send mail to the following for info and FAQ for this
> list:
><[EMAIL PROTECTED]>
><[EMAIL PROTECTED]>
> 
> Similar addresses exist for the digest list:
><[EMAIL PROTECTED]>
>   
> <[EMAIL PROTECTED]>
> 
> To get messages 123 through 145 (a maximum of 100
> per request), mail:
><[EMAIL PROTECTED]>
> 
> To get an index with subject and author for messages
> 123-456 , mail:
><[EMAIL PROTECTED]>
> 
> They are always returned as sets of 100, max 2000
> per request,
> so you'll actually get 100-499.
> 
> To receive all messages with the same subject as
> message 12345,
> send an empty message to:
><[EMAIL PROTECTED]>
> 
> The messages do not really need to be empty, but I
> will ignore
> their content. Only the ADDRESS you send to is
> important.
> 
> You can start a subscription for an alternate
> address,
> for example "[EMAIL PROTECTED]", just add a hyphen
> and your
> address (with '=' instead of '@') after the command
> word:
>
<[EMAIL PROTECTED]>
> 
> To stop subscription for this address, mail:
>
<[EMAIL PROTECTED]>
> 
> In both cases, I'll send a confirmation message to
> that address. When
> you receive it, simply reply to it to complete your
> subscription.
> 
> If despite following these instructions, you do not
> get the
> desired results, please contact my owner at
> [EMAIL PROTECTED] Please be
> patient, my owner is a
> lot slower than I am ;-)
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



<    1   2