Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Subject: Re: Submit button property in ajax not sends value to action.

Subject: Re: Submit button property in ajax not sends value to action.

2007-11-01       - By Vinicius Medeiros Peretti

 Back
Thanks very much, this is the way!
But I think that the property of submit button should be posted.

Thanks,

Vinicius

Jeromy Evans wrote:
> I've read somewhere, but can't find the reference, that you're correct
> that dojo doesn't post the value of the submit button with XHR.
>
> Instead, I always post to different methods in the action - one for
> each submit button.
>
> eg.
> <s:submit name="valueButton" theme="ajax" targets="%{target}"
> action="SomeActionMethodA" value="some"/>
> <s:submit name="valueButton" theme="ajax" targets="%{target}"
> action="SomeActionMethodB" value="other"/>
>
> with the corresponding wildcard in struts.xml:
>
> <action name="SomeAction*" method="{1}"...
>
> and two methods in your action:
>
> public String methodA() {}
> public String methodB() {}
>
> Hope that helps.
>
> regards,
> Jeromy Evans
>
> Vinicius Medeiros Peretti wrote:
>> When I submit a form, in a div using theme="ajax", the value of
>> property of submit button not goes to Action.
>>
>> E.g.
>>
>> <s:form
>>    action="SomeAction"
>>    method="post"
>>    theme="ajax"
>>    target="%{target}">
>>    <s:submit
>>        name="valueButton"
>>        theme="ajax"
>>        targets="%{target}"
>>        value="some"/>
>>       <s:submit
>>        name="valueButton"
>>        theme="ajax"
>>        targets="%{target}"
>>        value="other"/>
>> </s:form>
>>
>> If I click in "some" or "other", I want to get the value by
>> getValueButton().
>> But it not works. Any way to do this?
>>
>> regards,
>> Vinicius
>>
>> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>>
>
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.