logic:iterate

2009-09-02 Thread senderj

If I have a text input in my jsp named scoreNdays, I know I should declare my
variable scoreNdays in the struts formbean with getter and setter like
getScoreNdays(). Then it will work with the jsp. Now I have an iternation in
my jsp like 




.

Since the two input are indexed, they generate a web form that post with
parameter like score[1].scoreNdays. Then I don't know how I should declare
the corresponding variables and getter setter in the formbean. Please help.

-- 
View this message in context: 
http://www.nabble.com/logic%3Aiterate-tp25270728p25270728.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Problem testing my action when I’ve g ot a springbean inside the validators.xml

2009-09-02 Thread cmartin81

Anyone who can help me?
-- 
View this message in context: 
http://www.nabble.com/Problem-testing-my-action-when-I%E2%80%99ve-got-a-springbean-inside-the-validators.xml-tp24862185p25270552.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Session data

2009-09-02 Thread Dai Le
Hi,

 

I developed a data collection web application using struts 1.2.9 and I've
run into a problem that I cannot find a solution to.  The amount of data
being collected is quite a bit so pass the information along in session
variables.  The problem arises when a user has multiple instances of the
website opened, the session data is crossed with each other.  Because all
the instances share the same session, it's causing the session data to be
crossed or overwritten.  Does anyone have any ideas or thoughts on the
matter?  Is there any way to create a new session each time the user open a
new instance of my web application.  I've tried using URL rewriting and it
generates new jsessionids but the clients will to have cookies disabled on
their browser and it's not common to ask users to disable cookies on their
browser.  Hope this makes some sense to someone, I'm having a hard
describing the problem.  Thanks in advance.

 

Dai Le

Developer

Pinney Insurance Center, Inc.

2266 Lava Ridge Ct.

Roseville, CA 95661

(916)773-2800

 



RE: Strut2 Picture Upload question: Please Help!

2009-09-02 Thread hisameer

Thanks for your comment. But my question is How can it be done using AJAX? I
am using dojo plugin in my struts application. But if I use 
then it also shows the brows location as well. But in my case its only a
simple upload button.What should I do?

And initially there has to be a placeholder for those pictures as well. 

I am totally confused. Please help!



Lee Clemens-4 wrote:
> 
> Maybe have the Upload buttons refresh the page? And load the images from
> the
> action?
> 
> Otherwise it would have to be done client side (ajax?)
> 
> -Original Message-
> From: hisameer [mailto:cool_sameer_fo...@yahoo.com] 
> Sent: Wednesday, September 02, 2009 6:27 PM
> To: user@struts.apache.org
> Subject: Strut2 Picture Upload question: Please Help!
> 
> 
> I am using Struts 2.1.6 and in my application I have a requirement where
> the
> user can upload four pictures of his vehicle.In my JSP, there will be four
> upload buttons corresponding to those four pics(As shown in the below
> image). After the user is done selecting the file it should be uploaded in
> the JSP right away. 
> 
> Below image shows the actual display of the requirement. 
> 
> 
> http://www.nabble.com/file/p25266760/picUploading.jpg 
> 
> 
> Can somebody put some sample code for this kind of requirement or suggest
> me
> what should I do? I am sure this is just a simple requirement but I am not
> able to crack it. 
> -- 
> View this message in context:
> http://www.nabble.com/Strut2-Picture-Upload-question%3A-Please-Help%21-tp252
> 66760p25266760.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Strut2-Picture-Upload-question%3A-Please-Help%21-tp25266760p25267581.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Strut2 Picture Upload question: Please Help!

2009-09-02 Thread Lee Clemens
Maybe have the Upload buttons refresh the page? And load the images from the
action?

Otherwise it would have to be done client side (ajax?)

-Original Message-
From: hisameer [mailto:cool_sameer_fo...@yahoo.com] 
Sent: Wednesday, September 02, 2009 6:27 PM
To: user@struts.apache.org
Subject: Strut2 Picture Upload question: Please Help!


I am using Struts 2.1.6 and in my application I have a requirement where the
user can upload four pictures of his vehicle.In my JSP, there will be four
upload buttons corresponding to those four pics(As shown in the below
image). After the user is done selecting the file it should be uploaded in
the JSP right away. 

Below image shows the actual display of the requirement. 


http://www.nabble.com/file/p25266760/picUploading.jpg 


Can somebody put some sample code for this kind of requirement or suggest me
what should I do? I am sure this is just a simple requirement but I am not
able to crack it. 
-- 
View this message in context:
http://www.nabble.com/Strut2-Picture-Upload-question%3A-Please-Help%21-tp252
66760p25266760.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Action Tag java.lang.StackOverflowError

2009-09-02 Thread Rusty Wright

Think subroutine.

musom...@aol.com wrote:
 Different tags do different things so I'm afraid you have to look at the documentation for 
a tag to see just what it does. This one was written for the purpose of allowing you to 
use the result of an action in the page you are currently rendering.



 



Chris

 



 


-Original Message-
From: briannic...@aspca.org
To: Struts Users Mailing List 
Sent: Wed, Sep 2, 2009 3:36 pm
Subject: Re: Action Tag java.lang.StackOverflowError










Of course if you couldn't tell, I'm very new to Struts. Can you explain 
why that all shows up on one page and doesn't take me to a different page?


My best assumption on how Struts works is that when I'm at index.jsp I 
call the action ActionTag which on a success displays the snippet.jsp page 
on the index.jsp page.
 
 
Brian E. Nicely

Programmer / Analyst
Knowledge Management
 
ASPCA®

1717 South Philo Road, Suite 36
Urbana, IL 61802
 
briannic...@aspca.org
 
P: 217-337-9700, 9799

F: 217-337-0599
www.aspca.org
 
The information contained in this e-mail, and any attachments hereto, is 
from The American Society for the Prevention of Cruelty to Animals® (ASPCA
®) and is intended only for use by the addressee(s) named herein and may 
contain legally privileged and/or confidential information. If you are not 
the intended recipient of this e-mail, you are hereby notified that any 
dissemination, distribution, copying or use of the contents of this 
e-mail, and any attachments hereto, i
s strictly prohibited. If you have 
received this e-mail in error, please immediately notify me by reply email 
and permanently delete the original and any copy of this e-mail and any 
printout thereof.




 





-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Action Tag java.lang.StackOverflowError

2009-09-02 Thread musomesa

 Different tags do different things so I'm afraid you have to look at the 
documentation for 
a tag to see just what it does. This one was written for the purpose of 
allowing you to 
use the result of an action in the page you are currently rendering.


 


Chris

 


 

-Original Message-
From: briannic...@aspca.org
To: Struts Users Mailing List 
Sent: Wed, Sep 2, 2009 3:36 pm
Subject: Re: Action Tag java.lang.StackOverflowError










Of course if you couldn't tell, I'm very new to Struts. Can you explain 
why that all shows up on one page and doesn't take me to a different page?

My best assumption on how Struts works is that when I'm at index.jsp I 
call the action ActionTag which on a success displays the snippet.jsp page 
on the index.jsp page.
 
 
Brian E. Nicely
Programmer / Analyst
Knowledge Management
 
