Placement of Java Bean

2003-01-01 Thread Denise Mangano
Hi all.

I'm still trying to get my Form Validation to work.  The action of my form
is FormValidate.jsp.  Here I use a bean called FormBean.  My code here is:

jsp:useBean id=formHandler class=FormBean scope=request
  jsp:setProperty name=formHandler property=*/
/jsp:useBean

When I try to test the form, I click submit and no matter what I try I get
the same errors:

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 2 in the jsp file:
/CCPayments/28/FormValidate.jsp

Generated servlet error:
[javac] Compiling 1 source file

/usr/local/jakarta-tomcat-4.1.17/work/Standalone/www.parkingticketpayment.co
m/_/CCPayments/28/FormValidate_jsp.java:43: cannot resolve symbol
symbol  : class FormBean 
location: class org.apache.jsp.FormValidate_jsp
  FormBean formHandler = null;
  ^

I can manually compile the FormBean, so I don't think the problem is with
that file.  FormValidate_jsp.java is being written to the work directory.
The problem seems to be that FormValidate_jsp.java can't be compiled because
it can't find the class FormBean.class.

I'm not exactly sure where I am supposed to place FormBean in order for
FormValidate_jsp.java to find it.  I have tried in the same directory as my
jsp file.  I have tried in $CATALINA_HOME/webapps/ROOT/WEB-INF/classes/.
Yet I keep getting the same errors.

Thanks in advance :)

Denise

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Placement of Java Bean

2003-01-01 Thread Jason Pyeron

I did not read your posting very carfully so be warned:

my first hack at this would be to place the class in a package

ex:
package com.complusdata.beans;
public class FormBean
{
 //...
}
then when compiled it should be in the WEB-INF/classes/com/complusdata/beans 
directory.

see if that helps

-jason pyeron

On Wed, 1 Jan 2003, Denise Mangano wrote:

Hi all.

I'm still trying to get my Form Validation to work.  The action of my form
is FormValidate.jsp.  Here I use a bean called FormBean.  My code here is:

jsp:useBean id=formHandler class=FormBean scope=request
  jsp:setProperty name=formHandler property=*/
/jsp:useBean

When I try to test the form, I click submit and no matter what I try I get
the same errors:

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 2 in the jsp file:
/CCPayments/28/FormValidate.jsp

Generated servlet error:
[javac] Compiling 1 source file

/usr/local/jakarta-tomcat-4.1.17/work/Standalone/www.parkingticketpayment.co
m/_/CCPayments/28/FormValidate_jsp.java:43: cannot resolve symbol
symbol  : class FormBean 
location: class org.apache.jsp.FormValidate_jsp
  FormBean formHandler = null;
  ^

I can manually compile the FormBean, so I don't think the problem is with
that file.  FormValidate_jsp.java is being written to the work directory.
The problem seems to be that FormValidate_jsp.java can't be compiled because
it can't find the class FormBean.class.

I'm not exactly sure where I am supposed to place FormBean in order for
FormValidate_jsp.java to find it.  I have tried in the same directory as my
jsp file.  I have tried in $CATALINA_HOME/webapps/ROOT/WEB-INF/classes/.
Yet I keep getting the same errors.

Thanks in advance :)

Denise

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron   http://www.pyerotechnics.com   -
- Owner  Lead  Pyerotechnics Development, Inc. -
- +1 410 808 6646 (c)   500 West University Parkway #1S -
- +1 410 467 2266 (f)   Baltimore, Maryland  21210-3253 -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Placement of Java Bean [fixed typo]

2003-01-01 Thread Jason Pyeron
I did not read your posting very carfully so be warned:

my first hack at this would be to place the class in a package

ex:
package com.complusdata.beans;
public class FormBean
{
 //...
}
then when compiled it should be in the WEB-INF/classes/com/complusdata/beans 
directory.

then in your page jsp:useBean id=formHandler class=com.complusdata.beans.FormBean 
scope=request
  jsp:setProperty name=formHandler property=*/
/jsp:useBean

see if that helps

-jason pyeron

On Wed, 1 Jan 2003, Denise Mangano wrote:

Hi all.

I'm still trying to get my Form Validation to work.  The action of my form
is FormValidate.jsp.  Here I use a bean called FormBean.  My code here is:

jsp:useBean id=formHandler class=FormBean scope=request
  jsp:setProperty name=formHandler property=*/
/jsp:useBean

When I try to test the form, I click submit and no matter what I try I get
the same errors:

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 2 in the jsp file:
/CCPayments/28/FormValidate.jsp

Generated servlet error:
[javac] Compiling 1 source file

/usr/local/jakarta-tomcat-4.1.17/work/Standalone/www.parkingticketpayment.co
m/_/CCPayments/28/FormValidate_jsp.java:43: cannot resolve symbol
symbol  : class FormBean 
location: class org.apache.jsp.FormValidate_jsp
  FormBean formHandler = null;
  ^

I can manually compile the FormBean, so I don't think the problem is with
that file.  FormValidate_jsp.java is being written to the work directory.
The problem seems to be that FormValidate_jsp.java can't be compiled because
it can't find the class FormBean.class.

I'm not exactly sure where I am supposed to place FormBean in order for
FormValidate_jsp.java to find it.  I have tried in the same directory as my
jsp file.  I have tried in $CATALINA_HOME/webapps/ROOT/WEB-INF/classes/.
Yet I keep getting the same errors.

Thanks in advance :)

