Re: workflow - Re: integration with other app

2003-09-15 Thread Matthias Bauer
Fortunately I am far enough away to avoid your kiss ;-) Please let me know, if you believe something is missing. I am sure I can give you some more hints on how to solve a specific task. The Struts Workflow Extension is a very powerful, yet low-level framework. Thus, it offers very much

[help] Share Session Problem

2003-09-15 Thread
Hi, all I have a session problem in my struts applications. How do I share session context between two different web applications? BR xlen

TreeMap and html:optionsCollection

2003-09-15 Thread Lars Bergstrm
Dear Struts users, I am trying to get my html:optionsCollection to work with a TreeMap. I don't know if this is possible but on the Struts API page for the class OptionsCollectionTag I read the following: The collection may be an array of objects, a Collection, an Enumeration, an Iterator, or a

Dateformat for MSSQL DB

2003-09-15 Thread reps
Hello, i want to parse a date from a inputfield and write it to DB (MSSQL Server) is there a method to format a date for MSSQL ? or for ODBC Datasources ? something like: DateFormat df ..., date = df.parse() ... date = df.FormatForODBC() . Mit freundlichen Grüßen Christian Reps,

RE: Dateformat for MSSQL DB

2003-09-15 Thread Carlos Sánchez
You can use a PreparedStatement, so you don't have to change your code for every database. queryString = insert into table (column) values (?); preparedStatement = connection.prepareStatement(queryString); i = 1; * Calendar c =

Errors / Messages

2003-09-15 Thread Edgar P Dollin
In validate, if you add an error to the message list, validator returns without forwarding. Has anyone done anything with an alternate message file or prioritized messages, so you can add a message yet still forward. Thanks in advance. Edgar

RE: Dateformat for MSSQL DB

2003-09-15 Thread Mohd Amin Mohd Din
This is a simple class I use to format date from VOs to Form and vice versa. Hope it's helpful import java.text.DateFormat; import java.text.Format; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class FormatUtility { public FormatUtility()

Re: Errors / Messages

2003-09-15 Thread Max Cooper
Edgar, What is your aim in doing this? If there is a validation error, the Struts framework sends the user back to the input page to inform them of the problem, and possibly allow them to fix it and resubmit. If the request still gets passed to the action, the action will need to do conditional

RE: Dateformat for MSSQL DB

2003-09-15 Thread harm
I think you should not use this class. I has some bugs in it Mohd Amin Mohd Din [EMAIL PROTECTED] 09/15/2003 12:11 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To 'Struts Users Mailing List' [EMAIL PROTECTED] cc Subject RE: Dateformat for MSSQL DB This is a

Grid Layout Style In Struts

2003-09-15 Thread Mahbub ul Huq Bin Kabir
Hi, I'm displaying my data on my page row by row and each row containing Itemname, id, and quantity. I'm displaying this by the Struts Iterate tag. It is working fine but I want to change the quantity field, suppose there are 10 quantity on a certain row and I want to change its value to 5

Calling an action of One page from another page

2003-09-15 Thread Mahbub ul Huq Bin Kabir
Hi, I have a master page that have a small pop up page. I change some value of here. For taking affect the change in the master page I have to call the master page action again, but I want it to be done automatically. For example, after completing my child page's work I want to call the master

Session Tracking in Struts

2003-09-15 Thread Naveen Mudgal
I am making a simple JSp which have single text item.I have to retrive this text item value on another JSp page using Struts(not by request.getParameter(textname) ). I tried with bean write,but it won't work . Pls help naveen

Re: Session Tracking in Struts

2003-09-15 Thread Firat TIRYAKI
Then set it inyour action that refers to the second jsp page by request.setAttribute... F. - Original Message - From: Naveen Mudgal [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 15, 2003 2:33 PM Subject: Session Tracking in Struts I am making a simple JSp which have

RE: [help] Share Session Problem

2003-09-15 Thread Robert Taylor
See the servlet specification, section 7.3 Session scope. The short answer is that its non trivial to implement a solution for this problem. You may want to search the archives because this sort of thing has been discussed here. You may also want to do a Google search on sharing sessions in web

java.lang.ArrayIndexOutOfBoundsException

2003-09-15 Thread Bjørn T Johansen
I have a jsp page that is using nested:iterate to show a list of records, based on some input on the same page. The first time I press the submit button to get the records, everything works like it should. But if I try to get the records one more time, I get this exception:

RE: Q : Calling an action via a java URL ?

2003-09-15 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
if you are getting an error related with FileAccess error,, you can try another HTTP Client Api , if you are using SUN Http Client api , when you want to access some sites such as www.google, www.mdb you would get FileAccess error,, -Original Message- From: Henry Voyer

RE: Dateformat for MSSQL DB

2003-09-15 Thread Mohd Amin Mohd Din
What bug? The formatDate( String date ) changes a format to another format. In this instance, changes from -MM-dd HH:mm:ss.S to dd-MM- getDate( String dateStr ) is used to convert a string to a java.util.Date object. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: assigning a value back to a bean in a logic:iterate?

2003-09-15 Thread Mick Knutson
Can't I just do something like: logic:equal property=cColor value=content_tbl_white %= cColor = content_tbl_blue % test cellColor /logic:equal But this does not work either. The logic _does_ find the cColor as content_tbl_white --- Thanks Mick Knutson

Invalid Class file Format

2003-09-15 Thread Stefan Frank
Hi, i'm just moving an app from struts 1.0x to 1.1: The App runs on weblogic 6.1: I'm developing on a windows box and deploy it to solaris: On windows everything runs fine, but on solaris i get lots of Invalid class file format - Exceptions from the Taglibs when I recompile my jsp's: error:

Re: Mapping/Path Question

2003-09-15 Thread Susan Bradeen
No, I wouldn't necessarily use modules, I was just wondering because it looked like the action path that your app was looking for added the extra path names (/wireless/micro_browser). I think if you are using modules, the paths resolve themselves to be module relative instead of application

DynaValidatorForm and Multi-page validation

2003-09-15 Thread Natalie D Rassmann
Hi - I am having trouble with my DynaValidatorForm and Multi-page validation. It does not seem to utilize the page property. I tried putting in a page property but I get Struts errors. When I add the page property to the struts-config file for that form, and I add the page property as an

RE: Validator-rules.xml -- required fields validation for multiples radios, checkboxes etc

2003-09-15 Thread Yuan, Saul (TOR-ML)
Rob, Thanks for your response. I ended up with changing the validator-rules.xml file myself to add support for multiple radios, checkboxes and selections (just for the validateRequired(form) function) If you would like to post a BugZilla report and provide a patch against the

Re: Invalid Class file Format

2003-09-15 Thread Christian Bollmeyer \(SCPJ2\)
Hi, considering the class file versions, 45 stands for JDK 1.0/1.1, 46 is 1.2/1.3 (and 48 is 1.4): http://java.sun.com/docs/books/vmspec/2nd-edition/html/ClassFile.doc.html#75 883 Seems your server still runs under JDK 1.1, or am I wrong? The Struts 1.1 binaries seem to be compiled under JDK

RE: Problem with logic:equal?

2003-09-15 Thread Syed, Nazeer
You have defined the user bean between the logic:equal tag this will visible if it is out of scope. Like If(something==true) { User userName = someUser; } if(something!=true){ userName } if you try to use user it is out of scope logic:equal name=elem property=status

Map backed action form

2003-09-15 Thread denis
Hello, I have a problem with my map backed form. When I try to validate the form, when I try to retrieve value it throws a null pointer exception, as if the map was null. I am successful going through my jsp and populating the bean, so i am not sure what is going on. What might be the

RE: Errors / Messages

2003-09-15 Thread Edgar P Dollin
I would like the action to perform (not fail as validator specifies) but give feedback to the user about the entered data. For example in certain fields you can use a table as a select but override the selection, and other input would be added to the selection. You would want to let the user

Dynamic retrieval of properties from Message Resources Applicatio n.properties

2003-09-15 Thread Srikanth Gubba
Hi, Does anyone know ways to dynamically load application properties file so that we donot have to reload container when a change has been made in the properties file. I have seen the Message-Resources DB application (using OJB) by James Mitchell using which we can put the properties in a

RE: error pages, actions, and tiles

2003-09-15 Thread Dan Snider
Hi Susan, Are you certain that no exceptions are being logged for your setup? Note, it appears to work for me other than the exceptions that are logged upon every request. A few more things: I am able to reproduce the problem with the tiles-blank-struts1-1 example app. I have reproduced the

html:errors tag..

2003-09-15 Thread Ritvik
Hi There, I am using html:errors\ tag at top of my page to display any validation errors when a form is submitted, but for some reason, I couldn't see any errors message even I have left some mandatory fields blank. I am not getting any errors in server log as well. I have added the validation

Forwarding to a target page

2003-09-15 Thread Mehran Zonouzi
Hi, I have a web page with 2 vertical frames. I have the following link in my left hand frame and I want the users to view the results in the right hand frame when they click on the link. td width=130 html:link action=Contacts.do?page=viewcontactlistbContact List/b/html:link /td

Newbie looking for resources to learn

2003-09-15 Thread Isaac
Hi, Where can I find resources(tutorials, ides, articles etc..) to learn? Thanks. Isaac

RE: Newbie looking for resources to learn

2003-09-15 Thread James Childers
Here's an important resource, probably one of the most important of all: http://www.catb.org/~esr/faqs/smart-questions.html#intro -= J -Original Message- From: Isaac [mailto:[EMAIL PROTECTED] Sent: Monday, September 15, 2003 9:46 AM To: [EMAIL PROTECTED] Subject: Newbie looking for

RE: Newbie looking for resources to learn

2003-09-15 Thread Paananen, Tero
Where can I find resources(tutorials, ides, articles etc..) to learn? I've found Google to be a pretty good resource. http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=Struts+TutorialbtnG= Google+Search -TPP - This

RE: Newbie looking for resources to learn

2003-09-15 Thread Andrew Hill
garrgh! too slow tonight! You beat me to the draw James. ;- -Original Message- From: James Childers [mailto:[EMAIL PROTECTED] Sent: Monday, 15 September 2003 22:48 To: Struts Users Mailing List Subject: RE: Newbie looking for resources to learn Here's an important resource, probably one

RE: error pages, actions, and tiles

2003-09-15 Thread Susan Bradeen
On 09/15/2003 10:16:50 AM Dan Snider wrote: Hi Susan, Are you certain that no exceptions are being logged for your setup? Note, it appears to work for me other than the exceptions that are logged upon every request. No, I am not getting any kind of socket errors, or any errors logged.

Re: Newbie looking for resources to learn

2003-09-15 Thread Mick Knutson
onjava.com is pretty good. --- Thanks Mick Knutson http://www.baselogic.com +001(805) 563-0666 Office +001 (708) 570-2772 Fax --- - Original Message - From: Isaac [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 15, 2003 7:46 AM Subject: Newbie looking for resources to

RE: Forwarding to a target page

2003-09-15 Thread Robert Taylor
td width=130 html:link action=/Contacts target=rightframe styleClass=linkbold paramId=page paramName=targetActionbContact List/b/html:link /td Where targetAction exists in some scope and has a value of viewcontactlist. http://jakarta.apache.org/struts/userGuide/struts-html.html#link

Re: Invalid Class file Format

2003-09-15 Thread Stefan Frank
Hi Christian, no, unfortunately not: System.getProperty(java.version): 1.3.1 System.getProperty(java.vendor): Sun Microsystems Inc. I'm currently trying to find out if bea somehow tweaked the magic - has anybody gotten struts 1.1 to run on weblogic 6.1 on solaris? (Solaris is important, as 1.1

Re: html:errors tag..

2003-09-15 Thread koen boutsen
This is some code that I used in an actionForm. public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); if ((userId == null) || (userId.length() 1)) { errors.add(noUser, new ActionError (adresses.insertUser.noUser)); } return

RE: Newbie looking for resources to learn

2003-09-15 Thread Hue Holleran
As you've seen from other replies google can be a very useful resource - as can: http://marc.theaimsgroup.com/?l=struts-user Try some searches for various topics - I'd recommend the following one, particularly for a tutorial:

Re-directing to a non-Struts URL that requires extra parameters

2003-09-15 Thread Mark, Scott
We are working on a portal site that has integrated content management for admin users. We are trying to use Struts together with a portal framework... use the portal framework to deliver the pages for end users, and use the Struts framework to process our submit forms. So our interaction

RE: Newbie looking for resources to learn

2003-09-15 Thread Mark, Scott
I have been reading Programming Jakarta Struts from O'Reilly to ramp up, and it's fantastic IMHO... Scott -Original Message- From: Hue Holleran [mailto:[EMAIL PROTECTED] Sent: Monday, September 15, 2003 10:07 AM To: Struts Users Mailing List Subject: RE: Newbie looking for resources to

Desing Question

2003-09-15 Thread deepaksawdekar
Hello, I have a separate Data Object and Action Form bean. In my form beans have a attribute which corresponds to Data Object. And had written a separate setter and getter methods for each attribute of Data object and some addition required for working of struts. Like this. e.g. public class

RE: Newbie looking for resources to learn

2003-09-15 Thread Andrew Hill
Struts in Action is another great one. (Do I get a signed copy now Ted??? ;- ) -Original Message- From: Mark, Scott [mailto:[EMAIL PROTECTED] Sent: Monday, 15 September 2003 23:10 To: Struts Users Mailing List Subject: RE: Newbie looking for resources to learn I have been reading

html:select and Validation with IndexedPropertyList

2003-09-15 Thread George Amaya
I am having a problem with the Validator. I am not getting my messages back when I have a List of html:selects. The first error message is at property[0].message, but it does not show up for the next select boxes. Any thoughts? jsp: logic-el:iterate id=accumulationList

Re: Forwarding to a target page

2003-09-15 Thread Mehran Zonouzi
What exactly does this mean? Where targetAction exists in some scope and has a value of viewcontactlist. -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately

Re: html:errors tag..

2003-09-15 Thread Louise Pryor
On Monday, September 15, 2003 at 3:22:27 PM, Ritvik wrote: R Hi There, R I am using html:errors\ tag at top of my page to display any R validation errors when a form is submitted, but for some reason, I R couldn't see any errors message even I have left some mandatory fields R blank. I am not

ActionForm validate() - How to get ServletContext from HttpSessio n in J2EE 1.2

2003-09-15 Thread Chang, Henrique
Hi, I am using Weblogic 5.1 and if I'm not wrong it is implementing J2EE 1.2, in which the HttpSession interface does not specify the getServletContext() method. I need to get to the application context via : request - session - application. My issue is the following :

Displaying Errors in JSP !!

2003-09-15 Thread Dhanunjaya Gotur
Hi, I am new to Struts and I am using Struts1.1 and my question is How to display an Error Message in my Login JSP (Which is having two fields 1. Login ID 2. Password) So When User enters LoginID and incorrect password ., I should display a message in my JSP something like The password you

RE: Remember menu node

2003-09-15 Thread Naresh Chapani \(Sympatico\)
Ted, Thanks for your reply but I am still confused about how I can store information about which node of my menu was expanded and which node was contracted in a menuBean. I am not using struts-menu.tld, do I need to use it? Thanks again. -Original Message- From: Ted Husted

Tiles and Struts.

2003-09-15 Thread deepaksawdekar
Hello, We are using struts and tiles for view component of our application. We are facing the problem of setting the title for the jsp. The title has to be taken from the properties file and it depends upon the body of the tiles. Any pointer how to do this. my jsp file is as follows. %@

Re: Displaying Errors in JSP !!

2003-09-15 Thread Ritvik
Hi There, Please have a look at html:errors tag posting earlier today.. There are couple of responses th that thread. They will help you. Ritvik Dhanunjaya Gotur wrote: Hi, I am new to Struts and I am using Struts1.1 and my question is How to display an Error Message in my Login JSP

RE: Forwarding to a target page

2003-09-15 Thread Robert Taylor
I had posted the following as a solution for you: td width=130 html:link action=/Contacts target=rightframe styleClass=linkbold paramId=page paramName=targetActionbContact List/b/html:link /td This should render as something like the following: td width=130 a

where I put my property files?

2003-09-15 Thread Mariano García
Hi all, Where I have to put property files? I am using Tomcat and Struts. I suppose I have to put them in WEB-INF directory, but my application cannot find them. Maybe I have to add something in struts-config.xml Could you help me, please? _ Mariano García Ingeniero de Sistemas Optiva

Passing variables for logic:iterate

2003-09-15 Thread Gregory F. March
Ok, this is probably a dumb questio, but here it goes... I am trying to iterate over a portion of a list. I have calculated the portion (the offset and length) in my action. I have two entries in my DynaValidatorForm: form-property name=pageOffset type=java.lang.String/

RE: Desing Question

2003-09-15 Thread Robert Taylor
That's a subjective question. I can only offer my opinion. I usually have my forms only contain Strings. I do this because it gives me more flexibility for validation. It also offers an additional layer of abstraction which reduces the coupling between my business tier and presentation tier. I'll

Re: Displaying Errors in JSP !!

2003-09-15 Thread Dhanunjaya Gotur
Hi Rthvik, Thanx ..and is it possible to do the same thing with validator.xml Cheer's Dhanu. - Original Message - From: Ritvik [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, September 15, 2003 9:20 PM Subject: Re: Displaying Errors in JSP !! Hi There,

RE: where I put my property files?

2003-09-15 Thread Wendy Smoak
Mariano wrote: Where I have to put property files? I am using Tomcat and Struts. I suppose I have to put them in WEB-INF directory, but my application cannot find them. Maybe I have to add something in struts-config.xml Try putting it in WEB-INF/classes. It needs to be on the classpath.

RE: Tiles and Struts.

2003-09-15 Thread Mike Jasnowski
Tiles should be cumulative in that you shouldn't repeat HTML,BODY,etc. tags in each one. Only the outermost. You might consider using a Tiles controller to selectively choose the title, the controller would be called before any other tiles are called if you define it at the definition level.

RE: Passing variables for logic:iterate

2003-09-15 Thread Robert Taylor
I don't believe that logic:iterate .../ is smart enough to know that if the value for the offset or length attribute is not an integer then attempt to find the named value in all scopes. You can do something like this: bean:define id=pageOffset name=formName property=pageOffset/ bean:define

RE: Passing variables for logic:iterate

2003-09-15 Thread Mainguy, Mike
1st, Thank you, I didn't realize the logic:Iterate tag had those two properties, so you've indirectly saved me some effort. 2nd, After looking at the source code for the iterate tag, it looks like it tries to look up those two values straight out of the pageContext. This would imply to me, that

One form, multiple JSPs, multiple validations

2003-09-15 Thread Ruben Carvalho
Good afternoon helpers, I've started a new application using struts 1.1 and I'm having some problems with some new concepts. I want to use XML form validation (DynaValidatorForm) using validator-rules.xml and my validaton.xml. Right now my application is working fine. Now I want to use

RE: Passing variables for logic:iterate

2003-09-15 Thread Robert Taylor
Damn! I hate being lazy. Thanks Mike for correcting my sub-par answer. I should have looked at the source before responding. robert -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Monday, September 15, 2003 12:26 PM To: 'Struts Users Mailing List' Subject: RE:

Image half loaded?

2003-09-15 Thread Yansheng Lin
Anyone having the same problem? My images are cut off vertically sometimes... Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: java.lang.ArrayIndexOutOfBoundsException

2003-09-15 Thread Adam Hardy
The exception is occurring when the struts preprocessor tries to populate your form bean with request parameters. I expect you have indexed properties and you have not initialized your form bean with an array to accept them. Adam On 09/15/2003 02:04 PM Bj?rn T Johansen wrote: I have a jsp

Re: Image half loaded?

2003-09-15 Thread Adam Levine
I have a similar problem. This one class of mine doesn't work sometimes. From: Yansheng Lin [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: Image half loaded? Date: Mon, 15 Sep 2003 11:03:41 -0600 Anyone having

RE: Image half loaded?

2003-09-15 Thread James
This is not a Struts issue, but I've also had similar problems with images getting corrupted on occasion when I use Tomcat. I don't know the cause or fix, but thought I'd just mention it. -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017

Re: Passing variables for logic:iterate

2003-09-15 Thread Gregory F. March
On Sep 15, 2003, Mainguy, Mike [EMAIL PROTECTED] wrote: |1st, Thank you, I didn't realize the logic:Iterate tag had those two |properties, so you've indirectly saved me some effort. : Thanks for the answers... As a first go-round, I'm trying the bean:define suggestion from Robert. On (I

Re: sslext can only get it to post

2003-09-15 Thread Craig R. McClanahan
On Sun, 14 Sep 2003, Max Cooper wrote: Some design changes are needed to make the switch to the https port in what I consider to be an acceptable manner. One avenue to explore is using one particular capability of container managed security, and declare a security constraint requiring SSL on a

Re: ActionForm validate() - How to get ServletContext from HttpSessio n in J2EE 1.2

2003-09-15 Thread Craig R. McClanahan
On Mon, 15 Sep 2003, Chang, Henrique wrote: Date: Mon, 15 Sep 2003 11:32:38 -0400 From: Chang, Henrique [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: ActionForm validate() - How to get ServletContext from

Application.properties

2003-09-15 Thread Srikanth Gubba
Hi, Does anyone know ways to dynamically load application properties file so that we donot have to reload container when a change has been made in the properties file. I have seen the Message-Resources DB application (using OJB) by James Mitchell using which we can put the properties in a

RE: Application.properties

2003-09-15 Thread Paananen, Tero
Please suggest some ideas or code which will help in creating an extension so that the properties can be loaded from database dynamically. Extend the message resources class you're currently using and implement a reload() (or whatever) method in your extended class. Call the reload() method

RE: Image half loaded?

2003-09-15 Thread Yansheng Lin
No, it's not a Struts issue. I almost cancelled the msg while I was posting it, but thought would mention it here anyways. Should I try Tomcat mailing list? Tomcat somehow displays images 'over-eagerly', maybe because image is binary data and contains a terminating charater or some other weird

RE: Application.properties

2003-09-15 Thread James
That's one way to do it. Although doing so will create a compile-time dependency on using that class (whether you actually use it or not). By default, the Struts MessageResources API does not allow for reloading and given the nature of the implementation. Since the returned messages from your

Re: Invalid Class file Format

2003-09-15 Thread Christian Bollmeyer
Am Montag, 15. September 2003 17:03 schrieb Stefan Frank: Hi Christian, Hi Stefan, no, unfortunately not: System.getProperty(java.version): 1.3.1 System.getProperty(java.vendor): Sun Microsystems Inc. Now this is interesting. Still, obviously the JSP compiler can't cope with Platform 2

Re: java.lang.ArrayIndexOutOfBoundsException

2003-09-15 Thread Bjørn T Johansen
Well, the problem seems to be that I initialized the array too much... Thx... BTJ On Mon, 2003-09-15 at 19:30, Adam Hardy wrote: The exception is occurring when the struts preprocessor tries to populate your form bean with request parameters. I expect you have indexed properties and you

RE: Tiles and Struts.

2003-09-15 Thread Hrishi Dixit
One way is to make the title a separate tile attribute instead of setting it inside a tile like you are doing. Have a single head section in your layout tile (layout.jsp) and parametrize it as a tile attribute, something like: layout.jsp: --- tiles:useAttribute id=titleKey

Special view information - ActionForm or request?

2003-09-15 Thread Sgarlata Matt
Sometimes views need special information to display correctly, like a bean with the values needed to render a dropdown list. Is it considered a Struts best-practice to include this information in the ActionForm or should the Action which prepares this information store the information in the

Re: One form, multiple JSPs, multiple validations

2003-09-15 Thread Sgarlata Matt
Check out http://jakarta.apache.org/struts/userGuide/dev_validator.html Under Pluggable Validators there is a section called Multi Page Forms. I've not done this before, but I think this wizard-like functionality you are trying to build is built directly into Struts and the Validator. Matt

Re: One form, multiple JSPs, multiple validations

2003-09-15 Thread K.C. Baltz
What you're looking for is a way to validate a form with multiple pages. Read this, paying special attention to Multi Page Forms http://jakarta.apache.org/struts/userGuide/dev_validator.html K.C. Ruben Carvalho wrote: Good afternoon helpers, I've started a new application using struts 1.1

Google and Struts

2003-09-15 Thread Christian Bollmeyer
Hi, just a simple Question: 1.) does Google follow links to Struts actions (ending with .do)? 2.) if so, does it make a difference if the ;jsessionid thing is appended to the URL? Background is that I'm working on a larger site that uses Struts for request processing and content delivery, with

RE: One form, multiple JSPs, multiple validations

2003-09-15 Thread Ruben Carvalho
Thank you Matt and K.C. for being so helpful. Sorry everybody for posting such a basic question. I'll try to open my eyes next time (and the userguide). Ruben Carvalho Come on now sugar / Bring it on bring it on yeah / Just remember me when / You're good to go / Come on now honey / Bring

Re: Passing variables for logic:iterate

2003-09-15 Thread Susan Bradeen
On 09/15/2003 01:36:51 PM Gregory F. March wrote: On Sep 15, 2003, Mainguy, Mike [EMAIL PROTECTED] wrote: |1st, Thank you, I didn't realize the logic:Iterate tag had those two |properties, so you've indirectly saved me some effort. : Thanks for the answers... As a first go-round, I'm

TreeMap vs html:optionsCollection

2003-09-15 Thread Lars Bergstrm
Dear Struts users, I am trying to get my html:optionsCollection to work with a TreeMap. I don't know if this is possible but on the Struts API page for the class OptionsCollectionTag I read the following: The collection may be an array of objects, a Collection, an Enumeration, an Iterator, or a

Re: Google and Struts

2003-09-15 Thread Louise Pryor
Google certainly crawls my site, which uses .do actions, and does a pretty good job; I get a number of visitors referred straight into the .do pages (which are all eg showTopic.do?topic=nn) from Google searches. On the other hand, I don't do URL rewriting, so don't have the jsessionid thingies. I

Re: sslext can only get it to post

2003-09-15 Thread Steve Ditlinger
Yes, Tomcat's handling of the security-constraint is very complementary to the use of sslext. Unfortunately, unless this has changed recently, not all containers behave in this way. Weblogic, for instance, just creates a response that outputs a message to the browser stating that a particular

Re: Passing variables for logic:iterate

2003-09-15 Thread Gregory F. March
On Sep 15, 2003, Susan Bradeen [EMAIL PROTECTED] wrote: |I think this might be one of those cases where you go through comment out |parts of your JSP code and try again iterations to find what is causing |the error. Not very elegant, but it has worked for me. Thanks Susan, that's what I

Re: TreeMap vs html:optionsCollection

2003-09-15 Thread Jason Lea
I haven't used maps with html:optionsCollection so I don't know if I can give you a definite answer on this. The optionsCollection tag is expecting a collection of objects that it can call .getLabel() and .getValue() on (by default but it can be changed with parameters). To get a list of

Slow file upload?

2003-09-15 Thread Bjørn T Johansen
I am testing file upload using Struts and FormFile but the upload seems really slow. Uploading a 1,5MB file takes about 15-20 sec. and I am running both the server and the browser on the same PC. Is this normal or should the upload be faster? BTJ

[OT] Java Class to match US state abbreviations with their full name?

2003-09-15 Thread David Erickson
Just wondering if anyone offhand knew of a open source java class for matching state abbreviations with their full name.. I could write something to do it myself easily enough but I'm not encredibly interested in doing it =) Thanks David

validation question

2003-09-15 Thread Stephane Grenier
Hello all. Is there any way to decide if I want to validate the jsp within the action rather than in struts-config ? Thank you, Stephane

Re: Passing variables for logic:iterate

2003-09-15 Thread Jason Lea
Gregory F. March wrote: On Sep 15, 2003, Susan Bradeen [EMAIL PROTECTED] wrote: |I think this might be one of those cases where you go through comment out |parts of your JSP code and try again iterations to find what is causing |the error. Not very elegant, but it has worked for me.

Re: DynaValidatorForm and Multi-page validation

2003-09-15 Thread Anand M S
Hi, I was also having the same problem, and I dropped validation frame work for multi page validation and using for regular validation. If you get answer, please let me know at [EMAIL PROTECTED] Thanks, Anand From: Natalie D Rassmann [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL

RE: DynaValidatorForm and Multi-page validation

2003-09-15 Thread David G Friedman
Anand, The DynaValidatorForm already has a getPage()/setPage() set of functions. Just use those. My common two problems were a little different: a) forgetting to use the 'page=X' in my html:javascript tag b) forgetting to use the formName=someFunctionName in the

RE: [OT] Java Class to match US state abbreviations with their fu ll name?

2003-09-15 Thread Matt Raible
http://tinyurl.com/ngnc HTH, Matt -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Monday, September 15, 2003 3:07 PM To: Struts Mailing List Subject: [OT] Java Class to match US state abbreviations with their full name? Just wondering if anyone offhand knew of

Re: DynaValidatorForm and Multi-page validation

2003-09-15 Thread Thomas Cornet
There are APIs which handle wizard-based forms in Struts, such as Struts Wizard (http://sourceforge.net/projects/strutswizard/) or Struts WorkFlow (http://www.livinglogic.de/Struts/introduction.html)... HTH, Thomas At 23:15 15/09/2003, you wrote: Hi, I was also having the same problem, and I

Re: where I put my property files?

2003-09-15 Thread Marco Tedone
You have to put it/them under WEB-INF/classes Regards, Marco !-- ORIGINAL MESSAGE -- From: =?iso-8859-1?Q?Mariano_Garc=EDa?= [EMAIL PROTECTED] Hi all, Where I have to put property files? I am using Tomcat and Struts. I = suppose I have to put them in WEB-INF directory, but my application

Validating indexed Select Values Fails

2003-09-15 Thread George Amaya
I have a form with multiple selects all with the same name and indexed values (i.e myValue[0]. myValue[1]...). When I sumbit my form to validate, validation quits when first select validation fails. Has anyone had this problem? And how did you solve it? Thanks George

RE: validation question

2003-09-15 Thread Yuan, Saul (TOR-ML)
In your action mappings in struts-config, you can set validate=false, and do your validation in the action class. Not sure if this is what you want. Saul -Original Message- From: Stephane Grenier [mailto:[EMAIL PROTECTED] Sent: Monday, September 15, 2003 5:12 PM To: Struts Users

Re: where I put my property files?

2003-09-15 Thread khote
WEB-INF/classes ... WEB-INF/classes/resources say you have application.properties, configuration.properites in your web.xml servlet servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameapplication/param-name

  1   2   >