Author Login
Post Reply
user Digest 24 Jun 2008 06:10:47 -0000 Issue 8105
Topics (messages 187970 through 187999):
Re: minimal app server for embedded Struts1 or 2 solution
187970 by: Al Sutton
187973 by: kindlerm.arcor.de
Re: Closing tag for html:hidden
187971 by: Antonio Petrelli
187974 by: Dimitris Mouchritsas
187983 by: Antonio Petrelli
Struts 2 links and Internet explorer problem
187972 by: Milan Milanovic
Re: Struts Validator Framework: client-side validation problem with submitting buttons
187975 by: cacodemon79
187977 by: Lukasz Lenart
187984 by: Laurie Harper
187986 by: cacodemon79
187988 by: Lukasz Lenart
187996 by: Laurie Harper
Re: validation notation on DATE (object that has a Date field)
187976 by: Lukasz Lenart
187995 by: xianwinwin
187999 by: Lukasz Lenart
Re: render JSP from action class
187978 by: Esteve Camps Chust
Setting Dynamic Session Param in struts.xml
187979 by: John Smith
Re: [struts] Struts Validator Framework: client-side validation problem with submitting buttons
187980 by: Dale Newfield
187981 by: Lukasz Lenart
Re: Struts 2: Providing Tiles Controller-like Functionality
187982 by: Asleson, Ryan
Re: Struts Themes Problem - help
187985 by: Laurie Harper
Re: [S2] attempts to access www.opensymphony.com on Struts startup???
187987 by: Pierre Thibaudeau
Grabbing the "current" Result
187989 by: Asleson, Ryan
Re: validation and action names with slashes
187990 by: Roberto Nunnari
187998 by: Jeromy Evans
Struts2 Jar on JBoss
187991 by: Hernandez, David
187992 by: Musachy Barroso
187993 by: Hernandez, David
187994 by: Musachy Barroso
Simple Theme - Internationalization problem
187997 by: Narayana S
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_187970.ezm (zipped)Scott,
Most customers don't want to know about or get involved in installing an
appserver. The app my company produces has been sold for over 4 years,
is purely web based, and started live as a JSP/.Servlet combo, and I
beleive that less than 20% of sales have gone to companies who know what
an appserver is let alone have the technical experience to install one.
The customers do run the app on a server, but from our point of view
(and theirs) having a small installable download makes the product more
attractive than including a bloatware piece of software which includes
an entire app server.
Al.
P.S. At the moment we ship the product with a minimal version of Jetty
5, precompile the JSPs, and it seems to work well.
stanlick@(protected):
> This sounds a little suspicious! When you say " I cannot assume a Servlet
> container to be installed on machines my app will run on" what do you mean?
> I would hope you are planning to host this from a server someplace, right?
> Not sure about your environment, but you could always use an ISP to host
> your Struts application. I use DailyRazor and have full control over the
> server and none of the headaches of babysitting the machinery.
>
> Scott
>
> On Mon, Jun 23, 2008 at 7:08 AM, <kindlerm@(protected):
>
>
>> Hi,
>>
>> I am currently working on a little application which needs a user interface
>> for administration. I think an embedded app server with a Struts based
>> application might be a good choice. But one big obstacle is in the way, I
>> fear: the size of such a solution.
>> What do you think is the minimal solution giving the comfort of a Struts
>> based approach and not dominating the workhorse app with tons of jars only
>> needed for the small admin part?
>> Jetty as an App server? Or Tomcat? Or some other, really small? Struts 1 or
>> 2 (I would think Struts1 is the smaller solution)? Or shouldn't I attempt
>> this approach and write a simple servlet? What do you do?
>> I cannot assume a Servlet container to be installed on machines my app will
>> run on. There might be multiple instances of my app running on the same
>> machine. The UI should work over the network although a console based
>> approach might be possible, too.
>>
>> Thanks in advance
>>
>> Martin
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>
>
>