ASPCA®
1717 South Philo Road, Suite 36
Urbana, IL 61802
 
briannic...@aspca.org
 
P: 217-337-9700, 9799
F: 217-337-0599
www.aspca.org
 
The information contained in this e-mail, and any attachments hereto, is 
from The American Society for the Prevention of Cruelty to Animals® (ASPCA
®) and is intended only for use by the addressee(s) named herein and may 
contain legally privileged and/or confidential information. If you are not 
the intended recipient of this e-mail, you are hereby notified that any 
dissemination, distribution, copying or use of the contents of this 
e-mail, and any attachments hereto, i
s strictly prohibited. If you have 
received this e-mail in error, please immediately notify me by reply email 
and permanently delete the original and any copy of this e-mail and any 
printout thereof.



 



Re: Table(grids)

2009-09-02 Thread Rusty Wright

I haven't tried DisplayTag yet with Struts 2 but I've used it with Spring MVC 
and can say that DisplayTag is very nice.  Very flexible.


Johannes Geppert wrote:

I use the display tags for tables. it's easy to use with struts2.

http://displaytag.sourceforge.net/1.2/



Arthur Neves wrote:

Hi,

I'd like to know, if is there a way to make tables(grids) easily in
Struts2?
What do you use? Is there a tag?





-
---
web: http://www.jgeppert.com
twitter: http://twitter.com/jogep



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Executing the Struts2 Stack without a server running?

2009-09-02 Thread Musachy Barroso
I forgot to say, those changes are in trunk now, but have not been
released yet, so you would have to check them out from svn and build
it yourself.

musachy

On Wed, Sep 2, 2009 at 2:50 PM, James Carr wrote:
> Thanks
>
> On Wed, Sep 2, 2009 at 10:58 AM, Musachy Barroso wrote:
>> lol. Take a look at the JUnit plugin, some stuff was recently added to
>> that plugin that will let you test your actions outside the container.
>> The only problems is JSPs, for which you can use the Embedded JSP
>> plugins. So as Dave said, yes you can but you have to use those 2
>> plugins.
>>
>> musachy
>>
>> On Wed, Sep 2, 2009 at 8:43 AM, Greg Lindholm wrote:
>>> On Wed, Sep 2, 2009 at 11:18 AM, Dave Newton  wrote:
>>>
 James Carr wrote:

> I've been doing a lot of rails development lately, and one thing I
> like is how I can use Cucumber to test my rails app through the
> controller, and through this I can test validation and templates that
> are rendered without the server running.
>
> Is it possible to do something like this for Struts2?
>

 Yep.

 Dave



>>> LOL ... A little short on details there Dave.
>>>
>>
>>
>>
>> --
>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



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

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: struts2 filter-mapping url-pattern

2009-09-02 Thread Rusty Wright

Ok, thanks.  That makes sense.


Wes Wannemacher wrote:

There are a few static resources (javascript and css files) in the jar
that get served up under certain conditions... Such as if you are
using the javascript validation. Any of the static resources that
struts serves right from the jar file will be mapped as requests to
/struts/*

-Wes

On Wed, Sep 2, 2009 at 3:20 AM, Rusty Wright wrote:

That's good to know; thanks.

This struts newbie would like to know, what's the /struts/* mapping for?


Rajeev Sharma wrote:

*.action works fine for me too.

-Original Message-
From: Peter Phillips 
Reply-to: "Struts Users Mailing List" 
To: Struts Users Mailing List 
Subject: Re: struts2 filter-mapping url-pattern
Date: Wed, 2 Sep 2009 06:57:02 +0100

Using *.action and /struts/* works fine for our projects.  I wanted to
do that since I wanted to map *.do to a struts 1 filter.

Peter.

2009/9/2 Wes Wannemacher :

One thing I've been itching to try is to map to *.action and /struts/*

Those are pretty much the two things you "need"

Try that and see if it works.

By the way, do you get an exception or something? The filters are
supposed to
be friendly to non-struts requests... If you're having a problem, it
might be
more interesting to address the problem than to try to get rid of the
filter.

-Wes

On Tuesday 01 September 2009 07:30:59 pm Arthur Neves wrote:

I think It' s impossible to do, because all of request's must pass to
the
filter! If I'd been wrong, please, somebody correct me!

2009/9/1 Rusty Wright 


In the web.xml why is the filter-mapping url-pattern /* ?  Would it
work
to change it to *.action instead?

For some reason, I can't get jetty to serve my welcome-file index.jsp
file and if I change the url-pattern to *.action then it starts
working.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

--
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org








-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Strut2 Picture Upload question: Please Help!

2009-09-02 Thread hisameer

I am using Struts 2.1.6 and in my application I have a requirement where the
user can upload four pictures of his vehicle.In my JSP, there will be four
upload buttons corresponding to those four pics(As shown in the below
image). After the user is done selecting the file it should be uploaded in
the JSP right away. 

Below image shows the actual display of the requirement. 


http://www.nabble.com/file/p25266760/picUploading.jpg 


Can somebody put some sample code for this kind of requirement or suggest me
what should I do? I am sure this is just a simple requirement but I am not
able to crack it. 
-- 
View this message in context: 
http://www.nabble.com/Strut2-Picture-Upload-question%3A-Please-Help%21-tp25266760p25266760.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Executing the Struts2 Stack without a server running?

2009-09-02 Thread James Carr
Thanks

On Wed, Sep 2, 2009 at 10:58 AM, Musachy Barroso wrote:
> lol. Take a look at the JUnit plugin, some stuff was recently added to
> that plugin that will let you test your actions outside the container.
> The only problems is JSPs, for which you can use the Embedded JSP
> plugins. So as Dave said, yes you can but you have to use those 2
> plugins.
>
> musachy
>
> On Wed, Sep 2, 2009 at 8:43 AM, Greg Lindholm wrote:
>> On Wed, Sep 2, 2009 at 11:18 AM, Dave Newton  wrote:
>>
>>> James Carr wrote:
>>>
 I've been doing a lot of rails development lately, and one thing I
 like is how I can use Cucumber to test my rails app through the
 controller, and through this I can test validation and templates that
 are rendered without the server running.

 Is it possible to do something like this for Struts2?

>>>
>>> Yep.
>>>
>>> Dave
>>>
>>>
>>>
>> LOL ... A little short on details there Dave.
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Session variables in buttons - preselection and formatting?

2009-09-02 Thread Lee Clemens
And if you're using cssClass in the  tag, you might want to add
this to the template (just replace the  from the example Mike
provided):


 class="${parameters.cssClass?html}"<#rt/>
>


-Original Message-
From: Mike Baranski [mailto:list-subscripti...@secmgmt.com] 
Sent: Wednesday, September 02, 2009 4:50 PM
To: 'Struts Users Mailing List'; d...@homeport.org
Subject: RE: Session variables in  buttons - preselection and
formatting?

For #1, I don't know.

For #2, I did exactly that, see here:

http://mikeski.net/site/node/16

Mike.



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Session variables in buttons - preselection and formatting?

2009-09-02 Thread Mike Baranski
For #1, I don't know.

For #2, I did exactly that, see here:

http://mikeski.net/site/node/16

Mike.


>-Original Message-
>From: Dave Belfer-Shevett [mailto:d...@homeport.org]
>Sent: Wednesday, September 02, 2009 4:34 PM
>To: Struts Users Mailing List
>Subject: Session variables in  buttons - preselection and
>formatting?
>
>I have a twofold question.
>
>The first is I have a session variable called 'sendto' which contains a
>string ('registrant','none', or 'everyone').  When the page with the
>radio buttons is rendered, I want to preselect based on whatever the
>value in the session hash for 'sendto' is set to.
>
>Code:
>   
>   Notifications
>   Send email to:
>  list="#{'none':'None','registrant':'This
>Registrant','everyone':'Everyone on this invoice'}"
>   value="#{sendto}" name="sendto" />
>   
>
>I woudl have thought the value="#{sendto}" would have done that, but it
>doesn't.  I've checked and the session key 'sendto' does have the value
>'registrant' in it.
>
>Secondly - These render on a straight line, one right after another.
>I'd like line breaks  between each radio button.  Is this possible?
>
>Thanks!
>
>   -dbs
>
>-
>To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>For additional commands, e-mail: user-h...@struts.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Session variables in buttons - preselection and formatting?

2009-09-02 Thread Dave Belfer-Shevett

I have a twofold question.

The first is I have a session variable called 'sendto' which contains a 
string ('registrant','none', or 'everyone').  When the page with the 
radio buttons is rendered, I want to preselect based on whatever the 
value in the session hash for 'sendto' is set to.


Code:

Notifications
Send email to:
			list="#{'none':'None','registrant':'This 
Registrant','everyone':'Everyone on this invoice'}"

value="#{sendto}" name="sendto" />


I woudl have thought the value="#{sendto}" would have done that, but it 
doesn't.  I've checked and the session key 'sendto' does have the value 
'registrant' in it.


Secondly - These render on a straight line, one right after another. 
I'd like line breaks  between each radio button.  Is this possible?


Thanks!

-dbs

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Action Tag java.lang.StackOverflowError

2009-09-02 Thread BrianNicely
Of course if you couldn't tell, I'm very new to Struts. Can you explain 
why that all shows up on one page and doesn't take me to a different page?

My best assumption on how Struts works is that when I'm at index.jsp I 
call the action ActionTag which on a success displays the snippet.jsp page 
on the index.jsp page.
 
 
Brian E. Nicely
Programmer / Analyst
Knowledge Management
 
ASPCA®
1717 South Philo Road, Suite 36
Urbana, IL 61802
 
briannic...@aspca.org
 
P: 217-337-9700, 9799
F: 217-337-0599
www.aspca.org
 
The information contained in this e-mail, and any attachments hereto, is 
from The American Society for the Prevention of Cruelty to Animals® (ASPCA
®) and is intended only for use by the addressee(s) named herein and may 
contain legally privileged and/or confidential information. If you are not 
the intended recipient of this e-mail, you are hereby notified that any 
dissemination, distribution, copying or use of the contents of this 
e-mail, and any attachments hereto, is strictly prohibited. If you have 
received this e-mail in error, please immediately notify me by reply email 
and permanently delete the original and any copy of this e-mail and any 
printout thereof.

Re: Action Tag java.lang.StackOverflowError

2009-09-02 Thread musomesa

 Great. The trick is not to have an action's result contain a call to the 
action -- 
you set up an infinite recursion that way.


 


Chris

 


 

-Original Message-
From: briannic...@aspca.org
To: Struts Users Mailing List 
Sent: Wed, Sep 2, 2009 3:21 pm
Subject: Re: Action Tag java.lang.StackOverflowError










Chris,

Thanks, that works exactly the way I wanted. 
 
Brian E. Nicely
Programmer / Analyst
Knowledge Management
 
ASPCA®
1717 South Philo Road, Suite 36
Urbana, IL 61802
 
briannic...@aspca.org
 
P: 217-337-9700, 9799
F: 217-337-0599
www.aspca.org
 
The information contained in this e-mail, and any attachments hereto, is 
from The American Society for the Prevention of Cruelty to Animals® (ASPCA
®) and is intended only for use by the addressee(s) named herein and may 
contain legally privileged and/or confidential information. If you are not 
the intended recipient of this e-mail, you are hereby notified that any 
dissemination, distribution, copying or use of the contents of this 
e-mail, and any attachments hereto, is strictly prohibited. If you have 
received this e-mail in error, please immediately notify me by reply email 
and permanently delete the original and any copy of this e-mail and any 
printout thereof.



 



Re: Using JSF and tiles

2009-09-02 Thread Wes Wannemacher
2009/9/2 Martin Gainty :
>
> bejaouizied
>
> this guy emailed me on a contract in london (22&/hr flat for duration of 
> contract)
>
> w.bottri...@computerfutures.com
>
> HTH
> Martin Gainty

Martin,

What in the holy name of Gozer the Gozerian are you talking about?

-Wes

-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Using JSF and tiles

2009-09-02 Thread Martin Gainty

bejaouizied

this guy emailed me on a contract in london (22&/hr flat for duration of 
contract)

w.bottri...@computerfutures.com

HTH
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: bejaouiz...@hotmail.com
> To: user@struts.apache.org
> Subject: Using JSF and tiles
> Date: Wed, 2 Sep 2009 16:17:39 +0100
> 
> 
> Hi guys,
> 
> I am trying to use a JSF files as a body of a tiles definition, however when 
> i run my example the jsf file is noy showing up
> 
> here is my definition:
> 
>   
>
>   
>
>   
>
>
>  
> 
> 
> home.jsp is a jsf file.
> 
> 
> 
> ZIED BEJAOUI
> Tel: 0044(0)7506628905
> 
> 
> 
> 
> 
> _
> Un avatar à votre image ? Créez votre mini-moi !
> http://www.ilovemessenger.fr/minimize-me/

_
Get back to school stuff for them and cashback for you.
http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1

Re: Action Tag java.lang.StackOverflowError

2009-09-02 Thread BrianNicely
Chris,

Thanks, that works exactly the way I wanted. 
 
Brian E. Nicely
Programmer / Analyst
Knowledge Management
 
ASPCA®
1717 South Philo Road, Suite 36
Urbana, IL 61802
 
briannic...@aspca.org
 
P: 217-337-9700, 9799
F: 217-337-0599
www.aspca.org
 
The information contained in this e-mail, and any attachments hereto, is 
from The American Society for the Prevention of Cruelty to Animals® (ASPCA
®) and is intended only for use by the addressee(s) named herein and may 
contain legally privileged and/or confidential information. If you are not 
the intended recipient of this e-mail, you are hereby notified that any 
dissemination, distribution, copying or use of the contents of this 
e-mail, and any attachments hereto, is strictly prohibited. If you have 
received this e-mail in error, please immediately notify me by reply email 
and permanently delete the original and any copy of this e-mail and any 
printout thereof.

Re: Action Tag java.lang.StackOverflowError

2009-09-02 Thread musomesa

 
1) Create a file called snippet.jsp with just:

        
            And this line is from the target action.
        

-        
        
2) Change result in your struts.xml to read


   
  
 /snippet.jsp
  
   



---
3) Just a comment: you are overriding the execute() method with the same 
functionality you
are inheriting from ActionSupport so your TargetAction can be abbreviated to:

package manning.chapterSix;
import com.opensymphony.xwork2.ActionSupport;
public class TargetAction extends ActionSupport {}

--

4) index.jsp stays the same:


    
        Action Tag
    
    
        
            Action Tag
        
        
        
            This line is before the ActionTag invokes the secondary action.
        
     
   
    




 


Chris

 


 

-Original Message-
From: briannic...@aspca.org
To: Struts Users Mailing List 
Sent: Wed, Sep 2, 2009 2:14 pm
Subject: Re: Action Tag java.lang.StackOverflowError










Is there an example you could point me to (that actually works) or help me 
get my example working?
 
 
Brian E. Nicely
Programmer / Analyst
Knowledge Management
 
ASPCA®
1717 South Philo Road, Suite 36
Urbana, IL 61802
 
briannic...@aspca.org
 
P: 217-337-9700, 9799
F: 217-337-0599
www.aspca.org
 
The information contained in this e-mail, and any attachments hereto, is 
from The American Society for the Prevention of Cruelty to Animals® (ASPCA
®) and is intended only for use by the addressee(s) named herein and may 
contain legally privileged and/or confidential information. If you are not 
the intended recipient of this e-mail, you are hereby notified that any 
dissemination, distribution, copying or use of the contents of this 
e-mail, and any attachments hereto, is strictly prohibited. If you have 
received this e-mail in error, please immediately notify me by reply email 
and permanently delete the original and any copy of this e-mail and any 
printout thereof.



 



Re: Action Tag java.lang.StackOverflowError

2009-09-02 Thread BrianNicely
Thank you Martin and Dave.

That makes sense to me Dave, thanks for clearing that up. What I would 
like to do though is stay on the same page without going to a different 
page but still contain that action. From what you're describing and from 
what I got from Martin, it appears it might not be possible.
 
 
Brian E. Nicely
Programmer / Analyst
Knowledge Management
 
ASPCA®
1717 South Philo Road, Suite 36
Urbana, IL 61802
 
briannic...@aspca.org
 
P: 217-337-9700, 9799
F: 217-337-0599
www.aspca.org
 
The information contained in this e-mail, and any attachments hereto, is 
from The American Society for the Prevention of Cruelty to Animals® (ASPCA
®) and is intended only for use by the addressee(s) named herein and may 
contain legally privileged and/or confidential information. If you are not 
the intended recipient of this e-mail, you are hereby notified that any 
dissemination, distribution, copying or use of the contents of this 
e-mail, and any attachments hereto, is strictly prohibited. If you have 
received this e-mail in error, please immediately notify me by reply email 
and permanently delete the original and any copy of this e-mail and any 
printout thereof.

Re: Action Tag java.lang.StackOverflowError

2009-09-02 Thread Dave Newton

briannic...@aspca.org wrote:
Is there an example you could point me to (that actually works) or help me 
get my example working?


We seem to be talking past each other here.

Load a page you're not already on. Do you understand *why* you're 
getting a stack overflow? You're calling an action. That action renders 
a JSP. That JSP is the JSP you're already on. The JSP you're on calls an 
action, that renders a JSP, that calls the same action, that renders a 
JSP, that calls an action...


dave


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Action Tag java.lang.StackOverflowError

2009-09-02 Thread BrianNicely
Is there an example you could point me to (that actually works) or help me 
get my example working?
 
 
Brian E. Nicely
Programmer / Analyst
Knowledge Management
 
ASPCA®
1717 South Philo Road, Suite 36
Urbana, IL 61802
 
briannic...@aspca.org
 
P: 217-337-9700, 9799
F: 217-337-0599
www.aspca.org
 
The information contained in this e-mail, and any attachments hereto, is 
from The American Society for the Prevention of Cruelty to Animals® (ASPCA
®) and is intended only for use by the addressee(s) named herein and may 
contain legally privileged and/or confidential information. If you are not 
the intended recipient of this e-mail, you are hereby notified that any 
dissemination, distribution, copying or use of the contents of this 
e-mail, and any attachments hereto, is strictly prohibited. If you have 
received this e-mail in error, please immediately notify me by reply email 
and permanently delete the original and any copy of this e-mail and any 
printout thereof.

Re: Action Tag java.lang.StackOverflowError

2009-09-02 Thread Dave Newton

briannic...@aspca.org wrote:
What I want to do is load a page without the user having to click on it 
(like a submit button) and have the data show up on the page. I also don't 
want to forward to another page. Is that even possible?


You can use the action tag for that (depending on a few things), but 
you're loading the same page you're already on.


Dave


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Action Tag java.lang.StackOverflowError

2009-09-02 Thread BrianNicely
What I want to do is load a page without the user having to click on it 
(like a submit button) and have the data show up on the page. I also don't 
want to forward to another page. Is that even possible?
 
 
Brian E. Nicely
Programmer / Analyst
Knowledge Management
 
ASPCA®
1717 South Philo Road, Suite 36
Urbana, IL 61802
 
briannic...@aspca.org
 
P: 217-337-9700, 9799
F: 217-337-0599
www.aspca.org
 
The information contained in this e-mail, and any attachments hereto, is 
from The American Society for the Prevention of Cruelty to Animals® (ASPCA
®) and is intended only for use by the addressee(s) named herein and may 
contain legally privileged and/or confidential information. If you are not 
the intended recipient of this e-mail, you are hereby notified that any 
dissemination, distribution, copying or use of the contents of this 
e-mail, and any attachments hereto, is strictly prohibited. If you have 
received this e-mail in error, please immediately notify me by reply email 
and permanently delete the original and any copy of this e-mail and any 
printout thereof.
 

Dave Newton  wrote on 09/02/2009 12:56:02 PM:

> briannic...@aspca.org wrote:
> > I've been banging my head against the wall for the past 6+ hours or so 
and 
> > need help with this problem.
> > 
> > I am trying to call an action to display results on a page when the 
page 
> > is closed, but I keep getting a loop that keeps printing the data over 
and 
> > over until a StackOverflowError occurs.
> > 
> > My code looks like this:
>  > [snipalottacode]
> 
> Well, you're calling the action you're in from the action you're 
> in--that's a stack overflow... I'm not sure what you're trying to do.
> 
> Dave
> 
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 


Re: Action Tag java.lang.StackOverflowError

2009-09-02 Thread Dave Newton

briannic...@aspca.org wrote:
I've been banging my head against the wall for the past 6+ hours or so and 
need help with this problem.


I am trying to call an action to display results on a page when the page 
is closed, but I keep getting a loop that keeps printing the data over and 
over until a StackOverflowError occurs.


My code looks like this:

> [snipalottacode]

Well, you're calling the action you're in from the action you're 
in--that's a stack overflow... I'm not sure what you're trying to do.


Dave


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Table(grids)

2009-09-02 Thread Johannes Geppert

I use the display tags for tables. it's easy to use with struts2.

http://displaytag.sourceforge.net/1.2/



Arthur Neves wrote:
> 
> Hi,
> 
> I'd like to know, if is there a way to make tables(grids) easily in
> Struts2?
> What do you use? Is there a tag?
> 
> 


-
---
web: http://www.jgeppert.com
twitter: http://twitter.com/jogep

-- 
View this message in context: 
http://www.nabble.com/Table%28grids%29-tp25258815p25260834.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Action Tag java.lang.StackOverflowError

2009-09-02 Thread BrianNicely
I'm sorry, I should correct myself.  I want to display the results when 
the page is "open" and I'm using Struts2.
 
Brian E. Nicely
Programmer / Analyst
Knowledge Management
 
ASPCA®
1717 South Philo Road, Suite 36
Urbana, IL 61802
 
briannic...@aspca.org
 
P: 217-337-9700, 9799
F: 217-337-0599
www.aspca.org
 
The information contained in this e-mail, and any attachments hereto, is 
from The American Society for the Prevention of Cruelty to Animals® (ASPCA
®) and is intended only for use by the addressee(s) named herein and may 
contain legally privileged and/or confidential information. If you are not 
the intended recipient of this e-mail, you are hereby notified that any 
dissemination, distribution, copying or use of the contents of this 
e-mail, and any attachments hereto, is strictly prohibited. If you have 
received this e-mail in error, please immediately notify me by reply email 
and permanently delete the original and any copy of this e-mail and any 
printout thereof.
 

briannic...@aspca.org wrote on 09/02/2009 11:15:27 AM:

> I've been banging my head against the wall for the past 6+ hours or so 
and 
> need help with this problem.
> 
> I am trying to call an action to display results on a page when the page 

> is closed, but I keep getting a loop that keeps printing the data over 
and 
> over until a StackOverflowError occurs.
> 
> My code looks like this:
> 
> index.jsp
> 
> <%@ page contentType="text/html; charset=UTF-8" %>
> <%@ taglib prefix="s" uri="/struts-tags" %>
> 
> 
> 
> Action Tag
> 
> 
> 
> Action Tag
> 
> This line is before the ActionTag invokes the 
> secondary action.
> 
> 
> 
> 
> 
> 
> web.xml
> 
> 
> http://java.sun.com/xml/ns/javaee";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";>
> 
> 
> struts2
> 
> org.apache.struts2.dispatcher.ng.filter.
> StrutsPrepareAndExecuteFilter
> 
> 
> 
> struts2
> /*
> 
> 
> 
> 
> 30
> 
> 
> 
> 
> index.jsp
> 
> 
> 
> 
> struts.xml
> 
>  "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
> "http://struts.apache.org/dtds/struts-2.0.dtd";>
> 
> 
>
>   
>  /index.jsp
>   
>
> 
> 
> 
> TargetAction.java
> 
> package manning.chapterSix;
> 
> import com.opensymphony.xwork2.ActionSupport;
> 
> /**
>  *
>  * @author bnicely
>  */
> public class TargetAction extends ActionSupport {
> 
>@Override
>public String execute(){
>   return SUCCESS;
>}
> }
> 
> 
> Can anyone assist me?
> 
> Thanks, 
> 
> Brian E. Nicely
> Programmer / Analyst
> Knowledge Management
> 
> ASPCA®
> 1717 South Philo Road, Suite 36
> Urbana, IL 61802
> 
> briannic...@aspca.org
> 
> P: 217-337-9700, 9799
> F: 217-337-0599
> www.aspca.org
> 
> The information contained in this e-mail, and any attachments hereto, is 

> from The American Society for the Prevention of Cruelty to Animals® 
(ASPCA
> ®) and is intended only for use by the addressee(s) named herein and may 

> contain legally privileged and/or confidential information. If you are 
not 
> the intended recipient of this e-mail, you are hereby notified that any 
> dissemination, distribution, copying or use of the contents of this 
> e-mail, and any attachments hereto, is strictly prohibited. If you have 
> received this e-mail in error, please immediately notify me by reply 
email 
> and permanently delete the original and any copy of this e-mail and any 
> printout thereof.
> 

Action Tag java.lang.StackOverflowError

2009-09-02 Thread BrianNicely
I've been banging my head against the wall for the past 6+ hours or so and 
need help with this problem.

I am trying to call an action to display results on a page when the page 
is closed, but I keep getting a loop that keeps printing the data over and 
over until a StackOverflowError occurs.

My code looks like this:

index.jsp

<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>



Action Tag



Action Tag

This line is before the ActionTag invokes the 
secondary action.






web.xml


http://java.sun.com/xml/ns/javaee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";>


struts2
 
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter



struts2
/*




30




index.jsp




struts.xml

http://struts.apache.org/dtds/struts-2.0.dtd";>


   
  
 /index.jsp
  
   



TargetAction.java

package manning.chapterSix;

import com.opensymphony.xwork2.ActionSupport;

/**
 *
 * @author bnicely
 */
