RE: bean:write problem with struts 1.1
I have the same problem. I solve it by deleting the data-sources section and some Action in the struts config file. It's the only way I can solve the problem, but it's not a solution, because I need the data-sources and the actions. After reading the net, the problem can also be due to xml parser, so I try to change the XML parser, but the problem is still present. So, I'm lost on the way to find to solve the problem. I will try with another Server, like jboss and see... -Message d'origine- De : David Jiao [mailto:[EMAIL PROTECTED] Envoyé : mardi 8 juillet 2003 17:09 À : Struts Users Mailing List Objet : RE: bean:write problem with struts 1.1 But I didn't specify any from my struts-config file. Do I have to include it anyway? On Tue, 2003-07-08 at 09:59, Nicolas Seinlet wrote: > >It kept throwing a > message: "org.apache.jasper.JasperException: Cannot find message > resources under key org.apache.struts.action.MESSAGE". > > It seems to be due to the the > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: bean:write problem with struts 1.1
>It kept throwing a message: "org.apache.jasper.JasperException: Cannot find message resources under key org.apache.struts.action.MESSAGE". It seems to be due to the the - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : execute / perform
I've update to struts 1.1 At the start of the aplication I've the error: javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE What does i have to do? -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé : dimanche 7 juillet 2002 13:00 À : Struts Users Mailing List perform method is still presend in 1.1 for backward compatibility. eventually it will go away. So in struts the seques is execute(1.1)---> perform(1.0) Which version are you using ? Cheers Ashwani Kalra http://www.geocities.com/ashwani_kalra/ ~~ "Nicolas Seinlet" <[EMAIL PROTECTED]To: "Struts Users Mailing List" <[EMAIL PROTECTED]>, ftware.be> "Dr. Dirk Markert" <[EMAIL PROTECTED]> cc: (bcc: ashwani.kalra/Polaris) 07/07/2003 03:03 PMSubject: execute / perform Please respond to "Struts Users Mailing List" in my struts application why is the perform function is called instead of execute, with the same parameters? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
execute / perform
in my struts application why is the perform function is called instead of execute, with the same parameters? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
null form pointer
I have a simple struts application. I've begin with a login page, and a list, where you can add, edit or delete items in this list. The list is composed of 2 datas (a number and a string). The add function run OK, the delete function too. But the edit function is a bit harder to run... I've the GetCgAction, that runs OK, which use a CgForm class, and a EditCg.jsp. When the EditCg.jsp is displayed, datas are in the apropriate fields. When the Validate button is pressed, it call the EditCg.do link, but it passes a null form pointer to the function. In debugger, the function doesn't call the validate function of the CgForm class. What does I have to verify why he passes a null pointer? I think the form-beans and actions are correctly inserted in the struts-config.xml... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Action forward to another action without form
IU have a simple struts application. I've begin with a login page, and a list, where you can add, edit or delete items in this list. The list is composed of 2 datas (a number and a string). The add function run OK, the delete function too. But the edit function is a bit harder to run... I've the GetCgAction, that runs OK, which use a CgForm class, and a EditCg.jsp. When the EditCg.jsp is displayed, datas are in the apropriate fields. When the Validate button is pressed, it call the EditCg.do link, but it passes a null form pointer to the function. In debugger, the function doesn't call the validate function of the CgForm class. What does I have to verify why he passes a null pointer? I think the form-beans and actions are correctly inserted in the struts-config.xml... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : using struts datasource from a servlet
Maybe you can pass the datasource as a parameter to the class. -Message d'origine- De : Richard Raquepo [mailto:[EMAIL PROTECTED] Envoyé : lundi 30 juin 2003 8:54 À : Struts Users Mailing List; [EMAIL PROTECTED] ic... another question. what if it's not a servlet. just a class i made wherein i call it from one of my action or servlet but still i will need to use struts datasource. how can it be done. thanks everyone. -richard - Original Message - From: "Steve Raeburn" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, June 30, 2003 2:34 PM Subject: RE: using struts datasource from a servlet > Struts stores the datasources as servlet context attributes. > > You can access the default datasource in your servlet using - > > (DataSource) > getServletContext().getAttribute(Globals.DATA_SOURCE_KEY); > > Take a look at the struts-config dtd for more info (particularly if > you use > modules) > http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd > > Steve > > > -Original Message- > > From: Richard Raquepo [mailto:[EMAIL PROTECTED] > > Sent: June 29, 2003 11:22 PM > > To: Struts Users Mailing List > > Subject: using struts datasource from a servlet > > > > > > can i call/use the a struts datasource in my servlet. > > > > the thing is, i have a struts app. then i created a servlet to do > > some specific thing. now my question is, can i use the datasource > > defined in my struts config file in my servlet. if so, how? example > > code will be very much appreciated. > > > > thanks. > > > > -richard > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]