Re: Dropdown and a text box

2003-11-18 Thread Abhijeet Mahalkar
Hi Anubhav for this you have to play along with both textfield and select show Select first and then provide a button for new entry very immediate to select and when he clicks it hide select and show text field.. i hope this must be in ur mind previously ... or may help you. abhijeet -

Re: Declarative Security and Struts

2003-11-18 Thread Adam Hardy
On 11/18/2003 12:47 AM Michael Blair wrote: I have been able to get a MemoryRealm in Tomcat to work using BASIC authentication. If I try to do this with FORM based authentication it seems to think the ACTION=j_security_check in my login.jsp seems to make struts think this is an action that should

Re: Dropdown and a text box

2003-11-18 Thread Abhijeet Mahalkar
hi anubhav Continuing previous mail rather than having Buttong along with select field add Doubleclick Event to both text field and select and hide each other on double click by checking the tpe of Object it is... abhijeet - Original Message - From: Abhijeet Mahalkar [EMAIL PROTECTED]

ActionErrors problem...

2003-11-18 Thread Dominique de Waleffe
I have this in my code: errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(error.key.invalid-value.dummy,keyname,value,expected); I have this in application.properties: error.key.invalid-value.dummy=DUMMY: key:{0} Value:{1} expected:{2} However, using html:errors/ in my page,

Re: ActionErrors problem...

2003-11-18 Thread Brad Balmer
This may be a copy/paste issue, but this shouldn't even compile as it looks here. You are missing a ) at the end. Dominique de Waleffe wrote: I have this in my code: errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(error.key.invalid-value.dummy,keyname,value,expected); I

Problems with modules and message resources

2003-11-18 Thread John Bunker
I have an application that has used bean:message for quite some time. I have had multiple struts-config files and each one defined message-resources that it needed. This all worked correctly I just changed my application to use Struts Modules. I confirmed that I have everything working correctly

Re: validation occuring before form is loaded, why?

2003-11-18 Thread Susan Bradeen
On 11/17/2003 08:04:21 PM Janice wrote: Hi Gang, I was having problems getting validation to work at all. I've read every post on getting it to work, followed all step-by-steps, and nothing would ever do it. Today I yanked all the .jar files out of my lib directory and updated it with

Re: ActionErrors problem...

2003-11-18 Thread Dominique de Waleffe
Brad Balmer wrote: This may be a copy/paste issue, but this shouldn't even compile as it looks here. You are missing a ) at the end. Cut-n-paste error. The code compiles. Only the replacements do not appear. When I put an extra placeholder {3} and give 3 args only, the {3} appears in the

Re: ActionErrors problem...

2003-11-18 Thread Susan Bradeen
On 11/18/2003 07:29:41 AM Dominique de Waleffe wrote: I have this in my code: errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(error.key.invalid-value.dummy,keyname,value,expected); Are keyname, value, expected evaluated or literal values? Do you mean to have the quotes around them?

Re: ActionErrors problem...

2003-11-18 Thread Dominique de Waleffe
Susan Bradeen wrote: On 11/18/2003 07:29:41 AM Dominique de Waleffe wrote: I have this in my code: errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(error.key.invalid-value.dummy,keyname,value,expected); Are keyname, value, expected evaluated or literal values? Do you mean to have

datavision and struts

2003-11-18 Thread Julie . Huang
Does anyone use datavision as reporting tool together with struts? any examples? thank you. = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = This transmittal and any attachments may contain confidential, privileged or sensitive information and is solely for the use of

Re: ActionErrors problem...

2003-11-18 Thread Caroline Lauferon
I've just made a little test writing DUMMY: key:keyname Value:value expected:expected in an html document.. and i got DUMMY: key: Value: expected: the problem is that is a special html symbol explorer thinks its an unknown tag and outputs nothing. if you look in the HTML source of

ModuleConfig Question

2003-11-18 Thread maziz_ca
Hello all, I have been asked to create an Action that would dynamically modify struts-config.xml and ModuleConfig in order to avoid restarting the app server to read the new struts.config.xml. I did some research and looking at the code in the ModuleConfig implementation, it always checks the

Different session handling between websphere and tomcat

2003-11-18 Thread Christian Schlaefcke
Hi, I´m running Struts 1.1 with Tomcat 4.1.24 and also with Websphere (wsad) 5. I have a tiny application developed under wsad running fine under tomcat. When I try to deploy the same app to websphere I´m constantly getting nullpointer exception for the objects I try to pass from my action class

