Author Login
Post Reply
user Digest 11 Dec 2009 17:16:45 -0000 Issue 8958
Topics (messages 204190 through 204206):
Struts 2 JSP Result + GWT
204190 by: Hong Zheng
Re: [S2] i18n not using default bundle
204191 by: Saeed Iqbal
204196 by: mailtolouis2020-struts.yahoo.com
204197 by: Saeed Iqbal
204198 by: Saeed Iqbal
204200 by: mailtolouis2020-struts.yahoo.com
204201 by: Haroon Rafique
204202 by: Saeed Iqbal
Re: excute method will not work without the form's button
204192 by: Lukasz Lenart
204193 by: Saeed Iqbal
Re: How to display a table (data grid) using Struts2 - Is there a tag?
204194 by: Ernesto Reinaldo Barreiro
Re: Struts 2 Result + GWT
204195 by: Alex Siman
Re: Convention Plugin - Action Chaining
204199 by: RogerV
204205 by: Musachy Barroso
Validation by Annotation against a list of entities
204203 by: RogerV
displaytag css problem
204204 by: Nguyen Xuan Son
204206 by: Chris Pratt
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_204190.ezm (zipped)Hi all,
I have been struggling with this problem for a few months now. I am using
GWT with Struts 2 on my website. Following is the configuration for the
registration page:
<action name="register" class="com....RegistrationAction">
<result name="input">/jsp/registration.jsp</result>
<result
name="success">/jsp/registration_confirmation.jsp</result>
</action>
registration.jsp contains a form coded using GWT. After RegistrationAction
receives and processes data from the form, it sends back a JSON string. If
everything is good, JSON will contain a "redirect" property that points to
"/jsp/registration_confirmation.jsp".
When GWT codes sees this "redirect" property in returned JSON, it will
redirect browser to the new page accordingly.
The issue here is that I don't want to hard-code
"/jsp/registration_confirmation.jsp" again in my RegistrationAction class,
because I already defined that in struts.xml and that's where it should be
defined. Yet, I still need to pass that URL to GWT for redirection. Is there
a way in Struts 2 that would translate a result
name("success") to the corresponding result
value("/jsp/registration_confirmation.jsp")?
Many thanks!
Hong Zheng
P.S. I am aware that one solution would be to define another Action, such as
RegistrationConfirmationAction. But that's not really a very elegant
solution.

Attachment:
user_204191.ezm (zipped)why dont you just use this
struts.custom.i18n.resources=package
and put your CN file name in there.
On Thu, Dec 10, 2009 at 10:31 PM, <mailtolouis2020-struts@(protected):
> Thanks.
>
> That is what I plan to do if that is nothing to do with struts.
>
> Regards
> LV
>
>
>
> ________________________________
> From: Alex Siman <aleksandr.siman@(protected)>
> To: user@(protected)
> Sent: Thu, December 10, 2009 4:54:26 PM
> Subject: Re: [S2] i18n not using default bundle
>
>
> The trick is simple:
> create an empty file:
> global-message_zh_CN.properties
>
> This is not Struts 2 problem, but Java ResourceBundle's.
> You can read more here:
> http://old.nabble.com/Struts2-%2B--I18N-td24973817.html#a24978732
>
> mailtolouis2020-struts@(protected):
> >
> > Hello,
> >
> > I got a doubt on struts 2 i18n. I'm using S2. 2.1.8.1.
> >
> > I got 2 properties in my application:
> > global-message.properties (store Chinese Language)
> > global-message_en.properties (store English Language)
> >
> > When I run my application, and set my browser language to Chinese
> (zh-CN),
> > I expect when there is no global-message_zh_CN.properties file, struts
> > should use the default global-message.properties file, but it is not, it
> > use global-message_en.properties.
> >
> > If I remove some key in the global-message_en.properties, then it is look
> > for global-message.properties file, that is expected.
> >
> >
> > So could someone tell me is this a bug, or that's the way the design is
> or
> > some setting I need to do?
> >
> >
> >
> >
> >
> > Regards
> > LV
> >
>
> --
> View this message in context:
> http://old.nabble.com/-S2--i18n-not-using-default-bundle-tp26727458p26730713.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)
>
--
Saeed Iqbal
Independant Consultant
J2EE - Application Architect / Developer

Attachment:
user_204196.ezm (zipped)yes, I did have
<constant name="struts.custom.i18n.resources" value="resources.global-message"/>
so to make it work, what I do now is in my resources folder, I'll have global-message.properties, global-message_en.properties and global-message_zh_CN.properties (an empty file)
________________________________
From: Saeed Iqbal <saeedcs@(protected)>
To: Struts Users Mailing List <user@(protected)>
Sent: Fri, December 11, 2009 5:41:44 AM
Subject: Re: [S2] i18n not using default bundle
why dont you just use this
struts.custom.i18n.resources=package
and put your CN file name in there.
On Thu, Dec 10, 2009 at 10:31 PM, <mailtolouis2020-struts@(protected):
> Thanks.
>
> That is what I plan to do if that is nothing to do with struts.
>
> Regards
> LV
>
>
>
> ________________________________
> From: Alex Siman <aleksandr.siman@(protected)>
> To: user@(protected)
> Sent: Thu, December 10, 2009 4:54:26 PM
> Subject: Re: [S2] i18n not using default bundle
>
>
> The trick is simple:
> create an empty file:
> global-message_zh_CN.properties
>
> This is not Struts 2 problem, but Java ResourceBundle's.
> You can read more here:
> http://old.nabble.com/Struts2-%2B--I18N-td24973817.html#a24978732
>
> mailtolouis2020-struts@(protected):
> >
> > Hello,
> >
> > I got a doubt on struts 2 i18n. I'm using S2. 2.1.8.1.
> >
> > I got 2 properties in my application:
> > global-message.properties (store Chinese Language)
> > global-message_en.properties (store English Language)
> >
> > When I run my application, and set my browser language to Chinese
> (zh-CN),
> > I expect when there is no global-message_zh_CN.properties file, struts
> > should use the default global-message.properties file, but it is not, it
> > use global-message_en.properties.
> >
> > If I remove some key in the global-message_en.properties, then it is look
> > for global-message.properties file, that is expected.
> >
> >
> > So could someone tell me is this a bug, or that's the way the design is
> or
> > some setting I need to do?
> >
> >
> >
> >
> >
> > Regards
> > LV
> >
>
> --
> View this message in context:
> http://old.nabble.com/-S2--i18n-not-using-default-bundle-tp26727458p26730713.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)
>
--
Saeed Iqbal
Independant Consultant
J2EE - Application Architect / Developer

Attachment:
user_204197.ezm (zipped)Why dont you just give it the value global-message_zh_CN
On Fri, Dec 11, 2009 at 2:44 PM, <mailtolouis2020-struts@(protected):
> yes, I did have
> <constant name="struts.custom.i18n.resources"
> value="resources.global-message"/>
>
> so to make it work, what I do now is in my resources folder, I'll have
> global-message.properties, global-message_en.properties and
> global-message_zh_CN.properties (an empty file)
>
>
>
>
> ________________________________
> From: Saeed Iqbal <saeedcs@(protected)>
> To: Struts Users Mailing List <user@(protected)>
> Sent: Fri, December 11, 2009 5:41:44 AM
> Subject: Re: [S2] i18n not using default bundle
>
> why dont you just use this
>
> struts.custom.i18n.resources=package
>
> and put your CN file name in there.
>
> On Thu, Dec 10, 2009 at 10:31 PM, <mailtolouis2020-struts@(protected)>
> wrote:
>
> > Thanks.
> >
> > That is what I plan to do if that is nothing to do with struts.
> >
> > Regards
> > LV
> >
> >
> >
> > ________________________________
> > From: Alex Siman <aleksandr.siman@(protected)>
> > To: user@(protected)
> > Sent: Thu, December 10, 2009 4:54:26 PM
> > Subject: Re: [S2] i18n not using default bundle
> >
> >
> > The trick is simple:
> > create an empty file:
> > global-message_zh_CN.properties
> >
> > This is not Struts 2 problem, but Java ResourceBundle's.
> > You can read more here:
> > http://old.nabble.com/Struts2-%2B--I18N-td24973817.html#a24978732
> >
> > mailtolouis2020-struts@(protected):
> > >
> > > Hello,
> > >
> > > I got a doubt on struts 2 i18n. I'm using S2. 2.1.8.1.
> > >
> > > I got 2 properties in my application:
> > > global-message.properties (store Chinese Language)
> > > global-message_en.properties (store English Language)
> > >
> > > When I run my application, and set my browser language to Chinese
> > (zh-CN),
> > > I expect when there is no global-message_zh_CN.properties file, struts
> > > should use the default global-message.properties file, but it is not,
> it
> > > use global-message_en.properties.
> > >
> > > If I remove some key in the global-message_en.properties, then it is
> look
> > > for global-message.properties file, that is expected.
> > >
> > >
> > > So could someone tell me is this a bug, or that's the way the design is
> > or
> > > some setting I need to do?
> > >
> > >
> > >
> > >
> > >
> > > Regards
> > > LV
> > >
> >
> > --
> > View this message in context:
> >
> http://old.nabble.com/-S2--i18n-not-using-default-bundle-tp26727458p26730713.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)
> >
>
>
>
> --
> Saeed Iqbal
> Independant Consultant
> J2EE - Application Architect / Developer
>
--
Saeed Iqbal
Independant Consultant
J2EE - Application Architect / Developer

Attachment:
user_204198.ezm (zipped)no need to put resources.
On Fri, Dec 11, 2009 at 2:45 PM, Saeed Iqbal <saeedcs@(protected):
> Why dont you just give it the value global-message_zh_CN
>
>
> On Fri, Dec 11, 2009 at 2:44 PM, <mailtolouis2020-struts@(protected):
>
>> yes, I did have
>> <constant name="struts.custom.i18n.resources"
>> value="resources.global-message"/>
>>
>> so to make it work, what I do now is in my resources folder, I'll have
>> global-message.properties, global-message_en.properties and
>> global-message_zh_CN.properties (an empty file)
>>
>>
>>
>>
>> ________________________________
>> From: Saeed Iqbal <saeedcs@(protected)>
>> To: Struts Users Mailing List <user@(protected)>
>> Sent: Fri, December 11, 2009 5:41:44 AM
>> Subject: Re: [S2] i18n not using default bundle
>>
>> why dont you just use this
>>
>> struts.custom.i18n.resources=package
>>
>> and put your CN file name in there.
>>
>> On Thu, Dec 10, 2009 at 10:31 PM, <mailtolouis2020-struts@(protected)>
>> wrote:
>>
>> > Thanks.
>> >
>> > That is what I plan to do if that is nothing to do with struts.
>> >
>> > Regards
>> > LV
>> >
>> >
>> >
>> > ________________________________
>> > From: Alex Siman <aleksandr.siman@(protected)>
>> > To: user@(protected)
>> > Sent: Thu, December 10, 2009 4:54:26 PM
>> > Subject: Re: [S2] i18n not using default bundle
>> >
>> >
>> > The trick is simple:
>> > create an empty file:
>> > global-message_zh_CN.properties
>> >
>> > This is not Struts 2 problem, but Java ResourceBundle's.
>> > You can read more here:
>> > http://old.nabble.com/Struts2-%2B--I18N-td24973817.html#a24978732
>> >
>> > mailtolouis2020-struts@(protected):
>> > >
>> > > Hello,
>> > >
>> > > I got a doubt on struts 2 i18n. I'm using S2. 2.1.8.1.
>> > >
>> > > I got 2 properties in my application:
>> > > global-message.properties (store Chinese Language)
>> > > global-message_en.properties (store English Language)
>> > >
>> > > When I run my application, and set my browser language to Chinese
>> > (zh-CN),
>> > > I expect when there is no global-message_zh_CN.properties file, struts
>> > > should use the default global-message.properties file, but it is not,
>> it
>> > > use global-message_en.properties.
>> > >
>> > > If I remove some key in the global-message_en.properties, then it is
>> look
>> > > for global-message.properties file, that is expected.
>> > >
>> > >
>> > > So could someone tell me is this a bug, or that's the way the design
>> is
>> > or
>> > > some setting I need to do?
>> > >
>> > >
>> > >
>> > >
>> > >
>> > > Regards
>> > > LV
>> > >
>> >
>> > --
>> > View this message in context:
>> >
>> http://old.nabble.com/-S2--i18n-not-using-default-bundle-tp26727458p26730713.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)
>> >
>>
>>
>>
>> --
>> Saeed Iqbal
>> Independant Consultant
>> J2EE - Application Architect / Developer
>>
>
>
>
> --
> Saeed Iqbal
> Independant Consultant
> J2EE - Application Architect / Developer
>
>
--
Saeed Iqbal
Independant Consultant
J2EE - Application Architect / Developer

Attachment:
user_204200.ezm (zipped)I think that is not how the resource bundle work, it is better always set the value without the language suffix
resources is just a folder name where I store my properties file.
________________________________
From: Saeed Iqbal <saeedcs@(protected)>
To: Struts Users Mailing List <user@(protected)>
Sent: Fri, December 11, 2009 9:47:15 AM
Subject: Re: [S2] i18n not using default bundle
no need to put resources.
On Fri, Dec 11, 2009 at 2:45 PM, Saeed Iqbal <saeedcs@(protected):
> Why dont you just give it the value global-message_zh_CN
>
>
> On Fri, Dec 11, 2009 at 2:44 PM, <mailtolouis2020-struts@(protected):
>
>> yes, I did have
>> <constant name="struts.custom.i18n.resources"
>> value="resources.global-message"/>
>>
>> so to make it work, what I do now is in my resources folder, I'll have
>> global-message.properties, global-message_en.properties and
>> global-message_zh_CN.properties (an empty file)
>>
>>
>>
>>
>> ________________________________
>> From: Saeed Iqbal <saeedcs@(protected)>
>> To: Struts Users Mailing List <user@(protected)>
>> Sent: Fri, December 11, 2009 5:41:44 AM
>> Subject: Re: [S2] i18n not using default bundle
>>
>> why dont you just use this
>>
>> struts.custom.i18n.resources=package
>>
>> and put your CN file name in there.
>>
>> On Thu, Dec 10, 2009 at 10:31 PM, <mailtolouis2020-struts@(protected)>
>> wrote:
>>
>> > Thanks.
>> >
>> > That is what I plan to do if that is nothing to do with struts.
>> >
>> > Regards
>> > LV
>> >
>> >
>> >
>> > ________________________________
>> > From: Alex Siman <aleksandr.siman@(protected)>
>> > To: user@(protected)
>> > Sent: Thu, December 10, 2009 4:54:26 PM
>> > Subject: Re: [S2] i18n not using default bundle
>> >
>> >
>> > The trick is simple:
>> > create an empty file:
>> > global-message_zh_CN.properties
>> >
>> > This is not Struts 2 problem, but Java ResourceBundle's.
>> > You can read more here:
>> > http://old.nabble.com/Struts2-%2B--I18N-td24973817.html#a24978732
>> >
>> > mailtolouis2020-struts@(protected):
>> > >
>> > > Hello,
>> > >
>> > > I got a doubt on struts 2 i18n. I'm using S2. 2.1.8.1.
>> > >
>> > > I got 2 properties in my application:
>> > > global-message.properties (store Chinese Language)
>> > > global-message_en.properties (store English Language)
>> > >
>> > > When I run my application, and set my browser language to Chinese
>> > (zh-CN),
>> > > I expect when there is no global-message_zh_CN.properties file, struts
>> > > should use the default global-message.properties file, but it is not,
>> it
>> > > use global-message_en.properties.
>> > >
>> > > If I remove some key in the global-message_en.properties, then it is
>> look
>> > > for global-message.properties file, that is expected.
>> > >
>> > >
>> > > So could someone tell me is this a bug, or that's the way the design
>> is
>> > or
>> > > some setting I need to do?
>> > >
>> > >
>> > >
>> > >
>> > >
>> > > Regards
>> > > LV
>> > >
>> >
>> > --
>> > View this message in context:
>> >
>> http://old.nabble.com/-S2--i18n-not-using-default-bundle-tp26727458p26730713.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)
>> >
>>
>>
>>
>> --
>> Saeed Iqbal
>> Independant Consultant
>> J2EE - Application Architect / Developer
>>
>
>
>
> --
> Saeed Iqbal
> Independant Consultant
> J2EE - Application Architect / Developer
>
>
--
Saeed Iqbal
Independant Consultant
J2EE - Application Architect / Developer

