[S2] Default Action

2007-07-04 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 declaration. When you specify something like: /home.jsp Struts automatically runs com.opensymphony.xwork2.ActionSupport. But I am trying to figure out how to accomplish this: user

Re: Problem installing Struts 2

2007-07-04 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 d

[S2] FreeMarker sample application

2007-07-04 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: Checkboxes problem

2007-07-04 Thread tom tom
because you have the list, you can do the following You dont need to iterate --- Andreja <[EMAIL PROTECTED]> wrote: > Thank you very much Sharad, that WORKS! :] > > > > Just for the archive, this is also a possibility: > > > fieldValue="${manyNames[cnt.index]}"> >

Re: [S2] App produces lot garbage IMPORTANT NEWS (I HOPE)

2007-07-04 Thread Ing. Andrea Vettori
All the traces points me to this function on the xwork library Since it contains an infinte loop it's promising ;) Need to sleep now, I hope tomorrow to find someone else solution in my inbox :) Thank you public static Object translateVariables(char open, String expression, ValueStac

Re: Populate a s:select

2007-07-04 Thread Richard Sayre
On 7/4/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Richard Sayre <[EMAIL PROTECTED]> wrote: > http://struts.apache.org/2.0.8/docs/select.html > > I was wondering what: > > list="petDao.pets" > listKey="id" > listValue="name" > > are referring to? > > 1) Is petDao a java bean? 2) Is it an acti

Re: Populate a s:select

2007-07-04 Thread Dave Newton
--- Richard Sayre <[EMAIL PROTECTED]> wrote: > http://struts.apache.org/2.0.8/docs/select.html > > I was wondering what: > > list="petDao.pets" > listKey="id" > listValue="name" > > are referring to? > > 1) Is petDao a java bean? 2) Is it an action? > 3) How do you set it up on the page? 4)

[S2] App produces lot garbage IMPORTANT NEWS (I HOPE)

2007-07-04 Thread Ing. Andrea Vettori
Hi, for the readers of my previous messages I'm still facing the problem. After having upgraded the application server and even re-designed some code to not use JMS to exclude some possible causes now I think I've found something interesting. And it's struts related. I've keeped some thre

Re: Best Practice pass data into an included jsp