Re: ActionErrors problem...

2003-11-18 Thread Dominique de Waleffe
Caroline Lauferon wrote: I've just made a little test writing DUMMY: key:keyname Value:value expected:expected in an html document.. and i got DUMMY: key: Value: expected: the problem is that is a special html symbol explorer thinks its an unknown tag and outputs nothing. if you

running Struts with no network connection

2003-11-18 Thread Afshartous, Nick
Hi, I'm trying to run with no network connection, and I've set the init param validation to false. Yet Struts is looking for the Validator's DTD. Thanks for any help. -- Nick 95 [main] INFO validator.ValidatorPlugIn - Loading validation rules file from '/WEB-INF/validation.xml' 3130

RE: Dropdown and a text box

2003-11-18 Thread Gupta, Anubhav
Abhijeet, This kind of thing will work but we will have to tell the users to double click to enter the values. I have seen many dropdown lists in which when you click on the display area, you can write new values or click on arrow to the right to select a values from the list. I am not sure how to

Re: datavision and struts

2003-11-18 Thread Vic Cekvenich
I use this: http://ireport.sourceforge.net .V [EMAIL PROTECTED] wrote: Does anyone use datavision as reporting tool together with struts? any examples? thank you. = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = This transmittal and any attachments may contain

RE: Accessing a static final constant from Class in JSP

2003-11-18 Thread Srinivas Kusunam
which tag do u use to access the constants from the class as I don't want to use JSP Scriplets??? Thanks, S! [EMAIL PROTECTED] 11/17/03 05:41PM Import the class in your jsp, then you can directly access it. %@ page import=GSOPConstants% -Original Message- From: Srinivas Kusunam

jsp:include'd struts action closes stream, and thus breaks page

2003-11-18 Thread Morten
Hi, running Tomcat 4.1.27. I have the following JSP: jsp:include page=../database/list.do jsp:param name=dbid value=%=dbid%/ /jsp:include Whatever comes after the above, does not make it to the browser. Tomcat's log reports a closed stream: - Root Cause - java.io.IOException: Stream

Using Tiles Definitions In Standard Links?

2003-11-18 Thread John . Pitchko
BDY.RTF Description: RTF file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Different session handling between websphere and tomcat

2003-11-18 Thread Larry Meadors
If you do not require the collection after the page is rendered, you could put it into request scope. This is what I do to populate listboxes, tables, etc.. That way they don't hang around any longer than they need to - they get used to render tha page, then get discarded. If you are using a

RE: Accessing a static final constant from Class in JSP

2003-11-18 Thread Larry Meadors
I don't think there is one, but maybe somone will educate me. ;-) Why not put this in ApplicationResources and then use the bean:message tag? Larry [EMAIL PROTECTED] 11/18/03 8:31 AM which tag do u use to access the constants from the class as I don't want to use JSP Scriplets??? Thanks, S!

RE: Does Struts-Menu work with J2EE 1.2 (servlet 2.2 and JSP 1.1) lev el container?

2003-11-18 Thread Pingili, Madhupal
Nevermind. It's just a simple configuration issue. Got it resolved. -Original Message- From: Pingili, Madhupal Sent: Monday, November 17, 2003 1:51 PM To: 'Struts Users Mailing List' Subject: Does Struts-Menu work with J2EE 1.2 (servlet 2.2 and JSP 1.1) lev el container?

html:link pass more then one paramater (no JSTL)

2003-11-18 Thread Mauricio T. Ferraz
how can use this tag to pass more the one parameter, for example 4 parameter? With out use JSTL . Only Struts tag! How can I do?

Re: html:link pass more then one paramater (no JSTL)

2003-11-18 Thread Kris Schneider
This would be a fine place to look: http://jakarta.apache.org/struts/userGuide/struts-html.html#link Hint: If you prefer to specify a java.util.Map that contains all of the request parameters to be added to the hyperlink, ... Quoting Mauricio T. Ferraz [EMAIL PROTECTED]: how can use this tag

Re: jsp:include'd struts action closes stream, and thus breaks page

2003-11-18 Thread Morten
I found that Tomcat bug 21440 regards this. Basically JSP included pages have direct access to the out stream, an naturally this is transparent to the included page, so the struts framework closes the out stream (prematurely seen in perspective of the including page). Any suggestions for

Which framework to choose?

2003-11-18 Thread harm
Hi all, Altough this might not be the right place to ask, but I'm just curious. Recently I see a lot of different frameworks which pretty much promise the same functionality as the Struts framework. For instance I found: struts webwork Spring etc... Which one is the best? I have been using

RE: Using Tiles Definitions In Standard Links?

2003-11-18 Thread Hubert Rabago
I don't know if you can directly link to a tile, because the web container will still need a way to get to your tile from a URL. You might still need an action, but at least if you use the ForwardAction that comes with struts, you won't need to write one. -Original Message- From: [EMAIL

Re: html:link pass more then one paramater (no JSTL)

2003-11-18 Thread Mauricio T. Ferraz
Kris, do you have any example to show me? How can I use this? I´d like to pass 3 parameter fixes and other parameter in a (java.util.Property) Is there a way to do it??? - Original Message - From: Kris Schneider [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent:

RE: validation occuring before form is loaded, why?

2003-11-18 Thread Richard J. Duncan
Hi. 1.What version of struts are you working with ? 2.If the action map's validate attribute is set to true, the form.validate() method is called *before* the action is executed. If there are errors it will forward back to the input page (value of the input attribute). 3.To avoid

RE: Using Tiles Definitions In Standard Links?

2003-11-18 Thread John . Pitchko
BDY.RTF Description: RTF file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Which framework to choose?

2003-11-18 Thread Ted Husted
Personally, I consider MVC frameworks to be commodities. It doesn't really matter which you use use. The real point of the exercise is to treat web applications like applications, rather than some throwaway hack. Which framework is best for a particular project is going to depend on the

RE: Which framework to choose?

2003-11-18 Thread Edgar P Dollin
You are right. This is not the right forum. The reason you are asking on this forum (you will get a good answer quickly) is the reason you are using struts and the reason struts has a future. All the other frameworks except for JSF and Microsoft are of technical interest only. Edgar

RE: Declarative Security and Struts

2003-11-18 Thread Richard J. Duncan
A few good things to know when using struts and jsp/servlet security: 1.the logic:present and logic:notPresent tags let you conditionalize your jsps based on the users role. 2.Your code can use javax.servlet.http.HttpServletRequest.isUserInRole 3.Since you are using tomcat

Array of html:checkbox / html:multibox not retaining state after validation

2003-11-18 Thread Shyam A
Hi, I have a scenario where I have an array of checkboxes along with other data displayed in a table format on a JSP. I have to keep track of which checkbox is checked or unchecked when a user submits the form. I use the validate() method of my ActionForm to do validation. However, the values of

reacting to changes on the checkbox

2003-11-18 Thread [EMAIL PROTECTED]
I wonder if there is a struts way for reacting to changes on the checkbox and making changes to other controls as a result. What I would like to happen is to disable a submit button when no checkbox is selected, and enable it when only one checkbox is selected, disable it again if more than one

Problem with bean:header

2003-11-18 Thread Lawrence Williams
Hi, I am using the following in a JSP (Welcome.jsp) - trying to output the User-Agent header value. %@ page language=java % %@ taglib uri=/tags/struts-bean prefix=bean % %@ taglib uri=/tags/struts-html prefix=html % %@ taglib uri=/tags/struts-logic prefix=logic % ... logic:present

validation occuring before form is loaded, why?

2003-11-18 Thread Janice
Thank you Richard and Susan, I feel silly, of course I didn't have validate=false on the mapping for displaying the form. But now I do and its finally validating!!! Janice (now if only I can figure out how to get the tiles to work, I can really get to work!)

Re: Which framework to choose?

2003-11-18 Thread Martin Cooper
Ted Husted [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Personally, I consider MVC frameworks to be commodities. It doesn't really matter which you use use. The real point of the exercise is to treat web applications like applications, rather than some throwaway hack. Which

Disable URL-rewriting?

2003-11-18 Thread Brice Ruth
Is there any way to disable URL rewriting (with jsessionid) in Tomcat or via struts-config.xml or anything? I'm about at my wits end with this jsessionid thing - now our search engine which indexes by crawling the site (and doesn't support cookies) can't index properly because of the

Email Validation Rules

2003-11-18 Thread Ramadoss Chinnakuzhandai
Can any one correct me where I'm wrong using the following rule for validating email addressIt fails to validate against the valid email address..? [EMAIL PROTECTED],4}$ Tnx in advance :) -Ram - To unsubscribe,

Internationalization: Tiles vs MessageResources

2003-11-18 Thread John . Pitchko
BDY.RTF Description: RTF file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Email Validation Rules

2003-11-18 Thread David Friedman
I'd suggest calling: org.apache.commons.validator.GenericValidator.isEmail(String arg); -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 1:03 PM To: Struts Users Mailing List Subject: Email Validation Rules Can any one

using commons-pool

2003-11-18 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
We want to use commons-pool package for instance pooling, where can I find a running complete example ,also we would be happy if somebody share their experinces with us ,, - To unsubscribe, e-mail: [EMAIL PROTECTED] For

ComponentContext tile attributes not being found in JSP

2003-11-18 Thread Turansky, Mark
I have a Tiles Controller adding an attribute to the ComponentContext. This piece works fine and I can see the new attribute in the Controller class. The attribute is called message, which is a string. context.putAttribute(message, this is the message!); The problem is the JSP that uses the

RE: Email Validation Rules

2003-11-18 Thread Ramadoss Chinnakuzhandai
yeah...I tried that way but the problem I belive is it does accepting special character after the . part of email address. any other idea how to make it work??? -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 1:16 PM To: Struts

Re: struts and PHP

2003-11-18 Thread Christian Bollmeyer
Am Montag, 17. November 2003 22:48 schrieb Daniel Blumenthal: Hi, i've been looking into adding blogging functionality to my website (which uses struts), and one which was suggested was pmachine (http://www.pmachine.com/index.php). however, this uses php, and this raised the question of

ProcessAction and RESULT attribute

2003-11-18 Thread Felipe Nascimento
Hi, I really needed to know how ProcessAction acts. Struts In Action says The ProcessAction will than just save the ResultList collection in request scope, using the default RESULT attribute name, and forward control to success.. The problem is that i am not getting a RESULT attribute in my

avoid proxy-caching by generating changing urls

2003-11-18 Thread Christine Gerstenmayer
Hi all ! My application is running behind a proxy which caches everything, if the url is the same. It's no use that I have this in each Jsp: meta http-equiv=pragma content=no-cache Therefore I used the Struts-property controller nocache=true/ But it was not that I expected: My

Re: Disable URL-rewriting?

2003-11-18 Thread Kris Schneider
NAFAIK, but that's by no means definitive. I *do* know that you can configure a TC context (or default context) to do the opposite. In other words, turn off cookies and only use rewriting. Hm, what if you create a filter to wrap the response with an HttpServletResponseWrapper that no-ops

Complex Form Validation

2003-11-18 Thread George Steimer
We are trying to perform some complex form validaion with the new Validator plugin. Here is what we are trying to do: 1 -- validate a form field based on other form fields 2 -- validate a form field based on div style settings I know that I could solve the first problem with the old validation

Re: Complex Form Validation

2003-11-18 Thread Nicholas L Mohler
George, I have done something similar to this. I haven't looked at browser compatability yet(we're currently using this with ie6), but the concept that I use is that I look at the parents of the form field, trying to find out if the element is hidden. If I find that a parent that is

Re: Disable URL-rewriting?

2003-11-18 Thread Brice Ruth
Kris, Thanks for the response. I saw that I could do the opposite :) - no help there. I'd be really interested in pursuing your second suggestion. Ideally, I'd see setting up a filter that processes every incoming request and determines if its originating from our search engine, if so, then

