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
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
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
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
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
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
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
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
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
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)
{
//
Is it possible for me to specify the color of the bars in a chart according to their
values?
Thanks!
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
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
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
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):
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:
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 {
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.
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.)
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
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
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.
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
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
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
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
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,
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
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
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
^[\\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
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 | \\. | \\-]*$
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 | \\. | \\-]*$
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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
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:
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
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]
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
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
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
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
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.
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
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
47 matches
Mail list logo