RE: javax.servlet.ServletException: Missing message for key index.title
pls could you tell me what files has to be in which folder.. thanx ravi its not so important where you keep the ApplicationResources.properties file, and afaik its not even important what you name it, as long as its properly defined in your web-inf/struts-config.xml file message-resources parameter=what.ever.your.package.ApplicationResources/ in this case the ApplicationResources.properties file should be in classes/what/ever/your/package/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: javax.servlet.ServletException: Missing message for key index.title
pls help me in fixing this problem.. i am stuck badly rs logic:notPresent name=org.apache.struts.action.MESSAGE scope=application font color=red ERROR: Application resources not loaded -- check servlet container logs for error messages. /font /logic:notPresent do you have that snippet in the first jsp you load ? it doesn't look like it or you would get that error when your file is not loaded, which is the problem I think you have, make sure the file is in the path you configured in struts-config.xml , see my reply yesterday regarding your path. Also take a closer look at the struts-example, that snippet and much more is in it -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Add some value to bean
You might want to set that in your Action via form.setYield(newCalculatedYield) or if your using dyna forms then form.set(yield, newCalculatedYield) Can I use bean:write tag to display this attribute * 100 ? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Hidden and taglib
The parameter command MUST BE in the ActionForm, not in the request. Regards, Miguel urm, is that a best practice tip or hard and fast rule? cos if he chooses to have the Action set the requestAttribute(command) then it doesn't need to be set in the ActionForm, either way the action sets it. But calling form.set(command) is probably better on the grounds that the jsp has a little bit less java in it -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Creating ActionForm in ActionClass
If am creating an instance of my ActionForm in my ActionClass, what happens if there already exists an instance of the ActionForm I am creating ? marcus isn't your ActionClass passed an instance of the ActionForm in the execute method? -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
problem using 2 jsp's with same property name + DynaActionForm ?
If 2 of my jsp's have the same property, eg idNumber, and firstJSP forwards to firstAction.do, secondJSP displays this idNumber, but it should NOT come from the request, its meant to get its values from a VO which secondJSP's pre-action has set in its scope. I'm not using jsp:setProperty property=* , I'm explicitly saying %=dataVO.getIdNumber()% but the value from firstJSP is still used. I realise I can change one of the JSP's property to idNumber2 or whatever but I'm hoping to not have to workaround Any help will be appreciated, thanks in advance -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
displaying result in jsp without set/getAttribute
Hi I've been swimming through the docs but may have overlooked this, please help if you can I want a jsp to display a result after the Action is done , but I don't want to use set/getAttribute(). Is there another solution or is setAttribute the only way to pass the data to the jsp? Thanks in advance for any help with this newbie problem -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]