Attachment:
user_187973.ezm (zipped)Scott,
this is a little internal application which imports data from several systems into our CMS. We support a lot of these "importers". These run typically on dedicated machines and should be rapidly installable. If I would choose to make it a web application deployable on an application server this would mean a big maintenance overhead. I am simply looking for a better solution for an administrative interface than just hitting the command line.
Martin
----- Original Nachricht ----
Von: stanlick@(protected)
An: Struts Users Mailing List <user@(protected)>
Datum: 23.06.2008 16:38
Betreff: Re: minimal app server for embedded Struts1 or 2 solution
> This sounds a little suspicious! When you say " I cannot assume a Servlet
> container to be installed on machines my app will run on" what do you mean?
> I would hope you are planning to host this from a server someplace, right?
> Not sure about your environment, but you could always use an ISP to host
> your Struts application. I use DailyRazor and have full control over the
> server and none of the headaches of babysitting the machinery.
>
> Scott
>
> On Mon, Jun 23, 2008 at 7:08 AM, <kindlerm@(protected):
>
> > Hi,
> >
> > I am currently working on a little application which needs a user
> interface
> > for administration. I think an embedded app server with a Struts based
> > application might be a good choice. But one big obstacle is in the way, I
> > fear: the size of such a solution.
> > What do you think is the minimal solution giving the comfort of a Struts
> > based approach and not dominating the workhorse app with tons of jars
> only
> > needed for the small admin part?
> > Jetty as an App server? Or Tomcat? Or some other, really small? Struts 1
> or
> > 2 (I would think Struts1 is the smaller solution)? Or shouldn't I attempt
> > this approach and write a simple servlet? What do you do?
> > I cannot assume a Servlet container to be installed on machines my app
> will
> > run on. There might be multiple instances of my app running on the same
> > machine. The UI should work over the network although a console based
> > approach might be possible, too.
> >
> > Thanks in advance
> >
> > Martin
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
>
>
> --
> Scott
> stanlick@(protected)
>

Attachment:
user_187971.ezm (zipped)2008/6/23 Dimitris Mouchritsas <dimitris.mouchritsas@(protected)>:
> <action
> path="/home"
> forward="home" />
What exactly is this "home"?
Antonio

Attachment:
user_187974.ezm (zipped)Antonio Petrelli wrote:
> 2008/6/23 Dimitris Mouchritsas <dimitris.mouchritsas@(protected)>:
>
>> <action
>> path="/home"
>> forward="home" />
>>
>
> What exactly is this "home"?
>
> Antonio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
A tile definition. I've tried a few combinations, but none is working.
For example if I use
<action
path="/home"
type="be.fedict.etendering.web.actions.common.HomeAction">
<forward name="home" path="home" redirect="true" />
</action>
I get no exception but a blank page is returned.
Dimitris

Attachment:
user_187983.ezm (zipped)2008/6/23 Dimitris Mouchritsas <dimitris.mouchritsas@(protected)>:
> A tile definition. I've tried a few combinations, but none is working. For
> example if I use
>
> <action
> path="/home"
> type="be.fedict.etendering.web.actions.common.HomeAction">
> <forward name="home" path="home" redirect="true" />
> </action>
>
> I get no exception but a blank page is returned.
I suppose that Tiles has not been configured correctly then.
See:
http://wiki.apache.org/struts/StrutsUpgradeNotes12to13
In particular, in the Tiles part:
Add a chainConfig init-param in the web.xml pointing to the
location of the chain-config.xml
<init-param>
<param-name>chainConfig</param-name>
<param-value>org/apache/struts/tiles/chain-config.xml</param-value>
</init-param>
HTH
Antonio

Attachment:
user_187972.ezm (zipped)
Hi,
I have one simple and stupid problem, but this problem is serious because
users could be confused.
For example, I defined following link in my jsp:
<s:url action= ">Enter sample
If user have already clicked earlier to this link, next time when he click
it response method defined in struts mappings for sample.action will not be
fired at all, and only the resulting jsp page will be show!
It seems like that IE cache pages, even though I turned this option off.
I must say that this is not happening in Firefox. Is there any solution to
this ?
--
Thx, Milan
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_187975.ezm (zipped)
No suggestions? :(
I also tried to use
document.registrazioneUtenteForm.submit()")
instead of
eval("document."+nomeForm+".submit()")
but the result is the same. The form is submitted but I can't see any
javascript alerts.
I can't understand where is the problem.
I hope you can help me.
Thanks.
cacodemon79 wrote:
>
> Hi, I'm using Struts Validator Framework (Struts 1.3).
> Server-side validation works well.
> The problem is in client-side validation.
>
> The form name I have to validate is: RegistrazioneUtenteForm.
>
> In my jsp page I have 2 buttons:
> 1) <html:link
> href="javascript:submitRegistrazioneUtenteForm('registrazioneUtenteForm')"><bean:message
> key='form.submit'/></html:link>
> 2) <html:submit />
> and the following form declaration:
> <html:form action="/registrazioneUtente" method="post" focus="username"
> onsubmit="return validateRegistrazioneUtenteForm(this)">
> Moreover I have enabled javascript validation:
> <html:javascript formName="registrazioneUtenteForm" cdata="false" />
>
> The javascript function submitRegistrazioneUtenteForm is the following:
> function submitRegistrazioneUtenteForm(nomeForm){
> eval("document."+nomeForm+".submit()");
> }
>
> If I click on the second button (html:submit), all works well (I get
> javascript alerts).
> If I click on the first button (html:link), the form is submitted but I
> can't see any javascript alerts.
>
> I can't understand where is the problem.
>
> Can you help me?
>
> Thanks in advance.
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_187977.ezm (zipped)Hi,
Maybe you should install Firebug for Firefox (not working with 3.0)
and debug the JavaScript?
Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_187984.ezm (zipped)Did you confirm whether calling the form's submit() method triggers its
onsubmit handler? It may be that calling submit() bypasses it, in which
case an explicit guard in your submit function might do the trick:
function submitRegistrazioneUtenteForm(nomeForm){
var form = ...;
if (validateRegistrazioneUtenteForm(form)) {
form.submit();
}
return false;
}
L.
cacodemon79 wrote:
> No suggestions? :(
>
> I also tried to use
> document.registrazioneUtenteForm.submit()")
> instead of
> eval("document."+nomeForm+".submit()")
> but the result is the same. The form is submitted but I can't see any
> javascript alerts.
>
> I can't understand where is the problem.
>
> I hope you can help me.
>
> Thanks.
>
>
>
> cacodemon79 wrote:
>> Hi, I'm using Struts Validator Framework (Struts 1.3).
>> Server-side validation works well.
>> The problem is in client-side validation.
>>
>> The form name I have to validate is: RegistrazioneUtenteForm.
>>
>> In my jsp page I have 2 buttons:
>> 1) <html:link
>> href="javascript:submitRegistrazioneUtenteForm('registrazioneUtenteForm')"><bean:message
>> key='form.submit'/></html:link>
>> 2) <html:submit />
>> and the following form declaration:
>> <html:form action="/registrazioneUtente" method="post" focus="username"
>> onsubmit="return validateRegistrazioneUtenteForm(this)">
>> Moreover I have enabled javascript validation:
>> <html:javascript formName="registrazioneUtenteForm" cdata="false" />
>>
>> The javascript function submitRegistrazioneUtenteForm is the following:
>> function submitRegistrazioneUtenteForm(nomeForm){
>> eval("document."+nomeForm+".submit()");
>> }
>>
>> If I click on the second button (html:submit), all works well (I get
>> javascript alerts).
>> If I click on the first button (html:link), the form is submitted but I
>> can't see any javascript alerts.
>>
>> I can't understand where is the problem.
>>
>> Can you help me?
>>
>> Thanks in advance.
>>
>

Attachment:
user_187986.ezm (zipped)
Bingo!
Now it works!
Thanks a lot.
However i can't understand why the onsubmit handler is not triggered by the
submit() function!
Laurie Harper wrote:
>
> Did you confirm whether calling the form's submit() method triggers its
> onsubmit handler? It may be that calling submit() bypasses it, in which
> case an explicit guard in your submit function might do the trick:
>
> function submitRegistrazioneUtenteForm(nomeForm){
> var form = ...;
> if (validateRegistrazioneUtenteForm(form)) {
> form.submit();
> }
> return false;
> }
>
> L.
>
> cacodemon79 wrote:
>> No suggestions? :(
>>
>> I also tried to use
>> document.registrazioneUtenteForm.submit()")
>> instead of
>> eval("document."+nomeForm+".submit()")
>> but the result is the same. The form is submitted but I can't see any
>> javascript alerts.
>>
>> I can't understand where is the problem.
>>
>> I hope you can help me.
>>
>> Thanks.
>>
>>
>>
>> cacodemon79 wrote:
>>> Hi, I'm using Struts Validator Framework (Struts 1.3).
>>> Server-side validation works well.
>>> The problem is in client-side validation.
>>>
>>> The form name I have to validate is: RegistrazioneUtenteForm.
>>>
>>> In my jsp page I have 2 buttons:
>>> 1) <html:link
>>> href="javascript:submitRegistrazioneUtenteForm('registrazioneUtenteForm')"><bean:message
>>> key='form.submit'/></html:link>
>>> 2) <html:submit />
>>> and the following form declaration:
>>> <html:form action="/registrazioneUtente" method="post" focus="username"
>>> onsubmit="return validateRegistrazioneUtenteForm(this)">
>>> Moreover I have enabled javascript validation:
>>> <html:javascript formName="registrazioneUtenteForm" cdata="false" />
>>>
>>> The javascript function submitRegistrazioneUtenteForm is the following:
>>> function submitRegistrazioneUtenteForm(nomeForm){
>>> eval("document."+nomeForm+".submit()");
>>> }
>>>
>>> If I click on the second button (html:submit), all works well (I get
>>> javascript alerts).
>>> If I click on the first button (html:link), the form is submitted but I
>>> can't see any javascript alerts.
>>>
>>> I can't understand where is the problem.
>>>
>>> Can you help me?
>>>
>>> Thanks in advance.
>>>
>>
>
>
> ---------------------------------------------------------------------
> 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_187988.ezm (zipped)Hi,
2008/6/23 cacodemon79 <cacodemon@(protected)>:
>
> Bingo!
> Now it works!
> Thanks a lot.
> However i can't understand why the onsubmit handler is not triggered by the
> submit() function!
>
Maybe it depends on Web Browser, did you try with others?
Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_187996.ezm (zipped)I did what I should have done in the first place and looked it up:
Form.submit() is specified to *not* call the onsubmit handler, so this
is the correct behaviour (and should be consistent across all browsers).
When in doubt, check the documentation :-)
L.
cacodemon79 wrote:
> Bingo!
> Now it works!
> Thanks a lot.
> However i can't understand why the onsubmit handler is not triggered by the
> submit() function!
>
>
> Laurie Harper wrote:
>> Did you confirm whether calling the form's submit() method triggers its
>> onsubmit handler? It may be that calling submit() bypasses it, in which
>> case an explicit guard in your submit function might do the trick:
>>
>> function submitRegistrazioneUtenteForm(nomeForm){
>> var form = ...;
>> if (validateRegistrazioneUtenteForm(form)) {
>> form.submit();
>> }
>> return false;
>> }
>>
>> L.
>>
>> cacodemon79 wrote:
>>> No suggestions? :(
>>>
>>> I also tried to use
>>> document.registrazioneUtenteForm.submit()")
>>> instead of
>>> eval("document."+nomeForm+".submit()")
>>> but the result is the same. The form is submitted but I can't see any
>>> javascript alerts.
>>>
>>> I can't understand where is the problem.
>>>
>>> I hope you can help me.
>>>
>>> Thanks.
>>>
>>>
>>>
>>> cacodemon79 wrote:
>>>> Hi, I'm using Struts Validator Framework (Struts 1.3).
>>>> Server-side validation works well.
>>>> The problem is in client-side validation.
>>>>
>>>> The form name I have to validate is: RegistrazioneUtenteForm.
>>>>
>>>> In my jsp page I have 2 buttons:
>>>> 1) <html:link
>>>> href="javascript:submitRegistrazioneUtenteForm('registrazioneUtenteForm')"><bean:message
>>>> key='form.submit'/></html:link>
>>>> 2) <html:submit />
>>>> and the following form declaration:
>>>> <html:form action="/registrazioneUtente" method="post" focus="username"
>>>> onsubmit="return validateRegistrazioneUtenteForm(this)">
>>>> Moreover I have enabled javascript validation:
>>>> <html:javascript formName="registrazioneUtenteForm" cdata="false" />
>>>>
>>>> The javascript function submitRegistrazioneUtenteForm is the following:
>>>> function submitRegistrazioneUtenteForm(nomeForm){
>>>> eval("document."+nomeForm+".submit()");
>>>> }
>>>>
>>>> If I click on the second button (html:submit), all works well (I get
>>>> javascript alerts).
>>>> If I click on the first button (html:link), the form is submitted but I
>>>> can't see any javascript alerts.
>>>>
>>>> I can't understand where is the problem.
>>>>
>>>> Can you help me?
>>>>
>>>> Thanks in advance.
>>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>

Attachment:
user_187976.ezm (zipped)> I did, and it doesn't work, when I click submit, I immediately get a red
> message next to the required fields...but not next to the date.
That strange, I made a test and it works, I've annotated at setter level
@RequiredFieldValidator(message = "Date is required")
public Date getToday() {
return today;
}
public void setToday(Date today) {
this.today = today;
}
<s:textfield label="Today" name="today" />
Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_187995.ezm (zipped)
This also works on my end *BUT* the Date in part of an Object (not a field)
so I have Employee empl;
with Date dob,
thank you
Lukasz Lenart wrote:
>
>> I did, and it doesn't work, when I click submit, I immediately get a red
>> message next to the required fields...but not next to the date.
>
> That strange, I made a test and it works, I've annotated at setter level
>
> @RequiredFieldValidator(message = "Date is required")
> public Date getToday() {
> return today;
> }
>
> public void setToday(Date today) {
> this.today = today;
> }
>
>
> <s:textfield label="Today" name="today" />
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> 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_187999.ezm (zipped)Hi,
> This also works on my end *BUT* the Date in part of an Object (not a field)
Could you show your configuration?
Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_187978.ezm (zipped)Heyyyy, it worked Jeromy. Thanks you very much for this solution.
Esteve
2008/6/23 Jeromy Evans <jeromy.evans@(protected)>:
> Esteve Camps Chust wrote:
>
>> The problem is "renderJSP" method, so it constructs a customized JSP with
>> username data. For example, "renderJSP" should return something like:
>>
>> <html>
>> <body>
>> <p>Welcome *ben@(protected)>
>> <p>this is a welcome email.</p>
>> </body>
>> </html>
>>
>>
>>
> Do this:
> http://freemarker.sourceforge.net/docs/pgui_quickstart_all.html
> inside your action.
>
> (where test.ftl contains the html above)
>
> then pass the result to your emailer.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_187979.ezm (zipped)Hello,
Is it possible to do something like the below in struts.xml to access
session object that have previously been set?
<action name="querySomething"
class="QueryAction">
<param name="parse">true</param>
<param name="myId">${myId}</param>
<result>output.jsp</result>
</action>
thanks,
j

Attachment:
user_187980.ezm (zipped)Lukasz Lenart wrote:
> Maybe you should install Firebug for Firefox (not working with 3.0)
> and debug the JavaScript?
A beta version of firebug does work with 3.0 :
http://getfirebug.com/releases/index.html
-Dale

Attachment:
user_187981.ezm (zipped)> A beta version of firebug does work with 3.0 :
> http://getfirebug.com/releases/index.html
Thanks!
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_187982.ezm (zipped)
Thank you for your thoughts!
Our model is to use one Action per JSP. So, for example, if a JSP has
Add and Remove buttons, the Action has corresponding add() and remove()
methods. We use this model because it cuts down on the proliferation of
Action classes.
Yes, Preparable is nice because it gets called even when validation
errors occur, which is functionality we need.
I've thought about writing a PreResultListener that checks the Result
for the desired destination. If the destination (say, myFavorite.jsp)
matches the Action (MyFavoriteAction.class) then run the prepare method.
However, I can't find a way to get the current Result. I've tried
ActionInvocation.getResult(), but it only returns null. Is there a way
to get the current Result object before it is actually executed? This
would help greatly.
Any other thoughts are greatly appreciated.
-Ryan
-----Original Message-----
From: Brad A Cupit [mailto:brad@(protected)]
Sent: Monday, June 23, 2008 10:19 AM
To: Struts Users Mailing List
Subject: RE: Struts 2: Providing Tiles Controller-like Functionality
Asleson, Ryan wrote:
> I'm familiar with the Struts 2 Preparable interface, but I don't like
> this because prepare() is always called -- even on form posts
Do you have one Action with two public methods that are called by Struts
2? For example view() and submit() methods? If that's the case, I can
understand why you wouldn't want prepare() called when submit() is
called.
To solve that, just rename your prepare method to prepareView(), and it
will only run when view() is called.
If you are not using multiple public methods in one Action, and each
Action just implements the execute() method, I'd assume you have
separate Actions for viewing and submitting, let's call them ViewAction
and SubmitAction.
In this situation, make your ViewAction implement Preparable, but don't
have SubmitAction implement it.
Am I way off base here?
I personally like Preparable since the method gets called even when
there is a validation error. So you have a place to put code that you
want run both on initial display and on after a POST with validation
errors.
Brad Cupit
Louisiana State University - UIS
-----Original Message-----
From: Asleson, Ryan [mailto:asleson@(protected)]
Sent: Monday, June 23, 2008 8:36 AM
To: Struts Users Mailing List
Subject: Struts 2: Providing Tiles Controller-like Functionality
Hello,
We're moving from a Struts 1.x with Tiles development model to Struts 2
and Sitemesh.
One thing we miss with from Tiles is the ability to back a JSP with a
Controller. The Controller guaranteed that whenever a JSP was rendered,
certain behavior was executed to prepare data for the JSP. For example,
the loading of data for drop-down select boxes was often placed in the
Controller.
Now that we're not using Tiles we can no longer use Controllers, so I'm
wondering if Struts 2 has any sort of equivalent functionality. I'm
familiar with the Struts 2 Preparable interface, but I don't like this
because prepare() is always called -- even on form posts, which in my
case, is at best an unnecessary database hit (or hits), and at worst can
cause confusion with what was actually posted from the page vs. what was
retrieved from prepare().
If it helps any, we have a 1:1 mapping between an Action and a JSP,
including a naming convention: MyFavoriteAction maps to myFavorite.jsp.
Any thoughts or comments?
Thank you!!
-Ryan
This e-mail message is being sent solely for use by the intended
recipient(s) and may contain confidential information. Any unauthorized
review, use, disclosure or distribution is prohibited. If you are not
the intended recipient, please contact the sender by phone or reply by
e-mail, delete the original message and destroy all copies. Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)
This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you.