public class TargetAction extends ActionSupport {

   @Override
   public String execute(){
  return SUCCESS;
   }
}


Can anyone assist me?

Thanks,  
 
Brian E. Nicely
Programmer / Analyst
Knowledge Management
 
ASPCA®
1717 South Philo Road, Suite 36
Urbana, IL 61802
 
briannic...@aspca.org
 
P: 217-337-9700, 9799
F: 217-337-0599
www.aspca.org
 
The information contained in this e-mail, and any attachments hereto, is 
from The American Society for the Prevention of Cruelty to Animals® (ASPCA
®) and is intended only for use by the addressee(s) named herein and may 
contain legally privileged and/or confidential information. If you are not 
the intended recipient of this e-mail, you are hereby notified that any 
dissemination, distribution, copying or use of the contents of this 
e-mail, and any attachments hereto, is strictly prohibited. If you have 
received this e-mail in error, please immediately notify me by reply email 
and permanently delete the original and any copy of this e-mail and any 
printout thereof.
 

Re: Executing the Struts2 Stack without a server running?

2009-09-02 Thread Musachy Barroso
lol. Take a look at the JUnit plugin, some stuff was recently added to
that plugin that will let you test your actions outside the container.
The only problems is JSPs, for which you can use the Embedded JSP
plugins. So as Dave said, yes you can but you have to use those 2
plugins.

musachy

On Wed, Sep 2, 2009 at 8:43 AM, Greg Lindholm wrote:
> On Wed, Sep 2, 2009 at 11:18 AM, Dave Newton  wrote:
>
>> James Carr wrote:
>>
>>> I've been doing a lot of rails development lately, and one thing I
>>> like is how I can use Cucumber to test my rails app through the
>>> controller, and through this I can test validation and templates that
>>> are rendered without the server running.
>>>
>>> Is it possible to do something like this for Struts2?
>>>
>>
>> Yep.
>>
>> Dave
>>
>>
>>
> LOL ... A little short on details there Dave.
>



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

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Executing the Struts2 Stack without a server running?

