Hello!
I think you should use redirect attribute of your action mapping. you should
read the thread begun by :
From: Antony Paul [EMAIL PROTECTED]
To: struts [EMAIL PROTECTED]
Sent: Monday, December 01, 2003 1:28 PM
Subject: forward vs redirect ?
-
Hope it helps.
Caroline
hi,
Hello!
up to now I had used quite simple forms... and now I need some more complicated
fields, and don't know where to start from
Here is what I want to do, with a simple example: I want to describe a family, with
all its members:
- to describe the family common properties:
Last name:
For example, say i had an action which saved some details from a form to a
database. if the page is not redirected then if the user were to refresh
the
page, the action would be called again and the data saved again. This
obviously i would not want the user to do so in this case i redirect the
?
is it the action or the jsp page?
claire
- Original Message -
From: Caroline Lauferon [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, December 01, 2003 4:04 PM
Subject: Re: forward vs redirect ?
For example, say i had an action which saved some
Thank you very much Hubert! and Thank you Claire!
it indeed works the way you describe it. I suppose redirect=true works
only with /sthg.do or sthg.jsp, and not with a tile definition, isn't it?
So, to solve my problem, I should use a /mytiledefinition.do (being a
forward action), like this :
I don't understand what is happening: I am chaining to Actions that use the
same form input. when i submit the form, Action1 is called, and the form
parameter is well populated. at the end of action1, I make a forward to
Action2. and in Action2, the form is emptied!!???
I don't understand what is
My guess it that the parameters in question are being set in the first
action and there isnt actually a corresponding parameter value in the
request and they are then cleared by reset() prior toi hitting action 2.
Is
this the case Caroline?
I'm not sure I understand what you mean do you
Is it a multipart form (file upload)?
yes. and since you asked me, I just changed it. and now it works???
(but the reset method is called between the two action in both cases). I
don't need this encoding, but I wanted to always use the same skeleton,
that's why i used it.
can you explain
Wahouh! thanks a lot for your great explanation!
thanks to all those who have also helped me: Adam Hardy and Nicolas De Loof
;-)
Caroline
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
of your document, i think you'll see what you
were expecting.
to output , use lt;
hope it helps
Caroline
Caroline LAUFERON
Cap Gemini Telecom Media Networks France
Skill Center VASN - RENNES
02 99 27 61 92
[EMAIL
The likely reason is that you are using validation, but you havn't specified
the page to go to if validation fails. You should specify this with input
attribute of the action that needs validation.
Caro
-
To unsubscribe,
use property attribute of html:messages or html:errors. you will get only
the messages that concern your field.
Caroline
Caroline LAUFERON
Cap Gemini Telecom Media Networks France
Skill Center VASN - RENNES
02
you have to specify which bundle has to be used. if you don't, Struts tries
to use the resources registered under key org.apache.struts.action.MESSAGE,
and there is none.
so you have to specify: html:errors bundle=errors/ by example
hope it helps.
Caroline
ActionError(
errors.login.noaccountname ) );
/snippet
Dominique
Caroline Lauferon [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
you have to specify which bundle has to be used. if you don't, Struts
tries
to use the resources registered under key
html:select property=errorLogTypeID
onchange=document.forms[logFortrykkForm].submit()
---
---
/html:select
I think it shouldn't have even compiled the JSP, because of the bad parsing
of the double quotes. It works with me if I replace the inner double quotes
by single quotes:
html:select
Well, I think you can't do it if you keep using SimpleMenuItem and the basic
tabsLayout.
You have to implement your own menu item, adding an attribute indicating
which tab has to be selected. Then you can even not associate a body with a
tab.
and you have to make a tile-definition for each
Also I have an entry in my struts-config.xml like the following...
message-resources property=language /
I also placed the property file in WEB-INF/classes/
but it seems that the property file languages.properties is not detected.
I personnaly would have used : message-resources
I'm quite sure you can use scriptlet in your struts tags :
html:hidden property=users.userAccount
value=%=request.getSession().getAttribute(userAccount)%/
Caroline
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
this is not an error message, but an information message!! It informs you that the
MessageResources are being configured from your file
org.apache.struts.action.ActionResources, and that if there is no message for the key
you ask for, null will be returned.
Hope it helps!
Caroline
Does
you have to use StyleId attribute
Caroline
- Original Message -
From: jagadeesh kumar movva [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 11:59 AM
Subject: why is there no attribute name for html:form in struts???
Hi,
I want to submit a form from a frame,
look at one of my last posts about tabsLayout. you can implement your own
bean, with a role attribute, and then test it in your layout.
Caroline
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 2:37 PM
Subject: RE: Dynamic Menus using
1. in your case I think you should use a html:submit.
2. i think your propriety's name should be usergroupmaster, not
/usergroupmaster.
Caroline
- Original Message -
From: Abhijeet Mahalkar [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, October 02,
another possibility would be to define a new bean (here, Onglet) with an attribute
roles. In the layout, you verifiy if the role you are in is contained in the roles
attribute before displaying the onglet.
Here is a extract of a tiles definition using it:
putList name=listeOnglets
bean
I don't know if you are sure about what you're doing, but I don't understand
why you don't just simply:
put name=body value=jsp/body.jsp/
Caroline
- Original Message -
From: Appel, Jeremy D [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 01, 2003 8:35 PM
Subject: All
In my JSP Page I display a Hello message. If it is US..it should display
HI and if it is French it displays BONJOIR
Basically I ma using MESSAGE.
In my ApplicationResources_en.properties I have:
index.html=Hi
and in In my ApplicationResources_fr.properties I have:
index.html=BONJOIR
So,
Thanks a lot!! I used the second method (see code below).
Caroline
in struts-config.xml :
message-resources parameter=do.not.care.about.this
factory=fr.capgemini.webihm.struts.ExternPropertyMessageResourcesFactory
/
public class ExternPropertyMessageResourcesFactory extends
or maybe you didn't define which bean to use for this action (name parameter
of action in struts-config)
Hope it helps
Caroline
- Original Message -
From: Mike Jasnowski [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 3:38 PM
Hello,
I would like to know if it is possible to set the path of the
ApplicationResources.properties file without hard-coding it in
struts-config.xml.
Indeed, I would like to read a property file (whose path is in an
environment property) which would contain the path of the
ApplicationResources
28 matches
Mail list logo