Attachment:
user_187985.ezm (zipped)Narayana S wrote:
> Hi Dave,
>
> thanks for your reply, but when i use simple theme, my application is
> not getting any values from resource bundle..
How is it failing? Note that the 'simple' theme generates a lot less
markup, and doesn't generate everything the other themes do. Are I18N
resources failing to get resolved, or is the theme just not generating
the things you were expecting to see?
> will this problem be solved by extending theme ?
>
> can you provide any best link to extend a theme if it is the solution... ?
See the Themes and Templates documentation:
http://struts.apache.org/2.0.11.1/docs/themes-and-templates.html
L.
> On Sun, Jun 22, 2008 at 8:25 PM, Dave Newton <newton.dave@(protected):
>
>> --- On Sun, 6/22/08, Narayana S <narayanasgs1@(protected):
>>> The problem is here struts 2 is applying it's own styles to
>>> my page, i want to give my own styles instead of using struts
>>> default styles,
>> The easiest answer is to just supply your own CSS styles. You can also
>> extend an existing, or create your own, theme.
>>
>> Dave
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>

Attachment:
user_187987.ezm (zipped)Thank you, Dave!
I had no problem checking out the source. Now whether I'll have time to
delve into its depths to unlock this mysterious online-connect-on-startup is
another matter...
2008/6/23 Dave Newton <newton.dave@(protected)>:
> --- On Mon, 6/23/08, Dave Newton <newton.dave@(protected):
> > http://opensymphony.com/xwork/
> >
> > See the "source repository" link.
>
> (Having said that, of course, I'm not able to check out the source from
> there. I was on Saturday, IIRC.)
>

Attachment:
user_187989.ezm (zipped)
Hello,
Is there a way to grab the current Result object after an Action method
has been executed?
I want to write an PreResultListener that checks the current Result and
performs actions based on the Result. I see that the ActionInvocation
that's passed into the beforeResult method has a getResult() method, but
when I tried this, the result of the getResult() method is null.
Is there any way to get a reference to the current Result that is about
to be executed?
Thank you!!
-Ryan
This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you.

Attachment:
user_187990.ezm (zipped)Jeromy Evans wrote:
> Roberto Nunnari wrote:
>>
>>
>> Maybe the convention plugin should look into the tiles.xml
>> file, or check to see if the tiles plugin or tiles listener
>> are in the game..
>> Most probably, the definition names in tiles.xml should
>> follow the conventions, so that
>> <definition name="auctionView"..
>> becomes
>> <definition name="auction"
>> and
>> <definition name="auctionInput"..
>> becomes
>> <definition name="auction-input"
>> etc..
>
> This is what I intend to do. At the moment the CodeBehind/Convention
> plugin estimates the name of view candidates (eg.
> package-action-result.jsp)
> This change would just need to extend that to check if a tile exists
> with that name.
>
> This change will mean that @Result's are only required for the
> exceptional cases (those results that need to break the Tiles naming
> convention).
>
Yes! That would be great!
Are you going to do the coding yourself?

Attachment:
user_187998.ezm (zipped)Roberto Nunnari wrote:
> Jeromy Evans wrote:
>> Roberto Nunnari wrote:
>>
>> This is what I intend to do. At the moment the CodeBehind/Convention
>> plugin estimates the name of view candidates (eg.
>> package-action-result.jsp)
>> This change would just need to extend that to check if a tile exists
>> with that name.
>>
>> This change will mean that @Result's are only required for the
>> exceptional cases (those results that need to break the Tiles naming
>> convention).
>>
>
> Yes! That would be great!
> Are you going to do the coding yourself?
>
Yes, it's on my todo list.

