[prev in list] [next in list] [prev in thread] [next in thread] 

List:       struts-user
Subject:    Re: Required Info on Upgrading Struts 1.2.x to Struts 2.3.x
From:       Paul Benedict <pbenedict () apache ! org>
Date:       2014-06-03 13:27:25
Message-ID: CABLGb9zJKomqUHG0154g650FkcRwz3SKf0a6OV=bCgnvh+s-Eg () mail ! gmail ! com
[Download RAW message or body]


Struts 1 uses a DTD which doesn't allow custom elements in the
configuration... or does it? I have never seen this before.


Cheers,
Paul


On Tue, Jun 3, 2014 at 4:57 AM, Lukasz Lenart <lukaszlenart@apache.org>
wrote:

> I have no idea if it is possible or not, but you can use <param> like this
>
> <param name="key1">${['key1','key2','key3']}</param>
>
> 2014-06-03 11:42 GMT+02:00 Janardhana Pagadala <jrpagadala@gmail.com>:
> > Hello Lukas
> >
> > Thanks for your response but the issue is not with <param> tag. As
> > mentioned in my question, I would like use custom tag <tag1>, <tag2> etc.
> > in action in addition to the <param> tag. Hope the questions makes sense
> > now.
> >
> > Please suggest if there is a possibility to implement such feature in
> > Struts 2.3.x
> >
> > Thanks in advance
> >
> >
> > On Tue, Jun 3, 2014 at 2:19 AM, Lukasz Lenart <lukaszlenart@apache.org>
> > wrote:
> >
> >> 2014-06-03 4:09 GMT+02:00 Janardhana Pagadala <jrpagadala@gmail.com>:
> >> > We would like to implement similar functionality in Struts 2.3.x to
> match
> >> > with that of above:
> >> > <action name="index1" class="com.test.struts2.action.MyAction">
> >> >                        <tag1 key1="value1" key2="value2"
> key3="value3">
> >> > <tag2 key1="value1" key2="value2" />
> >> > <tag3 key1="value1" key2="value2"/>
> >> > </tag1>
> >> >   <result name="success">/sample.jsp</result>
> >> >                   </action>
> >> >
> >> >
> >> > *Question:*
> >> > What is the best way to implement similar functionality in Struts
> 2.3.x
> >> > (Struts.xml)?
> >> > How do we tell the Struts framework to recognize the new "action" tags
> >> and
> >> > pass the values to be set on the corresponding "action" class?
> >>
> >> Use param
> >>
> >> <param name="foo">bar</param>
> >>
> >> or
> >>
> >> <param name="foo">${bar}</param>
> >>
> >> if you need set value dynamically
> >>
> >>
> >> Regards
> >> --
> >> Ɓukasz
> >> + 48 606 323 122 http://www.lenart.org.pl/
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >
> >
> > --
> > Thanks,
> >
> > Janardhana Pagadala
> > Cell: 617-653-3240
> > Email: jrpagadala@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic