Author Login
Post Reply
user Digest 25 May 2008 10:36:01 -0000 Issue 8047
Topics (messages 186746 through 186773):
Trouble using maps with doubleselect tag
186746 by: Jukka Välimaa
186748 by: Jukka Välimaa
Re: Problem with implementation of pagination with display tag in Struts2
186747 by: Varun Deep
186753 by: Jim Kiley
Using ActionMessages
186749 by: Dimitris Mouchritsas
186759 by: Laurie Harper
i18n Struts Jco Code in Windows English and Polish System
186750 by: Raghuveer
186760 by: Roger Varley
186761 by: Laurie Harper
struts + freemarker version
186751 by: Kirti
186752 by: Al Sutton
Re: Writing valid OGNL
186754 by: Chris Pratt
186756 by: Volker Karlmeier
action mapping parameter issue
186755 by: fea jabi
186757 by: Volker Karlmeier
Re: Request/session timeout when exporting very large files
186758 by: Laurie Harper
latest jasper reports plugin jar download
186762 by: David Evans
186763 by: Dave Newton
186764 by: David Evans
186765 by: Dave Newton
186768 by: David Evans
186771 by: Dave Newton
Internationalization via ActionClass-properties
186766 by: Peter Theissen
186767 by: Dave Newton
186769 by: Peter Theissen
Struts 2 Ajax DEBUG: widget ID collision on ID: xxx Problem!?
186770 by: Noob2k8
[ANN] Struts 2 in Action now available
186772 by: Don Brown
186773 by: Wes Wannemacher
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_186746.ezm (zipped)Hi all,
<s:set name="hourMap" value="#{120 : '5 d', 48 : '48 h', 24 : '24 h', 12 :
'12 h'}" />
<s:doubleselect id="timeSelect" key="vehicleBased.period"
label="doubleselect test1" name="hours" listKey="key" list="hourMap"
doubleName="intervalLength" doubleListKey="key" doubleListValue="value"
doubleList="%{(top == '120') ? #{60: '1 h', 120: '2 h', 240: '4 h'} : #{15:
'15 min', 30: '30 min', 60: '1 h', 120: '2 h'}}" />

Attachment:
user_186748.ezm (zipped)Hi all,
Ignore the earlier message, it was sent accidentally before I was finished
writing.
I have the following code in my jsp page:
<s:set name="hourMap" value="#{120 : '5 d', 48 : '48 h', 24 : '24 h', 12 :
'12 h'}" />
<s:doubleselect id="timeSelect" key="vehicleBased.period"
label="doubleselect test1" name="hours" list="hourMap"
doubleName="intervalLength" doubleListKey="key" doubleListValue="value"
doubleList="%{(top == '120') ? #{60: '1 h', 120: '2 h', 240: '4 h'} :
#{15: '15 min', 30: '30 min', 60: '1 h', 120: '2 h'}}" />
For some reason, this leaves the second selectbox completely empty. If I
change hourMap into a list, everything works fine.
Any idea what might be wrong?

Attachment:
user_186747.ezm (zipped)I really thankful for you advice
I implemented the thing in the way you suggest me. but when I put the
Following code in the page it giving me the following exceptional
message.
The line I put in the code:
<%@(protected)"%>
<s:set name="list" value="listOfEmployee" />
<display:table name="list" pagesize="4"
id="empresult">
<display:column property="name" title="Name" />
</display:table>
Exceptions:
1.
javax.servlet.ServletException:rg/apache/commons/lang/UnhandledException
2.
java.lang.NoClassDefFoundError:org/apache/commons/lang/UnhandledExceptio
n
3.
java.lang.ClassNotFoundException:org.apache.commons.lang.UnhandledExcept
ion
please help me in this
thanks
varun
-----Original Message-----
From: Engr. Jherald Gerome Lacambra [mailto:jgalacambra@(protected)]
Sent: Thursday, May 22, 2008 11:03 PM
To: Struts Users Mailing List
Subject: Re: Problem with implementation of pagination with display tag
in Struts2
1. Put the display tag libraries on WEB-INF/lib folder
2. Put the displaytag.tld on WEB-INF folder
3. add the code the ff codes on you web.xml
<jsp-config>
<taglib>
<taglib-uri>http://displaytag.sf.net</taglib-uri>
<taglib-location>displaytag.tld</taglib-location>
</taglib>
</jsp-config>
And now you are good to go.
2008/5/23 Varun Deep <vdeep@(protected)>:
> To all
>
> Hi, I want to implement pagination on my web application, for that I
> want to use the "display tag". Can any one tell or suggest the step by
> step process needed to implement the "display tag"(means how to
> configure the struts2 application). I am using Struts2. I will be very
> much thank full to you.
>
> Thanks in advace
>
> Varun
>
>
--
Jherald Gerome Lacambra

Attachment:
user_186753.ezm (zipped)You are missing the Apache commons-lang jar from your classpath.
http://commons.apache.org/lang/ has what you need.
On Fri, May 23, 2008 at 5:47 AM, Varun Deep <vdeep@(protected):
> I really thankful for you advice
>
> I implemented the thing in the way you suggest me. but when I put the
> Following code in the page it giving me the following exceptional
> message.
>
> The line I put in the code:
> <%@(protected)"%>
>
> <s:set name="list" value="listOfEmployee" />
> <display:table name="list" pagesize="4"
> id="empresult">
> <display:column property="name" title="Name" />
> </display:table>
>
> Exceptions:
>
> 1.
>
javax.servlet.ServletException:rg/apache/commons/lang/UnhandledException
>
> 2.
>
java.lang.NoClassDefFoundError:org/apache/commons/lang/UnhandledExceptio
> n
>
> 3.
>
java.lang.ClassNotFoundException:org.apache.commons.lang.UnhandledExcept
> ion
>
>
> please help me in this
>
> thanks
>
> varun
>
>
>
>
> -----Original Message-----
> From: Engr. Jherald Gerome Lacambra [mailto:jgalacambra@(protected)]
> Sent: Thursday, May 22, 2008 11:03 PM
> To: Struts Users Mailing List
> Subject: Re: Problem with implementation of pagination with display tag
> in Struts2
>
> 1. Put the display tag libraries on WEB-INF/lib folder
> 2. Put the displaytag.tld on WEB-INF folder
> 3. add the code the ff codes on you web.xml
>
> <jsp-config>
> <taglib>
> <taglib-uri>http://displaytag.sf.net</taglib-uri>
> <taglib-location>displaytag.tld</taglib-location>
> </taglib>
> </jsp-config>
>
> And now you are good to go.
>
> 2008/5/23 Varun Deep <vdeep@(protected)>:
>
> > To all
> >
> > Hi, I want to implement pagination on my web application, for that I
> > want to use the "display tag". Can any one tell or suggest the step by
> > step process needed to implement the "display tag"(means how to
> > configure the struts2 application). I am using Struts2. I will be very
> > much thank full to you.
> >
> > Thanks in advace
> >
> > Varun
> >
> >
>
>
> --
> Jherald Gerome Lacambra
>
>
> ---------------------------------------------------------------------
> 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_186749.ezm (zipped)Hi all,
We use Struts 1.2.4 in our application and I'd like to refactor some
code to use ActionMessage(s) instead of ActionError(s).
Can somebody show me a solid example (or point me to an article) on how
to do it?
Also, when I tried before to completely remove ActionErrors, the action
was complaining that the validate method is required
to return ActionErrors and not ActionMessages. Any workaround?
Thanks
Dimitris

Attachment:
user_186759.ezm (zipped)Dimitris Mouchritsas wrote:
> Hi all,
> We use Struts 1.2.4 in our application and I'd like to refactor some
> code to use ActionMessage(s) instead of ActionError(s).
> Can somebody show me a solid example (or point me to an article) on how
> to do it?
>
> Also, when I tried before to completely remove ActionErrors, the action
> was complaining that the validate method is required
> to return ActionErrors and not ActionMessages. Any workaround?
> Thanks
> Dimitris
You can't replace ActionErrors with ActionMessages, they represent
different things. Perhaps you were thinking of ActionError and
ActionMessage (singular form rather than plural).
L.

Attachment:
user_186750.ezm (zipped)I am working on Struts ,SAP-JCO .
This is i18n application running on Tomcat.
I have designed my application in UTF8 charset.
When Saving the polish characters from application they are saved into SAP
Database properly.
Before Saving i am doing following String modifications.
The same code doesn't work on Tomcat Server on Windows English System.Here
the Polish characters( aeclónszz ) are saved as #########.
What would be cause for this.
What changes i need to do in my code to work on both English And Polish
Windows (Tomcat Server)
--------------------
strConvertedMessage = new String(strText.getBytes("UTF8"), "UTF8");
inputTable.setValue(strConvertedMessage,"TABLENAME");

Attachment:
user_186760.ezm (zipped)On Friday 23 May 2008 13:51:08 Raghuveer wrote:
> I am working on Struts ,SAP-JCO .
>
> This is i18n application running on Tomcat.
> I have designed my application in UTF8 charset.
>
> When Saving the polish characters from application they are saved into SAP
> Database properly.
> Before Saving i am doing following String modifications.
> The same code doesn't work on Tomcat Server on Windows English System.Here
> the Polish characters( aeclónszz ) are saved as #########.
> What would be cause for this.
>
> What changes i need to do in my code to work on both English And Polish
> Windows (Tomcat Server)
>
> strConvertedMessage = new String(strText.getBytes("UTF8"), "UTF8");
>
> inputTable.setValue(strConvertedMessage,"TABLENAME");
Without more information, it's difficult to suggest the soloution, but a
couple of questions come to mind. Firstly what are the values of
strConvertedMessage and inputTable before you try to update SAP? Have you
tried debugging your Function Module in SAP to see what SAP is recieving
before you commit your update to the database (I assume that its Oracle?)
Regards

Attachment:
user_186761.ezm (zipped)Raghuveer wrote:
> I am working on Struts ,SAP-JCO .
>
> This is i18n application running on Tomcat.
>
> I have designed my application in UTF8 charset.
>
> When Saving the polish characters from application they are saved into SAP
> Database properly.
>
> Before Saving i am doing following String modifications.
>
> The same code doesn't work on Tomcat Server on Windows English System.Here
> the Polish characters( aeclónszz ) are saved as #########.
>
> What would be cause for this.
>
> What changes i need to do in my code to work on both English And Polish
> Windows (Tomcat Server)
>
> --------------------
>
> strConvertedMessage = new String(strText.getBytes("UTF8"), "UTF8");
> inputTable.setValue(strConvertedMessage,"TABLENAME");
That string conversion is redundant. You are saying "convert this string
into a sequence of bytes in UTF-8 and then interpret those bytes as
UTF-8 to construct a new string." Assuming strText is not null,
strText.equals(strConvertedMessage) is garanteed true.
There are a number of places where character set conversion can get
messed up. It may be right up front when accessing the request
parameters, during propagation into your SAP database, on retrieval from
the database, or during output (assuming you're not doing something bad
with the data in between those points).
Start by figuring out exactly where the mis-encoding occurs; that should
tell you which input/output boundary to concentrate on.
L.

Attachment:
user_186751.ezm (zipped)
we are currently using struts 2.0.9 with freemarker 2.3.8.
We are planning to upgrade to struts 2.0.11 and freemarker 2.3.13. But we
have few doubts on thier compatibility. Apparently struts 2.0.11 also uses
freemarker 2.3.8.
We see that there are major performance improvements in 2.3.13.
Can we upgrade ourselves to use struts 2.0.11 with freemarker 2.3.13? Do
anyone see any issues with this upgradation?
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_186752.ezm (zipped)I've used S2.0.11 and Freemarker 2.3.13 without any problems.
The only reason it's not in the latest builds is that it was released
after the latest S2 builds and FM2.3.13 hasn't been put into the
neccessary place to support an automated build.
Al.
Kirti wrote:
> we are currently using struts 2.0.9 with freemarker 2.3.8.
> We are planning to upgrade to struts 2.0.11 and freemarker 2.3.13. But we
> have few doubts on thier compatibility. Apparently struts 2.0.11 also uses
> freemarker 2.3.8.
> We see that there are major performance improvements in 2.3.13.
> Can we upgrade ourselves to use struts 2.0.11 with freemarker 2.3.13? Do
> anyone see any issues with this upgradation?
>

Attachment:
user_186754.ezm (zipped)I don't think you can embed a scriplet inside the OGNL code of a
struts tag any the newer versions of struts since they have disabled
run-time expression evaluation on all their tags.
(*Chris*)
On Fri, May 23, 2008 at 2:17 AM, ravi_eze <ravichandrac@(protected):
>
> hi,
>
> i often get into funny problems and am not sure how to fix them for example:
>
> <%@(protected)" ...
>
> <%=constants.static1 %> <!-- gives output as value1 -->
> <s:property value="<%=constants.static1%>" <!-- gives output as value1 -->
>
> but when i use :
> <s:textfield name="hashmap['<%=constants.static1%>']" <!--doesnt work... -->
>
> i am totally clueless as to what is happening here!!!
>
> some times <s:property value="%{...}" will work...
> some times <s:property value=%{#... or some thing}" will only work... and
> moreover tracing the ognl evaluation is hardly possible.
>
> so if we have a tool which can help me how the ognl is being evaluated... it
> would save me tons and tons of time..... any ideas ??? :(
>
> cheers,
> ravi
> --
> View this message in context: http://www.nabble.com/Writing-valid-OGNL-tp17355855p17421934.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_186756.ezm (zipped)-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
you can write
<s:property value="@com.constants@(protected)" />
good sources for ognl are
http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/index.html
and
http://www.opensymphony.com/ognl/pdf/LanguageGuide.pdf
Volker
Chris Pratt schrieb:
> I don't think you can embed a scriplet inside the OGNL code of a
> struts tag any the newer versions of struts since they have disabled
> run-time expression evaluation on all their tags.
> (*Chris*)
>
> On Fri, May 23, 2008 at 2:17 AM, ravi_eze
<ravichandrac@(protected):
>> hi,
>>
>> i often get into funny problems and am not sure how to fix them for
example:
>>
>> <%@(protected)" ...
>>
>> <%=constants.static1 %> <!-- gives output as value1 -->
>> <s:property value="<%=constants.static1%>" <!-- gives output as value1 -->
>>
>> but when i use :
>> <s:textfield name="hashmap['<%=constants.static1%>']" <!--doesnt
work... -->
>>
>> i am totally clueless as to what is happening here!!!
>>
>> some times <s:property value="%{...}" will work...
>> some times <s:property value=%{#... or some thing}" will only work... and
>> moreover tracing the ognl evaluation is hardly possible.
>>
>> so if we have a tool which can help me how the ognl is being
evaluated... it
>> would save me tons and tons of time..... any ideas ??? :(
>>
>> cheers,
>> ravi
>> --
>> View this message in context:
http://www.nabble.com/Writing-valid-OGNL-tp17355855p17421934.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)
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFINxxpx4KjH6Tk4MMRArF5AKCvGrAw9fSbghTjI/kHD2STvITa7QCdErvB
x1gr/fIzZzcQPweeTLUfmhw=
=VhJH
-----END PGP SIGNATURE-----

Attachment:
user_186755.ezm (zipped)We are getting the below error in production server for some of the users not all. Everything works fine on our local machines. What can we check to avoid the below issue. Any suggessions?
javax.servlet.ServletException: Request[/DispatchOrdersAction] does not contain handler parameter named 'method'. This may be caused by whitespace in the label text.
Thanks.
_________________________________________________________________
Change the world with e-mail. Join the i’m Initiative from Microsoft.
http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ChangeWorld

Attachment:
user_186757.ezm (zipped)-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
it seems quite difficult to give you an answer without seeing your
struts.xml
Volker
fea jabi schrieb:
> We are getting the below error in production server for some of the
> users not all. Everything works fine on our local machines. What
> can we check to avoid the below issue. Any suggessions?
>
>
javax.servlet.ServletException: Request[/DispatchOrdersAction] does
> not contain handler parameter named 'method'. This may be caused by
> whitespace in the label text.
>
>
> Thanks.
> _________________________________________________________________
> Change the world with e-mail. Join the i’m Initiative from
> Microsoft.
> http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ChangeWorld
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFINxzPx4KjH6Tk4MMRAiZKAJ0bheqOC5OjbnPmkGOL5s+02HgXdgCeLAOf
wgl35fiICWrR2JI4H+5hFr8=
=IZf0
-----END PGP SIGNATURE-----

Attachment:
user_186758.ezm (zipped)Are we talking about a *session* timeout or a *request* timeout? You
original message implied the former, since you were trying to correct it
with session.setMaxInactiveInterval(), but if it's a request timeout
that's not going to have any effect.
It sounds like the PDF generation is taking too long, causing the
browser to timeout the request because it gives up on getting a
response. In that case, the way to fix it is to return a 'generating
PDF...' response immediately and do the generation in the background.
See the execAndWait interceptor for one way to approach that:
http://struts.apache.org/2.0.11.1/index.html
L.
Simon Sew wrote:
> The request timeout occurs when it is still generating the pdf. When it finished, the file will be exported to the jsp.
>
>
> Laurie Harper <laurie@(protected):
>> You may find that your app server, the clients browser, or any proxy
>> in-between may timeout irrespective of what you do in your webapp.
>
> If the timeout occurs during the PDF generation, before the response
> begins being streamed back, maybe. But as long as there is response data
> being transmitted, no timeout should occur at the connection level. A
> session timeout is an app-server function, anyhow; clients and proxies
> know nothing about the session.
>
> Simon, is the timeout occuring during the request for the PDF, while it
> is being generated and before the action begins transmitting it? Or is
> the PDF downloaded successfully with the next request failing because
> the session timed out during the download?
>
> L.
>
>> If the file takes so long to generate is there any reason why your not
>> pre-generating it, caching it and serving it as a static file?
>>
>> Al.
>>
>> ----- Original Message ----- From: "Simon Sew"
>> To:
>> Sent: Thursday, May 22, 2008 7:32 AM
>> Subject: Request/session timeout when exporting very large files
>>
>>
>>> Hi,
>>> I'm having this request/session timeout problem.
>>>
>>> My page have a link to generate and export pdf file. The problem is
>>> sometimes the generated file is very huge (100MB++) and it takes quite
>>> some time to export it (30 to 90 minutes). How do I prevent it from
>>> timeout when it is exporting at that time?
>>>
>>> I tried session.setMaxInactiveInterval() but it's not working.
>>>
>>> Thx.
>>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
>

Attachment:
user_186762.ezm (zipped)Hello,
I need to download the latest version of the jasper reports plugin jar
(in order to take advantage of the exportParameters functionality added
to JasperReportsResult.java by Dave Newton on April 25th). How can I
download a jar that includes that version? Or do i have to build that
myself?
Thanks
Dave

Attachment:
user_186763.ezm (zipped)--- David Evans <dsevans@(protected):
> I need to download the latest version of the jasper reports plugin
> jar
> (in order to take advantage of the exportParameters functionality
> added
> to JasperReportsResult.java by Dave Newton on April 25th). How can I
> download a jar that includes that version? Or do i have to build that
> myself?
You have to build it yourself, and it's only in 2.1.mumble+.
Let us know if there are any issues.
Dave

Attachment:
user_186764.ezm (zipped)
Ok, thanks. Two questions:
1. to build it, do i download the source from svn, compile, then jar?
2. what does 2.1.muble+ mean?
Dave
On Fri, 2008-05-23 at 15:47 -0700, Dave Newton wrote:
> --- David Evans <dsevans@(protected):
> > I need to download the latest version of the jasper reports plugin
> > jar
> > (in order to take advantage of the exportParameters functionality
> > added
> > to JasperReportsResult.java by Dave Newton on April 25th). How can I
> > download a jar that includes that version? Or do i have to build that
> > myself?
>
> You have to build it yourself, and it's only in 2.1.mumble+.
>
> Let us know if there are any issues.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>

Attachment:
user_186765.ezm (zipped)--- David Evans <dsevans@(protected):
> Ok, thanks. Two questions:
> 1. to build it, do i download the source from svn, compile, then jar?
http://struts.apache.org/2.x/docs/building-the-framework-from-source.html
> 2. what does 2.1.muble+ mean?
It means I don't remember when it got committed, but it was somewhere
between 2.1.1-ish and trunk (my time management skills, already
weakened by age, have been blasted by circumstance of late).
Dave

Attachment:
user_186768.ezm (zipped)There ended up being dependency issues because there was a switch to
xwork logging that was commited previous to your changes. So I just used
the struts2-jasperreports-plugin-2.0.11.1 source and copied your
exportParameter code into that. compiled and jarred and its working
great. thanks for your help.
Dave
On Sat, 2008-05-24 at 06:14 -0700, Dave Newton wrote:
> --- David Evans <dsevans@(protected):
> > Ok, thanks. Two questions:
> > 1. to build it, do i download the source from svn, compile, then jar?
>
> http://struts.apache.org/2.x/docs/building-the-framework-from-source.html
>
> > 2. what does 2.1.muble+ mean?
>
> It means I don't remember when it got committed, but it was somewhere
> between 2.1.1-ish and trunk (my time management skills, already
> weakened by age, have been blasted by circumstance of late).
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>

Attachment:
user_186771.ezm (zipped)Yeah, that's what I'm doing locally (more or less), too.
Dave
--- David Evans <dsevans@(protected):
> There ended up being dependency issues because there was a switch to
> xwork logging that was commited previous to your changes. So I just
> used the struts2-jasperreports-plugin-2.0.11.1 source and copied your
> exportParameter code into that. compiled and jarred and its working
> great. thanks for your help.
>
> Dave
>
>
> On Sat, 2008-05-24 at 06:14 -0700, Dave Newton wrote:
> > --- David Evans <dsevans@(protected):
> > > Ok, thanks. Two questions:
> > > 1. to build it, do i download the source from svn, compile, then
> jar?
> >
> >
>
http://struts.apache.org/2.x/docs/building-the-framework-from-source.html
> >
> > > 2. what does 2.1.muble+ mean?
> >
> > It means I don't remember when it got committed, but it was
> somewhere
> > between 2.1.1-ish and trunk (my time management skills, already
> > weakened by age, have been blasted by circumstance of late).
> >
> > 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)
>
>

Attachment:
user_186766.ezm (zipped)Hello,
I have a question concerning internationalization via
ActionClass-properties:
I now have a file InitAction-properites that corresponds
to the class InitAction and contains certain strings, which
are assigned to labels of the jsp result page of the
InitAction.
Loading the labels works fine, such as:
***properies file***
registration.firstname = First name
...
****************
***reg.jsp***
... label="%{getText('registration.firstname')}" ...
***********
How can I now "tell" the props file about the french, german, ...
texts? Unfortunately, I didnt find any hints neither in the struts
docs nor with the big brother google.
Thanks in advance
Peter
______________________________________________________________
Jeden Monat 1 hochkarätiger maxdome-Blockbuster GRATIS!
Exklusiv für alle WEB.DE Nutzer. http://www.blockbuster.web.de

Attachment:
user_186767.ezm (zipped)Standard Java i18n.
http://java.sun.com/docs/books/tutorial/i18n/resbundle/propfile.html
might help?
Dave
--- Peter Theissen <peter.theissen@(protected):
> Hello,
>
> I have a question concerning internationalization via
> ActionClass-properties:
>
> I now have a file InitAction-properites that corresponds
> to the class InitAction and contains certain strings, which
> are assigned to labels of the jsp result page of the
> InitAction.
>
> Loading the labels works fine, such as:
>
> ***properies file***
> registration.firstname = First name
> ...
> ****************
>
> ***reg.jsp***
> ... label="%{getText('registration.firstname')}" ...
> ***********
>
> How can I now "tell" the props file about the french, german, ...
> texts? Unfortunately, I didnt find any hints neither in the struts
> docs nor with the big brother google.
>
> Thanks in advance
> Peter
> ______________________________________________________________
> Jeden Monat 1 hochkar�tiger maxdome-Blockbuster GRATIS!
> Exklusiv f�r alle WEB.DE Nutzer. http://www.blockbuster.web.de
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_186769.ezm (zipped)Hi Dave,
thanks, was not too difficult (as described in the doc you mentioned):
InitAction.properties
InitAction_de.properties
InitAction_fr.properties
...
for all languages.
Thanks and a nice weekend
Peter
> Standard Java i18n.
>
> http://java.sun.com/docs/books/tutorial/i18n/resbundle/propfile.html
>
> might help?
>
> Dave
>
> --- Peter Theissen <peter.theissen@(protected):
>
>
>> Hello,
>>
>> I have a question concerning internationalization via
>> ActionClass-properties:
>>
>> I now have a file InitAction-properites that corresponds
>> to the class InitAction and contains certain strings, which
>> are assigned to labels of the jsp result page of the
>> InitAction.
>>
>> Loading the labels works fine, such as:
>>
>> ***properies file***
>> registration.firstname = First name
>> ...
>> ****************
>>
>> ***reg.jsp***
>> ... label="%{getText('registration.firstname')}" ...
>> ***********
>>
>> How can I now "tell" the props file about the french, german, ...
>> texts? Unfortunately, I didnt find any hints neither in the struts
>> docs nor with the big brother google.
>>
>> Thanks in advance
>> Peter
>> ______________________________________________________________
>> Jeden Monat 1 hochkar�tiger maxdome-Blockbuster GRATIS!
>> Exklusiv f�r alle WEB.DE Nutzer. http://www.blockbuster.web.de
>>
>>
>> ---------------------------------------------------------------------
>> 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_186770.ezm (zipped)
Hi,
ive got a small problem with a simple Ajax example.
My whole app is too big so ive created a small example which produces the
same error.
ajaxTest.jsp
<%@(protected)"
pageEncoding="ISO-8859-1"%>
<%@(protected)" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<s:head theme="ajax" debug="true"/>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<s:a theme="ajax" href="asTest.jsp" targets="a1" >try it</s:a>
<s:div id="a1" cssStyle="height:300px;width:300px;">
</s:div>
</body>
</html>
-----------------------------------
asTest.jsp
<%@(protected)" %>
Test1
<s:div executeScripts="true" theme="ajax" id="new3423"
href="test.jsp"></s:div>
-------------------------------------
test.jsp:
<p>
test.jsp
....
</p>
------------------------------------
if i click more than once on the link "try it" i get the following error:
DEBUG: widget ID collision on ID: new3423
the last few hours ive tried to fix this problem.. but no luck.
i hope someone here can help me out.
Thx in advance
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_186772.ezm (zipped)Chad, Scott, and I are pleased to announce the release of our book,
Struts 2 in Action, published by Manning Publications.
Struts 2 In Action introduces the Apache Struts 2 web application
framework and shows you how to quickly develop professional,
production-ready modern web applications.This book gently walks you
through the key features of Struts 2 in example-driven, easy-to-digest
sections.
Struts 2 in Action delivers accurate, seasoned information that can
immediately be put to work. This book is designed for working Java web
developers—especially those with some background in Struts 1 or
WebWork. The core content, covering key framework components such as
Actions, Results, and Interceptors, includes new features like the
annotation-based configuration options. You'll find chapters on Struts
2 plugins, FreeMarker, and migration from Struts 1 and WebWork 2.
Finally, new topics such as the Ajax tags, Spring Framework
integration, and configuration by convention give familiar subjects
new depth.
You can find the book at Manning's website [1], on Amazon [2], or any
major book retailer.
Don
[1] http://www.manning.com/dbrown/
[2] http://www.amazon.com/Struts-2-Action-Don-Brown/dp/193398807X

Attachment:
user_186773.ezm (zipped)Congrats Don, Scott and Chad!
I have already read it and definitely delivers full coverage of the core
topics. Don didn't mention that it also provides one of the best
explanations of the ValueStack and how it works with OGNL.
Great Job guys!
-Wes
On Sun, 2008-05-25 at 14:30 +1000, Don Brown wrote:
> Chad, Scott, and I are pleased to announce the release of our book,
> Struts 2 in Action, published by Manning Publications.
>
> Struts 2 In Action introduces the Apache Struts 2 web application
> framework and shows you how to quickly develop professional,
> production-ready modern web applications.This book gently walks you
> through the key features of Struts 2 in example-driven, easy-to-digest
> sections.
>
> Struts 2 in Action delivers accurate, seasoned information that can
> immediately be put to work. This book is designed for working Java web
> developers—especially those with some background in Struts 1 or
> WebWork. The core content, covering key framework components such as
> Actions, Results, and Interceptors, includes new features like the
> annotation-based configuration options. You'll find chapters on Struts
> 2 plugins, FreeMarker, and migration from Struts 1 and WebWork 2.
> Finally, new topics such as the Ajax tags, Spring Framework
> integration, and configuration by convention give familiar subjects
> new depth.
>
> You can find the book at Manning's website [1], on Amazon [2], or any
> major book retailer.
>
> Don
>
> [1] http://www.manning.com/dbrown/
> [2] http://www.amazon.com/Struts-2-Action-Don-Brown/dp/193398807X
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>