Re: Struts 1.1 modules and logic:forward

2003-03-12 Thread Eddie Bush
Anytime modules are involved, it is imperative that you invoke your pages by going through actions (thus, going through the controller). It is only by doing this that you trigger a change from one module to another. The controller is "rigged" to automatically expect you to be going to the def

RE: logic:iterate and html:text -- mapped propeties????

2003-03-12 Thread Jason Long
I am also looking for an answer to a similar question. I was reading about Struts-EL. What I need is to keep values that have been added before validation. Currently if one text box in not valid, all changes are reset. I got this to work with multibox. I need this to function in a similar manne

Re: logic:iterate and html:text

2003-03-12 Thread Dan Allen
Okay, I finally worked it out, but it is ugly as hell. Pardon me if I step on toes or shine my ignorance, but it seems to me like this problem should be resolved more gracefully. First of all, I have to resort to scriptlets and secondly, I have to include the name of the form in the logic:iterate

Get the message resource parameters.

2003-03-12 Thread Eric Chow
Hello, Is it possible to get the parameter name of the message resource that define in Struts-config.xml ??? How can I get the String of "myapp.applicatioMessage" in ActionForm ??? Best regards, Eric == If you know what you are doing, it is not called RESEARCH!

RE: One-time initializing in struts

2003-03-12 Thread Scott Barr
Hi Karl I use a Servlet to do app initialisation. Add the Servlet to web.xml, and set the load-on-startup parameter. Then you put the initialisation code in the Servlet, and you're away. Scott Barr www.exergonic.com.au On Thu, 2003-03-13 at 17:05, Andrew Hill wrote: > Struts PlugIn might be t

problem !

2003-03-12 Thread Eric Chow
Hello, If I want to parse a parameter to the bean:message tag, I can do it as . How about if my arg0 also in MessageResource file ? Best regards, Eric == If you know what you are doing, it is not called RESEARCH! ==

RE: One-time initializing in struts

2003-03-12 Thread Andrew Hill
Struts PlugIn might be the best option for that. Check the docs. Dont think its supported in 1.0 though, just 1.1. (With each 1.1.x version having a different interface!) -Original Message- From: Karl [mailto:[EMAIL PROTECTED] Sent: Thursday, 13 March 2003 14:26 To: Struts Users Mailing Li

Re: Refresh on MSIE, PLEASE HELP!!

2003-03-12 Thread fadhly
try this it will refresh the page in every 30 seconds kiuma wrote: Hello, I'm having big troubles with MSIE because it doesn't refresh the content of my forms. I've put but it doesn't refresh my pages! How to do to refresh my pages? thanks, kiuma -- To unsubscrib

One-time initializing in struts

2003-03-12 Thread Karl
Is there a way to do one-time initialization in struts without having to put check logicn in every action? I want to use turbine as my persistance back-end but I need to call Torque.init("Torque.properties"); somewhere. - To u

BaseBean questions [was] [ANN] Struttin' With Struts beta (newbiesesp. welcome)

2003-03-12 Thread Rick Reumann
Thanks vic for the kind words and feedback. I replied to you privately. Rest of this email is in regard to the BaseBeans stuff I looked it. Comments below... On Wed, Mar 12,'03(08:51 PM GMT-0500), Vic wrote: > So consider using list/collection based beans. Ex: > http://cvs.sourceforge.net/cgi-

Re: Wanted best practice for i18n'd optionsCollection

2003-03-12 Thread Mark
Read my recent like 5 mins ago post responding to someones question about state and country taglib. it is my answer to exactly what you're talking about. regards, mark *** REPLY SEPARATOR *** On 03/13/2003 at 1:47 PM Christopher Cheng wrote: >If we populate the items in the d

Re: Wanted best practice for i18n'd optionsCollection

2003-03-12 Thread Christopher Cheng
If we populate the items in the drop down menu collection, then I actually have to do the same thing again and again for every collection instead of leaving it to the framework to do so. The programmer has to figure out what specific collection he would need in the jsp and populate them in "Action"

Re: logic:iterate and html:text

2003-03-12 Thread Mark
im not sure if i answered that completely, let me read it again and get back to you ;) *** REPLY SEPARATOR *** On 03/12/2003 at 11:38 PM Mark wrote: >It would be easier for some of us if your emails didnt come through as attachments ;) > >but to answer this you dont need value="