Denise

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron   http://www.pyerotechnics.com   -
- Owner  Lead  Pyerotechnics Development, Inc. -
- +1 410 808 6646 (c)   500 West University Parkway #1S -
- +1 410 467 2266 (f)   Baltimore, Maryland  21210-3253 -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Placement of Java Bean [fixed typo]

2003-01-01 Thread Paul Campbell
I agree with Jason.
The other thing may be to do an import of the class(bean).
Since your'er error msg errors on line2 it suggests you may 
not have that import.

At 07:56 PM 1/1/2003 -0500, you wrote:
I did not read your posting very carfully so be warned:

my first hack at this would be to place the class in a package

ex:
package com.complusdata.beans;
public class FormBean
{
 //...
}
then when compiled it should be in the WEB-INF/classes/com/complusdata/beans 
directory.

then in your page jsp:useBean id=formHandler 
class=com.complusdata.beans.FormBean scope=request
  jsp:setProperty name=formHandler property=*/
/jsp:useBean

see if that helps

-jason pyeron

On Wed, 1 Jan 2003, Denise Mangano wrote:

Hi all.

I'm still trying to get my Form Validation to work.  The action of my form
is FormValidate.jsp.  Here I use a bean called FormBean.  My code here is:

jsp:useBean id=formHandler class=FormBean scope=request
  jsp:setProperty name=formHandler property=*/
/jsp:useBean

When I try to test the form, I click submit and no matter what I try I get
the same errors:

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 2 in the jsp file:
/CCPayments/28/FormValidate.jsp

Generated servlet error:
[javac] Compiling 1 source file

/usr/local/jakarta-tomcat-4.1.17/work/Standalone/www.parkingticketpayment.co
m/_/CCPayments/28/FormValidate_jsp.java:43: cannot resolve symbol
symbol  : class FormBean 
location: class org.apache.jsp.FormValidate_jsp
  FormBean formHandler = null;
  ^

I can manually compile the FormBean, so I don't think the problem is with
that file.  FormValidate_jsp.java is being written to the work directory.
The problem seems to be that FormValidate_jsp.java can't be compiled because
it can't find the class FormBean.class.

I'm not exactly sure where I am supposed to place FormBean in order for
FormValidate_jsp.java to find it.  I have tried in the same directory as my
jsp file.  I have tried in $CATALINA_HOME/webapps/ROOT/WEB-INF/classes/.
Yet I keep getting the same errors.

Thanks in advance :)

Denise

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron   http://www.pyerotechnics.com   -
- Owner  Lead  Pyerotechnics Development, Inc. -
- +1 410 808 6646 (c)   500 West University Parkway #1S -
- +1 410 467 2266 (f)   Baltimore, Maryland  21210-3253 -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Placement of Java Bean [fixed typo]

2003-01-01 Thread Denise Mangano
Placing the class in the package seemed to do the trick and now I am
debugging code for the page that is supposed to follow.  

Thanks :)

-Original Message-
From: Paul Campbell [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 01, 2003 8:20 PM
To: Tomcat Users List
Subject: Re: Placement of Java Bean [fixed typo] 


I agree with Jason.
The other thing may be to do an import of the class(bean). Since your'er
error msg errors on line2 it suggests you may 
not have that import.

At 07:56 PM 1/1/2003 -0500, you wrote:
I did not read your posting very carfully so be warned:

my first hack at this would be to place the class in a package

ex:
package com.complusdata.beans;
public class FormBean
{
 //...
}
then when compiled it should be in the 
WEB-INF/classes/com/complusdata/beans
directory.

then in your page jsp:useBean id=formHandler 
class=com.complusdata.beans.FormBean scope=request
  jsp:setProperty name=formHandler property=*/
/jsp:useBean

see if that helps

-jason pyeron

On Wed, 1 Jan 2003, Denise Mangano wrote:

Hi all.

I'm still trying to get my Form Validation to work.  The action of my 
form is FormValidate.jsp.  Here I use a bean called FormBean.  My code 
here is:

jsp:useBean id=formHandler class=FormBean scope=request
  jsp:setProperty name=formHandler property=*/ /jsp:useBean

When I try to test the form, I click submit and no matter what I try I 
get the same errors:

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 2 in the jsp file: 
/CCPayments/28/FormValidate.jsp

Generated servlet error:
[javac] Compiling 1 source file

/usr/local/jakarta-tomcat-4.1.17/work/Standalone/www.parkingticketpayme
nt.co
m/_/CCPayments/28/FormValidate_jsp.java:43: cannot resolve symbol
symbol  : class FormBean 
location: class org.apache.jsp.FormValidate_jsp
  FormBean formHandler = null;
  ^

I can manually compile the FormBean, so I don't think the problem is 
with that file.  FormValidate_jsp.java is being written to the work 
directory. The problem seems to be that FormValidate_jsp.java can't be 
compiled because it can't find the class FormBean.class.

I'm not exactly sure where I am supposed to place FormBean in order for 
FormValidate_jsp.java to find it.  I have tried in the same directory 
as my jsp file.  I have tried in 
$CATALINA_HOME/webapps/ROOT/WEB-INF/classes/.
Yet I keep getting the same errors.

Thanks in advance :)

Denise

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]




--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron   http://www.pyerotechnics.com   -
- Owner  Lead  Pyerotechnics Development, Inc. -
- +1 410 808 6646 (c)   500 West University Parkway #1S -
- +1 410 467 2266 (f)   Baltimore, Maryland  21210-3253 -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.




--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]