Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

user Digest 26 Jul 2009 23:08:53 -0000 Issue 8770

user-digest-help

2009-07-26


Author LoginPost Reply

user Digest 26 Jul 2009 23:08:53 -0000 Issue 8770

Topics (messages 201083 through 201098):

Re: using 'method' in action mapping
 201083 by: Dave Newton

Re: Is this how convention plugin mapping works?
 201084 by: Dave Newton

DebuggingInterceptor debug=console ?
 201085 by: Dale Newfield
 201086 by: Musachy Barroso
 201087 by: Musomesa.aol.com

Data loading problem in select tag using ajax in struts2
 201088 by: sam.raghav
 201090 by: Dave Newton

Re: s2 and default locale/language
 201089 by: Marsman

OGNL?
 201091 by: Dale Newfield

Multi input tag?
 201092 by: Lee Clemens
 201093 by: Martin Gainty
 201097 by: Lee Clemens

Struts vs Other competitors
 201094 by: Ricardo Ramos
 201095 by: Musachy Barroso
 201096 by: Martin Gainty

Struts2Builder 0.2.0 has been released
 201098 by: Thomas Sattler

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_201083.ezm (zipped)
Bhaarat Sharma wrote:
> If I have a mapping like the following
>      <action name="selectionPage" class="ReportSelection"
> method="passBy">
>         <result>/reports/moneyowed/selectionpage.jsp</result>
>      </action>
>
> the passBy method is doing nothing but returning SUCCESS
>
> When the above action mapping is ran and the jsp page consists something
> like <s:property value"%{value}"/> will the value show??

If there's a publicly-accessible "value" property, sure.

> will providing attribute method in the actionmapping cause it to not have
> access to public methods in the actionclass?

No.

Dave


Attachment: user_201084.ezm (zipped)
Jim Collings wrote:
> OK, so what you are saying then, is that if the my-action-success.jsp
> file exists, it will be the one selected and if it does not, then the
> myaction.jsp will be the one selected. So that if they both exist,
> then expect my-action-success.jsp to be the result.

Yes--it will default to using a view file with the result value
appended, if one exists.

Dave


Attachment: user_201085.ezm (zipped)
I'd never tried to use this interceptor before today. I'm having
difficulty getting debug=console mode to work, as it opens a pop-up
window pointed at .../struts/webconsole.html which then results in an
exception:

"There is no Action mapped for action name struts/webconsole"

I see that in the struts core jar there's a file named
'org/apache/struts2/interceptor/debugging/webconsole.html', which I
assume should be returned by that request, but I am using the extension
.html, so it makes sense for it to be looking for an action mapping instead.

Is there a standard workaround for this issue?

-Dale


Attachment: user_201086.ezm (zipped)
you could create an action mapping for it, it is less than ideal but
it should work.

musachy

On Fri, Jul 24, 2009 at 4:49 PM, Dale Newfield<dale@(protected):
> I'd never tried to use this interceptor before today.  I'm having difficulty
> getting debug=console mode to work, as it opens a pop-up window pointed at
> .../struts/webconsole.html which then results in an exception:
>
> "There is no Action mapped for action name struts/webconsole"
>
> I see that in the struts core jar there's a file named
> 'org/apache/struts2/interceptor/debugging/webconsole.html', which I assume
> should be returned by that request, but I am using the extension .html, so
> it makes sense for it to be looking for an action mapping instead.
>
> Is there a standard workaround for this issue?
>
> -Dale
>
> ---------------------------------------------------------------------
> 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_201087.ezm (zipped)
I vaguely remember it working on some browsers and not on others ... I
think it was IE that did not work. Try another browser.
Chris
**************A Good Credit Score is 700 or Above. See yours in just 2 easy
steps!
(http://pr.atwola.com/promoclk/100126575x1222377105x1201454426/aol?redir=http://www.freecreditreport.com/pm/default.aspx?sc=668072&hmpgID=115&bcd
=JulystepsfooterNO115)

Attachment: user_201088.ezm (zipped)

Dear all,

I am new to struts. I have some code like this.

registration.jsp
------------------
<body onload = "doRequestGETState(' StateAction?stateBn.state= ' + '');">