Re: logic:iterate and html:text

2003-03-12 Thread Mark
It would be easier for some of us if your emails didnt come through as attachments ;) but to answer this you dont need value="" for this thats what the property does so what you want is And what kind of form bean are you storing this in? I have some other advice about a problem you're a

Re: state and country taglib

2003-03-12 Thread Mark
I have a table in my database that stores a bunch of redundant data which I call "Pick lists" each of the lists have a list name, item name, and item value I have pick lists for Countries and States and use the country code/state code as the item name, and and their display as the item value.

logic:iterate and html:text

2003-03-12 Thread Dan Allen
Sorry if this has been asked a million times but it doesn't seem to be in the exercise-taglibs.war and that last thread I found on it seemed inconclusive. I have 5 text boxes where the user can enter names of clients, hence I want Is the propery way to do it like so? Seems like wit

Using Tiles vis-a-vis using and tags.

2003-03-12 Thread Jeevan_Sunkersett
Hi All, I have just started out with Tiles, and was going through a tutorial on Cedric's web site. In which he has explained building of a web page - A Header at the top, a Footer at the bottom, a Left hand side navigation menu, and a Main Body part in the center. This I can build using the htm

Re: nested form bean

2003-03-12 Thread Peter Gershkovich
please ignore. it was just an error in my code. Peter Gershkovich wrote: I have seen few messages regarding this issue in archive but would appreciate a response from someone who really have it working. It seems very convenient to populate an html form for editing just by passing a bean from th

state and country taglib

2003-03-12 Thread Dan Allen
I have seen some taglibs around the web for making a state and country list, but they all seem to make the element. I would rather use the struts tag but have the custom taglib just make the options part, so as to replace tag with and Does anyone know of a taglib that has this? It seems to

RE: Advice on File Uplaod

2003-03-12 Thread Daniel Joshua
lol... nice reply... did not see it when I replied. Regards, Daniel -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 12:12 PM To: Struts Users Mailing List Subject: RE: Advice on File Uplaod We do something a little more complicated to deal

RE: Advice on File Uplaod

2003-03-12 Thread Daniel Joshua
John, The file will still be in the action form. It is just that you cannot display anything into an field. You have a few choices, you can change that field to a text field and display the name of the file, etc. However, struts does not provide this functionality, you have to add it yourself.

RE: Advice on File Uplaod

2003-03-12 Thread Andrew Hill
We do something a little more complicated to deal with this situation. Since the file is uploaded when they submit, if they need to go back because of validation errors, our form keeps a reference to the uploaded file, and instead of showing a file upload box again it shows the name of the file as

Re: Advice on File Uplaod

2003-03-12 Thread Dan Tran
Agree. The reason why there is no way to retain the file name after server side validation fail, is security. Imagine this, the server side can make the File field hidden and automatically submit the form so that it retrieve a file on your browser computer. -Dan - Original Message - Fro

RE: Dynamic form value replacements???

2003-03-12 Thread Jason Long
According to this you can. I have not tried though. Makes the other constuctors obsolete. http://jakarta.apache.org/struts/api/org/apache/struts/action/ActionError.ht ml Do you know to use DynaActionForm? I do not understand how to get the values kept when validation fails. It currently loses

Re: Weird Intermittent Behavior

2003-03-12 Thread Aidan Monroe
Yes, I'm sure as I debugged BeanUtils and saw that it did set the x and y values into the ImageButtonBean object. --- David Graham <[EMAIL PROTECTED]> wrote: > Are you certain that the x and y values are actually > submitted and found in > the HttpServletRequest? It may be a browser problem > wi

