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
: 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
]]
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
]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, August 16, 2002 12:40 PM
Subject: RE: Re[2]: Welcome file and struts
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
Michael,
I've done this and it works extremely well. You can also put the index.jsp
in your web.xml welcome file list, and then just access the webapp like this
- http://yourcompany.com/webapp
Jerry Jalenak
-Original Message-
From: Michael Delamere [mailto:[EMAIL PROTECTED]]
Sent
Subject: Welcome file, servlet mapping in web.xml file
From: BillB [EMAIL PROTECTED]
===
Given the following web.xml entry:
servlet
servlet-namebanking/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
param-nameconfig/param-name
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
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?
%
, 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
'
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
I'd try something like this:
index.jsp:
%@ page language=java %
%@ taglib uri=/tags/struts-logic prefix=logic %
logic:forward name=welcome/
web.xml
...
welcome-file-list
welcome-fileindex.jsp/welcome-file
/welcome-file-list
...
struts-config.xml
...
global-forwards
forward name=welcome
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
/url-pattern
/servlet-mapping
welcome-file-list
welcome-fileindex.do/welcome-file
/welcome-file-list
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
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
Another approach is to use the refresh META tag. This is supported by most browsers.
Specifically:
welcome-file-list
welcome-fileindex.html/welcome-file
/welcome-file-list
Then, in index.html:
html
head
titleRedirect to our home page/title
META http
-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping
welcome-file-list
welcome-fileindex.do/welcome-file
/welcome-file-list
I am trying to get index.do to run first before anything else happens
We have all of our jsp's under Web-Inf. Therefore, you must call the
action class to get to a web page. This all works great except for our
welcome page called welcome.jsp that was built with Struts Tiles. If we go
to the browser and just type
http://localhost:8080/FedDebtWeb/controllers
Not sure if you saw this in an earlier post:
One approach is to use the refresh META tag. This is supported by most browsers.
Specifically:
welcome-file-list
welcome-fileindex.html/welcome-file
/welcome-file-list
Then, in index.html:
html
head
.
.
.
/servlet
servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping
welcome-file-list
welcome-fileindex.do/welcome-file
/welcome-file-list
I am trying to get index.do to run first
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
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 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 %
logic:forward name=welcome/
You can
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
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
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
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
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]
Hi, All
Can I put an action instead of a page in the welcome-file-list like:
welcome-file-list
welcome-file/do/login/welcome-file
/welcome-file-list
Thanks
Anna
Anna Chen wrote:
Can I put an action instead of a page in the welcome-file-list like:
welcome-file-list
welcome-file/do/login/welcome-file
/welcome-file-list
Nope. The servlet container will look for an actual file at that path.
You need to have
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
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 %
logic:forward name=welcome/
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Building Java web applications
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
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
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
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
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
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
Joey Gibson wrote:
An ever-so-slightly-less-clumsy way to do this it to have an index.jsp
that looks like this:
jsp:forward page=/myaction.do/
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
(and removed) this won't function as a
||| welcome file (i.e. something that will be shown if they request
||| http://host/app/ ).
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
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
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
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
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
-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
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
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
welcome-file-listwelcome-fileindex.cm/welcome-file/welcome-file-list
config.xml
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
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
101 - 148 of 148 matches
Mail list logo