2009-09-02 Thread Greg Lindholm
On Wed, Sep 2, 2009 at 11:18 AM, Dave Newton  wrote:

> James Carr wrote:
>
>> I've been doing a lot of rails development lately, and one thing I
>> like is how I can use Cucumber to test my rails app through the
>> controller, and through this I can test validation and templates that
>> are rendered without the server running.
>>
>> Is it possible to do something like this for Struts2?
>>
>
> Yep.
>
> Dave
>
>
>
LOL ... A little short on details there Dave.


Re: Using JSF and tiles

2009-09-02 Thread Antonio Petrelli
Wrong mailing list.
Please ask the Tiles Users mailing list:
http://tiles.apache.org/mail.html

Antonio

2009/9/2 bejaoui zied :
>
> Hi guys,
>
> I am trying to use a JSF files as a body of a tiles definition, however when 
> i run my example the jsf file is noy showing up
>
> here is my definition:
>
> 
>  
>  
>  
>  
>  
>  
>
>     
>
> home.jsp is a jsf file.
>
>
>
> ZIED BEJAOUI
> Tel: 0044(0)7506628905
>
>
>
>
>
> _
> Un avatar à votre image ? Créez votre mini-moi !
> http://www.ilovemessenger.fr/minimize-me/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Executing the Struts2 Stack without a server running?

2009-09-02 Thread Dave Newton

James Carr wrote:

I've been doing a lot of rails development lately, and one thing I
like is how I can use Cucumber to test my rails app through the
controller, and through this I can test validation and templates that
are rendered without the server running.

Is it possible to do something like this for Struts2?


Yep.

Dave


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Using JSF and tiles

2009-09-02 Thread bejaoui zied

Hi guys,

I am trying to use a JSF files as a body of a tiles definition, however when i 
run my example the jsf file is noy showing up

here is my definition:

  
   
  
   
  
   
   
 


home.jsp is a jsf file.



ZIED BEJAOUI
Tel: 0044(0)7506628905





_
Un avatar à votre image ? Créez votre mini-moi !
http://www.ilovemessenger.fr/minimize-me/

Re: Table(grids)

2009-09-02 Thread Ernesto Reinaldo Barreiro
After a similar question I asked a few days ago... I decided to create a
tag-library and some utility classes  that will make it easy
integrate jqgrid into struts2 applications...  I already have something
working but it is far from finished (see
http://code.google.com/p/antilia-struts/) and I'll be adding more
functionality in the near future. In fact, there is already a small test
application showing  how to use the taglib
http://code.google.com/p/antilia-struts/source/browse/#svn/trunk/struts2-jq-antilia-test

I
know there is already a struts2-jquery integration project.. So, once I have
something finished  I wouldn't mind if "my" code is integrated into the
standard plugin (of course if the developers of it are interested in
including my code).

Best,

Ernesto

On Wed, Sep 2, 2009 at 4:42 PM, Wes Wannemacher  wrote:

> I've done it a few different ways. One of  my favorite ways is to use
> jqgrid and JSON... This is a bit complicated though, so not for the
> faint of heart. Constructing a basic table is pretty easy -
>
> 
> 
>  header1header2
> 
> 
>  value="#record.value2"/>
> 
> 
>
> Of course, you would probably want to properly add theader / tbody
> tags, but I was too lazy to make this a full-featured example.
>
> -Wes
>
> On Wed, Sep 2, 2009 at 10:35 AM, Arthur Neves wrote:
> > Hi,
> >
> > I'd like to know, if is there a way to make tables(grids) easily in
> Struts2?
> > What do you use? Is there a tag?
> >
>
>
>
> --
> Wes Wannemacher
>
> Head Engineer, WanTii, Inc.
> Need Training? Struts, Spring, Maven, Tomcat...
> Ask me for a quote!
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: Problem with collection in select

2009-09-02 Thread Mrakomor

Your advice works!  I used a javascript workaround in the meantime, however
your answer will spare me a lot of time next time.
-- 
View this message in context: 
http://www.nabble.com/Problem-with-collection-in-select-tp25256112p25259300.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Table(grids)

2009-09-02 Thread Wes Wannemacher
I've done it a few different ways. One of  my favorite ways is to use
jqgrid and JSON... This is a bit complicated though, so not for the
faint of heart. Constructing a basic table is pretty easy -



  header1header2






Of course, you would probably want to properly add theader / tbody
tags, but I was too lazy to make this a full-featured example.

-Wes

On Wed, Sep 2, 2009 at 10:35 AM, Arthur Neves wrote:
> Hi,
>
> I'd like to know, if is there a way to make tables(grids) easily in Struts2?
> What do you use? Is there a tag?
>



-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Table(grids)

2009-09-02 Thread Arthur Neves
Hi,

I'd like to know, if is there a way to make tables(grids) easily in Struts2?
What do you use? Is there a tag?


Executing the Struts2 Stack without a server running?

2009-09-02 Thread James Carr
Hi All,

I've been doing a lot of rails development lately, and one thing I
like is how I can use Cucumber to test my rails app through the
controller, and through this I can test validation and templates that
are rendered without the server running.

Is it possible to do something like this for Struts2?

Thanks,
James

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: httpheader result type

2009-09-02 Thread Dave Newton
FWIW, I did a quick dispatcher result hack that allows setting the HTTP 
result; we use it for Ajax calls (not 404s). I'll probably fold that 
property back into S2, but like Wes said it's not so handy for 404s.


Dave

Wes Wannemacher wrote:

404 is a tricky header... Most of the time, you really don't want to
send content along with an http header, think of redirects, etc. If
you want some app-specific behavior, I would try to fit it into your
app rather than trying to munge headers. In the case of redirects,
when you see content it is because the redirect is happening with
either meta-refresh or javascript. When the web server sends a 302 (or
whatever the number), you don't see anything but a blank page (or the
previously loaded page) in the browser. One nifty trick I have seen is
to go to a "landing" page that has a meta-refresh who's target is
redirected... Not sure how that is better, but my brain nearly
exploded when I tried to figure out what was going on.

What makes 404 tricky is that it is a header that is often associated
with content, since no one likes to see the stock
apache/tomcat/jetty/whatever error pages. The saving grace here is
that you can use web.xml in a container-nonspecific way to create a
404 page. If what you're looking for is to pretty-up the 404 page, use
web.xml and skip any of the struts configuration. If you are looking
to incorporate 404 into some sort of application-specific logic, make
sure that's *really* what you want to do first, then if so, check one
more time before you do it, then after that, that is when you'll want
to try to code up your solution.

-Wes

On Wed, Sep 2, 2009 at 9:33 AM, Mark Rollins wrote:

Thanks Wes.