Struts 1.1 modules and logic:forward

2003-03-12 Thread Ken Pelletier
I have an application with 3 motules, each having it's own struts config file (naturally). Each module has it's own welcome file ( index.jsp ) which forwards to an action. Eg: /myapp/module1/index.jsp: ... The forward tag does not find the global action forward named "login" in the *mod

Re: Advice on File Uplaod

2003-03-12 Thread Peter Gershkovich
There could be another way. You may probably save the file first with the sessionID in a temp folder. Save the path to the session and use it when the file field is null. I believe that should work. Brandon Goodin wrote: Validate with javascript before the submit. That is the only way. There is

nested form bean

2003-03-12 Thread Peter Gershkovich
I have seen few messages regarding this issue in archive but would appreciate a response from someone who really have it working. It seems very convenient to populate an html form for editing just by passing a bean from the business layer. In our case one of the properties of that bean is anoth

RE: Advice on File Uplaod

2003-03-12 Thread Brandon Goodin
Validate with javascript before the submit. That is the only way. There is no means to pass the file reference back to the page. Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefish MT 59937 P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message-

RE: [struts-atlanta]

2003-03-12 Thread Van Riper, Mike
I am envious every time I see one of these postings for the Struts user group in Atlanta. Anyone interested in helping me start a Struts user group in silicon valley? If so, please contact me. If there is enough interest, I will setup a mailing list for the group and we can start planning an initia

Re: Accessing DynaActionForm fields within custom tag

2003-03-12 Thread Dan Tran
try this <% org.apache.struts.action.DynaActionForm form = (org.apache.struts.action.DynaActionForm) request.getSession().getAttribute("yourFormName"); %> to see if this works But for long term, I suggest to looking into JSTL it will make all your code much much cleaner Sorry, cant h

Re: Accessing bean in JSP but w/in java

2003-03-12 Thread Scott Seong
in the JSP inside the java code. Why > > would I use Java inside the JSP? I needed to derive options values based > on > > the value I received from the ActionForm. For example, > > > > ActionForm contains a property, "today" which will contain a string > value

Re: Dynamic form value replacements???

2003-03-12 Thread Ian Hunter
Can you put them in an array? - Original Message - From: "Jason Long" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, March 12, 2003 9:38 PM Subject: Dynamic form value replacements??? > I have a form that is dynamically created as a jsp in xml sy

Dynamic form value replacements???

2003-03-12 Thread Jason Long
I have a form that is dynamically created as a jsp in xml syntax. There are an arbitrary number of text fields that need to be validated. Could someone point me to an example of how to do this? I have no way of creating the set and get methods in the form class unless I dynamically create the ja

Re: Weird Intermittent Behavior

