[Validator] indexed property validation

2003-02-01 Thread Brandon Goodin
Can Validator validate indexed properties. For example: html:text property=element[0].value value=1/ html:text property=element[1].value value=bar/ html:text property=element[2].value value=foobar/ How could I make sure that element[0].value validates to an integer and then validate

Re: how to use two combo-box which depend one on the other ?

2003-02-01 Thread Arash Bijanzadeh
We are using javascript for this purpose! On Thursday 30 January 2003 19:37, Heligon Sandra wrote: I search example of code that allow to display/manage two combox box dependent one on the other. For example I have two collections: - a first collection of Formation object

RE: [List Of Struts SubProjects ]RE: Jboss and Struts Menu

2003-02-01 Thread Alireza Fattahi
I found one at http://jakarta.apache.org/struts/doc-1.0.2/userGuide/resources.html . Is there more? Thanks. -Original Message- From: Alireza Fattahi [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 01, 2003 11:03 AM To: 'Struts Users Mailing List' Subject: [List Of Struts SubProjects

How can I redirect a user to the previous page ?

2003-02-01 Thread Claude Glauser
Hi, I have a struts action to change the language. A link to this action is in the mainmenu of the webapplication. This link is always visible in the browser (while in my webapp). How can I redirect to the page the user was and display it in the selected language ? Is there a way to get the url

scope of a tool

