Author Login
Post Reply
user Digest 27 Jul 2008 04:05:16 -0000 Issue 8162
Topics (messages 189312 through 189341):
Re: invoke action by mouseClick and get simple string
189312 by: holod
189316 by: Dave Newton
Re: Nothing helps
189313 by: holod
189314 by: Jim Kiley
Re: [s2] How to force validation to combobox field
189315 by: Milan Milanovic
Re: [s2] Making textfield input optional
189317 by: Milan Milanovic
[OT] Re: sorting problem with display tag: please help
189318 by: Dave Newton
Re: [Friday][OT] Re: sorting problem with display tag: please help
189319 by: Al Sutton
similar comment
189320 by: Dave Newton
189321 by: Al Sutton
189322 by: Musachy Barroso
Re: website link info
189323 by: Fini Decima
189338 by: Martin Gainty
189339 by: Dave Newton
[S2] Form doesn't redirect
189324 by: Milan Milanovic
189335 by: Dhiraj Thakur
Struts Taglib + JSP: Best Practices For Complex HTML Attribute Construction
189325 by: Brian Ferris
Implementing ParameterAware but still getting Unexpected Exception caught setting 'name' on 'class....
189326 by: Jan Froehlich
Stuts 2 and Custom TextProvider
189327 by: ayavorskiy
Re: struts 1.2: calling an action by javascript
189328 by: dvdface
[ANNOUNCE] Stuts @ Ajax Experience
189329 by: Ted Husted
[s2.1.2] DEBUG: widget ID collision on ID:
189330 by: Bruyn, Bill
Re: [S2] url tag to construct href in different namespace
189331 by: John.C.Cartwright.noaa.gov
Re: sorting problem with display tag: please help
189332 by: dusty
Data Leakage in Struts 2
189333 by: Arun M
189334 by: Piero Sartini
189340 by: Richard Yee
189341 by: Arun M
Re: Problem accessing iterated object (<s:iterator)
189336 by: Dhiraj Thakur
[struts2] tabbedpanel bug? Remote content retrieved 2/3 times
189337 by: Bruyn, Bill
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)
----------------------------------------------------------------------

Attachment:
user_189312.ezm (zipped)
I have very easy problem, can I solve it with the help of any struts2 tag?
Explanation:
I have an image.
User clicks on this image.
Request with several parameters goes to a server.
Action is invoked, parameters used during action execution.
Action sends back simple string "Success" or "Fail".
this string response should be printed on the exact place of a html page
(inside div, for example).
How can I do this using struts2 tags? I don't want to use hand-made script
with XMLHttpRequest. Does struts2 provides functionality to solve such
simple task?
I've seen <s:div/> tag, but I didn't understand how can I invoke request to
action manually (by mouse click for example)
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189316.ezm (zipped)--- On Fri, 7/25/08, holod <serega.sheypak@(protected):
> I've seen <s:div/> tag, but I didn't understand how can
> I invoke request to action manually (by mouse click for example)
<s:a...>?
http://struts.apache.org/2.x/docs/dojo-anchor.html
Note that if you're using S2.0 you'll need to look at the docs at:
http://struts.apache.org/2.0.11/docs/dojo-anchor.html
because of the way the wiki works.
Dave
> --
> View this message in context:
> http://www.nabble.com/Ajax%3A-invoke-action-by-mouseClick-and-get-simple-string-tp18650508p18650508.html
> Sent from the Struts - User mailing list archive at
> Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail:
> user-help@(protected)

Attachment:
user_189313.ezm (zipped)
Thank you, I've finally solved the problem! Previous solutions helped me,
seems like I was making stupid mistakes.
This code snippet prints links to my download action, my download action
works fine.
Thank you again!
<s:iterator value="lawDraft.docs" id="doc">
<s:url id="downloadAction" action="DownloadLawDraftDocument"
namespace="/admin">
<s:param name="lawDraftId" value="lawDraft.id"/>
<s:param name="documentTitle" value="title"/>
</s:url>
<tr>
<td>
<s:a href="%{#downloadAction}">
<s:property value="title"/>
</s:a>
</td>
</tr>
</s:iterator>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189314.ezm (zipped)Just as a side note, message subject lines like "Nothing helps" and "A
similar problem" should probably be avoided on this list. When someone
looks at the archives because they're stumped about a problem with
displaying problems within an iterator, there's no signal that this thread,
for instance, might give them information about their problem.
jk
On Fri, Jul 25, 2008 at 8:35 AM, holod <serega.sheypak@(protected):
>
> Thank you, I've finally solved the problem! Previous solutions helped me,
> seems like I was making stupid mistakes.
> This code snippet prints links to my download action, my download action
> works fine.
> Thank you again!
>
>
> <s:iterator value="lawDraft.docs" id="doc">
> <s:url id="downloadAction"
> action="DownloadLawDraftDocument"
> namespace="/admin">
> <s:param
> name="lawDraftId" value="lawDraft.id"/>
> <s:param
> name="documentTitle" value="title"/>
> </s:url>
> <tr>
> <td>
> <s:a
> href="%{#downloadAction}">
>
> <s:property value="title"/>
>
> </s:a>
> </td>
> </tr>
> </s:iterator>
> --
> View this message in context:
> http://www.nabble.com/Problem-accessing-iterated-object-%28%3Cs%3Aiterator%29-tp18614028p18650869.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

Attachment:
user_189315.ezm (zipped)
So, comboxbox in Struts 2 cannot be validated, is it true ?
Milan Milanovic wrote:
>
> Hi,
>
> does anyone know how I can force user to choose value from a combo box by
> using S2 validation ?
> Now, when he submit the form combobox is empty and the next time when he
> submit error my occur if he don't choose anything from combox box.
>
> --
> Thx, Milan
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189317.ezm (zipped)O.K. Thanks. I've done it. But what should I do for get method? When I put
BigDecimal or String as return value for method getValue() in my action
class I get this error in loading form:
Caused by: ognl.OgnlException: value [
java.lang.NullPointerException]
at ognl.OgnlRuntime.getMethodValue(OgnlRuntime.java:935)
at
ognl.ObjectPropertyAccessor.getPossibleProperty(ObjectPropertyAccessor.java:53)
at ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:121)
at
com.opensymphony.xwork2.util.OgnlValueStack$ObjectAccessor.getProperty(OgnlValueStack.java:58)
at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1643)
at
com.opensymphony.xwork2.util.CompoundRootAccessor.getProperty(CompoundRootAccessor.java:101)
... 171 more
--
Regards, Milan
Gabriel Belingueres-2 wrote:
>
> Yes, you need to write this setter in your action class.
>
> 2008/7/24 Milan Milanovic <milanmilanovich@(protected)>:
>>
>> Dear Gabriel,
>>
>> You mean in my action class ?
>>
>> --
>> Milan
>>
>>
>> Gabriel Belingueres-2 wrote:
>>>
>>> You don't need to modify your model, just delegate to it:
>>> public void setValue(String s) {
>>> if (!StringUtils.isBlank(s)) {
>>> try {
>>> model.setValue(new BigDecimal(s));
>>> catch(NumberFormatException e) {
>>> model.setValue(null);
>>> }
>>> }
>>> }
>>>
>>> 2008/7/24 Milan Milanovic <milanmilanovich@(protected)>:
>>>>
>>>> Dear Gabriel,
>>>>
>>>> thank you. I tried without my Converter class for BigDecimal and it is
>>>> the
>>>> same, when user doesn't enter value I got that error in a log.
>>>>
>>>> I'm using S2 2.0.11.1. This solution is good, but my value that is set
>>>> comes
>>>> from model where I have class and attribute (BigDecimal) with its
>>>> get/set
>>>> methods, by putting this set(String) instead of set(BigDecimal) I'm
>>>> violating class semantics ?
>>>>
>>>> The other solution is O.K., but I've already used it with Dates and
>>>> datetimepicker. Can I change in some way this BigDecimal converter to
>>>> avoid
>>>> this error:
>>>> http://www.nabble.com/-s2--Formatting-input-textfields-tt18593985.html
>>>> http://www.nabble.com/-s2--Formatting-input-textfields-tt18593985.html
>>>>
>>>> --
>>>> Regards, Milan.
>>>>
>>>>
>>>>
>>>>
>>>> Gabriel Belingueres-2 wrote:
>>>>>
>>>>> I'm using S2.1.2 (are you using the same version?), and it will throw
>>>>> a NumberFormatException when setting an empty string, but this
>>>>> workaround will make ParameterInterceptor to think it is setting a
>>>>> String parameter:
>>>>>
>>>>> public void setValue(String s) {
>>>>> if (!StringUtils.isBlank(s)) {
>>>>> try {
>>>>> this.value= new BigDecimal(s);
>>>>> catch(NumberFormatException e) {
>>>>> this.value = null;
>>>>> }
>>>>> }
>>>>> }
>>>>>
>>>>> of course you still need a validator so that the string doesn't
>>>>> violate the BigDecimal grammar.
>>>>>
>>>>> Other option (may be more clean) is the action having both the string
>>>>> instance and the real BigDecimal instance, then the form will only set
>>>>> the string instance.
>>>>>
>>>>> 2008/7/24 Milan Milanovic <milanmilanovich@(protected)>:
>>>>>>
>>>>>> Dear Newton,
>>>>>>
>>>>>> Yes, I'm using BigDecimal type converter given here:
>>>>>> http://www.nabble.com/-s2--Formatting-input-textfields-tt18593985.html
>>>>>> http://www.nabble.com/-s2--Formatting-input-textfields-tt18593985.html
>>>>>> .
>>>>>>
>>>>>> --
>>>>>> Thx, Milan
>>>>>>
>>>>>>
>>>>>> newton.dave wrote:
>>>>>>>
>>>>>>> Are you using a BigDecimal type converter (one of which was just
>>>>>>> posted)?
>>>>>>>
>>>>>>> AFAIK it won't work w/o the converter, but I could be remembering
>>>>>>> incorrectly.
>>>>>>>
>>>>>>> Dave
>>>>>>>
>>>>>>> --- On Thu, 7/24/08, Milan Milanovic <milanmilanovich@(protected)>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> From: Milan Milanovic <milanmilanovich@(protected)>
>>>>>>>> Subject: Re: [s2] Making textfield input optional
>>>>>>>> To: user@(protected)
>>>>>>>> Date: Thursday, July 24, 2008, 11:36 AM
>>>>>>>> Dear Gabriel,
>>>>>>>>
>>>>>>>> no, my actual question is related to the issue when user
>>>>>>>> doesn't enter
>>>>>>>> anything to the textfield which is connected to BigDecimal
>>>>>>>> in my action
>>>>>>>> class.
>>>>>>>>
>>>>>>>> --
>>>>>>>> Thx, Milan
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Gabriel Belingueres-2 wrote:
>>>>>>>> >
>>>>>>>> > Please make sure that the input string is according
>>>>>>>> the BigDecimal format:
>>>>>>>> >
>>>>>>>> http://java.sun.com/j2se/1.5.0/docs/api/java/math/BigDecimal.html#BigDecimal(
java.lang.String)
>>>>>>>> >
>>>>>>>> > 2008/7/24 Milan Milanovic
>>>>>>>> <milanmilanovich@(protected)>:
>>>>>>>> >>
>>>>>>>> >> Hi Gabriel,
>>>>>>>> >>
>>>>>>>> >> no I cannot do this because my field is of type
>>>>>>>> BigDecimal and I must
>>>>>>>> >> have
>>>>>>>> >> get/set methods for it.
>>>>>>>> >>
>>>>>>>> >> --
>>>>>>>> >> Thx, Milan
>>>>>>>> >>
>>>>>>>> >>
>>>>>>>> >> Gabriel Belingueres-2 wrote:
>>>>>>>> >>>
>>>>>>>> >>> instead of:
>>>>>>>> >>>
>>>>>>>> >>> public vlid setInValue(BigDecimal x) {
>>>>>>>> >>> this.x = x;
>>>>>>>> >>> }
>>>>>>>> >>>
>>>>>>>> >>> test with this:
>>>>>>>> >>>
>>>>>>>> >>> public vlid setInValue(String s) {
>>>>>>>> >>> this.x = new BigDecimal(s);
>>>>>>>> >>> }
>>>>>>>> >>>
>>>>>>>> >>>
>>>>>>>> >>> 2008/7/24 Milan Milanovic
>>>>>>>> <milanmilanovich@(protected)>:
>>>>>>>> >>>>
>>>>>>>> >>>> Hi Jim,
>>>>>>>> >>>>
>>>>>>>> >>>> no, I have that method.
>>>>>>>> >>>>
>>>>>>>> >>>> --
>>>>>>>> >>>> Thx, Milan
>>>>>>>> >>>>
>>>>>>>> >>>>
>>>>>>>> >>>> Jim Kiley wrote:
>>>>>>>> >>>>>
>>>>>>>> >>>>> Doesn't that exception usually get
>>>>>>>> thrown when, in this case,
>>>>>>>> >>>>> ViewAction
>>>>>>>> >>>>> doesn't have a setInValue()
>>>>>>>> method?
>>>>>>>> >>>>>
>>>>>>>> >>>>> jk
>>>>>>>> >>>>>
>>>>>>>> >>>>> On Thu, Jul 24, 2008 at 10:31 AM,
>>>>>>>> Gabriel Belingueres
>>>>>>>> >>>>> <belingueres@(protected)>
>>>>>>>> >>>>> wrote:
>>>>>>>> >>>>>
>>>>>>>> >>>>>> Which is the data type of inValue?
>>>>>>>> >>>>>>
>>>>>>>> >>>>>> 2008/7/24 Milan Milanovic
>>>>>>>> <milanmilanovich@(protected)>:
>>>>>>>> >>>>>> >
>>>>>>>> >>>>>> > Hi,
>>>>>>>> >>>>>> >
>>>>>>>> >>>>>> > I have one form with multiple
>>>>>>>> textfields, and I want to one of that
>>>>>>>> >>>>>> > textfield be optional for
>>>>>>>> user, i.e., he doesn't need to enter
>>>>>>>> >>>>>> information
>>>>>>>> >>>>>> > in that particular field.
>>>>>>>> Now, when user don't enter I get this in
>>>>>>>> >>>>>> my
>>>>>>>> >>>>>> log:
>>>>>>>> >>>>>> >
>>>>>>>> >>>>>> > ERROR
>>>>>>>>
com.opensymphony.xwork2.interceptor.ParametersInterceptor:204
>>>>>>>> >>>>>> -
>>>>>>>> >>>>>> > ParametersInterceptor -
>>>>>>>> [setParameters]: Unexpected Exception
>>>>>>>> >>>>>> caught
>>>>>>>> >>>>>> setting
>>>>>>>> >>>>>> > 'inValue' on
>>>>>>>> 'class com.myProject.action.ViewAction: Error setting
>>>>>>>> >>>>>> > expression 'inValue'
>>>>>>>> with value '[Ljava.lang.String;@(protected)'
>>>>>>>> >>>>>> >
>>>>>>>> >>>>>> > How can I enable this but
>>>>>>>> without getting this error ?
>>>>>>>> >>>>>> >
>>>>>>>> >>>>>> > --
>>>>>>>> >>>>>> > Thx, Milan
>>>>>>>> >>>>>> > --
>>>>>>>> >>>>>> > View this message in context:
>>>>>>>> >>>>>>
>>>>>>>> http://www.nabble.com/-s2--Making-textfield-input-optional-tp18632806p18632806.html
>>>>>>>> >>>>>> > Sent from the Struts - User
>>>>>>>> mailing list archive at Nabble.com.
>>>>>>>> >>>>>> >
>>>>>>>> >>>>>> >
>>>>>>>> >>>>>> >
>>>>>>>> >>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>> >>>>>> > 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)
>>>>>>>> >>>>>>
>>>>>>>> >>>>>>
>>>>>>>> >>>>>
>>>>>>>> >>>>>
>>>>>>>> >>>>> --
>>>>>>>> >>>>> Jim Kiley
>>>>>>>> >>>>> Technical Consultant | Summa
>>>>>>>> >>>>> [p] 412.258.3346 [m] 412.445.1729
>>>>>>>> >>>>> http://www.summa-tech.com
>>>>>>>> >>>>>
>>>>>>>> >>>>>
>>>>>>>> >>>>
>>>>>>>> >>>> --
>>>>>>>> >>>> View this message in context:
>>>>>>>> >>>>
>>>>>>>> http://www.nabble.com/-s2--Making-textfield-input-optional-tp18632806p18633474.html
>>>>>>>> >>>> Sent from the Struts - User mailing list
>>>>>>>> archive at Nabble.com.
>>>>>>>> >>>>
>>>>>>>> >>>>
>>>>>>>> >>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>> >>>> 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)
>>>>>>>> >>>
>>>>>>>> >>>
>>>>>>>> >>>
>>>>>>>> >>
>>>>>>>> >> --
>>>>>>>> >> View this message in context:
>>>>>>>> >>
>>>>>>>> http://www.nabble.com/-s2--Making-textfield-input-optional-tp18632806p18633888.html
>>>>>>>> >> Sent from the Struts - User mailing list archive
>>>>>>>> at Nabble.com.
>>>>>>>> >>
>>>>>>>> >>
>>>>>>>> >>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>> >> 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)
>>>>>>>> >
>>>>>>>> >
>>>>>>>> >
>>>>>>>>
>>>>>>>> --
>>>>>>>> View this message in context:
>>>>>>>> http://www.nabble.com/-s2--Making-textfield-input-optional-tp18632806p18634541.html
>>>>>>>> Sent from the Struts - User mailing list archive at
>>>>>>>> Nabble.com.
>>>>>>>>
>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>> 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)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://www.nabble.com/-s2--Making-textfield-input-optional-tp18632806p18634840.html
>>>>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> 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)
>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/-s2--Making-textfield-input-optional-tp18632806p18635312.html
>>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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)
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-s2--Making-textfield-input-optional-tp18632806p18635560.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> 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)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189318.ezm (zipped)--- On Fri, 7/25/08, Al Sutton <al.sutton@(protected):
> What did the display tag people say when you posted on their lists [...]
I see what you did there.
Dave

Attachment:
user_189319.ezm (zipped)You think he got the message?, or are you expecting another message
tomorrow?
Dave Newton wrote:
> --- On Fri, 7/25/08, Al Sutton <al.sutton@(protected):
>
>> What did the display tag people say when you posted on their lists [...]
>>
>
> I see what you did there.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_189320.ezm (zipped)--- On Fri, 7/25/08, Al Sutton <al.sutton@(protected):
> You think he got the message?, or are you expecting another
> message tomorrow?
So you're saying we need an off-track betting application?
Dave

Attachment:
user_189321.ezm (zipped)So can you develop one using Struts in less than a week?...... Bet now!
(and you don't have to use displaytag if you don't want to)
Dave Newton wrote:
> --- On Fri, 7/25/08, Al Sutton <al.sutton@(protected):
>
>> You think he got the message?, or are you expecting another
>> message tomorrow?
>>
>
> So you're saying we need an off-track betting application?
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_189322.ezm (zipped)What are you talking about Willis?
musachy
On Fri, Jul 25, 2008 at 10:25 AM, Al Sutton <al.sutton@(protected):
> So can you develop one using Struts in less than a week?...... Bet now! (and
> you don't have to use displaytag if you don't want to)
>
> Dave Newton wrote:
>>
>> --- On Fri, 7/25/08, Al Sutton <al.sutton@(protected):
>>
>>>
>>> You think he got the message?, or are you expecting another
>>> message tomorrow?
>>>
>>
>> So you're saying we need an off-track betting application?
>>
>> Dave
>>
>>
>> ---------------------------------------------------------------------
>> 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)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_189323.ezm (zipped)Thanks,
Jeromy Evans wrote:
> Fini Decima wrote:
>> I'm posting here because I could not find a Web Master contact info:
>>
>> I'll like to know when the "Reporting Security Issues" link was added
>> to the Struts home page.The link is under "Support". Is it a recent
>> addition or has it been there for some time?
>
> Subversion shows the link and page were added on 27 August 2007.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>

Attachment:
user_189338.ezm (zipped)
which version of struts are you working with..?
Martin
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission.
> Date: Fri, 25 Jul 2008 10:55:00 -0500
> From: finid@(protected)
> To: user@(protected)
> Subject: Re: website link info
>
> Thanks,
>
> Jeromy Evans wrote:
> > Fini Decima wrote:
> >> I'm posting here because I could not find a Web Master contact info:
> >>
> >> I'll like to know when the "Reporting Security Issues" link was added
> >> to the Struts home page.The link is under "Support". Is it a recent
> >> addition or has it been there for some time?
> >
> > Subversion shows the link and page were added on 27 August 2007.
> >
> >
> > ---------------------------------------------------------------------
> > 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)
>
_________________________________________________________________
With Windows Live for mobile, your contacts travel with you.
http://www.windowslive.com/mobile/overview.html?ocid=TXT_TAGLM_WL_mobile_072008

Attachment:
user_189339.ezm (zipped)--- On Sat, 7/26/08, Martin Gainty <mgainty@(protected):
> which version of struts are you working with..?
I'm not sure that it matters; it's a link on the Struts home page.
Dave
> > Jeromy Evans wrote:
> > > Fini Decima wrote:
> > >> I'm posting here because I could not find
> a Web Master contact info:
> > >>
> > >> I'll like to know when the
> "Reporting Security Issues" link was added
> > >> to the Struts home page.The link is under
> "Support". Is it a recent
> > >> addition or has it been there for some time?
> > >
> > > Subversion shows the link and page were added on
> 27 August 2007.
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > 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)
> >
>
> _________________________________________________________________
> With Windows Live for mobile, your contacts travel with
> you.
> http://www.windowslive.com/mobile/overview.html?ocid=TXT_TAGLM_WL_mobile_072008

Attachment:
user_189324.ezm (zipped)
Hi,
I have two forms in my .jsp page which are connected to one Action class.
They both works fine, but when user submit second form, method in action
class
is called, but no redirection to resulting .jsp page (as defined GOOD in
struts.xml) is done ?
This is my (second) form:
<s:form action="save" validate="false">
<s:textfield id="value" tabindex="1" label="Value" name="value"/>
<s:submit theme="ajax" tabindex="2" cssStyle="submit" cssClass="submit"
align="right" value="Save"/>
</s:form>
and this is from struts.xml:
<action name="save" class="myActionClass" method="save">
<result>/pages/firstPage.jsp</result>
</action>
--
Thx, Milan
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189335.ezm (zipped)r u getting any error?
Regards,
Dhiraj
On Fri, Jul 25, 2008 at 9:29 PM, Milan Milanovic
<milanmilanovich@(protected):
>
> Hi,
>
> I have two forms in my .jsp page which are connected to one Action class.
> They both works fine, but when user submit second form, method in action
> class
> is called, but no redirection to resulting .jsp page (as defined GOOD in
> struts.xml) is done ?
>
> This is my (second) form:
>
> <s:form action="save" validate="false">
> <s:textfield id="value" tabindex="1" label="Value" name="value"/>
> <s:submit theme="ajax" tabindex="2" cssStyle="submit"
> cssClass="submit"
> align="right" value="Save"/>
> </s:form>
>
> and this is from struts.xml:
>
> <action name="save" class="myActionClass" method="save">
> <result>/pages/firstPage.jsp</result>
> </action>
>
> --
> Thx, Milan
>
> --
> View this message in context:
> http://www.nabble.com/-S2--Form-doesn%27t-redirect-tp18654630p18654630.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_189325.ezm (zipped)I'm not sure what that Struts Taglib "way" to do the following task
would look like:
I've got a bean on the ValueStack with a "boolean isActive()" getter.
When active, I'd like to construct html like:
<div class="baseStyle active"><!-- complex html in here --></div>
And when in-active, I'd like to construct:
<div class="baseStyle"><!-- complex html in here --></div>
The only real difference is the class attribute, which always has a
"baseStyle" class, but should also have an "active" class when the
bean is active.
Using struts taglibs inside a JSP, what's the easiest way to make that
construction? I have some ideas... but they all seem kind of akward.
Thanks,
Brian

Attachment:
user_189326.ezm (zipped)Hi there...
I have a page with a dynamic number of input fields that is submited to
an action that implements ParameterAware.
Cause the names of the parameters passed to that action change every now
and then I can't write getters and setters for them.
Thats what I thought ParameterAware is made for.
But even then I get those "Unexpected Exception caught setting.....".
Is there a way to tell s2 that it should stop doing it?
Well, ok - not the most clever question, but I just want to get rid of
those Exceptions!
Thanks in advance & a nice weekend!
Regards
Jan Froehlich

Attachment:
user_189327.ezm (zipped)
Hi,
Is there a way to substitute default, bundle-based TextProvider in Struts 2
with a custom one?
We have a very custom message resolution needs with our Struts 2 based
application. Per other posts and explanation from "Struts In Action",
overriding of all getText methods in the base Action class does the trick
for 90% of what we need. However, there is an issue around "Visitor
validator" that apparently goes through a different path for error string
resolution and does not call getText() methods on the action.
Apparently, when model-driven Action design is used and <my
model>-validation.xml is stored next to the model class, error messages
(<message key="..." ../>) defined in validation XML get routed to the
default TextProvider.
Is there a way to plug in a custom Text Provider, system-wide? The
TextProviderFactory makes it seem like custom provider is "injectable" (see
below), but I have not been able to get it to ever "inject" anything. Seems
like it always creates a new instance of TextProviderSupport() behind the
scenes.
Any help is much appreciated!!!
private TextProvider textProvider;
@Inject
public void setTextProvider(TextProvider textProvider) {
this.textProvider = textProvider;
}
protected TextProvider getTextProvider() {
if (this.textProvider == null) {
return new TextProviderSupport();
} else {
return textProvider;
}
}
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189328.ezm (zipped)
Ingo Villnow wrote:
>
> Hello,
>
> i want to call an action by javascript, when a value in a <html:select>
> field changes. I want to fill my <html:form> with the data provided by
> the action. Any ideas? I don't know a lot of javascript :-(
>
> thanks & greetings from Berlin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
you can use DWR to achieve this job
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189329.ezm (zipped)I'll be giving three -- count 'em three -- presentations at the Ajax
Experience at the end of September. Two talks are Struts-related
reprisals form last year, and the third talk, new this year!, dives
into popular tools for testing Ajax applications.
* Ajax Testing Tool Review
* Struts on Ajax: Retrofitting Struts with Ajax Taglibs
* Ajax on Struts: Coding an Ajax Application with Struts 2
Hope to see you there!
----
Ajax Testing Tool Review
Not long ago, testing Ajax components meant play-testing a page by
hand. Today, there are a growing number of tools we can use to
simplify and automate Ajax testing.
In this session we will cover when to test, what to test and how to
test Ajax components. You learn how to create automatic tests with
various tools, including YUI Test, OpenQA Selenium and TIBCO Test
Automation Kit, and how to use Ajax testing tools with IDEs and
Continuous Integration systems.
In this session, you will learn:
* When, where and how to test Ajax components;
* How to create automatic tests with various tools;
* How to use Ajax testing tools with IDEs and Continuous
Integration systems.
----
Struts on Ajax: Retrofitting Struts with Ajax Taglibs
Struts is Java's most popular web framework. Ajax is the web's hottest
user interface. What happens when we put Struts on Ajax?
In this session, we stir some Ajax wizardry into a conventional Struts
application, without all the sweat and bother of writing our own
JavaScript. Struts 1 and Struts 2 both support Ajax taglibs that look
and feel just like ordinary JSP tags. If it's just a little bit of
Ajax that you want, these tags will get you around the learning curve
in record time.
During the session, we will cover
* Using the Java Web Parts taglib with Struts 1
* Using the Ajax YUI plugin with Struts 2
Who should attend: Struts developers who would like to utilize Ajax
with existing applications, and Ajax developers who would like to
utilize Struts as a backend.
To get the most from this session, some familiarity with Struts or a
similar framework is helpful.
----
Ajax on Struts: Coding an Ajax Application with Struts 2
Ajax is the web's hottest user interface. Struts is Java's most
popular web framework. What happens when we put Ajax on Struts?
In this session, , we look at writing a new Struts 2 application from
square one, using the Yahoo User Interface (YUI) Library on the front
end, and Struts 2 on the backend. YUI provides the glitz and the
glamour, and Struts 2 provides the dreary business logic, input
validation, and text formatting.
During the session, we will cover
* How to integrate an Ajax UI with Struts 2
* Basics of the Yahoo User Interface (YUI) Library
* Business services Struts can provide to an Ajax UI
Who should attend: Ajax developers who would like to utilize Struts as
a back-end, and Struts developers who would like to utilize Ajax as a
front-end.
To get the most from this session, some familiarity with an Ajax
library, like YUI or Dojo, is helpful.
----
To register for the conference, visit the Ajax Experience site
<http://ajaxexperience.techtarget.com/html/index.html>.
----
Ted Husted is a software engineer and team mentor. He offers Struts 2,
JPA/Hibernate, and Spring training courses through the Struts Mentor
site <http://strutsmentor.com/>.

Attachment:
user_189330.ezm (zipped)Hi all,
Was having trouble with the app I'm writing, so devolved it to a hello
world type experiment with tabbed panels. The original issue aside or
the moment, I'm still seeing a "DEBUG: widget ID collision on ID: (x)"
error for each nested div in the panel with sx:head debug="true". I
wasn't able to find anything on the Jira / list / Google that seemed
relevant to this situation - is this a known issue? Detail follows.
Thanks,
Bill
---------------------------------------------
Win XP
IE6/FF2/Safari 3.1
Tomcat 6.0.16
JDK 1.5.0_06
Struts 2.1.2 (binary)
commons-fileupload-1.2.1.jar
commons-io-1.3.2.jar
commons-logging-1.0.4.jar
commons-logging-api-1.1.jar
freemarker-2.3.12.jar
ognl-2.6.11.jar
struts2-core-2.1.2.jar
struts2-dojo-plugin-2.1.2.jar
xwork-2.1.1.jar
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
version="2.5">
<display-name>example</display-name>
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher</filter-cla
ss>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="example" namespace="/" extends="struts-default">
<action name="HelloWorld" class="example.HelloWorld">
<result>/HelloWorld.jsp</result>
</action>
</package>
</struts>
package example;
import
com.opensymphony.xwork2.ActionSupport;
public class HelloWorld extends ActionSupport {
public String execute() throws Exception {
return SUCCESS;
}
}
<%@(protected)" %>
<html>
<head>
<title>Busted panels</title>
<sx:head debug="true"/>
</head>
<body>
<sx:tabbedpanel id="tabContainer">
<sx:div label="Tab 1" >
Local Tab 1
</sx:div>
<sx:div label="Tab 2" >
Local Tab 2
</sx:div>
</sx:tabbedpanel>
</body>
</html>
DEBUG: widget ID collision on ID: widget_1235718373
DEBUG: widget ID collision on ID: widget_754832838

Attachment:
user_189331.ezm (zipped)Just what I needed - thanks!
--john
----- Original Message -----
From: Dave Newton <newton.dave@(protected)>
Date: Thursday, July 24, 2008 5:31 pm
Subject: Re: [S2] url tag to construct href in different namespace
> Namespaces typically begin with a "/"; try that.
>
> Dave
>
> --- On Thu, 7/24/08, John Cartwright <John.C.Cartwright@(protected)>
> wrote:
> > From: John Cartwright <John.C.Cartwright@(protected)>
> > Subject: [S2] url tag to construct href in different namespace
> > To: "Struts Users Mailing List" <user@(protected)>
> > Date: Thursday, July 24, 2008, 7:23 PM
> > Hello All,
> >
> > I'm trying to use the url tag to construct a href which
> > goes to a
> > different namespace. It seems that all of the constructed
> > URLs have the
> > same base as the original page.
> >
> > For example, given a page reached at:
> > http://lynx.ngdc.noaa.gov:8080/tideloader/message/View.action
> >
> > The markup listed below produces this URL:
> >
>
http://lynx.ngdc.noaa.gov:8080/tideloader/message/observation/View.action?localId=amkaC&operatorId=1>
> > when what I actually want is this URL:
> >
>
http://lynx.ngdc.noaa.gov:8080/tideloader/observation/View.action?localId=amkaC&operatorId=1>
> >
> > > <s:url action="View"
> > forceAddSchemeHostAndPort="true"
> > includeParams="none"
> > includeContext="true"
> > namespace="observation"
> > scheme="http">
> > <s:param name="localId"
> > value="key" />
> > <s:param name="operatorId"
> > value="message.operatorId" />
> > </s:url>
> > ">
> > <s:property value="key"/>
> >
> >
> >
> > Can someone please show me the correct way to do this?
> >
> > Thanks!
> >
> > --john
> >
> >
> > ------------------------------------------------------------------
> ---
> > 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)
>
>

Attachment:
user_189332.ezm (zipped)
So what the others are saying is that you should NEVER use chopsticks when
you are eating soup....
No just kidding. Depending on what version of struts you are using you
likely need a
<s:set name="listOfEmployee" value="listOfEmployee"/> before the display
tag.
Otherwise your decorator could be messed up in which case you are back to
eating soup with chopsticks.
Varun Deep wrote:
>
> Hi
>
> I am using the display tag for displaying the employee names . I want to
> short the names of the employee.
>
> Following is the code that is in .jsp file.
>
> <%@(protected)"%>
>
> <display:table id="displaycolumn" name="listOfEmployee"
> pagesize="6" requestURI="searchEmployeeByDep.action"
> decorator="com.unclejis.action.restaurant.DisplayDecorator"
> align="left" sort="external" defaultsort="1" >
>
> <display:column property="name" title="Name" sortable="true" />
> </display:table>
>
>
>
> when I use the above code nothing is display. Can anyone please help me
> to solve this problem. I will be vary thankful.
>
> Thanks in advance
> varun
>
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189333.ezm (zipped)
We are using struts 2.0.11
We have lots of action class. Say one of them is CustomerRegisterAction
(which extends ActionSupport ) . When a say user X registers himself on
the website; this CustomerRegisterAction is populated (using OGNL) and the
customer data is saved to DB. But after sometime some other user Y from some
other PCcomes and clicks the Register link, then the data entered by X is
prefilled now.
I think the CustomerRegisterAction is reused, instead of creating new
instance every request. we want to setup such that new
CustomerRegisterAction is created every httprequest, so that data is not
leaking between users.
Please help us.
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189334.ezm (zipped)Struts2 does create a new Action for every request.
Do you use Spring? I think you can configure it to reuse the beans...
Piero
Am Samstag, 26. Juli 2008 19:48:47 schrieb Arun M:
> We are using struts 2.0.11
>
> We have lots of action class. Say one of them is CustomerRegisterAction
> (which extends ActionSupport ) . When a say user X registers himself on
> the website; this CustomerRegisterAction is populated (using OGNL) and the
> customer data is saved to DB. But after sometime some other user Y from
> some other PCcomes and clicks the Register link, then the data entered by X
> is prefilled now.
> I think the CustomerRegisterAction is reused, instead of creating new
> instance every request. we want to setup such that new
> CustomerRegisterAction is created every httprequest, so that data is not
> leaking between users.
>
> Please help us.