The 'documentation' (it's very limited) gives the impression that you can
specify an error message when using the errorMessage parameter with the
error parameter, and even being able to pick up a message from the value
stack using an OGNL expression.

Having looked at what is returned (firebug in firefox), I can see no mention
of the error and the content (as you said) is empty.

--
View this message in context: 
http://www.nabble.com/httpheader-result-type-tp25254438p25257727.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org









-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: httpheader result type

2009-09-02 Thread Wes Wannemacher
404 is a tricky header... Most of the time, you really don't want to
send content along with an http header, think of redirects, etc. If
you want some app-specific behavior, I would try to fit it into your
app rather than trying to munge headers. In the case of redirects,
when you see content it is because the redirect is happening with
either meta-refresh or javascript. When the web server sends a 302 (or
whatever the number), you don't see anything but a blank page (or the
previously loaded page) in the browser. One nifty trick I have seen is
to go to a "landing" page that has a meta-refresh who's target is
redirected... Not sure how that is better, but my brain nearly
exploded when I tried to figure out what was going on.

What makes 404 tricky is that it is a header that is often associated
with content, since no one likes to see the stock
apache/tomcat/jetty/whatever error pages. The saving grace here is
that you can use web.xml in a container-nonspecific way to create a
404 page. If what you're looking for is to pretty-up the 404 page, use
web.xml and skip any of the struts configuration. If you are looking
to incorporate 404 into some sort of application-specific logic, make
sure that's *really* what you want to do first, then if so, check one
more time before you do it, then after that, that is when you'll want
to try to code up your solution.

-Wes