Attachment:
user_204201.ezm (zipped)On Today at 2:47pm, SI=>Saeed Iqbal <saeedcs@(protected):
SI> no need to put resources.
SI>
SI> On Fri, Dec 11, 2009 at 2:45 PM, Saeed Iqbal <saeedcs@(protected):
SI>
SI> > Why dont you just give it the value global-message_zh_CN
SI> >
Saeed,
Slow down a little bit. The original poster got his answer already. An
empty global-message_zh_CN.properties file did the truck. FWIW, there is
no problem with putting .properties files in a deeper package (in this
case "resources").
Cheers,
--
Haroon Rafique
<haroon.rafique@(protected)>

Attachment:
user_204202.ezm (zipped)Sorry Sir.
On Fri, Dec 11, 2009 at 5:47 PM, Haroon Rafique
<haroon.rafique@(protected):
> On Today at 2:47pm, SI=>Saeed Iqbal <saeedcs@(protected):
>
> SI> no need to put resources.
> SI>
> SI> On Fri, Dec 11, 2009 at 2:45 PM, Saeed Iqbal <saeedcs@(protected)>
> wrote:
> SI>
> SI> > Why dont you just give it the value global-message_zh_CN
> SI> >
>
> Saeed,
>
> Slow down a little bit. The original poster got his answer already. An
> empty global-message_zh_CN.properties file did the truck. FWIW, there is
> no problem with putting .properties files in a deeper package (in this
> case "resources").
>
> Cheers,
> --
> Haroon Rafique
> <haroon.rafique@(protected)>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Saeed Iqbal
Independant Consultant
J2EE - Application Architect / Developer

Attachment:
user_204192.ezm (zipped)2009/12/11 Nguyen Xuan Son <yamacom@(protected)>:
> can you tell me more in detail?
> thank you very much
You're probably accessing your application like that
http://localhost:8080/myapp/index.jsp
And in such case, action isn't executed. Try to create action that
will have execute() method and will return SUCCESS and the result will
the index.jsp, then you access your application in that way
http://localhost:8080/myapp/index.action
It's a good practice in Struts not to access jsp (or other) pages
directly, all the time define actions and the forward to jsp
Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_204193.ezm (zipped)Or index only instead of index.action
On Fri, Dec 11, 2009 at 12:06 PM, Lukasz Lenart <
lukasz.lenart@(protected):
> 2009/12/11 Nguyen Xuan Son <yamacom@(protected)>:
> > can you tell me more in detail?
> > thank you very much
>
> You're probably accessing your application like that
> http://localhost:8080/myapp/index.jsp
>
> And in such case, action isn't executed. Try to create action that
> will have execute() method and will return SUCCESS and the result will
> the index.jsp, then you access your application in that way
> http://localhost:8080/myapp/index.action
>
> It's a good practice in Struts not to access jsp (or other) pages
> directly, all the time define actions and the forward to jsp
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Saeed Iqbal
Independant Consultant
J2EE - Application Architect / Developer

