Author Login
Post Reply
user Digest 26 Aug 2010 05:21:22 -0000 Issue 9156
Topics (messages 207284 through 207312):
Re: redirect with parameter in struts
207284 by: Pawe³ Wielgus
207287 by: Robert Taylor
Re: Ajax support for Struts 2.2.1
207285 by: Johannes Geppert
207286 by: Dave Newton
207289 by: Frank W. Zammetti
207290 by: Johannes Geppert
207293 by: Dave Newton
Interceptor - Dynamically Add Result Config to Action Config
207288 by: Stephen Turner
207292 by: Martin Gainty
207294 by: Stephen Turner
207296 by: Martin Gainty
207298 by: Dave Newton
207299 by: Dale Newfield
207305 by: Stephen Turner
207306 by: Dave Newton
Re: Any way to load resources in
java.util.ResourceBundle 207291 by: akinsgre
207300 by: akinsgre
207301 by: Dale Newfield
207302 by: akinsgre
207303 by: akinsgre
ActionServlet fails to intialize
207295 by: Fernando
207304 by: Pawe³ Wielgus
Struts2 Plugins vs Mule transport
207297 by: Frans Thamura
Struts2 list problem
207307 by: aamer azeem
URL "format" advice
207308 by: akinsgre
207309 by: chris.chrismiles.org
Release Notes for Struts 2.2
207310 by: DavidZaz
207311 by: Dave Newton
207312 by: Lukasz Lenart
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_207284.ezm (zipped)Hi,
one possible way is:
return new ActionForward("/orderWrapper.do?actionTarget=VIEW_CUSTOMER", true);
inside a execute action method.
Best greetings,
Paweł Wielgus.
2010/8/24 Struts User <smtesting123@(protected)>:
> Hi,
>
> Is it possible in struts1 to include a parameter in the action redirection.
> If I have a web application say, http://www..xyz.com/welcome.do and I want
> to redirect it to http://www.xyz.com/welcomeredirect.do?cmp=company1 while
> value of "cmp" will be assigned dynamically. how can I achieve this? Any
> help or suggestion is greatly appreciated.
>
> Thanks
>

Attachment:
user_207287.ezm (zipped)Another possible way is to leverage the ActionRedirect class.
For example:
ActionRedirect redirect = new
ActionRedirect(mapping.findForward("someRedirectingForwardDef"));
redirect.addParameter("cmp", companyName);
redirect.addParameter("myOtherParameter", myOtherParameterValue);
return redirect;
The framework takes care of building the query string, encoding, etc...
/robert
----- Original Message -----
From: "Struts User" <smtesting123@(protected)>
To: <user@(protected)>
Sent: Monday, August 23, 2010 6:01 PM
Subject: redirect with parameter in struts
> Hi,
>
> Is it possible in struts1 to include a parameter in the action
> redirection.
> If I have a web application say, http://www..xyz.com/welcome.do and I want
> to redirect it to http://www.xyz.com/welcomeredirect.do?cmp=company1 while
> value of "cmp" will be assigned dynamically. how can I achieve this? Any
> help or suggestion is greatly appreciated.
>
> Thanks
>