</body>

registrationInput.jsp
<s:fielderror/>
<s:actionerror/>

<s:select name="regBn.stateId" list="stateList" cssStyle="width: 180px;"
title="State" tabindex="1" onchange="doRequestGETState('
StateAction?stateBn.state=' + this.value); "
listValue="stateName" listKey="stateId" value="stateBn.state" headerKey=""
headerValue="Select State"/>

<s:select name="regBn.city" list="cityList" cssStyle="width: 180px;"
title="City" tabindex="1"
listValue="cityName" listKey="cityId" headerKey="" headerValue="Select City"
/>


struts.xml
--------------
<action name="StateAction" class="com.iMovers.res.action.StateAction">
<result name="success">/registrationInput.jsp</result>
</action>

<action name="RegistrationAction"
class="com.iMovers.res.action.RegistrationAction">
<result name="input">/registrationInput.jsp</result>
</action>


Problem is on validating registrationInput.jsp and coming back to
registrationInput.jsp I am getting error

"The requested list key 'stateList' could not be resolved as a
collection/array/map/enumeration/iterator type."

If I will change the result name from registrationInput.jsp to
registration.jsp then I can not display error message.

Please let me know If there is any way to come out of it.

Thanks and regards
--
Sent from the Struts - User mailing list archive at Nabble.com.



Attachment: user_201090.ezm (zipped)
Same answer I gave you on JavaRanch.

Dave

sam.raghav wrote:
> Dear all,
>
> I am new to struts. I have some code like this.
>
> registration.jsp
> ------------------
> <body onload = "doRequestGETState(' StateAction?stateBn.state= ' + '');">
>
> </body>
>
> registrationInput.jsp
> <s:fielderror/>
> <s:actionerror/>
>
> <s:select name="regBn.stateId" list="stateList" cssStyle="width: 180px;"
> title="State" tabindex="1" onchange="doRequestGETState('
> StateAction?stateBn.state=' + this.value); "
> listValue="stateName" listKey="stateId" value="stateBn.state" headerKey=""
> headerValue="Select State"/>
>
> <s:select name="regBn.city" list="cityList" cssStyle="width: 180px;"
> title="City" tabindex="1"
> listValue="cityName" listKey="cityId" headerKey="" headerValue="Select City"
> />
>
>
> struts.xml
> --------------
> <action name="StateAction" class="com.iMovers.res.action.StateAction">
> <result name="success">/registrationInput.jsp</result>
> </action>
>
> <action name="RegistrationAction"
> class="com.iMovers.res.action.RegistrationAction">
> <result name="input">/registrationInput.jsp</result>
> </action>
>
>
> Problem is on validating registrationInput.jsp and coming back to
> registrationInput.jsp I am getting error
>
> "The requested list key 'stateList' could not be resolved as a
> collection/array/map/enumeration/iterator type."
>
> If I will change the result name from registrationInput.jsp to
> registration.jsp then I can not display error message.
>
> Please let me know If there is any way to come out of it.
>
> Thanks and regards


Attachment: user_201089.ezm (zipped)


No, I've removed this property and got the same behaviour. Even when I set
this Struts configuration property to "en_US", the german language
properties file has been taken! Only after setting Tomcat to "en_US"
everything works as aspected...


<constant name="struts.locale" value="en_US" />


Is it possible you have the locale configured in your struts.xml like this
--

<constant name="struts.locale" value="de_De" />

If so, you're properties files will not change based on locale.


--- In struts@(protected):
>
>
>
> Hi!
>
> meanwhile I've found something interresting: My application is running on
> Apache Tomcat. When I set the
> "-Duser.language=en -Duser.region=US" for Tomcat, Struts doesn't use de as
> default language anymore.
>
>

--
Sent from the Struts - User mailing list archive at Nabble.com.



Attachment: user_201091.ezm (zipped)
Anyone ever fight this? I worked around it, but it sure seems annoying:

'Foo' + 1 => 'Foo1'
1+1 => 2
'Foo' + (1 + 1) => 'Foo11'

As a friend described it: "parentheseis are priority... but only for
the calculation, not the type."

-Dale


Attachment: user_201092.ezm (zipped)
Is there a tag in Struts 2.1.x where a user can enter a text value and have
it added to a multiple text value field?

This would be similar to a combobox, but allow for free-text entries to be
made rather than multi-selecting values that are pre-populated.




Attachment: user_201093.ezm (zipped)

can you define the

inputtags you would expect
containing object:..list?..collection?..array?
outputtag which would receive the processed list..collection..array from inputtag

thanks,
Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> From: java@(protected)
> To: user@(protected)
> Subject: Multi input tag?
> Date: Sat, 25 Jul 2009 20:07:14 -0400
>
> Is there a tag in Struts 2.1.x where a user can enter a text value and have
> it added to a multiple text value field?
>
> This would be similar to a combobox, but allow for free-text entries to be
> made rather than multi-selecting values that are pre-populated.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>

_________________________________________________________________
Bing™ brings you maps, menus, and reviews organized in one place. Try it now.
http://www.bing.com/search?q=restaurants&form=MLOGEN&publ=WLHMTAG&crea=TXT_MLOGEN_Local_Local_Restaurants_1x1

Attachment: user_201097.ezm (zipped)
- select multiple could be populated from a collection/list
- user input similar to text field, and when entered, it is added as an
option of the select tag
- double clicking an option removes value
- each value present as an option when submitted is received as a
collection/list


-----Original Message-----
From: Martin Gainty [mailto:mgainty@(protected)]
Sent: Saturday, July 25, 2009 8:47 PM
To: Struts Users Mailing List
Subject: RE: Multi input tag?


can you define the

inputtags you would expect
containing object:..list?..collection?..array?
outputtag which would receive the processed list..collection..array from
inputtag

thanks,
Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
dient lediglich dem Austausch von Informationen und entfaltet keine
rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
destinataire prévu, nous te demandons avec bonté que pour satisfaire
informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
de ceci est interdite. Ce message sert à l'information seulement et n'aura
pas n'importe quel effet légalement obligatoire. Étant donné que les email
peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
aucune responsabilité pour le contenu fourni.




> From: java@(protected)
> To: user@(protected)
> Subject: Multi input tag?
> Date: Sat, 25 Jul 2009 20:07:14 -0400
>
> Is there a tag in Struts 2.1.x where a user can enter a text value and
have
> it added to a multiple text value field?
>
> This would be similar to a combobox, but allow for free-text entries to be
> made rather than multi-selecting values that are pre-populated.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>

_________________________________________________________________
Bing™ brings you maps, menus, and reviews organized in one place. Try it
now.
http://www.bing.com/search?q=restaurants&form=MLOGEN&publ=WLHMTAG&crea=TXT_M
LOGEN_Local_Local_Restaurants_1x1




Attachment: user_201094.ezm (zipped)
Hi!

Can you guys point me to some literature debating Struts 1 vs. Struts 2 vs.
Asp.NET vs. JSF vs. etc..?

The project on which I'm working on currently uses Struts 1 (+ Spring and
Hibernate). Although I don't foresee a migration happening for the following
years, it would be very interesting to make an analysis of all the
state-of-art options. For this to happen, I really needed to find and read
some high-authority text to provide me the base for this analysis.

Any suggestions?

Best regards,

RR

Attachment: user_201095.ezm (zipped)
dig around Matt Raible's blog/presentations, he has plenty of stuff
related to that.

musachy

On Sat, Jul 25, 2009 at 10:19 PM, Ricardo
Ramos<battery.in.your.leg@(protected):
> Hi!
>
> Can you guys point me to some literature debating Struts 1 vs. Struts 2  vs.
> Asp.NET vs. JSF vs. etc..?
>
> The project on which I'm working on currently uses Struts 1 (+ Spring and
> Hibernate). Although I don't foresee a migration happening for the following
> years, it would be very interesting to make an analysis of all the
> state-of-art options. For this to happen, I really needed to find and read
> some high-authority text to provide me the base for this analysis.
>
> Any suggestions?
>
> Best regards,
>
> RR
>



--
"Hey you! Would you help me to carry the stone?" Pink Floyd


Attachment: user_201096.ezm (zipped)

Raible rated Struts as "poor support"

support in JSF is based on implementing container: e.g. glassfish users group or tomcat users group..
usually all questions are answered in TC but not so with GF
Struts is Front Controller based ..basically one event/one request
JSF is Page Controller n events are parsed from one Request
In Struts navigation is tied to Action
in JSF navigation is tied to Page
http://websphere.sys-con.com/node/46516

ASP.NET is specific to Microsoft platforms which means 75% of the installed servers cannot run it

Martin Gainty
______________________________________________
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Ez az
üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy
jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának
készítése nem megengedett. Ez az üzenet csak ismeret cserét szolgál és
semmiféle jogi alkalmazhatósága sincs. Mivel az electronikus üzenetek
könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet
ezen üzenet tartalma miatt.

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Sat, 25 Jul 2009 22:31:18 -0700
> Subject: Re: Struts vs Other competitors
> From: musachy@(protected)
> To: user@(protected)
>
> dig around Matt Raible's blog/presentations, he has plenty of stuff
> related to that.
>
> musachy
>
> On Sat, Jul 25, 2009 at 10:19 PM, Ricardo
> Ramos<battery.in.your.leg@(protected):
> > Hi!
> >
> > Can you guys point me to some literature debating Struts 1 vs. Struts 2 vs.
> > Asp.NET vs. JSF vs. etc..?
> >
> > The project on which I'm working on currently uses Struts 1 (+ Spring and
> > Hibernate). Although I don't foresee a migration happening for the following
> > years, it would be very interesting to make an analysis of all the
> > state-of-art options. For this to happen, I really needed to find and read
> > some high-authority text to provide me the base for this analysis.
> >
> > Any suggestions?
> >
> > Best regards,
> >
> > RR
> >
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>

_________________________________________________________________
Windows Live™ SkyDrive™: Store, access, and share your photos. See how.
http://windowslive.com/Online/SkyDrive?ocid=TXT_TAGLM_WL_CS_SD_photos_072009

Attachment: user_201098.ezm (zipped)
Greetings all.

I have posted a new release of Struts2Builder over at SourceForge.

Struts2Builder is a Java code generation system. It will log into an
existing Postgres or MySql database, examine the metadata, and automatically
generate a real, live, functioning Struts2 / Spring / Hibernate CRUD
(Create, Read, Update, Delete) system for every table in that database, as
well as automatically generate all the pertinent configuration files.

It is intended to create a baseline, which you can build upon to create your
final customized application.

It can be downloaded (for free, of course) at
http://struts2builder.sourceforge.net. I have provided it to the Struts
community in hope it helps everyone get their projects done faster.

Here are the changes for this release:

1) The system now recognizes foreign keys, and generates the Hibernate code
necessary to build the complex hierarchy of objects based on those foreign
keys. One-to-One and One-to-Many relationships are supported; Many-to-Many
relationships are not.

2) Validation edits are now done on the Table list. All Class names must be
capitalized and unique, all Plural names must be capitalized and unique, and
each Class name must be different from its respective Plural name. These
validation edits were not done in 0.1.0.

3) All metadata is now returned by the DatabaseMetaData class, instead of
writing specific queries against the individual databases, which is how it
worked in 0.1.0. This will allow other database products to be supported
much more quickly and easily than if we had not made that change. Thanks to
Dave Newton for the suggestion.

4) The default layout of the web page is wider now. The default width of 800
pixels looks and feels cramped on a modern 1280 x 1024 monitor, so we
widened the default to 1100 pixels, giving more horizontal space to each
application.

5) The “Local Nav Bar” list, on the left side of the screen, now contains
live links for each table; you no longer have to hit “Return” from one
table's data to go back to the Main Application in order to select a
different table. Just click the link for a different table name.


All feedback on Struts2Builder is appreciated.

Currently. the project's status is set to "Alpha". I'd especially like to
hear opinions from people about whether they think it's ready to be promoted
to "Beta" status.


--Tom
©2008 gg3721.com - Jax Systems, LLC, U.S.A.