On Wed, Sep 2, 2009 at 9:33 AM, Mark Rollins wrote:
>
> Thanks Wes.
>
> The 'documentation' (it's very limited) gives the impression that you can
> specify an error message when using the errorMessage parameter with the
> error parameter, and even being able to pick up a message from the value
> stack using an OGNL expression.
>
> Having looked at what is returned (firebug in firefox), I can see no mention
> of the error and the content (as you said) is empty.
>
> --
> View this message in context: 
> http://www.nabble.com/httpheader-result-type-tp25254438p25257727.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: struts2 filter-mapping url-pattern

2009-09-02 Thread Wes Wannemacher
There are a few static resources (javascript and css files) in the jar
that get served up under certain conditions... Such as if you are
using the javascript validation. Any of the static resources that
struts serves right from the jar file will be mapped as requests to
/struts/*

-Wes

On Wed, Sep 2, 2009 at 3:20 AM, Rusty Wright wrote:
> That's good to know; thanks.
>
> This struts newbie would like to know, what's the /struts/* mapping for?
>
>
> Rajeev Sharma wrote:
>>
>> *.action works fine for me too.
>>
>> -Original Message-
>> From: Peter Phillips 
>> Reply-to: "Struts Users Mailing List" 
>> To: Struts Users Mailing List 
>> Subject: Re: struts2 filter-mapping url-pattern
>> Date: Wed, 2 Sep 2009 06:57:02 +0100
>>
>> Using *.action and /struts/* works fine for our projects.  I wanted to
>> do that since I wanted to map *.do to a struts 1 filter.
>>
>> Peter.
>>
>> 2009/9/2 Wes Wannemacher :
>>>
>>> One thing I've been itching to try is to map to *.action and /struts/*
>>>
>>> Those are pretty much the two things you "need"
>>>
>>> Try that and see if it works.
>>>
>>> By the way, do you get an exception or something? The filters are
>>> supposed to
>>> be friendly to non-struts requests... If you're having a problem, it
>>> might be
>>> more interesting to address the problem than to try to get rid of the
>>> filter.
>>>
>>> -Wes
>>>
>>> On Tuesday 01 September 2009 07:30:59 pm Arthur Neves wrote:

 I think It' s impossible to do, because all of request's must pass to
 the
 filter! If I'd been wrong, please, somebody correct me!

 2009/9/1 Rusty Wright 

> In the web.xml why is the filter-mapping url-pattern /* ?  Would it
> work
> to change it to *.action instead?
>
> For some reason, I can't get jetty to serve my welcome-file index.jsp
> file and if I change the url-pattern to *.action then it starts
> working.
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>>>
>>> --
>>> Wes Wannemacher
>>>
>>> Head Engineer, WanTii, Inc.
>>> Need Training? Struts, Spring, Maven, Tomcat...
>>> Ask me for a quote!
>>>
>>> -
>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>> For additional commands, e-mail: user-h...@struts.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: httpheader result type

2009-09-02 Thread Mark Rollins

Thanks Wes.

The 'documentation' (it's very limited) gives the impression that you can
specify an error message when using the errorMessage parameter with the
error parameter, and even being able to pick up a message from the value
stack using an OGNL expression. 

Having looked at what is returned (firebug in firefox), I can see no mention
of the error and the content (as you said) is empty.

-- 
View this message in context: 
http://www.nabble.com/httpheader-result-type-tp25254438p25257727.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Problem with collection in select

2009-09-02 Thread Dave Newton

Mrakomor wrote:

Hello folks,

I wanted to use a Struts 2 select in the form. I wanted to populate the list
using filtered collection. If I use it without the filter, like this:

name="depzad.dzRequest.contractList[%{#status.index}].selectedContract" 
   	listKey="contractNr" listValue="contractNr"			

list="depzad.dzZadostMat.contractList" />


it works just fine. In depzad.dzZadostMat.contractList is a list of the
contracts and contract numbers are in the select. 

If I use a filter, that compares a number, it works too: 
name="depzad.dzRequest.contractList[%{#status.index}].selectedContract" 
   	listKey="contractNr" listValue="contractNr"			

list="depzad.dzZadostMat.contractList.{? #this.integerProperty>20}" />

"integerProperty" - there is a valid getter for the integerProperty in the
Contract class and the list I obtain is properly filtered. 

However if the property for the filtering is a String: 
name="depzad.dzRequest.contractList[%{#status.index}].selectedContract" 
   	listKey="contractNr" listValue="contractNr"			

list="depzad.dzZadostMat.contractList.{? #this.stringProperty=='B'}" />


OGNL treats single chars in single quotes as chars, not strings.

http://struts.apache.org/2.x/docs/why-wont-the-if-tag-evaluate-a-one-char-string.html

Dave

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: How To Post A Message To the Struts User Mailing List

2009-09-02 Thread Dave Newton
谢冬鸣 wrote:
> can i directly send mail to "user@struts.apache.org" from my gmail and all
> the mailling list users will see it ?

Yes, like this one.

Dave


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: struts2 filter-mapping url-pattern

2009-09-02 Thread Dave Newton

Rusty Wright wrote:

This struts newbie would like to know, what's the /struts/* mapping for?


The static files S2 serves (CSS, JS).

Dave


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: [SOLVED]: Need to disable session interceptor

2009-09-02 Thread Dave Newton

Rajeev Sharma wrote:

I am not using session or cookies at all in my application right now. So
I guess adding cookie listener doesn't make any sense to be added to
JMeter test case. I shall use cookies later and shall add cookie
listener to test my application. I don't want to store any data in web
server so will not use sessions, rather shall store userid in cookie and
fetch users data from memcache from cache machine based on the cookie.


So you might as well have JMeter have a cookie listener so it simulates 
the browser.


Dave


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Problem with collection in select

2009-09-02 Thread Wes Wannemacher
My guess is that your single-char string is evaluated as a single char...

http://struts.apache.org/2.x/docs/why-wont-the-if-tag-evaluate-a-one-char-string.html

Try flipping the quotes or escaping double-quotes in the expression,
then OGNL will probably figure it out.

-Wes

On Wed, Sep 2, 2009 at 8:00 AM, Mrakomor wrote:
>
> Hello folks,
>
> I wanted to use a Struts 2 select in the form. I wanted to populate the list
> using filtered collection. If I use it without the filter, like this:
>
>  name="depzad.dzRequest.contractList[%{#status.index}].selectedContract"
>        listKey="contractNr" listValue="contractNr"
> list="depzad.dzZadostMat.contractList" />
>
>
> it works just fine. In depzad.dzZadostMat.contractList is a list of the
> contracts and contract numbers are in the select.
>
> If I use a filter, that compares a number, it works too:
>  name="depzad.dzRequest.contractList[%{#status.index}].selectedContract"
>        listKey="contractNr" listValue="contractNr"
> list="depzad.dzZadostMat.contractList.{? #this.integerProperty>20}" />
>
> "integerProperty" - there is a valid getter for the integerProperty in the
> Contract class and the list I obtain is properly filtered.
>
> However if the property for the filtering is a String:
>  name="depzad.dzRequest.contractList[%{#status.index}].selectedContract"
>        listKey="contractNr" listValue="contractNr"
> list="depzad.dzZadostMat.contractList.{? #this.stringProperty=='B'}" />
>
> I receive an error message:
> org.apache.struts2.StrutsException #8636967tag 'select', field 'list', name
> 'depzad.dzRequest.contractList[1].selectedContract': The requested list key
> 'depzad.dzRequest.contractList.{?#this.stringProperty=='B'}' could not be
> resolved as a collection/array/map/enumeration/iterator type. Example:
> people or people.{name} - [unknown location]
>
> The public String getStringProperty() function exists in the Class, but it
> is not called. What may be wrong?
>
> --
> View this message in context: 
> http://www.nabble.com/Problem-with-collection-in-select-tp25256112p25256112.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: httpheader result type

2009-09-02 Thread Wes Wannemacher
The HTTP Header result type doesn't really have the ability to write
content. You could try mapping 404 in your web.xml, then use the http
header result type in conjunction with the 404 mapping in web.xml
(never tried it, so let us know if that works).

-Wes

On Wed, Sep 2, 2009 at 5:35 AM, Mark Rollins wrote:
>
> Hi,
>
> I need to be able to return a status and message to users of a particular
> URL. If I use...
>
>
> 
>  404
> 
>
>
> I can successfully return a 404 status, but with no message.
>
> If I use...
>
>
> 
>  404
>  Some details about the error go here, or an OGNL expression
> 
>
>
> The page returned to the browser has no content.
>
> Any ideas anyone?
>
> Thanks.
> --
> View this message in context: 
> http://www.nabble.com/httpheader-result-type-tp25254438p25254438.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Problem with collection in select

2009-09-02 Thread Mrakomor

Hello folks,

I wanted to use a Struts 2 select in the form. I wanted to populate the list
using filtered collection. If I use it without the filter, like this:




it works just fine. In depzad.dzZadostMat.contractList is a list of the
contracts and contract numbers are in the select. 

If I use a filter, that compares a number, it works too: 


"integerProperty" - there is a valid getter for the integerProperty in the
Contract class and the list I obtain is properly filtered. 

However if the property for the filtering is a String: 


I receive an error message:
org.apache.struts2.StrutsException #8636967tag 'select', field 'list', name
'depzad.dzRequest.contractList[1].selectedContract': The requested list key
'depzad.dzRequest.contractList.{?#this.stringProperty=='B'}' could not be
resolved as a collection/array/map/enumeration/iterator type. Example:
people or people.{name} - [unknown location]

The public String getStringProperty() function exists in the Class, but it
is not called. What may be wrong?

-- 
View this message in context: 
http://www.nabble.com/Problem-with-collection-in-select-tp25256112p25256112.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



httpheader result type

2009-09-02 Thread Mark Rollins

Hi,

I need to be able to return a status and message to users of a particular
URL. If I use...



  404



I can successfully return a 404 status, but with no message.

If I use...



  404
  Some details about the error go here, or an OGNL expression



The page returned to the browser has no content. 

Any ideas anyone?

Thanks.
-- 
View this message in context: 
http://www.nabble.com/httpheader-result-type-tp25254438p25254438.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: How To Post A Message To the Struts User Mailing List

2009-09-02 Thread Rusty Wright
Yes.  Also note that you probably must be sending the email from an email 
address that is subscribed to the list.

谢冬鸣 wrote:
> can i directly send mail to "user@struts.apache.org" from my gmail and all
> the mailling list users will see it ?
> 
> 
> On Tue, Sep 1, 2009 at 06:34, Java Struts  wrote:
> 
>> Hey, thanks a lot for your help.
>>
>>
>>
>> On Mon, Aug 31, 2009 at 5:52 PM, phillips1021  wrote:
>>
>>> Someone asked me this on a different thread.
>>>
>>> I use nabble.com (http://www.nabble.com/Struts---User-f206.html) to
>>> search,
>>> read, post new topics, and reply to topics on the Struts user mailing
>> list.
>>> After I subscribed (see
>>> http://www.nabble.com/mailing_list/MailingListOptions.jtp?forum=206) to
>>> the
>>> user mailing list I just use the Post New Message link that is at the top
>>> of
>>> the nabble.com Struts User page to post a new topic.
>>>
>>>
>>> --
>>> View this message in context:
>>>
>> http://www.nabble.com/How-To-Post-A-Message-To-the-Struts-User-Mailing-List-tp25230979p25230979.html
>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>> For additional commands, e-mail: user-h...@struts.apache.org
>>>
>>>
> 
> 
> 

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: struts2 filter-mapping url-pattern

2009-09-02 Thread Rusty Wright

That's good to know; thanks.

This struts newbie would like to know, what's the /struts/* mapping for?


Rajeev Sharma wrote:

*.action works fine for me too.

-Original Message-
From: Peter Phillips 
Reply-to: "Struts Users Mailing List" 
To: Struts Users Mailing List 
Subject: Re: struts2 filter-mapping url-pattern
Date: Wed, 2 Sep 2009 06:57:02 +0100

Using *.action and /struts/* works fine for our projects.  I wanted to
do that since I wanted to map *.do to a struts 1 filter.

Peter.

2009/9/2 Wes Wannemacher :

One thing I've been itching to try is to map to *.action and /struts/*

Those are pretty much the two things you "need"

Try that and see if it works.

By the way, do you get an exception or something? The filters are supposed to
be friendly to non-struts requests... If you're having a problem, it might be
more interesting to address the problem than to try to get rid of the filter.

-Wes

On Tuesday 01 September 2009 07:30:59 pm Arthur Neves wrote:

I think It' s impossible to do, because all of request's must pass to the
filter! If I'd been wrong, please, somebody correct me!

2009/9/1 Rusty Wright 


In the web.xml why is the filter-mapping url-pattern /* ?  Would it work
to change it to *.action instead?

For some reason, I can't get jetty to serve my welcome-file index.jsp
file and if I change the url-pattern to *.action then it starts working.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

--
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org