Attachment:
user_187991.ezm (zipped)Hey Guys,
I'm trying to deploy several apps built with Struts2 that share a common
lib directory. I'm running on JBoss. If I put all the jar's in the
server lib directory everything compiles and deploys fine. If I go to an
action it is executed, but when it attempts to read the jsp it fails to
find the struts tld. See an excerpt from my log below:
....
2008-06-23 17:12:49,085 DEBUG
[com.opensymphony.xwork2.util.InstantiatingNullHandler] Entering
nullPropertyValue
[target=[com.lehman.corpsec.web.UpdateDailyCheckoutStatusXMLServlet@(protected)
99d, com.opensymphony.xwork2.DefaultTextProvider@(protected)]
2008-06-23 17:12:49,280 DEBUG
[org.jboss.web.tomcat.service.jasper.TagLibCache] Scanning for tlds in:
file:/home/nycco2q/jboss/eap4.2/deploy/jboss-web.deployer/jsf-libs/jsf-i
mpl.jar
2008-06-23 17:12:49,420 DEBUG
[org.jboss.web.tomcat.service.jasper.TagLibCache] Scanning for tlds in:
file:/home/nycco2q/jboss/eap4.2/deploy/jboss-web.deployer/jstl.jar
2008-06-23 17:12:49,513 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/CO2/Da
ilyCheckout].[jsp]] Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: File "/struts-tags" not found
at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand
ler.java:51)
....
Any Help/Advice would be appreciated.
Thanks,
David Hernandez
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice.
--------
IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this communication (including any attachments) is not intended or written to be used and cannot be used for the purpose of (i) avoiding U.S. tax related penalties or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein.

Attachment:
user_187992.ezm (zipped)The taglib is in core, so somehow it is not finding struts-core jar.
musachy
On Mon, Jun 23, 2008 at 5:15 PM, Hernandez, David
<david.hernandez@(protected):
> Hey Guys,
>
> I'm trying to deploy several apps built with Struts2 that share a common
> lib directory. I'm running on JBoss. If I put all the jar's in the
> server lib directory everything compiles and deploys fine. If I go to an
> action it is executed, but when it attempts to read the jsp it fails to
> find the struts tld. See an excerpt from my log below:
>
> ....
> 2008-06-23 17:12:49,085 DEBUG
> [com.opensymphony.xwork2.util.InstantiatingNullHandler] Entering
> nullPropertyValue
> [target=[com.lehman.corpsec.web.UpdateDailyCheckoutStatusXMLServlet@(protected)
> 99d, com.opensymphony.xwork2.DefaultTextProvider@(protected)]
> 2008-06-23 17:12:49,280 DEBUG
> [org.jboss.web.tomcat.service.jasper.TagLibCache] Scanning for tlds in:
> file:/home/nycco2q/jboss/eap4.2/deploy/jboss-web.deployer/jsf-libs/jsf-i
> mpl.jar
> 2008-06-23 17:12:49,420 DEBUG
> [org.jboss.web.tomcat.service.jasper.TagLibCache] Scanning for tlds in:
> file:/home/nycco2q/jboss/eap4.2/deploy/jboss-web.deployer/jstl.jar
> 2008-06-23 17:12:49,513 ERROR
> [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/CO2/Da
> ilyCheckout].[jsp]] Servlet.service() for servlet jsp threw exception
> org.apache.jasper.JasperException: File "/struts-tags" not found
> at
> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand
> ler.java:51)
> ....
>
> Any Help/Advice would be appreciated.
>
> Thanks,
> David Hernandez
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
> This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice.
>
> --------
> IRS Circular 230 Disclosure:
> Please be advised that any discussion of U.S. tax matters contained within this communication (including any attachments) is not intended or written to be used and cannot be used for the purpose of (i) avoiding U.S. tax related penalties or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein.
>
> ---------------------------------------------------------------------
> 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_187993.ezm (zipped)That's not the case. If the jar isn't present then the deployment fails upon reading struts.xml because the FilterDispatcher cannot be found. The classes are being loaded from the jar however it's not looking in the jar for the TLD.
Regards,
------Original Message------
From: Musachy Barroso
To: Struts Users Mailing List
ReplyTo: Struts Users Mailing List
Sent: Jun 23, 2008 5:32 PM
Subject: Re: Struts2 Jar on JBoss
The taglib is in core, so somehow it is not finding struts-core jar.
musachy
On Mon, Jun 23, 2008 at 5:15 PM, Hernandez, David
<david.hernandez@(protected):
> Hey Guys,
>
> I'm trying to deploy several apps built with Struts2 that share a common
> lib directory. I'm running on JBoss. If I put all the jar's in the
> server lib directory everything compiles and deploys fine. If I go to an
> action it is executed, but when it attempts to read the jsp it fails to
> find the struts tld. See an excerpt from my log below:
>
> ....
> 2008-06-23 17:12:49,085 DEBUG
> [com.opensymphony.xwork2.util.InstantiatingNullHandler] Entering
> nullPropertyValue
> [target=[com.lehman.corpsec.web.UpdateDailyCheckoutStatusXMLServlet@(protected)
> 99d, com.opensymphony.xwork2.DefaultTextProvider@(protected)]
> 2008-06-23 17:12:49,280 DEBUG
> [org.jboss.web.tomcat.service.jasper.TagLibCache] Scanning for tlds in:
> file:/home/nycco2q/jboss/eap4.2/deploy/jboss-web.deployer/jsf-libs/jsf-i
> mpl.jar
> 2008-06-23 17:12:49,420 DEBUG
> [org.jboss.web.tomcat.service.jasper.TagLibCache] Scanning for tlds in:
> file:/home/nycco2q/jboss/eap4.2/deploy/jboss-web.deployer/jstl.jar
> 2008-06-23 17:12:49,513 ERROR
> [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/CO2/Da
> ilyCheckout].[jsp]] Servlet.service() for servlet jsp threw exception
> org.apache.jasper.JasperException: File "/struts-tags" not found
> at
> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand
------Original Message Truncated------
David Hernandez
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice.
--------
IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this communication (including any attachments) is not intended or written to be used and cannot be used for the purpose of (i) avoiding U.S. tax related penalties or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein.

