Hello,
Consider for eg, I have 5 fields. For the first 2 fields, the errors will be
displayed by mentioning their property in the html:error tag. And I want to
display the remaining errors at the end of the page. So, for this I use
. But I dont want to display all 5 error messages. Only the
remain
why do I get this error ?
java.lang.ClassCastException: org.apache.struts.validator.BeanValidatorForm
at com.traveldesk.actions.MyRequestAction.AddRequest(
MyRequestAction.java:49)
public ActionForward AddRequest(...)
{
SubmitRequestForm submitRequestForm = (SubmitRequestForm)form;
}
pu
why do I get this error ?
java.lang.ClassCastException: org.apache.struts.validator.BeanValidatorForm
at com.traveldesk.actions.MyRequestAction.AddRequest(
MyRequestAction.java:49)
public ActionForward AddRequest(...)
{
SubmitRequestForm submitRequestForm = (SubmitRequestForm)form;
}
pu
why am I not getting any reply ?
On 1/3/07, Tom Jerry <[EMAIL PROTECTED]> wrote:
why do I get this error ?
java.lang.ClassCastException:
org.apache.struts.validator.BeanValidatorForm
at com.traveldesk.actions.MyRequestAction.AddRequest(
MyRequestAction.java:49)
public ActionF
TED]> wrote:
Tom Jerry wrote:
> why am I not getting any reply ?
In general, because you asked a question nobody could answer. The best
thing to do then is to try and re-formulate your question and/or provide
additional info. In this case, the code you submitted isn't adequate to
diagno
the SubmitRequestForm is of Validator type. And the "form" variable is of
ActionForm type. when ActionForm is being casted to ValidatorForm type, it
reports a ClassCastException. I am asking what is the solution to it ?
On 1/8/07, Dave Newton <[EMAIL PROTECTED]> wrote:
From: T
Why do I get an "exception in creating bean"
wrote:
What is the full stack trace in your application server logs?
-Original Message-
From: Tom Jerry [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 06, 2006 12:48 PM
To: user@struts.apache.org
Subject: exception
Why do I get an "exception in cr
P (Paz)
Consultant for AXA,
Senior Software Engineer,
HCL Australia Services Pty. Ltd.
Off : +61-3-9618-4085
Mob : +61-0411-354-838
*"Tom Jerry" <[EMAIL PROTECTED]>*
07/09/2006 02:21 PM
Please respond to "Struts Users Mailing List"
219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
On 9/7/06, Tom Jerry <[EMAIL PROTECTED]> wrote:
I am using Weblogic 8.1 SP3
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<
9/6/06, David Friedman <[EMAIL PROTECTED]> wrote:
>
> What is the full stack trace in your application server logs?
>
> -----Original Message-
> From: Tom Jerry [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 06, 2006 12:48 PM
> To: user@struts.apache.org
> Subject
Form Bean class is loaded within the Web
App;lication.
Id teh package correct: code.LoginForm???
Thanks and regards,
Pazhanikanthan. P (Paz)
Consultant for AXA,
Senior Software Engineer,
HCL Australia Services Pty. Ltd.
Off : +61-3-9618-4085
Mob : +61-0411-354-838
"Tom Jerry" <
t for AXA,
Senior Software Engineer,
HCL Australia Services Pty. Ltd.
Off : +61-3-9618-4085
Mob : +61-0411-354-838
"Tom Jerry" <[EMAIL PROTECTED]>
07/09/2006 04:13 PM
Please respond to "Struts Users Mailing List"
To: "Struts Users Mailing List"
the exact version for me
to lookup in SVN (takes a minute, if that).
Regards,
David
-Original Message-
From: Tom Jerry [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 07, 2006 1:33 AM
Cc: Struts Users Mailing List
Subject: Re: exception
This is the entire stack
SEVERE: Error
I am certain that my code.LoginForm class extends
org.apache.struts.action.ActionForm
On 9/7/06, Tom Jerry <[EMAIL PROTECTED]> wrote:
I am using Struts 1.2.9
On 9/7/06, David Friedman <[EMAIL PROTECTED]> wrote:
>
> Are you certain your code.Login
String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
}
On 9/7/06, Tom Jerry <[EMAIL PROTECTED]> wrote:
I am certain that my code.LoginForm class extends
org.apache.struts.action.ActionForm
On 9/7/06, Tom
yes !!! Both servlet-api.jar and struts.jar are in WEB-INF/lib folder. Then
I added these 2 jar files to the build path of that folder.
On 9/7/06, Gareth Evans <[EMAIL PROTECTED]> wrote:
Just out of interest, where have you put the struts.jar file? in
/WEB-INF/lib?
Tom Jerry wrote:
>
s well
unless
you are using modules. Even then you need to be very careful of the side
effects. Try commenting it out for now.
Regards,
David
-Original Message-
From: Tom Jerry [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 07, 2006 2:03 AM
To: Struts Users Mailing List
Subject: Re:
server? Additionally, what is the name of
the
webapp context and the full path you are using to reach this web page?
Regards,
David
-Original Message-
From: Tom Jerry [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 07, 2006 3:47 AM
To: Struts Users Mailing List
Subject: Re: except
class...
Please make sure you have a compiled class (LoginAction.class) under
WEB-INF/classes/code folder in your production environment...
On Thu, 7 Sep 2006, Tom Jerry wrote:
> The struts-config.xml is correct. I have already tried sample
applications
> before, and it works well with this
;ve not reinterpreted your code, I've
done 'copy and paste' from your emails...)
That's why I suggest to check your deployement...
On Thu, 7 Sep 2006, Tom Jerry wrote:
> LoginAction.class is definitely present in WEB-INF/classes/code folder.
> It is referenced in str
TED]> wrote:
Tom Jerry ha scritto:
> I sent the same folder to my friend's system just now... and to my
> astonishment, output came :( what is wrong with my system ??? Will
> there be
> something wrong with Eclipse itself ???
In a previous post you wrote that you put &
ing is wrong oe missing.
On Thu, 7 Sep 2006, Tom Jerry wrote:
> no..no.. no need just now, I run the same application using Tomcat
> WebServer and OUTPUT CAME !!! which means... definitely
> something is wrong with Weblogic :( How is exception of creating bean
> con
f this modules.)
Take a look here
http://edocs.bea.com/wls/docs81/programming/concepts.html#1050656
Perhaps you can ask in some related mailing list, otherwise we'll go off
topic here
On Thu, 7 Sep 2006, Tom Jerry wrote:
> like how ??? can u elaborately explain the steps... this w
why do I get this error when using Weblogic???
org.apache.struts.util.RequestUtils createActionForm
SEVERE: Error creating form bean of class code.LoginForm
java.lang.NullPointerException
No error is reported when deployed in Tomcat. The output comes !!!
Anyone, please throw light on this :
nt of
view, it is more weird than U think. :(:(:(
On 9/9/06, David Friedman <[EMAIL PROTECTED]> wrote:
Also, how are your classes deployed? In a .jar file or in
/WEB-INF/classes/code/LoginForm.class?
Regards,
David
-Original Message-----
From: Tom Jerry [mailto:[EMAIL PROTECTED]
Sen
s its own copy
of
that jar.
Regards,
David
-Original Message-
From: Tom Jerry [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 09, 2006 2:38 AM
To: Struts Users Mailing List
Subject: Re: bean exception when using weblogic and NOT tomcat
however dumb the question maybe... the output shoul
I got the same thing.. but I figured out the mistake that I used perform( )
instead of execute( ) method. After replacing it with execute ( ) method, I
got the output. There is one more thing.. If you use ActionErrors validate (
) method, then you have to set the validate attribute to "true" right
is it NOT possible to use both validation.xml and ActionErrors validate ( )
??
For eg: consider Login Form.
1) I used validation.xml to make sure that the username / password fields
are not empty.
2) I used validate ( ) to validate the values entered in the form fields
If I use either of th
-- HTH, Ted.
* http://www.husted.com/struts/
On 9/18/06, Tom Jerry <[EMAIL PROTECTED]> wrote:
> is it NOT possible to use both validation.xml and ActionErrors validate
( )
> ??
>
> For eg: consider Login Form.
>
> 1) I used validation.xml to make sure that the username /
why do I get this error ?
SEVERE: Parse Error at line 87 column 19: The content of element type
"form-validation" must match "(global*,formset*)".
org.xml.sax.SAXParseException: The content of element type "form-validation"
must match "(global*,formset*)".
Thanks :) Got it done :)
On 9/19/06, Juanjo Cuadrado <[EMAIL PROTECTED]> wrote:
Hi,
the problem is the sequence of tags you have to put
before
Sorry for my English.
2006/9/19, Tom Jerry <[EMAIL PROTECTED]>:
>
> why do I get this error ?
>
> SEVERE
what is the actual purpose of struts ? is it that one person will be devoted
to developing beans while the other will be involved in designing ? Would
you please give me a sample appln that uses EJB with Oracle (SQL Plus)
database.. a small one.. I dont know how to start off with it.
which is better to use ?
1)
[ OR ]
2) use of action dispatch
would you please give some useful links / insights in using value beans for
get & set methods of properties and use of getAttribute ( ) , setAttribute (
) methods. I have seen that for eg: in login module, apart from having
LoginAction and LoginForm classes, we have LoginValueBean class also. I am
ding in them :-) you'll appreciate following this
pattern. If you don't follow that pattern, you may get unexpected
results.
Sometimes, even a small deviation from this pattern can cause hours of fun
for the unaware developer. I've had several occassions to help my
colleagues
how about use of MappingDispatchAction ?
On 10/3/06, Don Brown <[EMAIL PROTECTED]> wrote:
If you want to call a different method on an action, use the "method"
attribute:
Don
On 10/3/06, Garner Shawn <[EMAIL PROTECTED]> wrote:
> I'm trying to calldefferent methods in action on button press.
In LoginForm class itself, I have placed the get and set methods. What
should be contained specifically in LoginValueBean class ? I am sort of
confused.
On 9/30/06, Tom Jerry <[EMAIL PROTECTED]> wrote:
I want an example in terms of coding please.
On 9/29/06, Eddie Bush <[EMAIL
38 matches
Mail list logo