Have you tried the contextRelative attribute?
forward name=index path=/index.html contextRelative=false/
On 5/9/06, Allen Casteran [EMAIL PROTECTED] wrote:
Is there a way to configure an action mapping in struts-config.xml to
forward to a static URL that is not part of the application files?
Hi,
You could use a servlet mapped to *.pl (or whatever extension the perl
system used) and get it to send a redirect to the appropriate part of
the java system.
Gareth
Alan Treece wrote:
As the Subject: line states I'm in the middle of converting a larger
Perl application to a Struts
Define a servletmapping for the old url, write a servlet which simply
redirects all requests to the new url. Done.
regards
Leon
On 5/9/06, Alan Treece [EMAIL PROTECTED] wrote:
As the Subject: line states I'm in the middle of converting a larger
Perl application to a Struts web-app running on
Yes. That creates the path domain/context/index.html
I need the link without the context, yet don't want to hard code the
domain into the struts config.
Philihp Busby wrote:
Have you tried the contextRelative attribute?
forward name=index path=/index.html contextRelative=false/
On 5/9/06,
Hi ,
i have a requirement like this.When ever we enter the website address i
want to display my application home page.
Some thing like www.abc.com shoud be equal to www.abc.com/appName .If i am
not giving appName in URL it is displaying tomcat home page.
How can i achieve this.Provide me some
Hi,
I know it's not directly connected with struts but perhaps somebody will
be able to help me. My problem is that I've HTML table with rows/columns
as value labels. On the intersection there is a corresponding value.
table
tr
td/td
tdhorizontal label 1/td
/tr
tr
tdvertical label 1/td
Hi
Having been fiddling around with the Shale dialogs, there is one thing that I
feel could be improved on. The way it is now, if there is an error situation or
if the user navigates away from a dialog and later on navigates to say the
start of the dialog, an exception is raised. There is no
On 5/4/06, Michael Jouravlev [EMAIL PROTECTED] wrote:
What we has been brought from the stone ages:
* Base Action class does not dispatch events
* DispatchAction and its flavors do, but they do not allow a user to
derive an action class from some another user's base action
What we got now in
On 5/9/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi
Having been fiddling around with the Shale dialogs, there is one thing
that I feel could be improved on. The way it is now, if there is an error
situation or if the user navigates away from a dialog and later on navigates
to say the
I think you can achieve what you want using Virtual Hosts in the definition of
the Tomcat server.xml config file.
Something like this:
Host name=www.abc.com appBase=webapps
Context path= docBase=appName/
/Host
Hope this helps.
Miquel Àngel Seguí Munar
Sidiem s.l.
Hi
I'll do that.
Hermod
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Craig
McClanahan
Sent: Tuesday, May 09, 2006 12:23 PM
To: Struts Users Mailing List
Subject: Re: [Shale] Dialog statemachine and errorconditions
On 5/9/06, [EMAIL PROTECTED] [EMAIL
Hi,
is anybody using this for releasing
static resources when redeploying a web-application?
DiscoverSingleton.release();
Does it work properly?
Thanks a lot
Starki
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Hello,
I have a struts site in which all views are called from the action.
Problem I encountered, is as follows: When users search for my site in
the search field area, the site shows up, but when the user click the
link the www is not there. Google sees my site as http://sitename.com
Hi!
I want to set background color in drop down menu that is generated with
html:options collection. Is
there any way to do that?
Here is code sample:
html:select property=id styleClass=Podaci
html:options collection=hmUserList property=user-1-0
labelProperty=user-2-0/
/html:select
Tnx,
Hi,
We are asked to build a new Struts application using Sun One Studio 5,
Standard Edition IDE. I have'nt used it before. Is there any plugin I can
install to use struts in Sun One? Links to some tutorials will be helpful.
Thanks.
Thanks Niall...that is exactly the type of thing I'm looking for.
However, I tried it and it did not work. I suspect it is because I am
using older versions of Struts (1.1) or commons-validator (1.0.2). Do I
need to upgrade anything to get this functionality? I created my own
workaround by
Scott,
How about adding a filter that checks the url and if it does not see
www.sitename.com then it causes a redirect to the
same PATH on the www.sitename.com path. The only problem might be any
bookmarked or outside form submission pages if
they have parameters to go with them. But there
if you are running on apache, you can use mod_rewrite to fix this, by
including a rewrite rule, something like:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.domainname\.com$ [NC]
RewriteRule ^(.*)$ http://www.domainname.com$1 [R=301,L]
dave
On Tue, 2006-05-09 at 08:26 -0500, Scott Purcell
From: David Evans [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Tuesday, May 09, 2006 7:53 PM
Subject: Re: URL needs www appended
if you are running on apache, you can use mod_rewrite to fix this, by
including a rewrite rule, something like:
RewriteEngine on
Hi,
This is probably a newbie question but here goes:
If we call validation manually, the method signature reads:
validate(ActionMapping, HttpServletRequest)
I know what the request part does, but how and where does mapping fit in
there? What does it do? And how does the validation framework use
Niall Pemberton wrote:
Personally I'm against this because IMO it just adds
confusion/complexity to the Action class that is unnecessary for users
who don't want to use the dispatch style.
Not if you use my idea of making the 'execute' method the default dispatch.
Of course, don't name one of
Leon Rosenberg wrote:
Define a servletmapping for the old url, write a servlet which simply
redirects all requests to the new url. Done.
Or filter with a list of old URLs = new URLs and redirect.
Dave
-
To unsubscribe,
Stasica, Grzegorz wrote:
The number of vertical labels is fixed. On the other hand the number of
horizontal labels is dynamic. The Html table DOM model has a addRow()
method but there is no corresponding addColumn() :(
I'd appreciate any suggestion on how to generate such a table.
Hello!
I implemented two filters which work fine if session handling is done with
cookies. If the session-handling is done by URL-rewriting, the session
seems to be lost after the sendRedirect().
The two filters are:
Loginfilter and
Blockfilter (some pages must be blocked in some circumstances).
Hi there!
I'm trying to use the new struts-action framework, version 1.3.3 with tiles
and faces. I'm following the example applications but I found possibly a bug
when rendering a struts-based FormBean.
The jsp code that I was using is as follows:
s:errors /
s:form action=/login id=login
maybe css would be one solution, edit your css class, and use styleClass
attribute to ref it
options ... ... styleClass=.mycssclass /
Stanislav [EMAIL PROTECTED] 写道: Hi!
I want to set background color in drop down menu that is generated with
html:options collection. Is
there any way to
form-bean name=NewEligibilityDynaForm
type=com.formbeans.NewEligibilityForm dynamic=true
form-property name=name type=java.lang.String/
form-property name=date type=java.lang.String/
form-property name=eligibleCust type=java.lang.ArrayList/
On 5/9/06, fea jabi [EMAIL PROTECTED] wrote:
form-bean name=NewEligibilityDynaForm
type=com.formbeans.NewEligibilityForm dynamic=true
form-property name=name type=java.lang.String/
form-property name=date type=java.lang.String/
form-property
Andreas Hartmann wrote:
I implemented two filters which work fine if session handling is done with
cookies. If the session-handling is done by URL-rewriting, the session
seems to be lost after the sendRedirect().
[snipalottatext]
I would be glad to get some help,
Are you adding the
sorry about that. here it is. yes, I have the action mapping right I
guess.
action
path=/PrepareEligibilityAction
type=com.actions.PrepareEligibilityAction
name=NewEligibilityDynaForm
scope=session
forward name=success
I have another tiles question. I have an application with a header,
footer leftmenu and body. My question is should i have 1 form layed out
in my layout.jsp that surrounds all these tiles, or should i have a
different form on each tile.
For example if you edit a form in the body section and
It seems that by the time I put the title, it is too late to affect
the HTML page. Is anyone doing anything like this?
I have a tiles template:
titletiles:getAsString name=title//title
Which is invoked from titles-defs.xml:
definition name=.site.mumble extends=.site
put
Bryce Nesbitt wrote:
But what I'd like to do is set the title of the HTML page, based on
the parsed URL parameter (e.g. area=987). The proper title is not known
until the jsp executes, and does a lookup on an xml file. Is this
possible with tiles? How would one do it?
Since you're not
Hello Dave,
Dave Newton wrote:
Andreas Hartmann wrote:
I implemented two filters which work fine if session handling is done with
cookies. If the session-handling is done by URL-rewriting, the session
seems to be lost after the sendRedirect().
[snipalottatext]
I would be glad to get some
I'm trying to set up a very basic(generic) validation with struts 1.1 (and
tiles) and I can not get it to work. I'm not getting any errors or anything.
Validation simply doesn't take affect.
I believe I have everything in place. Here is some snippets from my file.
Please let me know if you
I am not 100% on this as I don't know the package
org.apache.struts.chain.commands.servlet.ValidateActionForm very well, but
try extending your form from ValidatorForm from:
org.apache.struts.validator.ValidatorForm
Harsh.
-Original Message-
From: josh t [mailto:[EMAIL PROTECTED]
My form is extending ValidatorActionForm, not ValidateActionForm. Sorry about
that.
Extending ValidatorForm instead didn't help.
Since I'm not getting any sort of errors, it's very hard to figure out where
the issue may reside.
Chaudhary, Harsh [EMAIL PROTECTED] wrote:
I am not
Andreas Hartmann wrote:
No, that's not done. I thought, this would be done in the background by
struts automatically.
getContextPath is from J2EE, not Struts :)
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
On 5/9/06, Andreas Hartmann [EMAIL PROTECTED] wrote:
Hello Dave,
Dave Newton wrote:
Andreas Hartmann wrote:
I implemented two filters which work fine if session handling is done with
cookies. If the session-handling is done by URL-rewriting, the session
seems to be lost after the
On 5/9/06, A. Alonso Dominguez [EMAIL PROTECTED] wrote:
Hi there!
I'm trying to use the new struts-action framework, version 1.3.3 with tiles
and faces. I'm following the example applications but I found possibly a bug
when rendering a struts-based FormBean.
...
While you wait for someone who
On 5/9/06, Niall Pemberton [EMAIL PROTECTED] wrote:
On 5/4/06, Michael Jouravlev [EMAIL PROTECTED] wrote:
What we has been brought from the stone ages:
* Base Action class does not dispatch events
* DispatchAction and its flavors do, but they do not allow a user to
derive an action class
Good Evening Fellow Coders-
Since most of my development has used Oracle I have been using JDeveloper but
encountered some problems when I downloaded latest 10G development distro
for whatever reason the xalan libraries that come with the distro are not the
right version..to correct I would
Hi,
In Shale Bundle.properties file, the value of key token.invalid is:
# org.apache.shale.component.Token
token.invalid=Invalid resubmit of the same form
I want to overwrite it to display more information. for example, change it to:
# org.apache.shale.component.Token
On 5/9/06, emily chen [EMAIL PROTECTED] wrote:
I want to overwrite it to display more information. for example, change it to:
# org.apache.shale.component.Token
token.invalid=Invalid resubmit of the same form, but the first submit is
processed.
Is there any way to do that?
Try
yup... that is what we have, our own resource bundle, but it appears the
s:token tag has the bundle key hardcoded to use the Shale Bundle file.
Is there a way to tell the Tag, or perhaps the whole taglib to use our custom
bundle instead of the one included in shale?
Thanks,
I want to build a role-based nested navigation menu :
- Using Struts 1.1 with tiles
- My menu.jsp will be used by all other JSPs (extension in the tiles def
file)
- The roles to build the menu will be retrived from the session.
- I don't care about the java script part of the dropdown
On 5/9/06, Michael Jouravlev [EMAIL PROTECTED] wrote:
On 5/9/06, Niall Pemberton [EMAIL PROTECTED] wrote:
On 5/4/06, Michael Jouravlev [EMAIL PROTECTED] wrote:
What we has been brought from the stone ages:
* Base Action class does not dispatch events
* DispatchAction and its flavors do,
I agree completely with Niall on this one. I cannot believe that the
basic action class could conceivably be considered to carry this
overhead.
On 5/9/06, Niall Pemberton [EMAIL PROTECTED] wrote:
On 5/4/06, Michael Jouravlev [EMAIL PROTECTED] wrote:
What we has been brought from the stone
From: Wendy Smoak [EMAIL PROTECTED]
On 5/9/06, emily chen wrote:
I want to overwrite it to display more information. for example, change it
to:
# org.apache.shale.component.Token
token.invalid=Invalid resubmit of the same form, but the first submit is
processed.
Is there
I've tried several things, but the form filed is not being validated. Am I
doing the nested form attribute right in the validator.xml?
josh t [EMAIL PROTECTED] wrote: I'm trying to set up a very basic(generic)
validation with struts 1.1 (and tiles) and I can not get it to work. I'm not
50 matches
Mail list logo