Attachment:
user_189340.ezm (zipped)Why don't you post your code. It seems that it might have a threading issue.
-R
Arun M wrote:
> We are using struts 2.0.11
>
> We have lots of action class. Say one of them is CustomerRegisterAction
> (which extends ActionSupport ) . When a say user X registers himself on
> the website; this CustomerRegisterAction is populated (using OGNL) and the
> customer data is saved to DB. But after sometime some other user Y from some
> other PCcomes and clicks the Register link, then the data entered by X is
> prefilled now.
> I think the CustomerRegisterAction is reused, instead of creating new
> instance every request. we want to setup such that new
> CustomerRegisterAction is created every httprequest, so that data is not
> leaking between users.
>
> Please help us.
>

Attachment:
user_189341.ezm (zipped)
Yes , we are using spring and hibernate also along with struts.
Could you suggest us, where to configure to resue the beans ??
Piero Sartini-3 wrote:
>
> Struts2 does create a new Action for every request.
> Do you use Spring? I think you can configure it to reuse the beans...
>
> Piero
>
> Am Samstag, 26. Juli 2008 19:48:47 schrieb Arun M:
>> We are using struts 2.0.11
>>
>> We have lots of action class. Say one of them is CustomerRegisterAction
>> (which extends ActionSupport ) . When a say user X registers himself on
>> the website; this CustomerRegisterAction is populated (using OGNL) and
>> the
>> customer data is saved to DB. But after sometime some other user Y from
>> some other PCcomes and clicks the Register link, then the data entered by
>> X
>> is prefilled now.
>> I think the CustomerRegisterAction is reused, instead of creating new
>> instance every request. we want to setup such that new
>> CustomerRegisterAction is created every httprequest, so that data is not
>> leaking between users.
>>
>> Please help us.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189336.ezm (zipped)try using jstl
<c:forEach items="${lawDraft}" var="document">
<c:out value="${document.title}"></c:out>">
</c:forEach>
Regards,
Dhiraj
On Wed, Jul 23, 2008 at 9:50 PM, Lukasz Lenart <lukasz.lenart@(protected)
> wrote:
> > I don't think the var will work always, ie I am using struts 2.0.6
> > The webworl.tld does not contain the var.
>
> var was introduced with Struts 2.1 and id was depreacted
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_189337.ezm (zipped)Using Struts 2.0.11, the following markup causes goodbyeWorld's execute
method to be called twice:
<sx:tabbedpanel id="tabContainer" >
<s:url action="goodbyeWorld" id="url"/>
<sx:div label="Tab 1" href="%{#url}">Remote Tab</sx:div>
<sx:div label="Tab 2">Local Tab</sx:div>
</sx:tabbedpanel>
When the remote content follows the local content (Tab 1 is placed after
Tab 2), it's called just once.
Switch out the libraries and change the tags accordingly to use 2.1.2
syntax, and I think you'll find that remote content on tab 1 calls the
action 3 times. Remote content on tab 2 is called twice.
Bill
---------------------------------------------
Win XP
IE6/FF2/Safari 3.1
Tomcat 6.0.16
JDK 1.5.0_06
Struts 2.0.11 / 2.1.2 (binary)
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
version="2.5">
<display-name>hello</display-name>
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher</filter-cla
ss>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="base-package" namespace="/" extends="struts-default">
<action name="helloWorld" class="hello.HelloWorld">
<result>helloWorld.jsp</result>
</action>
<action name="goodbyeWorld" class="goodbye.GoodbyeWorld">
<result>goodbyeWorld.jsp</result>
</action>
</package>
</struts>
package hello;
import
com.opensymphony.xwork2.ActionSupport;
public class HelloWorld extends ActionSupport {
private String message = "Hello World!";
public String getMessage() {
return message;
}
@Override
public String execute() throws Exception {
System.out.println(message);
return SUCCESS;
}
}
<%@(protected)" %>
<%@(protected)" %>
<html>
<head>
<sx:head debug="true"/>
</head>
<body>
<sx:tabbedpanel id="tabContainer" >
<sx:div label="Local">
<s:property value="message"/>
</sx:div>
<s:url action="goodbyeWorld" id="url"/>
<sx:div label="Remote" href="%{#url}"/>
</sx:tabbedpanel>
</body>
</html>
package goodbye;
import
com.opensymphony.xwork2.ActionSupport;
public class GoodbyeWorld extends ActionSupport {
private String message = "Goodbye, World!";
public String getMessage() {
return message;
}
@Override
public String execute() throws Exception {
System.out.println(message);
return super.execute();
}
}
<%@(protected)" %>
<html>
<head/>
<body>
<s:property value="message"/>
</body>
</html>