2003-03-12 Thread David Graham
Are you certain that the x and y values are actually submitted and found in the HttpServletRequest? It may be a browser problem with not submitting the coordinates. David From: Aidan Monroe <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: list <[EMAIL PROTECT

RE: Custom action error messages -- Solution

2003-03-12 Thread Jason Long
Create action error as follows: ActionError(String key, Object value0, Object value1, Object value2, Object value3) Add error as follows message as follows: error.price.float=value0={0} value1={1} value2={2} value3={3} This can also be used with an array of strings. Jason Long - CEO and Chief S

Re: Accessing bean in JSP but w/in java

2003-03-12 Thread Dan Tran
ues based on > the value I received from the ActionForm. For example, > > ActionForm contains a property, "today" which will contain a string value -- > say "20030312". From this value, I need to generate 5 additional business > days to be provided in the options pick

Re: Accessing DynaActionForm fields within custom tag

2003-03-12 Thread Ian Hunter
Looks neat, but I'd rather have two lines of kludgy code than have to add two additional libraries to the application. It's pretty basic so far, so it's probably not worth adding that layer of complexity for this one thing. Seems like I ought to be able to do this: "> dfdfdf but it claims not to

Re: Accessing bean in JSP but w/in java

2003-03-12 Thread Kwok Peng Tuck
ntain a string value -- say "20030312". From this value, I need to generate 5 additional business days to be provided in the options pick list. In order to generate additional values, I need to assign a reference to a variable. So, how do I gain access to the action

Re: Accessing bean in JSP but w/in java

2003-03-12 Thread Aidan Monroe
ActionForm contains a property, "today" which will > contain a string value -- > say "20030312". From this value, I need to generate > 5 additional business > days to be provided in the options pick list. In > order to generate > additional values, I need to ass

Accessing bean in JSP but w/in java

2003-03-12 Thread Scott Seong
nForm contains a property, "today" which will contain a string value -- say "20030312". From this value, I need to generate 5 additional business days to be provided in the options pick list. In order to generate additional values, I need to assign a reference to a variable. So, ho

Re: Accessing DynaActionForm fields within custom tag

2003-03-12 Thread Dan Tran
Use the combination of JSTL and Struts-el Here is an example, where based on a property in my form, the submit button is displayed differently. The formName is defined in your struts config file Good luck -Dan <%@ page contentType="text/html; charset=utf-8" %> <%@ taglib uri="/WEB-INF/struts-

Re: Advice on File Uplaod

2003-03-12 Thread Dan Tran
I have the same problem but unable to find solution yet, except to validate as much as I can in the browser side so that I can retain the file field. -Dan - Original Message - From: "John Brayton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 12, 2003 5:48 PM Subject:

Weird Intermittent Behavior

2003-03-12 Thread Aidan Monroe
I have a JSP with 4 's and am using ImageButtonBeans on my form. I've recently noticed that sometimes, even though I have clicked 1 of these 4 images, that none of the buttons is considered to be selected. I am following the instructions in Ted's tip #1 and everything usually works fine. But about

Re: problem in struts

2003-03-12 Thread EC Yeo
Changed this code : session.setAttribute(mapping.getAttribute(), form); to : session.setAttribute(mapping.getName(), form); since you are using the "name" attribute not the "attribute" attribute __ Do You Yahoo!? Promote your business from just $5

Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-12 Thread Vic Cekvenich
One good practice (for everyone) it to use list backed beans or collection backed bean. #1. When you use mutlirow, beans need to iterate (Collection) so your design has to have it anyway. #2. You can more easily change the DAO implementation of the DAO interface, if you only use it as a list/co

Accessing DynaActionForm fields within custom tag

2003-03-12 Thread Ian Hunter
I have a form where the submit button is supposed to say "add login" or "update login" depending on if the user in question (based on field fkMember) already exists in the login database. I have tags called HasLogin and HasNoLogin that take an integer parameter, and return whether or not the condi

Advice on File Uplaod

2003-03-12 Thread John Brayton
I am somewhat of a Struts newbie, and I could use some advice on implementing a component of an application. I have a form that allows a user to upload a file, along with associated meta-data. If the form's validate() method returns ActionErrors, the form will keep the originally entered field

Re: [HELP] ActionMessages

2003-03-12 Thread louis majanja
The Page does not throw an exception, it executes normally without any output On Wed, 2003-03-12 at 17:34, David Graham wrote: > "Doesn't work" is way too vague for us to help you. Does the page throw an > exception, execute normally with no output, etc? > > David > > > > >From: louis majan

Re: [HELP] ActionMessages

2003-03-12 Thread David Graham
"Doesn't work" is way too vague for us to help you. Does the page throw an exception, execute normally with no output, etc? David From: louis majanja <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject: [HELP]

Re: [OT]Best JSP plugin for eclipse..

2003-03-12 Thread David Graham
Do you work for this company? This thread has really turned into an ad for IDEA ;-). I don't need 3 months to decide that $500 is more than $0. David From: "Robert S. Sfeir" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PR

[HELP] ActionMessages

2003-03-12 Thread louis majanja
i have this in my actionForm: ActionMessages messages = new ActionMessages(); messages.add("message", new ActionMessage("message.login.confirmation")); saveMessage(request,messages); in my jsp i have it doesn't work, i have tried the following options which don't work ei

