Thanks. 

> -----Original Message-----
> From: Suzette Daniel [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 23, 2003 6:07 PM
> To: 'Struts Users Mailing List'
> Subject: RE: LookupDispatchAction problem
> 
> You could try using an image button:
> 
> <html:image property="method" pageKey="image.submit" />
> 
> In props file:
> image.submit=/images/submit.gif
> 
> Suzette H. Daniel
> Java Developer/Web dept
> 770 416.9222 ex: 5041
> 
> 
> 
> -----Original Message-----
> From: Michael Ruppin [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 23, 2003 5:53 PM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: RE: LookupDispatchAction problem
> 
> 
> Great question.  You don't, which is why I did my own
> dispatch Action which works off the existence of a
> parameters in the request, not their value.  In other
> words, I made a different form property for each type
> of submission, and I check which are non-null.
> Otherwise, you can't have two buttons with the same
> label on a page, and translation of your messages
> could cause methods to be unreachable.
> 
> There are other alternatives, if JavaScript is an
> option for you.  For me, it is not.  Another
> possibility is to have many HTML forms, one for each submission, and
put
> the
> method="foo" into a hidden.
> This is not always possible, if you need nesting.
> 
> m
> 
> --- Tim Clotworthy <[EMAIL PROTECTED]> wrote:
> > This is really a simple aside, but is there a way to
> > have the text
> > (label) of the button appear different that the
> > value of the submit, and
> > if so, how does one do it? Thanks.
> >
> > > -----Original Message-----
> > > From: Tim Clotworthy
> > [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, July 23, 2003 5:07 PM
> > > To: 'Struts Users Mailing List'
> > > Subject: RE: LookupDispatchAction problem
> > >
> > > Thanks for all help. It is fixed now. God bless
> > you, one and all.
> > >
> > > > -----Original Message-----
> > > > From: Suzette Daniel [mailto:[EMAIL PROTECTED]
> > > > Sent: Wednesday, July 23, 2003 5:01 PM
> > > > To: 'Struts Users Mailing List'
> > > > Subject: RE: LookupDispatchAction problem
> > > >
> > > > No prob, here you go:
> > > >
> > > > <logic:notPresent
> > name="org.apache.struts.action.MESSAGE"
> > > > scope="application">
> > > >     ERROR:  Application resources not loaded --
> > check servlet
> > > container
> > > >     logs for error messages.
> > > > </logic:notPresent>
> > > >
> > > > Suzette
> > > >
> > > > -----Original Message-----
> > > > From: Tim Clotworthy
> > [mailto:[EMAIL PROTECTED]
> > > > Sent: Wednesday, July 23, 2003 5:00 PM
> > > > To: 'Struts Users Mailing List'
> > > > Subject: RE: LookupDispatchAction problem
> > > >
> > > >
> > > > Thanks, but I switch it to method, and same
> > error occurs.
> > > >
> > > > Again, I wonder if my problem is related to my
> > resource bundle, not
> > > being
> > > > able to find it, etc. How can I simply diagnose
> > that the tag
> > > <bean:message
> > > > key="button.add" /> is being processed properly
> > by the ActionServlet
> > > > (value
> > > > being found, etc.). thanks. Sorry for this going
> > on-and-on. Who
> > > knew...
> > > >
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: Suzette Daniel [mailto:[EMAIL PROTECTED]
> > > > > Sent: Wednesday, July 23, 2003 4:43 PM
> > > > > To: 'Struts Users Mailing List'
> > > > > Subject: RE: LookupDispatchAction problem
> > > > >
> > > > > I received the same error, so I switched to
> > using my own property
> > > > "method"
> > > > > and if fixed that error.
> > > > >
> > > > > JSP:
> > > > >       <html:submit property="method"
> > > > >
> > titleKey="verify.order.add.another.button.title">
> > > > >               <bean:message key="button.add" />
> > > > >       </html:submit>
> > > > >
> > > > > > Struts-config:
> > > > > >     ......
> > > > > >     <action path="/doOrderVerification"
> > name="monitorInfoForm"
> > > > > > input="/pages/verifyorder.jsp"
> > parameter="method"
> > > > > >
> >
> type="com.waca.nec.consumer.actions.StoreProductDispatchAction"
> > > > > > scope="session">
> > > > >
> > > > > Suzette
> > > > >
> > > > > -----Original Message-----
> > > > > From: Tim Clotworthy
> > [mailto:[EMAIL PROTECTED]
> > > > > Sent: Wednesday, July 23, 2003 4:40 PM
> > > > > To: 'Struts Users Mailing List'
> > > > > Subject: RE: LookupDispatchAction problem
> > > > >
> > > > >
> > > > > Thanks to all earnest responses. I still have
> > a problem, but it
> > has
> > > > > evolved a little. I have simplified the syntax
> > (using husted tip
> > > 003),
> > > > > so that
> > > > my
> > > > > jsp has:
> > > > >
> > > > > <html:submit>
> > > > > <bean:message key="button.selectOrgs"/>
> > > > > </html:submit>
> > > > >
> > > > > (as he suggested, using the default name of
> > submit that
> > corresponds
> > > to
> > > > the
> > > > > <html:submit> tag, and in my struts-config, I
> > now have:
> > > > >
> > > > > <action path="/SupportOrgDispatchAction"
> > > > >
> > > >
> > >
> >
>
type="com.hotapp.fes.presentation.support.action.FESSupportOrgDispatchAc
> > > > > tion" name="SupportOrgForm"
> > parameter="submit">
> > > > > <forward name="NextPage"
> > path="/fes/jsp/FESSupportOrgTable.jsp"/>
> > > > > </action>
> > > > >
> > > > > and in my action I have:
> > > > >
> > > > > protected Map getKeyMethodMap() {
> > > > >
> > > > > Map map = new HashMap();
> > > > > map.put("button.selectOrgs", "selectOrgs");
> > > > > return map;
> > > > > }
> > > > >
> > > > >
> > > > > But alas, I am still getting an error (below).
> > I wonder if my
> > > resource
> > > > > bundled is not being read properly, because
> > the button on the form
> > > > appears
> > > > > with the tag syntax "<bean:message key"
> > (obviously red flag
> > > something
> > > > is
> > > > > wrong), rather than the value from the
> > properties file. How can I
> > > > check
> > > > > that
> > > > > the property button.selectOrgs is being found
> > in the resource
> > > bundle,
> > > > or,
> > > > > for that matter, that the resource bundle is
> > being found at all?
> > > > >
> > > > >
> > > > > Thanks so much to all.
> > > > >
> > > > > javax.servlet.ServletException:
> > Request[/SupportOrgDispatchAction]
> > > > does
> > > > > not
> > > > > contain handler parameter named submit
> > > > >       at
> > > > >
> > > >
> > >
> >
>
org.apache.struts.actions.LookupDispatchAction.execute(LookupDispatchAct
> > > > > ion.java:199)
> > > > >       at
> > > > >
> > > >
> > >
> >
>
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
> > > > > ocessor.java:480)
> > > > >       at
> > > > >
> > > >
> > >
> >
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
> > > > > 274)
> > > > >       at
> > > > >
> > > >
> > >
> >
>
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
> > > > >       at
> > > > >
> > >
> >
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520)
> > > > >       at
> >
> javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> > > > >       at
> >
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >
> === message truncated ===
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to