Attachment:
user_187994.ezm (zipped)Yes, that's what I meant, but not what I said, that happens when there
is too much multitasking going on :)
musachy
On Mon, Jun 23, 2008 at 5:47 PM, Hernandez, David
<david.hernandez@(protected):
> That's not the case. If the jar isn't present then the deployment fails upon reading struts.xml because the FilterDispatcher cannot be found. The classes are being loaded from the jar however it's not looking in the jar for the TLD.
> Regards,
> ------Original Message------
> From: Musachy Barroso
> To: Struts Users Mailing List
> ReplyTo: Struts Users Mailing List
> Sent: Jun 23, 2008 5:32 PM
> Subject: Re: Struts2 Jar on JBoss
>
> The taglib is in core, so somehow it is not finding struts-core jar.
>
> musachy
>
> On Mon, Jun 23, 2008 at 5:15 PM, Hernandez, David
> <david.hernandez@(protected):
>> Hey Guys,
>>
>> I'm trying to deploy several apps built with Struts2 that share a common
>> lib directory. I'm running on JBoss. If I put all the jar's in the
>> server lib directory everything compiles and deploys fine. If I go to an
>> action it is executed, but when it attempts to read the jsp it fails to
>> find the struts tld. See an excerpt from my log below:
>>
>> ....
>> 2008-06-23 17:12:49,085 DEBUG
>> [com.opensymphony.xwork2.util.InstantiatingNullHandler] Entering
>> nullPropertyValue
>> [target=[com.lehman.corpsec.web.UpdateDailyCheckoutStatusXMLServlet@(protected)
>> 99d, com.opensymphony.xwork2.DefaultTextProvider@(protected)]
>> 2008-06-23 17:12:49,280 DEBUG
>> [org.jboss.web.tomcat.service.jasper.TagLibCache] Scanning for tlds in:
>> file:/home/nycco2q/jboss/eap4.2/deploy/jboss-web.deployer/jsf-libs/jsf-i
>> mpl.jar
>> 2008-06-23 17:12:49,420 DEBUG
>> [org.jboss.web.tomcat.service.jasper.TagLibCache] Scanning for tlds in:
>> file:/home/nycco2q/jboss/eap4.2/deploy/jboss-web.deployer/jstl.jar
>> 2008-06-23 17:12:49,513 ERROR
>> [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/CO2/Da
>> ilyCheckout].[jsp]] Servlet.service() for servlet jsp threw exception
>> org.apache.jasper.JasperException: File "/struts-tags" not found
>> at
>> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand
>
> ------Original Message Truncated------
>
> David Hernandez
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
> This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice.
>
>
> --------
> IRS Circular 230 Disclosure:
> Please be advised that any discussion of U.S. tax matters contained within this communication (including any attachments) is not intended or written to be used and cannot be used for the purpose of (i) avoiding U.S. tax related penalties or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein.
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_187997.ezm (zipped)Hi,
i am applying simple theme for my struts 2 page, when the theme is
default it could read values from resource bundle, after i changed theme to
simple, it couldn't read the values from the resource bundle.
<s:form action="SimpleAction" method="post" theme="simple">
<s:label key="app.indexheader" />
---
</s:form>
This is how i am creating the form. am i missing any thing? please help me.