Attachment:
user_204194.ezm (zipped)Nice work! I also have integrated jqGrid into a struts taglib
http://code.google.com/p/antilia-struts
but have followed a different approach. Configuration is done at the server
side...
http://code.google.com/p/antilia-struts/wiki/SearchPage
Best,
Ernesto
On Thu, Dec 10, 2009 at 6:51 PM, Johannes Geppert <jogep@(protected):
>
> Since today the struts2 jQuery Plugin brings a grid tag based on jQuery
> Grid
> Plugin to you.
>
> http://code.google.com/p/struts2-jquery/wiki/GridTag
>
> You can find various samples in the Showcase
> http://www.weinfreund.de/struts2-jquery-showcase/
>
> Best Regards
>
> Johannes Geppert
>
>
> jvsrvcs wrote:
> >
> > We need to pull a large amount of data from a database and display in a
> > table.
> >
> > We would like, on click of a hyperlink for a submission to happen to go
> to
> > the server to fetch the next set of data that has been either cached or
> > to query the db.
> >
> > I am sure someone has done this before as it is quite a common use case.
> >
> > We need the following features:
> > - an html table with grid (a jsp tag if there is one)
> > - headers (html, different color backround) - nothing new here
> > - clickable headers that will sort the list ascending, descending
> > - pagination
> > - 1, 2 <= Each number is a hyperlink
> > - Next 10 of <total> <= is a hyperlink
> > - Last <= is also a hyperlink
> >
> > Is there a way to do this using some built-in struts2 feature or
> tag?
> >
> > If not, is there another plugin to struts2 that can provide this?
> > ----
> >
>
>
> -----
> ---
> web: http://www.jgeppert.com
> twitter: http://twitter.com/jogep
>
> --
> View this message in context:
> http://old.nabble.com/How-to-display-a-table-%28data-grid%29-using-Struts2---Is-there-a-tag--tp26712342p26731706.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_204195.ezm (zipped)
Maybe just use Struts 2 Convention plugin? It will allow you to reuse Java
constants in Struts 2 and GWT code.
package gwtapp.server.action;
import static gwtapp.client.consts.StrutsLocations;
@Results({
@Result(
name = Action.SUCCESS,
location = REGISTRATION_CONFIRMATION
)
})
class RegistrationAction {...}
package gwtapp.client.consts;
class StrutsLocations {
public static final String REGISTRATION_CONFIRMATION =
"/jsp/registration_confirmation.jsp";
}
package gwtapp.client.widget;
import static gwtapp.client.consts.StrutsLocations;
class SomeWidget {
String nextStrutsLocation = REGISTRATION_CONFIRMATION;
}
Zheng, Hong wrote:
>
> Hi all,
>
> I have been struggling with this problem for a few months now. I am
> using GWT with Struts 2 on my website. Following is the configuration
> for the registration page:
>
> <action name="register" class="com....RegistrationAction">
> <result name="input">/jsp/registration.jsp</result>
> <result
> name="success">/jsp/registration_confirmation.jsp</result>
> </action>
>
> registration.jsp contains a form coded using GWT. After
> RegistrationAction receives and processes data from the form, it sends
> back a JSON string. If everything is good, JSON will contain a
> "redirect" property that points to "/jsp/registration_confirmation.jsp".
> When GWT codes sees this "redirect" property in returned JSON, it will
> redirect browser to the new page accordingly.
>
> The issue here is that I don't want to hard-code
> "/jsp/registration_confirmation.jsp" again in my RegistrationAction
> class, because I already defined that in struts.xml and that's where it
> should be defined. Yet, I still need to pass that URL to GWT for
> redirection. Is there a way in Struts 2 that would translate a result
> name("success") to the corresponding result
> value("/jsp/registration_confirmation.jsp")?
>
> Many thanks!
> Hong Zheng
>
> P.S. I am aware that one solution would be to define another Action,
> such as RegistrationConfirmationAction. But that's not really a very
> elegant solution.
>
> ---------------------------------------------------------------------
> 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_204199.ezm (zipped)
Musachy Barroso wrote:
>
> If they are in the same package that should work, all I can advise is
> to put a breakpoint in ConventionUnknownHandler, line 301 and see what
> is going on.
>
Hi Musachy
At line 301 if (result == null && resultCode != null) result is an instance
of ServletDispatcherResult with a location attribute of
/WEB-INF/content/foo.jsp and resultCode is a string with value "bar". The
comparison fails and jumps to line 317 returning /WEB-INF/content/foo.jsp
Regards
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_204205.ezm (zipped)So it is finding a jsp that it think it is the result, that's why it
is not doing the forward.
On Fri, Dec 11, 2009 at 1:48 AM, RogerV <roger.varley@(protected):
>
>
>
> Musachy Barroso wrote:
>>
>> If they are in the same package that should work, all I can advise is
>> to put a breakpoint in ConventionUnknownHandler, line 301 and see what
>> is going on.
>>
>
> Hi Musachy
>
> At line 301 if (result == null && resultCode != null) result is an instance
> of ServletDispatcherResult with a location attribute of
> /WEB-INF/content/foo.jsp and resultCode is a string with value "bar". The
> comparison fails and jumps to line 317 returning /WEB-INF/content/foo.jsp
>
> Regards
>
> --
> View this message in context: http://old.nabble.com/Convention-Plugin---Action-Chaining-tp26728788p26741424.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_204203.ezm (zipped)
Hi
I'm displaying a list of objects that allows the user to edit any/all
entities in the list. How do I configure the validation framework
(preferably via annotation) so that when the list is submitted back into my
action, each entity is individually validated.
Regards
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_204204.ezm (zipped)dear all
im using the displaytag
however, after i add the screen.css into my jsp webpage
all the other HTML tag is effected
everything went wrong
do you have any suggestion?
thank you very much
--
=======================================================================
Ritsumeikan University, Asia JinZai Project
Master of Information Science
Nguyen Xuan Son
Add : Japan, Shiga-Ken, Kusatsu-Shi, Kasayama 3choume 1-18 ShiteiHaimu
Rien, Room 103
Tel/Fax : 81-(0)90-3976 2246
Email : nr0003xx@(protected)
Mobile : 81-(0)90-3976 2246 URL : http://www.ritsumei.jp
=======================================================================

Attachment:
user_204206.ezm (zipped)Give your displaytag a class of it's own (something like "displaytag"), then
prefix all your css entries with ".displaytag" so that they only act on
elements within the DisplayTag.
(*Chris*)
On Fri, Dec 11, 2009 at 5:16 AM, Nguyen Xuan Son <nr0003xx@(protected)
> wrote:
> dear all
> im using the displaytag
> however, after i add the screen.css into my jsp webpage
> all the other HTML tag is effected
> everything went wrong
> do you have any suggestion?
> thank you very much
>
> --
> =======================================================================
> Ritsumeikan University, Asia JinZai Project
> Master of Information Science
> Nguyen Xuan Son
>
> Add : Japan, Shiga-Ken, Kusatsu-Shi, Kasayama 3choume 1-18
> ShiteiHaimu
> Rien, Room 103
> Tel/Fax : 81-(0)90-3976 2246
> Email : nr0003xx@(protected)
> Mobile : 81-(0)90-3976 2246 URL : http://www.ritsumei.jp
> =======================================================================
>