it works.

my example:
(the tag)
<%@ attribute name="saveMethod" %>
<!--from jstl to ognl-->
<c:set var="saveMethod" scope="request" value="${saveMethod}"/>

<s:submit key="button.save" cssClass="buttonheading medium"  
method="%{#request.saveMethod}"/>


tibi


tibi wrote:
> finally i seem to understand it by the help of a helping person ;)
>
> If ${jstlFoo} prints "FOO"
>
> then
>
> <c:set var="ognlFoo" scope="request" value="${jstlFoo}"/>
> <s:property value="%{#request.ognlFoo}"/>
>
> will test it tomorrow
>
> tibi
>
>
>
>
> tibi wrote:
>   
>> for reference
>>
>> asked here:
>>
>> http://www.nabble.com/use-param-from-own-tag-in-struts-tag-td25477711.html
>>
>>
>> tibi wrote:
>>   
>>     
>>> i was afraid for that answer :(
>>>
>>> i will ask there.
>>>
>>>
>>>
>>> Matt Raible wrote:
>>>   
>>>     
>>>       
>>>> I'm not sure of a solution, I'd try asking the Struts user mailing list.
>>>>
>>>> On Wed, Sep 16, 2009 at 9:58 AM, tibi <t...@dds.nl
>>>> <mailto:t...@dds.nl>> wrote:
>>>>
>>>>     and to be more precies it will print out:
>>>>
>>>>     <input type="submit" id="addManager_button_save" name="method:"
>>>>     value="Bewaren" class="buttonheading medium"/>
>>>>
>>>>     so no method is printed...
>>>>
>>>>     tibi
>>>>
>>>>     tibi wrote:
>>>>     > i call my tag with this:
>>>>     >     <my:userForm saveMethod="saveManager"/>
>>>>     >
>>>>     > the text 'saveMnager'
>>>>     > must go into the s:sumbit tag in my own tag
>>>>     >
>>>>     >
>>>>     > <%@ include file="/common/taglibsForTags.jsp"%>
>>>>     > <%@ attribute name="saveMethod" %>
>>>>     >
>>>>     > ${saveMethod} <!---this woks and will print out the value -->
>>>>     >      <s:submit key="button.save" method="%{saveMethod}"/>
>>>>     >
>>>>     > but nothing is there
>>>>     >
>>>>     >
>>>>     > tibi
>>>>     >
>>>>     >
>>>>     >
>>>>     >
>>>>     > the
>>>>     >
>>>>     > Matt Raible wrote:
>>>>     >
>>>>     >> I don't understand your question. What's the problem you're
>>>>     experiencing?
>>>>     >>
>>>>     >> On Wed, Sep 16, 2009 at 9:38 AM, tibi <t...@dds.nl
>>>>     <mailto:t...@dds.nl>
>>>>     >> <mailto:t...@dds.nl <mailto:t...@dds.nl>>> wrote:
>>>>     >>
>>>>     >>     hi list,
>>>>     >>
>>>>     >>     for struts i create my own tag
>>>>     >>
>>>>     >>     like this:
>>>>     >>
>>>>     >>     <%@ include file="/common/taglibsForTags.jsp"%>
>>>>     >>     <%@ attribute name="saveMethod" %>
>>>>     >>
>>>>     >>          <s:submit key="button.save" cssClass="buttonheading
>>>>     medium"
>>>>     >>     method="%{saveMethod}"/>
>>>>     >>
>>>>     >>
>>>>     >>     this will not work because %{saveMehtod} will be empty
>>>>     >>     when i try this i hit the security issue
>>>>     >>
>>>>     >>          <s:submit key="button.save" cssClass="buttonheading
>>>>     medium"
>>>>     >>     method="${saveMethod}"/>
>>>>     >>
>>>>     >>
>>>>     >>     i keep on running into these issue's.... grrr
>>>>     >>
>>>>     >>     thanks for the help,
>>>>     >>
>>>>     >>     tibi
>>>>     >>
>>>>     >>    
>>>>     ---------------------------------------------------------------------
>>>>     >>     To unsubscribe, e-mail:
>>>>     users-unsubscr...@appfuse.dev.java.net
>>>>     <mailto:users-unsubscr...@appfuse.dev.java.net>
>>>>     >>     <mailto:users-unsubscr...@appfuse.dev.java.net
>>>>     <mailto:users-unsubscr...@appfuse.dev.java.net>>
>>>>     >>     For additional commands, e-mail:
>>>>     users-h...@appfuse.dev.java.net
>>>>     <mailto:users-h...@appfuse.dev.java.net>
>>>>     >>     <mailto:users-h...@appfuse.dev.java.net
>>>>     <mailto:users-h...@appfuse.dev.java.net>>
>>>>     >>
>>>>     >>
>>>>     >>
>>>>     >
>>>>     >
>>>>     ---------------------------------------------------------------------
>>>>     > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>>>>     <mailto:users-unsubscr...@appfuse.dev.java.net>
>>>>     > For additional commands, e-mail: users-h...@appfuse.dev.java.net
>>>>     <mailto:users-h...@appfuse.dev.java.net>
>>>>     >
>>>>     >
>>>>     >
>>>>
>>>>     ---------------------------------------------------------------------
>>>>     To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>>>>     <mailto:users-unsubscr...@appfuse.dev.java.net>
>>>>     For additional commands, e-mail: users-h...@appfuse.dev.java.net
>>>>     <mailto:users-h...@appfuse.dev.java.net>
>>>>
>>>>
>>>>     
>>>>       
>>>>         
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>>> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>>>
>>>
>>>   
>>>     
>>>       
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>>
>>
>>   
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to