Re: [OT]Best JSP plugin for eclipse..

2003-03-12 Thread Robert S. Sfeir
On Wednesday, March 12, 2003, at 12:34 PM, Roland Berger wrote: Yeah, why use Eclipse if IntelliJ IDEA has it all and better. Don't spend $3000 on wsad (unless you need swing gui builder), spend approx. $500 for IDEA. Roland or FREE right now while they build the next revision... but you have t

Re: Conditional Displaying form properties - Seek Advice - Solved

2003-03-12 Thread Dan Tran
The actual syntax for DynaForm is myForm.map.mypropertiy Thank you for everything -Dan - Original Message - From: "Dan Tran" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, March 12, 2003 3:14 PM Subject: Re: Conditional Displaying form properties

Mutually Exclusive Radio Buttons

2003-03-12 Thread Jonathan
I wonder whether somebody could help me out here. I'm trying to create a number of radio buttons that have to be mutually exclusive. I know that its possible just by setting the property to be the same value for all but what if I'm using a nested:iterate tag? Surely this will result in the pro

Building Struts Applications Using WebSphere Studio V5

2003-03-12 Thread Thomas L Roche
Bibhas Bhattacharya has written a nice how-to showing the creation of a struts-example-like app using the WebSphere Studio Struts Tools. Check it out at http://www.webagesolutions.com/knowledgebase/waskb/waskb003/index.html Just one quibble: he has titled it "Building Struts Applications Using WS

[Question] Who called me (Action) ?

2003-03-12 Thread Henry Voyer
Hi everyone i have seen similar posts but not real answers. Is there a way for an action to know wich page called him so we can then do a forward to the caller? Ex page 1 -> Action1 -> page 1 Im asking for a clean solution. Not the type in wich we use parameter to set the page name in the link

RE: servlet reference in form bean in null?

2003-03-12 Thread White, Joshua A (CASD, IT)
I was actually talking about the "servlet" member variable of the ActionForm class. Is there any difference if I reference the "servlet" variable or the getServlet method? The servlet member variable is null. I have not dug up the source yet, but I would imagine the getServlet method returns the

RE: Tiles and html-el