Attachment:
user_207285.ezm (zipped)
Hello Dave,
at this point i'am not on your side.
Even in the trivial cases a taglib has a benefit.
A normal AJAX request with a simple indicator and an effect after
completing,
needs a lot of boiler plate code, which is hard to maintenance and to debug.
A taglib make your JSP cleaner and you benefit from best practices from
other users.
Johannes
Dave Newton-6 wrote:
>
> On Fri, Aug 20, 2010 at 1:39 AM, Matthew Barrett wrote:
>
>> Has anyone tried using the full Dojo within Struts, rather than just the
>> historic built in tag libraries.
>>
>
> Sure. It's just like using anything else without tag support; you use it
> as
> you would with any back end system. And personally, for all but the
> *completely* trivial cases, there's almost no advantage to using a
> tag-based
> library since you have to write the JavaScript either way.
>
> Dave
>
>
-----
---
web: http://www.jgeppert.com
twitter: http://twitter.com/jogep
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_207286.ezm (zipped)On Tue, Aug 24, 2010 at 5:55 AM, Johannes Geppert wrote:
> Even in the trivial cases a taglib has a benefit.
>
*Only* in the trivial cases.
> A normal AJAX request with a simple indicator and an effect after
> completing, needs a lot of boiler plate code, which is hard to maintenance
> and to debug.
>
There's not much boiler-plate code for that, and as with anything else, you
refactor your JavaScript. It's a function call, not embedded in the body in
keeping with good practices, etc.
And since no two apps are the same, what you need is almost certainly what I
need.
And I'm not locked in to a specific version of a specific framework.
And I could just as easily put *exactly* what I need into my *own* tag
library.
I can count on one finger the number of times an existing tag library
solution worked for me. I see almost zero benefit, except for the most
trivial use cases (as long as the tag library uses the JavaScript framework
I'm already using and does precisely what I need).
I'm not saying don't use them, I'm saying they're not that useful for me and
save me very little effort (if any), and occasionally make things *more*
work.
Dave

Attachment:
user_207289.ezm (zipped)As the creator of an AJAX taglib (As the developer of an AJAX taglb
(http://javawebparts.sourceforge.net/javadocs/javawebparts/ajaxparts/taglib/package-summary.html)
I have to say... I agree with Dave :)
There was a time (like, around the time I created the library perhaps?!?)
where I would have argued otherwise. And maybe it's true that in shops
with absolutely zero Javascript experience the tags still make some
sense... but in general, they don't really buy you anything IMO, and in
many cases will just get in your way. That's mine or anyone else' taglib.
Frank
--
Frank W. Zammetti
Author of "Practical Palm Pre webOS Projects"
and "Practical Ext JS Projects with Gears"
and "Practical Dojo Projects"
and "Practical DWR 2 Projects"
and "Practical JavaScript, DOM Scripting and Ajax Projects"
and "Practical Ajax Projects with Java Technology"
(For info: apress.com/book/search?searchterm=zammetti&act=search)
All you could possibly want is here: zammetti.com
On Tue, August 24, 2010 7:58 am, Dave Newton wrote:
> On Tue, Aug 24, 2010 at 5:55 AM, Johannes Geppert wrote:
>
>> Even in the trivial cases a taglib has a benefit.
>>
>
> *Only* in the trivial cases.
>
>
>> A normal AJAX request with a simple indicator and an effect after
>> completing, needs a lot of boiler plate code, which is hard to
>> maintenance
>> and to debug.
>>
>
> There's not much boiler-plate code for that, and as with anything else,
> you
> refactor your JavaScript. It's a function call, not embedded in the body
> in
> keeping with good practices, etc.
>
> And since no two apps are the same, what you need is almost certainly what
> I
> need.
>
> And I'm not locked in to a specific version of a specific framework.
>
> And I could just as easily put *exactly* what I need into my *own* tag
> library.
>
> I can count on one finger the number of times an existing tag library
> solution worked for me. I see almost zero benefit, except for the most
> trivial use cases (as long as the tag library uses the JavaScript
> framework
> I'm already using and does precisely what I need).
>
> I'm not saying don't use them, I'm saying they're not that useful for me
> and
> save me very little effort (if any), and occasionally make things *more*
> work.
>
> Dave
>

Attachment:
user_207290.ezm (zipped)
> *Only* in the trivial cases.
Not only, but in the most cases. I have a medium size webapp
and there I am happy I can do the whole ajax stuff and the simple widget
stuff, like tabs and datepickers with an taglib. this is much more
comfortable and to maintenance as
plain JavaScript. And JavaScript is for the most Struts2 Users not the
language of choose. ;-)
>There's not much boiler-plate code for that, and as with anything else, you
>refactor your JavaScript. It's a function call, not embedded in the body in
>keeping with good practices, etc.
Thats the point you refactor it, and after some change you
must refactor it again and again. This is a lot of stupid work.
With an taglib you are faster in your development process
>And since no two apps are the same, what you need is almost certainly what
I
>need.
The are not the same, but the basic task are mostly the same.
> And I'm not locked in to a specific version of a specific framework.
Of course you are locked in the moment you use it, or you have a
lot of refactoring after upgrade to an other framework.
>And I could just as easily put *exactly* what I need into my *own* tag
>library.
And you reinvent the wheel in every project? You can wrote your own taglib,
but not every Struts2 User can do this.
Johannes
-----
---
web: http://www.jgeppert.com
twitter: http://twitter.com/jogep
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_207293.ezm (zipped)On Tue, Aug 24, 2010 at 10:38 AM, Johannes Geppert <jogep@(protected):
> > *Only* in the trivial cases.
> Not only, but in the most cases.
>
YMMV; for me, my requirements are so different from project to project,
including requiring different underlying libraries. I have *some*
commonality, which I handle via JavaScript.
> And JavaScript is for the most Struts2 Users not the language of choose.
> ;-)
>
That's their loss, though--*any* customization requires knowing JavaScript
anyway. IMO it's more dangerous to lull users into a false sense of
complancency.
Thats the point you refactor it, and after some change you
> must refactor it again and again. This is a lot of stupid work.
> With an taglib you are faster in your development process
>
Until you're not, which for all but the most trivial usecases, is very
frequently.
> And you reinvent the wheel in every project? You can wrote your own taglib,
> but not every Struts2 User can do this.
>
Who can't write a JSP-based tag library? If they can't, they probably
shouldn't be coding in the first place.
Dave

Attachment:
user_207288.ezm (zipped)I have a Struts 2.0 interceptor that dynamically creates a result config
and adds it to the action config. It does it like this:
String newResult = "shRes";
ResultConfig cfg = new ResultConfig(newResult,
ServletRedirectResult.class.getName());
cfg.addParam("location", "SearchHelp.action?"+request.getQueryString());
actionInvocation.getProxy().getConfig().addResultConfig(cfg);
return newResult;
Now I'm upgrading to Struts 2.2 and I'm finding that this no longer
compiles due to Struts/Xwork refactoring.
I've been able to create a ResultConfig object using ResultConfig.Builder
but I can't find how to add this to the interceptor's action config /
context.
Can anyone give me a pointer?
Thanks,
Steve

Attachment:
user_207292.ezm (zipped)//reiterate 2.1.8 functionality:
com.opensymphony.xwork2.ActionInvocation action_invocation;
ActionProxy proxy=action_invocation.getProxy()
ActionConfig config =proxy.getConfig();
//where ActionConfig contains the addResultConfig method
public Builder addResultConfig(ResultConfig resultConfig) {
target.results.put(resultConfig.getName(), resultConfig);
return this;
}
//Struts 2.2 is in Alpha Stage if the functionality is absent can you file a JIRA?
https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true&mode=hide&sorter/order=DESC&sorter/field=priority&resolution=-1&pid=12311041&fixfor=12315200
While i have you on the line I got pinged for this Struts job in greater DC area (i cannot go as i have doctors appts in Mass until Oct 1)
To: mgainty@(protected)
Date: Thu, 19 Aug 2010 16:27:15 -0400
Subject: CareerBuilder: Sr Java/Struts 2.x Developer Opening!!!
CareerBuilder: Sr Java/Struts 2.x Developer Opening!!!
Hi Martin Gainty
My name is Tyrone Houston and I am a Senior IT Recruiter for CDI IT Solutions (www.cdicorp.com)
We are currently looking for a Sr Java/Struts 2.x Developer for a contract to permanent position with this Fortune 500 company.
PLEASE NO H1-Visa's or CORP2CORP!!!
Location: Columbia, MD
Hourly Rate: up to $60/hr, depending on experience
Base Salary: $95,000 to $104,000 plus benefits
Job Duties & Responsibilities: 70% developement/coding, 30% lead experience.
We are seeking a Senior Java developer with +7 years experience in web front end and services development and support in our Columbia, MD office.
The candidate should have the following skills:
- +7 years of Java Development with +5 years working on large complex systems
- Experience serving as a senior developer, architect, and technical lead
- Excellent problem solving and debugging skills
- Experience with system architecture and design
- Ability to integrate complex financial systems
- Experience with Java 5 or higher
- Experience with common Java application development related technologies - Struts 2.0, Servlets, MVC, and OO Design Patterns
Required Skills: Skills ranked in order:
1. Java 5 & 6
2. Object Oriented Design
3. Struts v2.x, Google Webtools, SPring MVC
4. Ajax
-Front End Web developement
-Worked in either the financial inducstry or worked on LARGE e-Commerce sites
- Self starter with the initiative to work with little supervision
- Ability to work both independently and within a team environment
- Ability to review, oversee, and mentor junior java developers
- Excellent written, verbal, and communication skills
- Ability to meet frequent deadlines in a fast moving environment
# of Years Required: 5+ years of Java experience in web front end and services development with 3+ years working on large complex systems.
Experience with Java 5 or higher.
Preferred Skills: - Recent financial services experience
- Experience with JDBC, SQL, JavaScript, and JSP
Work within JBoss, WebLogic, and WebSphere application server environments
INTERESTED!!!
Then please email me a MS Word version of your resume and I will contact you should your qualifications be a match for this job requirement.
Tyrone Houston
Senior IT Recruiter
CDI IT Solutions
1040 Crown Pointe Parkway
Suite 600
Atlanta, GA 30338
Direct: 770-481-4690
Toll Free: 866-210-1773 ext. 4690
tyrone.houston@(protected)
HTH,
Martin Gainty
______________________________________________
Note de déni et de confidentialité
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.
> To: user@(protected)
> Date: Tue, 24 Aug 2010 10:23:55 -0400
> Subject: Interceptor - Dynamically Add Result Config to Action Config
> From: sturner@(protected)
>
> I have a Struts 2.0 interceptor that dynamically creates a result config
> and adds it to the action config. It does it like this:
>
> String newResult = "shRes";
> ResultConfig cfg = new ResultConfig(newResult,
> ServletRedirectResult.class.getName());
> cfg.addParam("location", "SearchHelp.action?"+request.getQueryString());
>
> actionInvocation.getProxy().getConfig().addResultConfig(cfg);
>
> return newResult;
>
> Now I'm upgrading to Struts 2.2 and I'm finding that this no longer
> compiles due to Struts/Xwork refactoring.
>
> I've been able to create a ResultConfig object using ResultConfig.Builder
> but I can't find how to add this to the interceptor's action config /
> context.
>
> Can anyone give me a pointer?
>
> Thanks,
> Steve
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>

Attachment:
user_207294.ezm (zipped)On Tue, 24 Aug 2010 10:59:29 -0400, Martin Gainty <mgainty@(protected)>
wrote:
>
> //reiterate 2.1.8 functionality:
>
com.opensymphony.xwork2.ActionInvocation action_invocation;
> ActionProxy proxy=action_invocation.getProxy()
> ActionConfig config =proxy.getConfig();
> //where ActionConfig contains the addResultConfig method
> public Builder addResultConfig(ResultConfig resultConfig) {
> target.results.put(resultConfig.getName(), resultConfig);
> return this;
> }
There's my problem - ActionConfig no longer exposes addResultConfig. This
method is now in the Builder inner class and only operates on a new
ActionConfig object (as far as I can see), whereas I want to add a result
to an existing ActionConfig.
Steve
> //Struts 2.2 is in Alpha Stage if the functionality is absent can you
> file a JIRA?
Struts 2.2. is now a GA release.
Steve

Attachment:
user_207296.ezm (zipped)someone promoted 2.2 from Alpha to GA while i was working on something else ...we need to take a look at this asap
how did this bug slip between the cracks of the testcases?
thanks for catching this bug steve!
Martin
______________________________________________
Note de déni et de confidentialité
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.
> To: user@(protected)
> Subject: Re: Interceptor - Dynamically Add Result Config to Action Config
> Date: Tue, 24 Aug 2010 11:17:47 -0400
> From: sturner@(protected)
>
> On Tue, 24 Aug 2010 10:59:29 -0400, Martin Gainty <mgainty@(protected)>
> wrote:
>
> >
> > //reiterate 2.1.8 functionality:
> >
com.opensymphony.xwork2.ActionInvocation action_invocation;
> > ActionProxy proxy=action_invocation.getProxy()
> > ActionConfig config =proxy.getConfig();
>
> > //where ActionConfig contains the addResultConfig method
> > public Builder addResultConfig(ResultConfig resultConfig) {
> > target.results.put(resultConfig.getName(), resultConfig);
> > return this;
> > }
>
> There's my problem - ActionConfig no longer exposes addResultConfig. This
> method is now in the Builder inner class and only operates on a new
> ActionConfig object (as far as I can see), whereas I want to add a result
> to an existing ActionConfig.
>
> Steve
>
>
> > //Struts 2.2 is in Alpha Stage if the functionality is absent can you
> > file a JIRA?
>
> Struts 2.2. is now a GA release.
>
> Steve

Attachment:
user_207298.ezm (zipped)On Tue, Aug 24, 2010 at 10:59 AM, Martin Gainty <mgainty@(protected):
> //Struts 2.2 is in Alpha Stage if the functionality is absent can you file
> a JIRA?
>
If by "alpha" you mean "has a 2.2.1 point GA release", sure.
Dave

Attachment:
user_207299.ezm (zipped)The execAndWait interceptor used to do something like this for the
"wait" result--I'd look there for how it works around the change
requiring these be immutable.
-Dale

Attachment:
user_207305.ezm (zipped)On Tue, 24 Aug 2010 12:44:36 -0400, Dale Newfield <dale@(protected)>
wrote:
> The execAndWait interceptor used to do something like this for the
> "wait" result--I'd look there for how it works around the change
> requiring these be immutable.
>
> -Dale
Thanks Dale - that helped me figure it out.
We can no longer alter the config inside an interceptor; this is a feature
(see WW-3068).
What I now do in my case (I was inserting a redirect result into the
config) is inject the redirect result into the container:
ServletRedirectResult srd = new ServletRedirectResult();
container.inject(srd);
srd.setLocation("SearchHelp.action?"+request.getQueryString());
srd.setPrependServletContext(true);
srd.execute(actionInvocation);
return Action.NONE;
This is similar to the injection of the FreeMarkerResult in execAndWait.
Thanks,
Steve
--
Stephen Turner
Senior Programmer/Analyst - MIT IS&T

Attachment:
user_207306.ezm (zipped)On Tue, Aug 24, 2010 at 11:34 AM, Martin Gainty <mgainty@(protected):
> someone promoted 2.2 from Alpha to GA while i was working on something else
> ...we need to take a look at this asap how did this bug slip between the
> cracks of the testcases?
>
What makes you think it's a bug? "Someone" promoted from alpha?! While you
were working on something else? Are you a committer now?
Dave

Attachment:
user_207291.ezm (zipped)
OK.. I dropped off this thread because some other fires sprang up at work..
but here I am back where I was a month ago.
struts.xml
<constant name="struts.custom.i18n.resources"
value="com.fiserv.sourceone.ribs.common.bundles.DbResourceBundle" />
index.jsp
<s:text name="FS_UI_ACCT_SWITCH_EN_BUTTON_GO_ACCOUNT"/>
The value of "name" is output on the page, and the DbResourceBundle class
doesn't appear to be loaded.
J_e_f_f wrote:
>
> D'oh! Yeah, that was a typo. Should say struts.xml.
>
> Could you post some relevant code snippets? Also, do you see anything in
> the logs when the application starts up?
>
> Jeff
>
>
> Greg Akins-2 wrote:
>>
>> On Fri, Jul 16, 2010 at 9:24 PM, J_e_f_f <jam0916@(protected):
>>>
>>> If you're specifying your DbResourceBundle class in the web.xml like:
>>
>> ^^^^^^^^
>>>
>>> <constant name="struts.custom.i18n.resources"
>>> value="com.insomnia.common.bundles.DbResourceBundle" />
>>>
>>
>> Was that a typo? Did you mean struts.xml? I have it in struts.xml,
>> but it doesn't seem to be getting called. Maybe it should be in
>> web.xml .. in that case as an init-param on the Dispatcher filter.
>> Right?
>>
>> --
>> Greg Akins
>>
>> http://insomnia-consulting.org
>> http://www.pghcodingdojo.org
>> http://pittjug.dev.java.net
>> http://twitter.com/akinsgre
>> http://www.linkedin.com/in/akinsgre
>>
>> ---------------------------------------------------------------------
>> 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_207300.ezm (zipped)On Tue, Aug 24, 2010 at 10:51 AM, akinsgre <angrygreg@(protected):
>
> struts.xml
> <constant name="struts.custom.i18n.resources"
> value="com.fiserv.sourceone.ribs.common.bundles.DbResourceBundle" />
>
> index.jsp
> <s:text name="FS_UI_ACCT_SWITCH_EN_BUTTON_GO_ACCOUNT"/>
>
A followup to this:
If I put a static initializer with a System.out.println in
DbResourceBundle, it never get's executed; I'm not sure when I should
expect the class to get loaded, but it seems like the constant
declaration isn't doing anything right now.
--
Greg Akins
http://insomnia-consulting.org
http://www.pghcodingdojo.org
http://pittjug.dev.java.net
http://twitter.com/akinsgre
http://www.linkedin.com/in/akinsgre

Attachment:
user_207301.ezm (zipped)On 8/24/10 12:54 PM, Greg Akins wrote:
> On Tue, Aug 24, 2010 at 10:51 AM, akinsgre<angrygreg@(protected):
>> struts.xml
>> <constant name="struts.custom.i18n.resources"
>> value="com.fiserv.sourceone.ribs.common.bundles.DbResourceBundle" />
That constant has a String value.
>> index.jsp
>> <s:text name="FS_UI_ACCT_SWITCH_EN_BUTTON_GO_ACCOUNT"/>
And this is looking up the specified item in
ApplicationResources.properties
> A followup to this:
>
> If I put a static initializer with a System.out.println in
> DbResourceBundle, it never get's executed;
Or the output isn't going where you expect it to.
-Dale

Attachment:
user_207302.ezm (zipped)On Tue, Aug 24, 2010 at 1:13 PM, Dale Newfield <dale@(protected):
>>>
>>> struts.xml
>>> <constant name="struts.custom.i18n.resources"
>>> value="com.fiserv.sourceone.ribs.common.bundles.DbResourceBundle" />
>
> That constant has a String value.
From what I've read, the struts.custom.i18n.resources constant usually
gets set to something like "global-messages" which translates to a
.properties file. However, at the beginning of this thread I asked
about using ResourceBundle which loads from a database, and this usage
was suggested to me. I'm not sure how Struts is reconciling that
constant.. but expected it would either load the class there, or wait
until the first usage.
>
>>> index.jsp
>>> <s:text name="FS_UI_ACCT_SWITCH_EN_BUTTON_GO_ACCOUNT"/>
>
> And this is looking up the specified item in ApplicationResources.properties
OK, and maybe that's the problem, because I expected it to use the
resource bundle from struts.custom.i18n.resources
>
>
>> A followup to this:
>>
>> If I put a static initializer with a System.out.println in
>> DbResourceBundle, it never get's executed;
>
> Or the output isn't going where you expect it to.
>
Yeah, maybe.. though if I load that class directly I do see it on my
console (running the app with mvn tomcat:run )
--
Greg Akins
http://insomnia-consulting.org
http://www.pghcodingdojo.org
http://pittjug.dev.java.net
http://twitter.com/akinsgre
http://www.linkedin.com/in/akinsgre

Attachment:
user_207303.ezm (zipped)Yippee!!
After a little more Googling it occurred to me that the default might
be still set in struts.properties; it was.. and when I removed it my
DbResourceBundle started working
Thanks for bearing with me
--
Greg Akins
http://insomnia-consulting.org
http://www.pghcodingdojo.org
http://pittjug.dev.java.net
http://twitter.com/akinsgre
http://www.linkedin.com/in/akinsgre

Attachment:
user_207295.ezm (zipped)
Attachment:
user_207304.ezm (zipped)
Attachment:
user_207297.ezm (zipped)i am researching plugin for struts2
and wanna to create somethhing like SOAP or more interesting thing
and found mule, which in my opinion work smiliar
i change several spring bean from hibernate, to joget, activiti, jbpm, and
jackrabbit
we call it spring module
and we try to inject JSON now inside spring module, and use REST in struts2
JSON -> our code -> JSON REST
this approach smiliar with ESB that i found in mule
any idea all?
--
Frans Thamura
Director
Meruvian.
The Most Complete Java Services Provider in Indonesia
Mobile: +6287885901958
Blog & Profile: http://frans.thamura.info
We grow because we share the same belief.

Attachment:
user_207307.ezm (zipped)Hello All,
I joined the mailing list today itself, so please let me know if am doing
anything wrong here. I am using struts2 for creating a web-application which
calls to a webservice(our API) and gets the results back. Basically in the
home page, there is a dropdown menu with 4 items in it. So whenever user
selects a particular list from the dropdown menu the form submits, and the
form changes. Each list in dropdown menu has its own form with its own
fields and those fields should change when the user selects different list
from dropdown menu. I am writing all this form code in a single jsp with
struts if , else tag. When ever the dropdown menu changes i am using java
script to submit to action. Now, the problem is i have 4 list items in the
dropdown menu. 3 list items works fine, when i select the 4t list item it
also works fine, but anything i select after 4t list item in the form
doesn't work. The dropdown doesn't even submit to the javascript and hence
the action is not called.
Each list item has its own form with its own list items. Suppose
i have 4 list items... insert, update, delete, truncate (just an example
names). If i select insert and submit works fine, if i select truncate the
page loads and populate the form for truncate, now after selecting truncate
if i select insert or update or delete the form is not able to populate. And
am getting following exception. I would highly appreciate your help. Hope to
get reply soon.
SEVERE: Servlet.service() for servlet jsp threw exception
tag 'select', field 'list', name 'selectedMetadataKey': The requested list
key 'metadataKey' could not be resolved as a
collection/array/map/enumeration/iterator type. Example: people or
people.{name} - [unknown location]
at
org.apache.struts2.components.Component.fieldError (
Component.java:231)
at
org.apache.struts2.components.Component.findValue (
Component.java:293)
at
org.apache.struts2.components.ListUIBean.evaluateExtraParams (
ListUIBean.java:79)
at
org.apache.struts2.components.Select.evaluateExtraParams (
Select.java:99)
at
org.apache.struts2.components.UIBean.evaluateParams (
UIBean.java:780)
at
org.apache.struts2.components.UIBean.end (
UIBean.java:481)
at
org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag (
ComponentTagSupport.java:43)
at
org.apache.jsp.multipleSearch_jsp._jspx_meth_s_005fselect_005f8(multipleSearch_jsp.java:1545)
at
org.apache.jsp.multipleSearch_jsp._jspx_meth_s_005felse_005f1(multipleSearch_jsp.java:1489)
at
org.apache.jsp.multipleSearch_jsp._jspx_meth_s_005fform_005f0(multipleSearch_jsp.java:255)
at
org.apache.jsp.multipleSearch_jsp._jspService(multipleSearch_jsp.java:164)
--
Thanks,
Aamer Azeem

Attachment:
user_207308.ezm (zipped)I need to implement a webapp that uses the URL to determine the
"partner" that is accessing the application. I'd like your opinion on
the way to do this that might work best with Struts.
Right now, we use a querystring parameter to set a session value that
is references throughout the application to determine the partner.
I can do that same thing with struts (ie., www.example.com/myapp?partnerId=8)
I am wondering if it might be better to create a URL like
www.example.com/myapp/8
Ultimately, it would be nice to map a url to a domain (ie.,
www.example.com/myapp/8 -> partner8.example.com
Ultimately, this would avoid problems with keeping the value in the
session, as it could always be retrieved from the URL
--
Greg Akins
http://insomnia-consulting.org
http://www.pghcodingdojo.org
http://pittjug.dev.java.net
http://twitter.com/akinsgre
http://www.linkedin.com/in/akinsgre

Attachment:
user_207309.ezm (zipped)That sort of thing is probably best handled outside Struts in my opinion.
A servlet filter which catches requests with that pattern /myapp/8 and
then does a clean forward to blah?partner=8 - I do a similar thing in my
app, but you then need to think about relative URLs for everything which
then sits under that.
Personally unless you have a specific need for clean URLs such as for
search engine optimisation then its not really worth the effort.
Chris
> I need to implement a webapp that uses the URL to determine the
> "partner" that is accessing the application. I'd like your opinion on
> the way to do this that might work best with Struts.
>
> Right now, we use a querystring parameter to set a session value that
> is references throughout the application to determine the partner.
>
> I can do that same thing with struts (ie.,
> www.example.com/myapp?partnerId=8)
>
> I am wondering if it might be better to create a URL like
> www.example.com/myapp/8
>
> Ultimately, it would be nice to map a url to a domain (ie.,
> www.example.com/myapp/8 -> partner8.example.com
>
> Ultimately, this would avoid problems with keeping the value in the
> session, as it could always be retrieved from the URL
>
> --
> Greg Akins
>
> http://insomnia-consulting.org
> http://www.pghcodingdojo.org
> http://pittjug.dev.java.net
> http://twitter.com/akinsgre
> http://www.linkedin.com/in/akinsgre
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_207310.ezm (zipped)
I was looking for the Release Notes/What's New for Struts 2.2 on the
following page:
http://struts.apache.org/download.cgi#struts221
The "Release Notes" link takes me to:
http://struts.apache.org/2.2.1/version-notes-221.html
which is a broken link 404 page.
Does anyone have the correct link to the Struts 2.2 Release Notes? Could the
link be fixed on the main struts page?
Thanks!
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_207311.ezm (zipped)http://struts.apache.org/2.2.1/docs/version-notes-221.html
On Wed, Aug 25, 2010 at 2:36 PM, DavidZaz <dzazeski@(protected):
>
> I was looking for the Release Notes/What's New for Struts 2.2 on the
> following page:
>
> http://struts.apache.org/download.cgi#struts221
>
> The "Release Notes" link takes me to:
>
> http://struts.apache.org/2.2.1/version-notes-221.html
>
> which is a broken link 404 page.
>
> Does anyone have the correct link to the Struts 2.2 Release Notes? Could
> the
> link be fixed on the main struts page?
>
> Thanks!
> --
> View this message in context:
> http://old.nabble.com/Release-Notes-for-Struts-2.2-tp29535307p29535307.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_207312.ezm (zipped)Done
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Kapituła Javarsovia 2010 http://javarsovia.pl