Re: Complex Form Validation

2003-11-18 Thread George Steimer
Nick, Thanks for your response. I'm doing something similar with javascript. What would be better is if we could validate the form serverside with the validation framework... I think we would have to write a custom validator that somehow would get the div parent of the form field and check

Server manged vs. struts managed db pools

2003-11-18 Thread Nathan Maves
Are there any pro/con 's for either? Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Complex Form Validation

2003-11-18 Thread Yee, Richard K,,DMDCWEST
George, You can't do the validation server-side as you proposed because the browser only sends HTML form elements. It will not send any information regarding the div tag. You would have to have a hidden form variable and use JavaScript to populate it with any values of interest when the form is

Re: Disable URL-rewriting?

2003-11-18 Thread Kris Schneider
First, check out a tutorial on Servlet 2.3 filters. One at: http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets8.html Essentially, it'll boil down to creating two classes: a filter (implements javax.servlet.Filter) and a response wrapper (extends

Re: Disable URL-rewriting?

2003-11-18 Thread Christian Bollmeyer
Am Dienstag, 18. November 2003 18:29 schrieb Brice Ruth: If anyone knows a solution to this matter, I'm definitely interested in hearing about it, too. From all what I can tell, some search engines don't care (Altavista's Scooter, for example), while some do (Google, in particular) and go away

Trouble With Multiple Message Resources Bundles

2003-11-18 Thread Cornellious Mann
I am having trouble accessing a message from my non-default message bundle. I have the following entries in my struts-config.xml file... message-resources parameter=com.it.rfr.resources.rfrresources /message-resources message-resources key=shared

RE: Server manged vs. struts managed db pools

2003-11-18 Thread Edgar P Dollin
I like struts managed db pools, however, the struts developers aren't too happy about the quality and the dependency on the commons-pooling library and are attempting to phase it out. Edgar -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18,

Re: Disable URL-rewriting?

2003-11-18 Thread Brice Ruth
I'd probably do a User-Agent header check ... Now, I've got a Filter already doing some things for the site - so I know how to configure web.xml and such, what do I need to do to use HttpServletResponseWrapper? Brice Kris Schneider wrote: First, check out a tutorial on Servlet 2.3 filters.

Re: Disable URL-rewriting?

2003-11-18 Thread Brice Ruth
Got it. Simple as pie, actually. Created the Wrapper class, no-op'd the encodeUrl/encodeURL and put it into the Filter that was already setup to handle all incoming requests ... piece of cake :) Sweet! Here's the wrapper code: public class StripSessionIdWrapper extends

Re: Disable URL-rewriting?

2003-11-18 Thread Christian Bollmeyer
Am Dienstag, 18. November 2003 20:10 schrieb Kris Schneider: Oh, I see that I left that approach out, for I dropped it at an early stage in my design considerations. Of course, you can kill off session information via a filter that way, but what will happen if the user has disabled Cookies, and

Re: Disable URL-rewriting?

2003-11-18 Thread Brice Ruth
I'm going to handle this by specifically looking at the User-Agent header that gets sent ... if I can detect that it is a search engine (particularly *our search engine crawler), then I'll disable the encodeURL/Url methods ... otherwise, I'll leave things as is. This takes care of your

Re: running Struts with no network connection

2003-11-18 Thread Khalid K.
I think in struts-config.xml there is a section for enabling validator plugin, if i am not mistaken you have to comment that section out.. Khalid Quoting Afshartous, Nick [EMAIL PROTECTED]: Hi, I'm trying to run with no network connection, and I've set the init param validation to

ExceptionHandler

2003-11-18 Thread Sharmila Pandith
Hi, I have the following defined in my config: action path=/buildCRAction type=com.hnw.apps.ml.clients.action.BuildContentReleaseAction validate=false name=contentReleaseForm input=/build_content_release.jsp

RE: ExceptionHandler

2003-11-18 Thread Yee, Richard K,,DMDCWEST
Felipe, How is '/componentes/mensagens.jsp' related to the Action or to 'tiles.erro'? When do you get this message vs. the blank white page? Have you viewed the source of the 'white page' to see if it contains any html? -Richard -Original Message- From: Felipe Nascimento [mailto:[EMAIL

Turn off javascript validation generation

2003-11-18 Thread Wendy Smoak
Is there a way to turn off all (750 lines!) of the JavaScript that gets generated for form validation? Thanks, -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University, PA, IRM - To unsubscribe, e-mail:

Re: avoid proxy-caching by generating changing urls

2003-11-18 Thread Carl
Hi, I'm using Struts with Tomcat 4.1. If you disable cookies in your tomcat context, all your ULR will be rewritten with a jsessionid. So the proxy issue should be solve. However I don't know If there is a way to enable cookies AND be sure that the proxy's cache is disable. In my project I

initializing properties for Actions

2003-11-18 Thread Frank Maritato
Hi, I'm trying to pass some initialization parameters to an Action and I'm having some trouble. What I want is to be able to tell my LoginAction not to validate passwords for development systems. Here is what I have right now followed by the error I get on startup: struts-config.xml: action

Re: initializing properties for Actions

2003-11-18 Thread Carl
I'm not sure that this will solve your pb, but I think you should use public boolean isPasswordDisabled() { return passwordDisabled; } instead of getPasswordDisabled. Carl Frank Maritato wrote: Hi, I'm trying to pass some initialization parameters to an Action and I'm having some

Form data vs request attributes

2003-11-18 Thread Craig Edwards
I've been fiddling around with Struts for a while now and am still a little puzzled as to whether JSPs should be getting their data from my DynaActionForm or from the session/request context. For example, if my JSP contains: html:select property=selectedCustomer size=5 html:options

RE: MySql BasicDataSource Connection

2003-11-18 Thread Pacheco, Brent
Gede, Thanks so much for your help! The problem was that I had the property listed as driverClass instead of driverClassName, so the BasicDataSource couldn never locate my driver. When I fixed that, it fired right up. Thanks again!! Brent -Original Message- From: Gede Indrawan

Re: initializing properties for Actions

2003-11-18 Thread Frank Maritato
Carl, That didn't work, but thanks anyway. I also tried changing the data type for passwordDisabled to a String and have the normal get/set methods but that didn't seem to change the outcome either. I think the real problem is that it is trying to call setPasswordDisabled on

problem with html:text bean throwing exception

2003-11-18 Thread Gus Heck
So I have been stuck for a day or so on this exception: org.apache.jasper.JasperException: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254) at

Re: problem with html:text bean throwing exception

2003-11-18 Thread Carl
Have you a vaild formBean define for this html:form in your struts config file ? form-bean name=myForm type=org.myForm/ Is this bean called in your action mapping ? action path=/htmlForm type=org.myAction name=myForm scope=request validate=true input=/page.jsp forward name=success

RE: Form data vs request attributes

2003-11-18 Thread Wendy Smoak
I don't appear to have to declare customers in the form, but if I don't declare suburb, I get an error... what is the difference? 'suburb' is a form property, Struts will call get/setSuburb as it populates the Form Bean and generates the HTML. 'customers' is a collection of things to be used

RE: initializing properties for Actions

2003-11-18 Thread Yee, Richard K,,DMDCWEST
Frank, I think you are on to something here. Why don't you subclass ActionMapping and in your subclass put your member variable and getter and setter. You can then access the value from your action class's excecute method's mapping parameter after you cast it to your ActionMapping subclass?

Re: Form data vs request attributes

2003-11-18 Thread Hubert Rabago
ActionForm objects are representation of a form and the data in the form. It holds the values of your INPUT, SELECT, TEXTAREA and other form controls. The options of a SELECT control are only used to help the user choose a value; its only purpose is to give the SELECT control a value and isn't

RE: Form data vs request attributes

2003-11-18 Thread Mainguy, Mike
Although, I don't really see a major problem with storing the options in the form itself (just to make things simple). Anybody have a compelling reason NOT to do this? i.e. I put my statesCollection as a property on my ActionForm with a List datatype. Then I can just use the form property to

bean:message MessageFormat and number formating

2003-11-18 Thread Carl
Hi, I've recently switch to a resource.properties file to externalize all text from jsp (in the perspective of translation of the site) The site is a classic e-commerce web site, so I dsiplay a Cart and the amount of the products in the custumer's cart. In my old jsp I wrote :

ExceptionHandler example

2003-11-18 Thread Sharmila Pandith
Hi, Can anyone please send me an example for ExceptionHandler? I need to to know what goes in teh config file, the action class and the other files. TX, S P - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: ExceptionHandler example

2003-11-18 Thread Yee, Richard K,,DMDCWEST
Check this article out: http://javaboutique.internet.com/tutorials/excep_struts/index-7.html -Richard -Original Message- From: Sharmila Pandith [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 3:34 PM To: [EMAIL PROTECTED] Subject: ExceptionHandler example Hi, Can anyone

RE: initializing properties for Actions

2003-11-18 Thread Wendy Smoak
From: Frank Maritato [mailto:[EMAIL PROTECTED] I think the real problem is that it is trying to call setPasswordDisabled on org.apache.struts.action.ActionMapping instead of my LoginAction class. I remember being confused about this, too. When struts-config.xml gets run through the

RE: Form data vs request attributes

2003-11-18 Thread Wendy Smoak
From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Although, I don't really see a major problem with storing the options in the form itself (just to make things simple). Anybody have a compelling reason NOT to do this? i.e. I put my statesCollection as a property on my ActionForm with a List

JSTL DynaValidatorForm

2003-11-18 Thread Yann Lebreton
Hi, For x and y reasons I've to create my own version of the c:out tag. Everything is working great for everything BUT DynaValidatorForm where I get Unable to find a value for value in object of class org.apache.struts.validator.DynaValidatorForm using operator . I'm using the evaluate

RE: Form data vs request attributes

2003-11-18 Thread Larry Meadors
The reason I don't do this is because if the form is in session scope, it hangs around consuming memory until the session goes away. As a caching mechanism, this bites rocks, because it is cached for each user. :-/ By putting this type of stuff in request scope instead of on the form, it

Re: Including multiple servlets from a jsp page.[Now: Tiles Help]

2003-11-18 Thread Chris Blackburn
Thank you very much! That was exactly what I needed. Now I just need a little advice on working with Tiles. Do I need to have a tiles definition for every single different view? I will give a small example. definition name=page.default path=/templates/index.jsp put name=head

Re: problem with html:text bean throwing exception

2003-11-18 Thread Gus Heck
I believe so... Here is my config and some of the relevant directory tree... The action for NewLocation appears to successfully take me to the AddLocation page. (it only forwards right now). form-beans form-bean name=addLocationForm type=org.cs101.fdb.struts.form.AddLocationForm /

RE: initializing properties for Actions

2003-11-18 Thread Yee, Richard K,,DMDCWEST
Frank, I tried subclassing ActionMapping and setting the type attribute in the struts config action-mappings tag. The runtime error goes away but the setter method never gets called. It could be a bug. -Richard -Original Message- From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]

Re: Form data vs request attributes

2003-11-18 Thread Craig Edwards
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... The options of a SELECT control are only used to help the user choose a value; its only purpose is to give the SELECT control a value and isn't itself a value of the form. Think of it this way: the form doesn't lose any data by

Re: MySql BasicDataSource Connection

2003-11-18 Thread Gede Indrawan
U r welcome :) That configuration I just adopt it from the information at struts-documentation.war from the binary distribution of struts. http://localhost:8080/struts-documentation/faqs/database.html I install it on Tomcat 4.1.29 using default port. best regards -GI. - Original Message

OO Struts

2003-11-18 Thread Travis D. Falls
I am designing my first struts application, but I have been a java developer for about 5 years. I am actually refactoring a survey app. I wrote. The way struts was explained to me was my ActionForms were like my Transfer objects and my actions were just that, the action that was requested...

anyone using jstl side by side with the strut taglibs?

2003-11-18 Thread Nick Faiz
Hi, I'm nearing the end of a prototype for my first Struts application. At first, I used JSTL to handle most of my iteration, declarations, and conditional operations. Then, as I learnt more about the Struts taglibs, I decided to simply use the Struts libraries, for the sake of

Re: anyone using jstl side by side with the strut taglibs?

2003-11-18 Thread Brice Ruth
Once you use EL, you don't have much of a choice than to use them side-by-side. Nick Faiz wrote: Hi, I'm nearing the end of a prototype for my first Struts application. At first, I used JSTL to handle most of my iteration, declarations, and conditional operations. Then, as I

RE: anyone using jstl side by side with the strut taglibs?

2003-11-18 Thread Nick Faiz
Thanks Brice, I just checked out Struts-EL. I think I'll begin using it with JSTL. Nick -Original Message- From: Brice Ruth [mailto:[EMAIL PROTECTED] Sent: Wednesday, 19 November 2003 12:36 PM To: Struts Users Mailing List Subject: Re: anyone using jstl side by side with the

Re: anyone using jstl side by side with the strut taglibs?

2003-11-18 Thread Gus Heck
Brice Ruth wrote: Once you use EL, you don't have much of a choice than to use them side-by-side. For the benefit of us noobs... what is EL? -Gus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

what is the right way to test whether execute() is called after validate()?

2003-11-18 Thread Janice
I'm sorry if this is too basic, I'm still really green. I'm validating a form. This form is used for adding and editing widgets. I use the same actionHandler, where I test a request parameter and set up the form accordingly. It builds my form object and either resets it for an add, or

RE: anyone using jstl side by side with the strut taglibs?

2003-11-18 Thread Nick Faiz
Gus, http://jakarta.apache.org/struts/userGuide/building_view.html#struts-el EL is an acronym for `Expression Language'. Nick -Original Message- From: Gus Heck [mailto:[EMAIL PROTECTED] Sent: Wednesday, 19 November 2003 12:37 PM To: Struts Users Mailing List Subject: Re:

  1   2   >