2003-03-12 Thread Derek Richardson
Try: blah "t" being the prefix for the tiles taglib. Derek Richardson > -Original Message- > From: Sloan Seaman [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 12, 2003 2:14 PM > To: Struts Users Mailing List > Subject: Tiles and html-el > > > I've got an inside a tile and I need

RE: Correctly JSP Request Lifecycle?

2003-03-12 Thread Nick Coleman
Got it... Thanks for the assistance. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 6:28 PM To: Struts Users Mailing List Subject: RE: Correctly JSP Request Lifecycle? All navigation should go through Actions. Your Action can be set

RE: Correctly JSP Request Lifecycle?

2003-03-12 Thread struts
All navigation should go through Actions. Your Action can be set up to handle both types of requests. If your Action is called without any data in your form, then you would do nothing but forward it along to the JSP. If your Action is called and your form has data, then you would use that dat

[Q] how to get Form name?

2003-03-12 Thread michael . korolyov
Hello, I have jsp include (<%include file="a.jsp"%>) that has I'd like reuse this include a.jsp in many pages. How I can specify the "name" for this tag to be able reuse it? tnx Best Regards. Michael. - To unsubscribe, e-m

Re: ArrayList & Object[] funkiness

2003-03-12 Thread struts
Rick, Thanks for your help. The difference between the two machines is the big question because if they are different, it will be in some obscure fractional way. They are both hitting the same database, using the same version of WebLogic, different OS's (Windows 2k vs WindowsXP), same JVM, EVE

RE: Correctly JSP Request Lifecycle?

2003-03-12 Thread Nick Coleman
Would it be cleaner to define a GlobalForward in the module to the jsp, have the initial request to sent the forward and then have the user post data from that point to the action? I don't know if it would work, but I would image that actions should only be instantiated when work should be perform

Custom action error messages

2003-03-12 Thread Jason Long
What I am looking for is something like the following: Given error message in properties file error.price.float=Price on Item must be a number greater that 0 I would like to be able to display error messages with certain replaced values. So error could read "Price on Item 6732 must be a numb

Re: Correctly JSP Request Lifecycle?

2003-03-12 Thread struts
Nick, Your "hack" is actually the correct way to go about it. You should never directly access a JSP in Struts. See the example app that is included with Struts for clarification. Here is the correct order of events: - MyAction grabs JSP (using a forward) and displays it to the user. - User

Re: Conditional Displaying form properties - Seek Advice

2003-03-12 Thread Dan Tran
Thank you to both David and Rick, I replace myForm to the form name in my strut config file. Then I recieve the following exception org.apache.jasper.JasperException: An error occurred while evaluating custom action attribute "value" with value "${loginUserForm.action == 'delete'}": Unable to fin

Re: ArrayList & Object[] funkiness

2003-03-12 Thread Rick Reumann
On Wed, 12 Mar 2003 16:59:31 -0600 [EMAIL PROTECTED] wrote: > The above causes the app to work on my machine, and break on everyone > elses. So of course the obvious question- what is different about the two machines? Are they accessing the same exact information that is populating the collectio

Correctly JSP Request Lifecycle?

2003-03-12 Thread Nick Coleman
I'm running into a strange issue with struts modules and I want to verify the correct way to implement struts... Let say I have an Action Form named MyForm, an Action named MyAction and an input page named MyPage.jsp. I believe the correct order of operations would be to make the initial request

Re: ArrayList & Object[] funkiness

2003-03-12 Thread struts
Answers below... > > What happens when you have: > > ArrayList group; > > public ArrayList getGroup() { >return group; > } The above causes the app to work on my machine, and break on everyone elses. > Also in your code what is the Collection or array holding? In other > words I take it "

Re: Making a Tree

2003-03-12 Thread Arron Bates
Sloan, See if this is what you'rs looking for (tutorial etc)... http://www.keyboardmonkey.com/pilotlight/index.jsp ...scroll down to the "JSP Recursion & TREES!!!" part. Have fun. Arron. > Are there any struts/jsp tags that help in making a tree structure? Not a > JavaScript one but on

Re: Conditional Displaying form properties - Seek Advice

2003-03-12 Thread Rick Reumann
On Wed, 12 Mar 2003 17:44:36 -0500 Rick Reumann <[EMAIL PROTECTED]> wrote: > > I recommend you download the standard-examples.war file which has > examples of all of these tags. Navigation I find a bit tricky finding the proper stuff to download. You can download the standard stuff here http:

Re: Conditional Displaying form properties - Seek Advice

2003-03-12 Thread David Graham
Struts puts your form bean in the request or session scope so you can access it just like any other bean: "myForm" is the name you gave your form in struts-config.xml David From: "Dan Tran" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Maili

Re: Conditional Displaying form properties - Seek Advice

2003-03-12 Thread Rick Reumann
On Wed, 12 Mar 2003 14:34:49 -0800 "Dan Tran" <[EMAIL PROTECTED]> wrote: > Hi David > > here is the code, but i dont know how to set up the properties for > c:if > >test="${action == 'add'}" > >do something > > > where action is one of the properties of my form. > > what is cor

Re: ArrayList & Object[] funkiness

2003-03-12 Thread Rick Reumann
On Wed, 12 Mar 2003 16:24:32 -0600 [EMAIL PROTECTED] wrote: > How about the important snippets :) > > In the Form: > public Object[] getGroup() > { >return group.toArray(); > } What happens when you have: ArrayList group; public ArrayList getGroup() { return group; } Also in your code

RE: Nested and Tiles taglibs together

2003-03-12 Thread Arron Bates
Chris, et al, As of my last update to the nested tags, they use the request scope to store their reference information. They used to browse the tree of tags on a page which kept them in page scope, but now they're independent. If a nested tag is run anywhere inbetween the start and end of a nested

Re: Conditional Displaying form properties - Seek Advice

2003-03-12 Thread Dan Tran
Hi David here is the code, but i dont know how to set up the properties for c:if test="${action == 'add'}" > do something where action is one of the properties of my form. what is corrector the setup the test variable in my snippet code? Thanks ahead -Dan - Original Message

Re: Conditional Displaying form properties - Seek Advice

2003-03-12 Thread David Graham
You can use the JSTL tag to perform conditional logic. David From: "Dan Tran" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: Conditional Displaying form properties - Seek Advice Date: Wed, 12 Mar 2003 1

Conditional Displaying form properties - Seek Advice

2003-03-12 Thread Dan Tran
Hi I would like to display/disable a set of form's properties base on another properties in the form. some thing like this if ( theForm.aProperty) { /td> } Advice is greatly appricated. -Dan

Re: ArrayList & Object[] funkiness

2003-03-12 Thread struts
How about the important snippets :) In the Form: public Object[] getGroup() { return group.toArray(); } In the jsp: // this is the line that dies // other writes and fun things Quoting Rick Reumann <[EMAIL PROTECTED]>: > On Wed, 12 Mar 2003 15:48:58 -0600 > [EM

Re: Help finding the right code for dynamic forms

2003-03-12 Thread Mark
Unfortunately, their website is hosed right now, but http://www.exolab.org was home to Castor which may interest you. Regards, Mark *** REPLY SEPARATOR *** On 03/12/2003 at 2:56 PM Kris Schneider wrote: >Not sure if this is what you're after, but the Digester rules that Struts

RE: Re: Specifying comma-delimted Struts Config Files

2003-03-12 Thread Michael Cardon
Thanks David, I did, but it still doesn't work. When I start my tomcat server I get the following error: SEVERE: Parsing error processing resource path java.lang.NullPointerException at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9 41) at org.apache.s

Re: ArrayList & Object[] funkiness

2003-03-12 Thread Rick Reumann
On Wed, 12 Mar 2003 15:48:58 -0600 [EMAIL PROTECTED] wrote: > So, if the ArrayList is the right way to go... Why does it explode in > the majority of the environments (all developers except for me, and > all servers) and Object[] works? Very odd. Before switching to JSTL for tag, I used Colle

RE: Re: Specifying comma-delimted Struts Config Files

2003-03-12 Thread David Graham
Try removing the space after the comma. David I've never been able to get the comma config file feature to work, but you did? If you can tell me how you did it, I would appreciate it. Here is my sniplet from my web.xml file: config /WEB-INF/struts-config.xml, /WEB-INF/s

Re: ArrayList & Object[] funkiness

2003-03-12 Thread struts
So, if the ArrayList is the right way to go... Why does it explode in the majority of the environments (all developers except for me, and all servers) and Object[] works? Using Struts 1.1B2. Servers: Solaris, Dev boxes: Windows, AppServer: WebLogic. Carl Quoting Rick Reumann <[EMAIL PROTECT

RE: Re: Specifying comma-delimted Struts Config Files

2003-03-12 Thread Michael Cardon
Chuck, I've never been able to get the comma config file feature to work, but you did? If you can tell me how you did it, I would appreciate it. Here is my sniplet from my web.xml file: config /WEB-INF/struts-config.xml, /WEB-INF/struts-config-reports.xml Th

Re: [QUESTION] forward slash in "action" attribute

2003-03-12 Thread Dan Allen
> > > and > > Any takers? The difference? Is an action just a word or is it a path? Dan -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Daniel Allen, <[EMAIL PROTECTED]> http://www.mojavelinux.com/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - umm... i

Re: Struts Tiles and UTF-8

2003-03-12 Thread Jim Theodoridis
Hi Carlos. I have save the application.resources as html an the browser shows that the file encoding is UTF-8 and i cannot change it. I thing that the file is in correct encoding. Have you an example with struts without database to display correct the application.resources an the tiles? in UTF-8

Broken Client-Side Validation

2003-03-12 Thread Evan Schnell
I am having a great deal of trouble with client side validation on fields that use the requiredIf rule in Struts 1.1B3 and RC1. ServerSide validation of everything works fine and client side validation works fine when I remove the requiredIf clause. I have the following entry in my validation.

Re: unwanted emty lines in produced html

2003-03-12 Thread Dan Allen
> > The biggest program is taglibs within logic:iterate if you try something > > like: > > > > > > instead of: > > > > > > > > > > You will find you get a lot fewer blank lines. > Then you have totally unreadable and unmanageable html. The key here is using the end carrot trick as mentioned ab

Re: Re: Specifying comma-delimted Struts Config Files

2003-03-12 Thread Chuck Cavaness
As embarassing as it is to admit, the error was a pure operator type error. There was an element missing in the second config file. I was actually taking one config file apart and splitting it into two to demonstrate this feature. Why the error complained about a missing , I'm not sure. Anywa

RE: ArrayList & Object[] funkiness

2003-03-12 Thread Miller, Jason
In almost every situation, I place the Iterator from the collection, or something I construct using o.a.commons.collections.IteratorUtils, into the form. This way, I am not tied to any particular backing representation. I'm not sure if this is the correct way to go, but it has served me well to th

Re: ArrayList & Object[] funkiness

2003-03-12 Thread Rick Reumann
On Wed, 12 Mar 2003 16:25:08 -0500 "Mark Galbreath" <[EMAIL PROTECTED]> wrote: > ArrayList; if you return Object[] you will have to cast it into an > ArrayList. I know you know this Mark, but just to be a bit more technically correct in case [EMAIL PROTECTED] isn't aware, any of the Collection cl

RE: servlet reference in form bean in null?

2003-03-12 Thread Sri Sankaran
I think he means the getServlet() method of ActionForm. Sri -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 4:26 PM To: 'Struts Users Mailing List' Subject: RE: servlet reference in form bean in null? Might have if you posted the code t

RE: servlet reference in form bean in null?

2003-03-12 Thread Mark Galbreath
Might have if you posted the code to which you are referring. Mark -Original Message- From: White, Joshua A (CASD, IT) [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 4:16 PM To: [EMAIL PROTECTED] Subject: servlet reference in form bean in null? Hello all, I am having troubl

RE: ArrayList & Object[] funkiness

2003-03-12 Thread Mark Galbreath
ArrayList; if you return Object[] you will have to cast it into an ArrayList. Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 4:10 PM One of our Form's has an ArrayList property. The getter method for that property returns an O

RE: Action Forwarding Issue

2003-03-12 Thread Robert Taylor
http://www.mail-archive.com/[EMAIL PROTECTED]/msg14224.html robert > -Original Message- > From: sifman [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 12, 2003 4:04 PM > To: [EMAIL PROTECTED] > Subject: Action Forwarding Issue > > > How can I forward to another action class sending a p

servlet reference in form bean in null?

2003-03-12 Thread White, Joshua A (CASD, IT)
Hello all, I am having trouble determining why the "servlet" reference in my formbean is null. I have created a class "BaseForm" which extends ActionForm. Any ideas? Joshua This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confide

RE: ServletOutputStream.write(byte[], int, int) Return Value

2003-03-12 Thread Mark Galbreath
The return type (not value) is void (which, technically, is no return at all), and of course the API states "some," because argument "len" may be less than the byte array. I think this could have been better documented, however. Mark -Original Message- From: James Watkin [mailto:[EMAIL P

Re: Specifying comma-delimted Struts Config Files

2003-03-12 Thread Rick Reumann
On Wed, 12 Mar 2003 16:00:46 -0500 Chuck Cavaness <[EMAIL PROTECTED]> wrote: > Is anyone using the feature of the framework where you can specify > multiple configuration files in the web.xml: Sorry I can't help Chuck, since I'm not using multiple config.xml's. I'd like to start using them thoug

  1   2   3   >