RE: Struggled for Days. Please Help With This NullPointerExcepti on Problem.

2004-05-20 Thread Paul McCulloch
I'd start by getting the source for struts scaffold. I'd then set a breakpoint in my debugger at the start of org.apache.struts.scaffold.ParameterAction.findSuccess() and step through until I found the NPE. I'd then look back up the call stack to try and figure out what happened. Paul

Re: How to read a parameter in web.xml from Action class

2004-05-20 Thread Frank Burns
Excellent. Thank you Ashutosh. - Original Message - From: Ashutosh Satyam [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, May 20, 2004 6:40 AM Subject: RE: How to read a parameter in web.xml from Action class One more addendum to this. In case you

Re: How to read a parameter in web.xml from Action class

2004-05-20 Thread Iván Rodríguez
Why don t you use JNDI ? - Original Message - From: Frank Burns [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, May 20, 2004 11:47 AM Subject: Re: How to read a parameter in web.xml from Action class Excellent. Thank you Ashutosh. - Original

RE: How to read a parameter in web.xml from Action class

2004-05-20 Thread Joe Hertz
Why should he? He's already got a servlet context. He's got to have a web.xml *anyway*, so why not use it? Yeah, there are a list of things that could dictate using JNDI, but this isn't necessarily one of them). I mean unless you like having lng classpaths :-) -Original

validate numeric

2004-05-20 Thread Julia Weaver
Hi, How can I validate the field user input in form bean is not a numeric value? Is any function exist like: IsNumeric(x)? Thanks, __ Do you Yahoo!? Yahoo! Domains – Claim yours for only $14.70/year

RE: Multiple Databases.

2004-05-20 Thread Geeta Ramani
Vishal: If you are using tomcat, then I believe you can use dbcp. (I think that's what Riyad Kalla was talking about too..) We use dbcp but only for connecting to one pool (and this turned out to be quite simple: just configure the server.xml), but I think I read that you can create multiple

RE: Include common javascript file with relative path

2004-05-20 Thread Kathy Zhou
request.getContextPath() could be a solution. Kathy -Original Message- From: Paul McCulloch [SMTP:[EMAIL PROTECTED] Sent: Thursday, May 20, 2004 4:55 AM To: 'Struts Users Mailing List' Subject: RE: Include common javascript file with relative path Look at the html:rewrite

RE: Include common javascript file with relative path

2004-05-20 Thread Kathy Zhou
request.getContextPath() could be a solution. Kathy -Original Message- From: Paul McCulloch [SMTP:[EMAIL PROTECTED] Sent: Thursday, May 20, 2004 4:55 AM To: 'Struts Users Mailing List' Subject:RE: Include common javascript file with relative path Look at the html:rewrite

Re: validate numeric

2004-05-20 Thread Henrique VIECILI
Hi Julia, You can use javascript and/or server-side validation: javascript: isNaN(field.value); //verify if the value 'is not a number' server side: (there are many ways) try { Double.parseDouble(getField()); } catch (NumberFormatException nfe) { // if this exception is thrown the

ActionErrors and the example code

2004-05-20 Thread christopher
I have developed my way around this issue, but I wanted to pass it by you to see if my logic is not flawed. In the example given with the Struts packages, it performs validation within a form like so: public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { //

[OT]A question about Cewolf

2004-05-20 Thread Paraman
Is it possible for me to specify the color of the bars in a chart according to their values? Thanks!

RE: Invalid Path

2004-05-20 Thread Geeta Ramani
Shiva: Just guessing here: your trace shows you are requesting this path: /countryWiseDetailsInput. Maybe you want something like /countryWiseReport.do? Regards, Geeta -Original Message- From: Hammer [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 19, 2004 2:29 PM To: [EMAIL

RE: Tiles with javascript heavy pages

2004-05-20 Thread Tim Penhey
From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: 20 May 2004 14:47 At 2:32 PM +0100 5/20/04, Tim Penhey wrote: I am thinking about using tiles to simplify some of my JSPs, but many of my pages are javascript heavy. All the js is either included or defined in the head section, but I am

Re: Class path in Oracle 9Ias

2004-05-20 Thread Duncan Mills
Its probably worth logging this one on the OC4J Forum on OTN (http://forums.oracle.com/forums/forum.jsp?forum=46) there are folks who know about OC4J in enough detail hanging out there. Regards Duncan Mills Senior Principal Product Manager Oracle Application Development Tools Richard Yee

RE: ActionErrors and the example code

2004-05-20 Thread Matthias Wessendorf
hi christopher, if i understand you right, you watch RegistrationForm.java note, that this class extends ValidatorForm and not ActionForm. ActionForm.validate() returns NULL ValiForn.validate() returns an ActionErros-Objekt (see CVS-code):

FormBean Irregularities

2004-05-20 Thread gdeschen
Hi, I am having a problem with a JSP not displaying the latest ActionForm data. A very light use case: - The application is simple; a user views their Contact information. The user can change the information and save it. The application does the following:

Re: validate numeric

2004-05-20 Thread Julia Weaver
Henrique, Thank you! it works! --- Henrique VIECILI [EMAIL PROTECTED] wrote: Hi Julia, You can use javascript and/or server-side validation: javascript: isNaN(field.value); //verify if the value 'is not a number' server side: (there are many ways) try {

RE: [OT] Stress testing?

2004-05-20 Thread Chappell, Simon P
Just a couple of points: 1. Consider a couple of testing machines. Our UI is fairly light and we didn't pull down excess files (like images or style sheets etc etc), so we got away with it, but if I had the choice I'd look at two machines generating 50 simultaneous users worth of traffic. 2.

RE: form processing

2004-05-20 Thread Wendy Smoak
From: Dean A. Hoover [mailto:[EMAIL PROTECTED] I don't quite understand how DynaActionForm gets populated when a form is submitted. The form I have gets processed exactly as I expect, except for a group of checkboxes (This is a FAQ-- the answer is in the list archives multiple times.)

RE: Tiles with javascript heavy pages

2004-05-20 Thread Tim Penhey
From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: 20 May 2004 15:51 At 3:13 PM +0100 5/20/04, Tim Penhey wrote: From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: 20 May 2004 14:47 You can put Javascript anywhere in a page; I think it makes sense to put it in the tile which

RE: [OT] Stress testing?

2004-05-20 Thread Greg Hess
Thanks Simon, much appreciated. Decided to evaluate OpenSTA and JMeter, boy I love Apache, why look anywhere else, I should have know to look and see if they had anything :-). Can't wait to see how our app performs... You probably haven't heard the last from me... I will probably be posting

Html:select tag

2004-05-20 Thread PADALA, SANDHYA (SBCSI)
I have to display a drop down on my JSP using html select tag. Since I am using struts , I am using html:select tag. I have a Form Bean FooForm in request scope. This form bean has array of custom defined Action objects. My Action object is a bean with ActionID and ActionName as the attributes.

RE: How to read a parameter in web.xml from Action class

2004-05-20 Thread Venkat Maddipati
Frank, You can use the following in your Action class: String paramValue = this.servlet.getInitParameter(myParamName); Thanks, Venkat -Original Message- From: Frank Burns [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 19, 2004 8:19 PM To: Struts Users Mailing List Subject: How to

RE: Tiles with javascript heavy pages

2004-05-20 Thread Joe Germuska
Do you know if you can embed the tiles:getAsString / inside the bean:message to have the tiles attribute define the key for the bundle? You can never embed any JSP tag inside another JSP tag. You could use bean:define or c:set to create a page scoped variable using tiles:getAsString and then use

Simple Validator regex needed

2004-05-20 Thread Eric Dahnke
Hello list, The field should only accept numbers, spaces, dashes and periods. var var-namemask/var-name var-value^[0-9]*$/var-value /var I can't figure the regext syntax out, I've tried all the following: var-value^[0-9]\.\s-*$/var-value var-value^[0-9]\\.\\s-*$/var-value

Re: FormBean Irregularities

2004-05-20 Thread Niall Pemberton
The reason this is happening is that your /Contact mapping in the struts config is forwarding to one of two struts Actions - when Struts runs an Action it goes through its whole cycle (see the RequestProcessor class for all the steps) and so it is re-populating your form from the request. Looking

Re: Tiles with javascript heavy pages

2004-05-20 Thread Iván Rodríguez
Embedding bean:write into bean:message doesn t work, so i think with tiles it doesn t works too You can embed %= bean.getAtt() % into bean:message, just try it - Original Message - From: Tim Penhey [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, May 20,

RE: validator-rules javascript problems - SOLVED

2004-05-20 Thread Pingili, Madhupal
I solved my problem by changing field's variables names to length1 and length2 instead of fieldLength1 and fieldLength2. This is because of the if statement in JavascriptValidatorTag.java code: // skip requiredif variables field, fieldIndexed, fieldTest, fieldValue if

RE: Simple Validator regex needed

2004-05-20 Thread Tim Penhey
From: Eric Dahnke [mailto:[EMAIL PROTECTED] Sent: 20 May 2004 16:42 Hello list, The field should only accept numbers, spaces, dashes and periods. var var-namemask/var-name var-value^[0-9]*$/var-value /var I can't figure the regext syntax out, I've tried all the

newbie: opposite of the value of a checkbox

2004-05-20 Thread ruben
hi everybody, i have a boolean value on my ActionForm represented by a checkbox on the interface, i need that the value of the chekbox was the opposite of the value that i have on my database, what can i do?, i try to change the value on the getter/setter property method, but it seem not to

Re: Simple Validator regex needed

2004-05-20 Thread Henrique VIECILI
^[\\d | \\s | \\. | \\-]*$ tested with java.util.regex Henrique Viecili - Original Message - From: Tim Penhey To: Struts Users Mailing List Sent: Thursday, May 20, 2004 1:35 PM Subject: RE: Simple Validator regex needed From: Eric Dahnke [mailto:[EMAIL PROTECTED] Sent: 20 May

RE: Simple Validator regex needed

2004-05-20 Thread Eric Dahnke
Thanks to all. This worked: var-value^[0-9\.\-\s]*$/var-value -Original Message- From: Henrique VIECILI [mailto:[EMAIL PROTECTED] Sent: Thursday, May 20, 2004 1:37 PM To: Struts Users Mailing List Subject: Re: Simple Validator regex needed ^[\\d | \\s | \\. | \\-]*$

RE: Simple Validator regex needed

2004-05-20 Thread Eric Dahnke
Thanks to all. This worked: var-value^[0-9\.\-\s]*$/var-value -Original Message- From: Henrique VIECILI [mailto:[EMAIL PROTECTED] Sent: Thursday, May 20, 2004 1:37 PM To: Struts Users Mailing List Subject: Re: Simple Validator regex needed ^[\\d | \\s | \\. | \\-]*$

Re: Why? Form Back.mpg

2004-05-20 Thread malcolm
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Why? Form Back.mpg

2004-05-20 Thread malcolm
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

html:option and c:out tags

2004-05-20 Thread PADALA, SANDHYA (SBCSI)
Hello , I have a question on how to use C:out tag as the value to the value attribute of html:option tag On my JSP html:select property=optionList c:forEach items=${TaskForm.optionList} var=optionList html:option value=c:out value=${optionList.optionID}/c:out

RE: html:option and c:out tags

2004-05-20 Thread Slattery, Tim - BLS
Hello , I have a question on how to use C:out tag as the value to the value attribute of html:option tag On my JSP html:select property=optionList c:forEach items=${TaskForm.optionList} var=optionList html:option value=c:out

RE: ActionErrors and the example code

2004-05-20 Thread christopher
Matthias Thank you, that solved my issue without having to add the additional IF statement. Thank you for your quick response. Cheers Christopher Original Message To: 'Struts Users Mailing List' [EMAIL PROTECTED], [EMAIL PROTECTED] From: Matthias Wessendorf [EMAIL PROTECTED] Date:

[URGENT] Dynamic form elements generation with struts ...

2004-05-20 Thread Ding Lei
Hello folks, I am working on a User Permission Management form, each permission record composed of operation type, target type and target ID. When editing a user's permission, it should able to let the user add unlimited count of new permissions and also edit original

Re: Include common javascript file with relative path

2004-05-20 Thread Ding Lei
Paul, It works! Thank you! Yours, Ding Lei On Thu, May 20, 2004 at 09:55:22AM +0100, Paul McCulloch wrote: Look at the html:rewrite tag. Paul -Original Message- From: Ding Lei [mailto:[EMAIL PROTECTED] Sent: 18 May 2004 10:11 To: [EMAIL PROTECTED]

RE: html:option and c:out tags

2004-05-20 Thread PADALA, SANDHYA (SBCSI)
Thanks Tim, I could solve my issue with the el tags. Now I am using el tags in other places, Life is easy now. Sandhya -Original Message- From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] Sent: Thursday, May 20, 2004 1:25 PM To: 'Struts Users Mailing List' Subject: RE: html:option and

RE: newbie: opposite of the value of a checkbox

2004-05-20 Thread Wendy Smoak
From: ruben [mailto:[EMAIL PROTECTED] i have a boolean value on my ActionForm represented by a checkbox on the interface, i need that the value of the chekbox was the opposite of the value that i have on my database, what can i do?, i try to change the value on the getter/setter

Re: Does STRUTS Support CSS Layout or Only Table Layout?

2004-05-20 Thread Joe Germuska
At 5:08 PM -0400 5/20/04, Hoffman, David wrote: Hello, I was told that a particular project is using the STRUTS 1.1 framework, using page layouts and tiles. Is STRUTS limited to using HTML tables for page layout or can the layout use pure CSS formatting? If pure CSS formatting can be used, how

Separating business validation from page validation

2004-05-20 Thread Jacob Weber
Hello, I'm wondering how Struts users handle the problem of separating business validation from page validation. By page validation, I mean things that can be accomplished with the Struts Validator, such as checking field lengths. And by business validation, I mean things that the business

html:file tag

2004-05-20 Thread praveen kulkarni
hi all, Is it possible to select the folder or directory from html:file tag , or any other techniques please let me know. Thanks in advance, Praveen Do not follow where the path may lead. Go instead where there is no path and leave a trail. Yahoo! India Matrimony: Find your partner online.

Re: SV: SV: Validation only on SUBMIT but not on BACK

2004-05-20 Thread Gunnar Schmitz
hermod.opstvedt at dnbnor.no writes: Hi 1. implement the validation method on your ActionForm 2. Check if a particular button was pressed (give your button a name via the property property). Use request.getParameter(the name of the button). 3. If they do not match, call

R: html:option and c:out tags

2004-05-20 Thread Andrea M
Hi Padala Why don't you use html-el:options collection=optionList property=${optionList.optionID} labelProperty=${optionList.optionLabel}/ instead of manually cycling thru with c:forEach ? -Messaggio originale- Da: PADALA, SANDHYA (SBCSI) [mailto:[EMAIL PROTECTED] Inviato: giovedì 20