2003-02-01 Thread Aislan Fernandes
hi again, Before i have said about scope of a tool and seem that nobody undestood me (my question), but now i have a text about this: the scope of the tool (as specified in your toolbox.xml) determines when your tool is created and what data is passed to the init() method (if an instance of

Re: Problem with Custom ActionServlet

2003-02-01 Thread Peter A. Pilgrim
ashokd wrote: Hi, To implement session expire, I written Custom ActionServlet, which extends the ActionServlet. --- References: [EMAIL PROTECTED] [EMAIL PROTECTED] 001f01c2c5b2$44e2a5b0$02c0@singlarc01 [EMAIL PROTECTED] 006701c2c5b6$5401d080$02c0@singlarc01 [EMAIL PROTECTED]

AW: [OT] Obscure Computer Languages

2003-02-01 Thread Andre Michel
Maybe you should take a look at Haskell (http://www.haskell.org/) ... # -Ursprungliche Nachricht- # Von: Eric Rizzo [mailto:[EMAIL PROTECTED]] # Gesendet: Mittwoch, 29. Januar 2003 17:56 # An: Struts Users Mailing List # Betreff: Re: [OT] Obscure Computer Languages # # # David Bolsover

Re: How can I redirect a user to the previous page ?

2003-02-01 Thread David Graham
You might look at my LanguageSelectTag I posted in bugzilla: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12648 Struts will handle the different language as long as you set the Locale in the user's session. David From: Claude Glauser [EMAIL PROTECTED] Reply-To: Struts Users Mailing

Re: How can I redirect a user to the previous page ?

2003-02-01 Thread Affan Qureshi
Save the url in session against some key and use that to forward to when done on the second page. This way you can send the user to any page he/she came from. Affan - Original Message - From: Claude Glauser [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Saturday,

Multi-Select List Box

2003-02-01 Thread Cohan, Sean
If I use a collection to create a multi-select html:select, how do I get the selected items back to my action class? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Multi-Select List Box

2003-02-01 Thread David Graham
Define a String[] in your form bean with the same name as your select box. David From: Cohan, Sean [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts (E-mail) [EMAIL PROTECTED] Subject: Multi-Select List Box Date: Sat, 1 Feb 2003 11:39:40 -0500 If I use a

HTTP to HTTPS

2003-02-01 Thread Haytham Samad
Hi. I am trying to redirect/forward a user from a page that is served over HTTP to another page which uses HTTPS. The user will be on say this url http://www.mysite.com/MyApp/index.jsp. If the user comes to this page without being logged in I want to redirect him to

RE: Multi-Select List Box

2003-02-01 Thread Cohan, Sean
Thanks. -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 01, 2003 11:56 AM To: [EMAIL PROTECTED] Subject: Re: Multi-Select List Box Define a String[] in your form bean with the same name as your select box. David From: Cohan, Sean [EMAIL

Re: Is there a List navigater Tag to use with struts ? (fwd)

2003-02-01 Thread John York
I'm in the process of pulling the source for this tag into it's own project. Once I extract it from the larger project that it's a part of, I'll post a link to the source for it. The code is written using the MVC pattern, which is quite differnt from the structure of Ed Hill's table tag, so

Re: Multi-Select List Box

2003-02-01 Thread Guido
Can anyone post a sample? I don't know how to set the indexed properties. If I do: public void setSelectBox(int index, String item) { selectBox[index] = item; } i can get a NullPointerException or an ArrayIndexOutOfBoundsExceptions because I don't know selectBox array size... What is the

RE: [List Of Struts SubProjects ]RE: Jboss and Struts Menu

2003-02-01 Thread Craig R. McClanahan
On Sat, 1 Feb 2003, Alireza Fattahi wrote: I found one at http://jakarta.apache.org/struts/doc-1.0.2/userGuide/resources.html . Is there more? The up-to-date version of the Struts Resources pages is online at: http://jakarta.apache.org/struts/resources/ Craig

Re: Multi-Select List Box

2003-02-01 Thread David M. Karr
Guido == Guido [EMAIL PROTECTED] writes: Guido Can anyone post a sample? I don't know how to set the indexed properties. Guido If I do: Guido public void setSelectBox(int index, String item) { GuidoselectBox[index] = item; Guido } Guido i can get a

Re: Multi-Select List Box

2003-02-01 Thread David Graham
It should look like this: private String[] selectBox = null; public void setSelectBox(String[] selectBox){ this.selectBox = selectBox; } public String[] getSelectBox(){ return this.selectBox; } David From: Guido [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED]

Where to put ApplicationResources when deploying app as a jar

2003-02-01 Thread Soeren Dalby
So far I have placed the ApplicationResources in the class' structure at the same level as the web components using struts. But I now want to deploy the application as a .jar and I cant find out where to put the language files. I hope that placing them in the jar file is mandatory. Thanks in

Re: Where to put ApplicationResources when deploying app as a jar

2003-02-01 Thread David Graham
Placing them in the jar is not mandatory although probably a good idea. I named mine com.corp.app.ApplicationResources.properties so it's placed in the same directory as the class files in the com.corp.app package. David From: Soeren Dalby [EMAIL PROTECTED] Reply-To: Struts Users Mailing

Validator and business rule

2003-02-01 Thread Regis Melo
Hello, Why Struts-validator is so highly coupled with ActionForms? I think that is a good idea to use struts-validator to do some work in my business classes. How can I do that? Thanks, Regis Melo

Re: Validator and business rule

2003-02-01 Thread David Graham
You can use the generic commons-validator in your business logic if you want. The Struts version and the commons version can use the same xml config file for the validation rules. David From: Regis Melo [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts

Re: Where to put ApplicationResources when deploying app as a jar

2003-02-01 Thread Micael
Putting them in a jar file is not mandatory, and I cannot tell why you would like that requirement. You can though. The jar versus non-jar issue is not the issue about where to put them. You put them the same place in a jar as you would outside the jar. You can put them anywhere inside

Running a heartbeat program in struts.

2003-02-01 Thread Ron Day
I am planning on putting a small heartbeat program as part of my Struts application. The heartbeat program will request HTTP headers from an external web server every 5 minutes or so, and if the response is not a 200,will send email to 3 people. I plan on using a java class that starts a thread

Re: Running a heartbeat program in struts.

2003-02-01 Thread Dan Tran
Keep this in mind. What do you do if the http connection is down for longer than 5,10,15 minutes? Receiving lots of email with the same message can be very anoying. -D - Original Message - From: Ron Day [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Saturday,

RE: Running a heartbeat program in struts.

2003-02-01 Thread Robert Taylor
Take a look at java.util.Timer and java.util.TimerTask. More specifically Timer.scheduleAtFixedRate(). It will greatly simplify your background process. robert -Original Message- From: Ron Day [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 02, 2003 12:47 AM To: Struts Users

Re: Running a heartbeat program in struts.

2003-02-01 Thread David Graham
Why do you need Struts to do this? David From: Ron Day [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Running a heartbeat program in struts. Date: Sat, 1 Feb 2003 23:46:58 -0600 I am planning on putting a

RE: Running a heartbeat program in struts.

2003-02-01 Thread Ron Day
I don't, I have a big Struts application already that needs to use this functionalitiy. -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 01, 2003 6:14 PM To: [EMAIL PROTECTED] Subject: Re: Running a heartbeat program in struts. Why do you need

RE: Running a heartbeat program in struts.

2003-02-01 Thread Ron Day
It will only send email once, and set a flag. Flag will be reset when http connection comes up again. But thanks for the comment. R -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 01, 2003 6:00 PM To: Struts Users Mailing List Subject: Re: Running a

RE: Running a heartbeat program in struts.

2003-02-01 Thread Ron Day
Thanks for tip. R -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 01, 2003 6:03 PM To: Struts Users Mailing List Subject: RE: Running a heartbeat program in struts. Take a look at java.util.Timer and java.util.TimerTask. More specifically

RE: Running a heartbeat program in struts.

2003-02-01 Thread Brandon Goodin
This is the BEST open source cron like timer that I have seen. It is very robust and extendable. I have used it in several webapps (in a virtual hosting environment running several webapps) doing exactly what you are doing. Check this link out. I think it will provide you with what you need.

RE: HTTP to HTTPS

2003-02-01 Thread Alireza Fattahi
See http://struts.ditlinger.com/ -Original Message- From: Haytham Samad [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 01, 2003 8:33 PM To: Struts User List Subject: HTTP to HTTPS Hi. I am trying to redirect/forward a user from a page that is served over HTTP to another page

what's the right syntax for logic:iterate

2003-02-01 Thread Sundar Narasimhan
Hi, I have a variable type which I'd like to use like so logic:iterate id=element collection=%= myVector % li html:link page=/action%= type %.do bean:write name=element / /html:link/li /logic:iterate But no matter what I try I don't seem to be able to get the link to do the right thing..

Re: html:text tag indexed attribute

2003-02-01 Thread Charlie Toohey
Thanks David. That worked for the value attribute: logic:iterate name=aForm property=stringArray id=aString html:text indexed=true property=aString value='%= aString.toString() %' / /logic:iterate BUT, this resolves to an HTML text tag of: input type=text

Struts Controller

2003-02-01 Thread Alireza Fattahi
Hi, I have read some information about controller tag which is used in strusts_config.xml but I did not get the idea. WHERE this controller could be usefull? What I have read is: from theserverside.com The controller element is new to version 1.1. Prior to version 1.1, the ActionServlet

Re: html:text tag indexed attribute

2003-02-01 Thread David M. Karr
Charlie == Charlie Toohey [EMAIL PROTECTED] writes: Charlie Thanks David. That worked for the value attribute: Charlie logic:iterate name=aForm property=stringArray id=aString Charliehtml:text indexed=true property=aString value='%= aString.toString() Charlie %' /

Re: Struts Controller

2003-02-01 Thread Craig R. McClanahan
On Sun, 2 Feb 2003, Alireza Fattahi wrote: Date: Sun, 2 Feb 2003 09:58:07 +0330 From: Alireza Fattahi [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: Struts Controller Hi, I have read some information