2007-07-04 Thread Chris Pratt
You might look into the Tiles project (http://tiles.apache.org), that's exactly what it's designed to do. (*Chris*) On 7/4/07, Ezra Jennings <[EMAIL PROTECTED]> wrote: I tried using s:include with nested s:param tags, but could not read the parameters using the s:property tag at all. The onl

Action tag with parameters

2007-07-04 Thread Asaf Paris Mandoki
When directly calling an action we can send a petition like .../ActionName.action?var1=val1&var2=val2 using the GET method. I understand that that calls an action with a couple of parameters. Can I do something similar when calling an action from the tag ? that is, Can I call an action using

Re: Best Practice pass data into an included jsp

2007-07-04 Thread Ezra Jennings
I tried using s:include with nested s:param tags, but could not read the parameters using the s:property tag at all. The only way that I could read the parameter was by using: <%= "param1:" + request.getParameter("param1") %> as suggested in: http://www.nabble.com/struts2-how-to-access-a-param

Struts 2 and frames

2007-07-04 Thread Session A Mwamufiya
Hi, This is the 3rd attempt I make to get an answer on how to force a jsp result page to be returned as a single window if html frames are used. Please give me any hint as to how I can get this done. Thanks, Session - To uns

unit testing interceptors

2007-07-04 Thread Session A Mwamufiya
Hi All, Does anyone have a link to a simple example for unit testing an interceptor and creating a mock ActionInvocation? The example in the Struts 2 documentation (http://struts.apache.org/2.0.8/docs/how-can-we-test-actions.html) is hard to understand and reuse in my code. Thanks for any hel

Populate a s:select

2007-07-04 Thread Richard Sayre
There is a example for populating a select using alist on this page: http://struts.apache.org/2.0.8/docs/select.html I was wondering what: list="petDao.pets" listKey="id" listValue="name" are referring to? Is petDao a java bean? Is it an action? How do you set it up on the page? What is pe

[S2] vertical checkboxlist

2007-07-04 Thread Filippo De Luca
Dear Strtuts users It is possible, in checkboxlist, to arrange checkboxes vertically? Thanks -- Filippo De Luca [EMAIL PROTECTED] http://www.filosganga.it -- Circolo Canottieri Roma Lungotevere Flaminio, 39 - 00196 - Roma - Italia http://www.canott

Problem installing Struts 2

2007-07-04 Thread Hubert Hers
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 deploying struts2-portlet-2.0.8.war: INFO: ... initialized Struts-Spring integration successfully

Problem with s:action

2007-07-04 Thread Ramon Andrade
Hy guys, I`m trying use the tag . The param 'name' of this tag contains the name of a action that I create. The result of this action redirect to a jsp that contains a combobox populated with a iterator. The problem is that, when the first page is loaded the content of the jsp that is loaded by

Interceptors

2007-07-04 Thread Richard Sayre
I am new to struts and I am trying to write an interceptor. I have the interceptor set up so it runs on every action (except one). The interceptor checks the users session to make sure it has not timed out. If the session is after timing out I want to create a new session and add some values to

Re: How to change colors to an item of a select tag list

2007-07-04 Thread yitzle
Um... is there corresponding HTML/AJAX code you know of that can accomplish that? I don't think I've ever seen the like. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [struts 2] Problem in param setting

2007-07-04 Thread Filippo De Luca
2007/7/4, Filippo De Luca <[EMAIL PROTECTED]>: Hello Struts users, I am new for the struts 2 and i have some problem with param setting. I develop a simple action to view user detail: UserViewAction this action have only a execute method, loading a user by userId param. So the action work fine,

[struts 2] Problem in param setting

2007-07-04 Thread Filippo De Luca
Hello Struts users, I am new for the struts 2 and i have some problem with param setting. I develop a simple action to view user detail: UserViewAction this action have only a execute method, loading a user by userId param. So the action work fine, but the jsp page do not display anything. Follow

How to change colors to an item of a select tag list

2007-07-04 Thread TonyD
I'am using struct 2.0.6. I need to populate a select tag list with different colors for each item according to some conditions. example: First Item (in BLACK) Second Item (in GREEN) Third Item(in GREEN) Fourth Item (in RED) Is it possible? I haven't seen something like that i

Populate s:select using Hasttable

2007-07-04 Thread Richard Sayre
I am trying to populate a s:select using a Hashtable. <% customer.getCustomersForUser(sessionObject.getUserName()); %> The customer.getCustomersForUser() method populates a Hashtable called customerList which has the appropiate get and set. I assumed that calling customer.custome

Re: Checkboxes problem

2007-07-04 Thread Andreja
Thank you very much Sharad, that WORKS! :] Just for the archive, this is also a possibility: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Checkboxes problem

2007-07-04 Thread sharad bhushan
or Any of this should solve your problem. first one will iterate for itself second we are doing that. But still all checkbox shouldhave same name. You bean of will surely get list of values(not true). - Original Message From: Andreja <[EMAIL PROTECTED]>

[S2] datepicker default value in 2.1

2007-07-04 Thread nodep
Hi, I don't know if I can post here a question about version 2.1 but ... I do :) I have downloaded and compiled (from svn) the version 2.1 of Struts2. My question is: is it possible to set the default value of a datepicker field so that when i make a mistake filling the field it don't change the

Re: Checkboxes problem

2007-07-04 Thread Andreja
Sharad, thank you for the answer. Keeping in mind what you said, I tried to make it work like this: This populates the checkboxes, but when I submit the data, all I can get is ArrayList of true booleans: [true, true...], and I can not use that. I need something like: