[S2] FreeMarker sample application

2007-07-05 Thread Mark P Ashworth
Good Day, I have been using FreeMarker for the S2 plug-in development and some other projects. I find the FTL language more expressive than JSP and I was wondering if there is a sample S2 application that makes use of FTL for the views. Regards, Mark P Ashworth http://www.connext.co.za -- View

Re: Problem installing Struts 2

2007-07-05 Thread java_user
Hi, could you please provide struts2 version? thanks ramesh Hubert Hers wrote: Hi, I am new to Struts 2 and have a problem installing Struts 2 on tomcat 5.5.23. After copying the war files to the webapps directory of tomcat(but did NOT copy the jars anywhere), I get a problem

[S2] Default Action

2007-07-05 Thread Chris Pratt
I am trying to figure out how to set the default class that is executed when a class is not specified on an action declaration. When you specify something like: action name=home result/home.jsp/result /action Struts automatically runs com.opensymphony.xwork2.ActionSupport. But I am trying to

AW: Problem installing Struts 2

2007-07-05 Thread Hubert Hers
Hi, This installation problem relates to Struts 2.0.8 Thanks, Hubert -Ursprüngliche Nachricht- Von: java_user [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 5. Juli 2007 08:53 An: user@struts.apache.org Betreff: Re: Problem installing Struts 2 Hi, could you please provide struts2

Re: Checkboxes problem

2007-07-05 Thread Andreja
Yes, I agree, but in that case I can not display checkboxes vertically (each one in a new row). To be able to do so using checkboxlist I would have to make a custom template. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

unit testing interceptors

2007-07-05 Thread Session A Mwamufiya
Hi, Has anyone created unit tests (with JUnit) for interceptors? I'd like to have an easy example to follow in order to unit test mine. Thanks, Session - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Problem installing Struts 2

2007-07-05 Thread Nils-Helge Garli
Hi! The portlet example won't run as a stand alone web application under Tomcat. It will only run in a portlet container. If you don't intend installing a portlet container, just remove the struts2-portlet war file from your webapps folder. Nils-H On 7/5/07, Hubert Hers [EMAIL PROTECTED]

RE: unit testing interceptors

2007-07-05 Thread Session A Mwamufiya
Thanks for the code. Could you please include the imports, because I'm not sure what is related to your mock class and what is part of struts 2 (like expect(), is that part of struts 2 or is it internal to your mock class?). Thanks, Session This uses easyMock @Test public void

RE: unit testing interceptors

2007-07-05 Thread Fowler, Perryn
This uses easyMock @Test public void should_log_before_and_after_action_execution() throws Exception { Logger mockLogger = createMock(Logger.class); String actionName = mockAction; String actionResult = Success; ActionInvocation mockInvocation =

AW: sample code needed

2007-07-05 Thread Anja Fischer, IBE
Hi, hope, it helps :-) html:select name=new_user_form property=city_I logic:iterate id=element property=city_hashmap name=new_user_form bean:define id=city_id bean:write name=element property=key / /bean:define

Found Denial Of Service (was [S2] App produces lot garbage IMPORTANT NEWS (I HOPE))

2007-07-05 Thread Ing. Andrea Vettori
If the password field is named password and the password entered value is %{password} than this loop is eating all memory... Don't think it's this to cause my problem BUT it's a potentially BIG DOS problem !!! It work with every s:field I tried... Il giorno 05/lug/07, alle ore 01:53,

Displaytag help in Struts 2

2007-07-05 Thread Dean Pullen
Hi all. The 'Exposing framework objects to JSTL, with a JSTL and DisplayTag Example' from here: http://struts.apache.org/2.0.8/docs/exposing-framework-objects-to-jstl-w ith-a-jstl-and-displaytag-example.html uses JSTL etc to display a URL within a displaytag table. e.g.: c:url var=viewurl

Re: Found Denial Of Service (was [S2] App produces lot garbage IMPORTANT NEWS (I HOPE))

2007-07-05 Thread Antonio Petrelli
2007/7/5, Ing. Andrea Vettori [EMAIL PROTECTED]: If the password field is named password and the password entered value is %{password} than this loop is eating all memory... Don't think it's this to cause my problem BUT it's a potentially BIG DOS problem !!! It work with every s:field I

Re: Displaytag help in Struts 2

2007-07-05 Thread Jeromy Evans
Within the displaytag 'display:table' tag, a 'row' object is set into the page context. How is this accessible from Struts 2? #attr is the OGNL to access the page context.#attr.row will access your display tag id object named row eg. #1 s:url action=/MyAction.action

Re: Displaytag help in Struts 2

2007-07-05 Thread Jeromy Evans
Within the displaytag 'display:table' tag, a 'row' object is set into the page context. How is this accessible from Struts 2? #attr is the OGNL to access the page context.#attr.row will access your display tag id object named row eg. #1 s:url action=/MyAction.action

[S2] Client side validation, hidden fields and clearErrorMessages not working in firefox

2007-07-05 Thread Max Pimm
I'm using 2.0.8 and using client side validation which its almost working perfectly. Unfortunately the only obstacle is that i can't put hidden fields in my form. The validation works correctly the problem is that the second time i validate the same form (without sending it to the server) the

RE: sample code needed

2007-07-05 Thread Vikash Manoranjan
Hi anja, Its working But please tell me one more thing. Now I want to select one of the item from the list dynamically... How can I do that?? Thanks and Regards, Vikash Manoranjan -Original Message- From: Anja Fischer, IBE [mailto:[EMAIL PROTECTED] Sent: 05 July 2007

Re: Found Denial Of Service (was [S2] App produces lot garbage IMPORTANT NEWS (I HOPE))

2007-07-05 Thread Ing. Andrea Vettori
Done. https://issues.apache.org/struts/browse/WW-2030 I tried on two different struts application. Maybe others can try on their app ??? If it's not already addressed it's a very serious bug! Il giorno 05/lug/07, alle ore 12:28, Antonio Petrelli ha scritto: 2007/7/5, Ing. Andrea Vettori

Re: Found Denial Of Service (was [S2] App produces lot garbage IMPORTANT NEWS (I HOPE))

2007-07-05 Thread Antonio Petrelli
2007/7/5, Ing. Andrea Vettori [EMAIL PROTECTED]: If it's not already addressed it's a very serious bug! I agree. I started a thread in Struts Developers mailing list. If you're willing to participate... :-) http://www.nabble.com/-S2--Heads-Up%3A-possible-DOS-problem-tf4028994.html Antonio

Re: Found Denial Of Service (was [S2] App produces lot garbage IMPORTANT NEWS (I HOPE))

2007-07-05 Thread Alexis Pigeon
I confirm the issue. Just try this on an existing S2 application : - add the field s:password name=password/ - add the proper getter and setter in the Action class - launch the app - in the added field, write %{password} - in my case, the tomcat process is eating 100% of the cpu. no problem

Re: Found Denial Of Service (was [S2] App produces lot garbage IMPORTANT NEWS (I HOPE))

2007-07-05 Thread Antonio Petrelli
2007/7/5, Alexis Pigeon [EMAIL PROTECTED]: I'm not familiar enough with JIRA to file an issue right now, but I'll do so later today if I find some time... Instead of creating a new issue, put a comment in this: https://issues.apache.org/struts/browse/WW-2030 Antonio

S2 and JFreeChart (showing images)

2007-07-05 Thread Andreja
I have an action where I create graph(s), and I need to display them in the page. It is ArrayListJFreeChart that I need to show, but for the start I will try to display only one graph. Action code goes like this: public class ChartDisplayAction () { ... execute() { HttpSession session =

Re: Found Denial Of Service (was [S2] App produces lot garbage IMPORTANT NEWS (I HOPE))

2007-07-05 Thread Ing. Andrea Vettori
Hi, the cpu usage is by the garbage collector that's collecting a large amount of garbage !! Il giorno 05/lug/07, alle ore 13:01, Alexis Pigeon ha scritto: I confirm the issue. Just try this on an existing S2 application : - add the field s:password name=password/ - add the proper

Problems known using ValidatorActionForm?

2007-07-05 Thread Anja Fischer, IBE
Hi all, I'm experiencing some problems using ValidatorActionForm. At this moment I have already spent some hours looking for the cause, but before posting my code in this list I want to ask if there are apps out there using it successfully. Please send me a short message. Best wishes, Anja

RE: Problems known using ValidatorActionForm?

2007-07-05 Thread Raghupathy, Gurumoorthy
What is the problem you are facing ... we have a big application running well on struts 1.3 ... Regards Guru -Original Message- From: Anja Fischer, IBE [mailto:[EMAIL PROTECTED] Sent: 05 July 2007 13:18 To: user@struts.apache.org Subject: Problems known using ValidatorActionForm?

AW: Problems known using ValidatorActionForm?

2007-07-05 Thread Anja Fischer, IBE
Hi Guru, the response is a 'Servlet action is not available' Message, every time I do some changes to the example validation.xml. struts-config.xml -- action path=/checklogin name=UserForm type=actions.CheckLogin scope=request validate=true input=/index.jsp forward

Struts2 validation with portlet

2007-07-05 Thread devsahu
Hi, Does stuts2 support its validation feature with portlet. Any help is highly appreciated. Thanks, Sabyasachi -- View this message in context: http://www.nabble.com/Struts2-validation-with-portlet-tf4029490.html#a11445797 Sent from the Struts - User mailing list archive at Nabble.com.

RE: Problems known using ValidatorActionForm?

2007-07-05 Thread Raghupathy, Gurumoorthy
Put everything in a package forms.Userform and then try ... I hope this helps Regards Guru -Original Message- From: Anja Fischer, IBE [mailto:[EMAIL PROTECTED] Sent: 05 July 2007 13:44 To: 'Struts Users Mailing List' Subject: AW: Problems known using ValidatorActionForm? Hi Guru, the

AW: Problems known using ValidatorActionForm?

2007-07-05 Thread Anja Fischer, IBE
Hi Guru, nice trick. Thank you very much. Anja -Ursprüngliche Nachricht- Von: Raghupathy, Gurumoorthy [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 5. Juli 2007 14:53 An: Struts Users Mailing List Betreff: RE: Problems known using ValidatorActionForm? Put everything in a package

RE: Struts2 validation with portlet

2007-07-05 Thread King, William S.
Can you point me to the location of the portlet example app? Thanks, Shane -Original Message- From: Nils-Helge Garli [mailto:[EMAIL PROTECTED] Sent: Thursday, July 05, 2007 9:34 AM To: Struts Users Mailing List Subject: Re: Struts2 validation with portlet If you look at the portlet

Re: Struts 2 and frames

2007-07-05 Thread yitzle
You mean you got a page that got frames and you want to eg have a button that switches you to a single framed (er, zero frames; frameless) page? I know in HTML this is accomplished by setting the A ... attribute target. See http://www.w3.org/TR/html4/types.html#h-6.16 HTH

Re: Action tag with parameters

2007-07-05 Thread yitzle
Quoting http://struts.apache.org/2.x/docs/action.html Parameters can be passed to the action using nested param tags. (links to http://struts.apache.org/2.x/docs/param.html) I'm not sure about the HTTP method... What exactly are you trying to accomplish?

RE: Problems known using ValidatorActionForm?

2007-07-05 Thread Raghupathy, Gurumoorthy
Did that work? If yes { Welcome ... this is not actually a struts issue... Classes in default package seems to have issues in tomcat. } else { Let me know if it worked ... } Regards Guru -Original Message- From: Anja Fischer, IBE [mailto:[EMAIL PROTECTED]

Re: Struts2 validation with portlet

2007-07-05 Thread Nils-Helge Garli
If you look at the portlet example application it has an example of using xml validation. Nils-H On 7/5/07, devsahu [EMAIL PROTECTED] wrote: Hi, Does stuts2 support its validation feature with portlet. Any help is highly appreciated. Thanks, Sabyasachi -- View this message in context:

Re: Excellent Struts 2 Tutorial

2007-07-05 Thread Ted Husted
I added the link. To edit the Struts 2 documentation site directly, one needs to first file a Contributors License Agreement, and then we can add the Confluence account to the appropriate group. * http://cwiki.apache.org/confluence/display/WW/Editing+the+Documentation HTH, Ted

Re: Action tag with parameters

2007-07-05 Thread Musachy Barroso
You can used nested param tag for that s:action name=ActionName .. s:param name=var1 value=%{'val1'}/ /s:action musachy On 7/4/07, Asaf Paris Mandoki [EMAIL PROTECTED] wrote: When directly calling an action we can send a petition like .../ActionName.action?var1=val1var2=val2 using the

Re: [S2] Default Action

2007-07-05 Thread yitzle
I'm not sure what you are trying to do, but each action calls an execute() Couldn't you set the role value in the execute()? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

AJAX tags IE 7

2007-07-05 Thread Daniel Henry
I have noticed that my Ajax tags work in every browser except for IE 7, which is obviously a problem. Anybody else having this problem? I noticed that this issue was noted as fixed for version 2.1 - any idea when that might be available - or at least the fix?

the Bootstrap tutorial

2007-07-05 Thread Eric Buitenhuis
Thanks to those who put the bootstrap tutorial application together. I'm upgrading from struts1 to struts2, and I need all the help I can get. I found one small (but curious) detail that threw me for a loop for an hour or two: Using the wildcards I had a bit of a problem that turned out to be

[s2] no result defined error after failed validation - can someone help?

2007-07-05 Thread Bill Johnson
I'm having trouble executing an action after validation has been performed and fails. Here is the scenario. I have an update page where users can update a record in the database. This page uses the standard struts 2 form and has a submit button. When I click the submit button, validation fails as

optionstransferselect tag

2007-07-05 Thread meissa . sakho
Hi all, I have a problem with the optiontransferselect tag. When I click on the submit button,nothing is set on the listeSelectedKeys attribute of my updateActionClass. Can someone tells me what i've missed. here is an extract of my jsp. s:form action=updateExtraction

Re: optionstransferselect tag

2007-07-05 Thread Bill Johnson
I'm having the same problem and it appears to be because the default theme is requiring DOJO to automatically select all the select options before submitting the form. I'm not sure if there is a JIRA bug opened for this or not, but there probably should be. The default (non-ajax) theme should not

Re: [S2] Default Action

2007-07-05 Thread Chris Pratt
Where would I get the value from? (*Chris*) On 7/5/07, yitzle [EMAIL PROTECTED] wrote: I'm not sure what you are trying to do, but each action calls an execute() Couldn't you set the role value in the execute()? - To

[S2] Trying to use Struts2 in a custom framework but ...

2007-07-05 Thread m . coindeau
Hello world, I'm currently working on a framework that should include Struts2 but I got some problems. First the context is a [webFramework]+Spring2+Hibernate project. I read some tutorial mainly about simple CRUD samples, but when trying to do a more serious application, the patterns used in

action class does not perfom

2007-07-05 Thread Nhut Thai Le
Hi, I have configured my app as follow: $CATALINA_HOME/conf/server.xml Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path=/Core1 docBase=Core1 debug=5

disable submit button

2007-07-05 Thread banurekha
I would like to know how to disable submit button when using AJAX theme. below is the code I am using s:submit type=submit disabled = true theme=ajax value=Save title=Save all changes. cssClass=mediumBtn

[s2] Performance of Ajax theme in SSL mode

2007-07-05 Thread nuwan chandrasoma
Hi All, Has anyone used the ajax theme in SSL mode?, i have a struts1 application in SSL mode and when i used dojo liberary i faced some performace issues and pages were rendering slow. As s2 is using dojo for ajax theme, will there be a performace issues in ajax theme in SSL mode? Thanks,

Re: Populate a s:select

2007-07-05 Thread Dave Newton
--- Richard Sayre [EMAIL PROTECTED] wrote: With #7/#8. If petsDao.pets is an ArrayList does listKey=fieldName and listValue=fieldName2 mean that to get these values, call getFieldName() getFieldName2() on the objects stored in the ArrayList Yep: listKey: Property of list objects to get

RE: disable submit button

2007-07-05 Thread Hoying, Ken
I believe this was a bug that was fixed in Struts 2.0.8. If you are using a version prior to that, then I do not believe that the attribute is working properly. -Original Message- From: banurekha [mailto:[EMAIL PROTECTED] Sent: Thursday, July 05, 2007 12:56 PM To:

RE: Populate a s:select

2007-07-05 Thread David Pinho \(Hexadecimal\)
You could make a SortedSet out of the Map.Entry, providing a suitable comparator at creation time. Something like this: SortedSetEntryInteger, String set = new TreeSetEntryInteger, String (theComparator); set.addAll(Map.entrySet()); private static class TheComparator implements

Re: action class does not perfom

2007-07-05 Thread Niall Pemberton
On 7/5/07, Nhut Thai Le [EMAIL PROTECTED] wrote: Hi, I have configured my app as follow: $CATALINA_HOME/conf/server.xml Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path=/Core1

Re: Populate a s:select

2007-07-05 Thread Andreja
Hi. LinkedHashMap will preserve order in wich elements are added to LinkedHashMap, and checkboxlist (radiobuttons, etc) will be displayed in that order. If I have a HashtableInteger,String with the following data: 1,One 2,Two 11,Eleven Is it possible to make the select box display the

Re: Struts 1.x Best Practices...

2007-07-05 Thread Ted Husted
The beanUtils.copyProperties method handles simple conversions. For complex conversions, like dates, I often found it simplest to code an extra property, so that there would be both currentDateText and currentDate properties. The business layer would use the currentDate property and the

Re: Struts 2 and frames

2007-07-05 Thread Session A Mwamufiya
Hi, I know about the target attribute, but I don't know how to set it for a result page in struts 2. I'm using an interceptor, and I don't want the login page to appear in the target frame if the interceptor intercepted an action that is supposed to appear in the target frame. Is there a way

Re: Struts 2 and frames

2007-07-05 Thread Dale Newfield
Session A Mwamufiya wrote: I'm using an interceptor, and I don't want the login page to appear in the target frame if the interceptor intercepted an action that is supposed to appear in the target frame. I'm not even certain how you'd determine which frame the results of a certain request are

How to control the display of Struts2 tags like s:textfield

2007-07-05 Thread Hubert Hers
Hi, Could anyone tell me how to use CSS styles in Struts2 for controlling the display of labels, input elements, buttons etc. (s:textfield, s:button, ...)? I can control the display of the key attribute using cssStyle or cssClass, but did not find a way to do the same with the tags:

How to have a struts2 a:div not autoload?

2007-07-05 Thread jthurst
How do I get the following struts2 a:div to not automatically do an ajax request when the page loads. I only want it to happen when a /fooFoo topic notification occurs from an event in form. s:div id=contactList theme=ajax href=%{foo_url} listenTopics=/fooFoo formId=fooForm Data will display

Struts 2 - Array of Text Fields

2007-07-05 Thread M Cody
I'm new to struts 2 and I'm trying to setup an edit form that will have an array of text boxes that will transfer their values back to the action for processing. I've tried a couple things, but I'm thinking I'm just approaching it all wrong or missing some key link somewhere and I can't find

Re: Struts 2 and frames

2007-07-05 Thread Session A Mwamufiya
Thanks Dale, I actually fixed it by setting a target attribute in the form on my login page, so that it always puts the resulting page at the top level. Thanks, Session Session A Mwamufiya wrote: I'm using an interceptor, and I don't want the login page to appear in the target frame if the

Re: Struts 2 and frames

2007-07-05 Thread Dale Newfield
Session A Mwamufiya wrote: Thanks Dale, I actually fixed it by setting a target attribute in the form on my login page, so that it always puts the resulting page at the top level. That may serve your purposes (only you know your requirements), but it seems to be addressing a different

Re: Struts 2 and frames

2007-07-05 Thread Session A Mwamufiya
In my case, it's ok that the login at least displays once in the frame setting, but then if the user fails to enter the right credentials, then the subsequent login form will appear at the top level. Thanks for the help in understanding this, Session Session A Mwamufiya wrote: Thanks Dale,

Re: S2 and JFreeChart (showing images)

2007-07-05 Thread Zoran Avtarovski
Are you accessing the session in the S2 way by implementing sessionaware and having a setSession method? I don't have any JFreeChart experience but apart from the session access code I can't see why it wouldn't work. Z. I have an action where I create graph(s), and I need to display them in