Re: how to handle refresh button ?

2003-12-08 Thread Caroline Lauferon
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,

dynamic number of lines - Indexed properties ?

2003-12-05 Thread Caroline Lauferon
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:

Re: forward vs redirect ?

2003-12-01 Thread Caroline Lauferon
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

Re: forward vs redirect ?

2003-12-01 Thread Caroline Lauferon
? 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

Re: forward vs redirect ?

2003-12-01 Thread Caroline Lauferon
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 :

chained actions

2003-11-19 Thread Caroline Lauferon
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

Re: chained actions

2003-11-19 Thread Caroline Lauferon
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

Re: chained actions

2003-11-19 Thread Caroline Lauferon
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

Re: chained actions

2003-11-19 Thread Caroline Lauferon
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

Re: ActionErrors problem...

2003-11-18 Thread Caroline Lauferon
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

Re: No input attribute for mapping path

2003-11-14 Thread Caroline Lauferon
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,

Re: Show validation error messages next to the corresponding input fields

2003-11-13 Thread Caroline Lauferon
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

Re: ResourceBundle not available in ActionForm

2003-11-12 Thread Caroline Lauferon
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

Re: ResourceBundle not available in ActionForm

2003-11-12 Thread Caroline Lauferon
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

Re: Shouldn't this work? html:select property=errorLogTypeIDonchange=document.forms[\logFortrykkForm\].submit()

2003-10-30 Thread Caroline Lauferon
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

Re: Tiles, Tabs, Actions - Looking for Tiles experts

2003-10-30 Thread Caroline Lauferon
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

Re: a query regarding message-resources

2003-10-29 Thread Caroline Lauferon
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

Re: html:hidden +session

2003-10-29 Thread Caroline Lauferon
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

Re: struts error on console screen.

2003-10-16 Thread Caroline Lauferon
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

Re: why is there no attribute name for html:form in struts???

2003-10-14 Thread Caroline Lauferon
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,

Re: Dynamic Menus using tiles definition files

2003-10-09 Thread Caroline Lauferon
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

Re: html:button Not working

2003-10-02 Thread Caroline Lauferon
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,

Re: Dynamically populating tile lists at runtime for menus - Is it possible?

2003-10-02 Thread Caroline Lauferon
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

Re: All page tiles are not displaying properly

2003-10-02 Thread Caroline Lauferon
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

Re: Cannot find message resources under key org.apache.struts.action.MESSAGE

2003-10-01 Thread Caroline Lauferon
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,

Re: change dynamically ApplicationResources path

2003-09-30 Thread Caroline Lauferon
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

Re: No bean specified

2003-09-30 Thread Caroline Lauferon
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

change dynamically ApplicationResources path

2003-09-26 Thread Caroline Lauferon
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