Re: form action in jsp
when "method" attribut is omited in tag, default is GET - Original Message - From: "Shivani" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 05, 2003 9:53 PM Subject: form action in jsp > when i say this- > > in my jsp what does it imply? is it POST or GET action to get the javabean? > i can't understand here since it doesn't need to be mentioned here. > > > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED] Behalf Of Karr, David > Sent: Tuesday, March 04, 2003 1:16 PM > To: [EMAIL PROTECTED] > Subject: Re: ClassNotFoundException > > > You have several problems. First, read up on the structure of a web > application. You'll find that you need a "WEB-INF" directory (case > sensitive) at the root of your application, and under that a "classes" > directory. Your class files go in that directory, hopefully in a > directory structure matching your package structure. > > Second, you have to change your class so that it isn't in the default > package. It doesn't matter what package name you give it (as long as it > isn't reserved). For instance, you could put it in the > "com.foostuff.user" package. > > Third, your JSP page will need an "import" directive (or rather a "page" > directive with an import attribute). > > So, after changing your source file's "package" statement, and adding a > "<%@ page import='com.foostuff.user.UserDataBean'%> line, your directory > structure would look like this (I don't know if "public_html" is your > webapp root or not): > > public_html/WEB-INF/classes/com/foostuff/user/UserDataBean.class > public_html/beanuser.jsp > > > -Original Message- > > From: Shivani [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, March 04, 2003 12:20 PM > > To: [EMAIL PROTECTED] > > Subject: ClassNotFoundException > > > > i am using weblogic server and jsp's. > > i create a javabean which is called by the jsp page.example: > > with > > > > > > > > > > > > > > > > i get following error.. > > > > > > Parsing of JSP File '/beanuser.jsp' failed: > > > > -- > > -- > > > > /beanuser.jsp(1): Could not create a bean of type: UserDataBean: > > java.lang.ClassNotFoundException: UserDataBean > > probably occurred due to an error in /beanuser.jsp line 1: > > > > > > i don't know what to put in class details. i read we have to put > package > > name. but i have just 1 directory and just testing.all my files are > under > > this directory- > > eg: e:/weblogic/myserver/public_html/ > > beanuser.jsp > > UserDataBean.class > > > > so where and what do i mention as package name so that it's found? > > > > thanks! > > > > > > == > > = > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP- > > INTEREST". > > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > > DIGEST". > > > > Some relevant archives, FAQs and Forums on JSPs can be found at: > > > > http://java.sun.com/products/jsp > > http://archives.java.sun.com/jsp-interest.html > > http://forums.java.sun.com > > http://www.jspinsider.com > > = > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > DIGEST". > > Some relevant archives, FAQs and Forums on JSPs can be found at: > > http://java.sun.com/products/jsp > http://archives.java.sun.com/jsp-interest.html > http://forums.java.sun.com > http://www.jspinsider.com > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > > Some relevant archives, FAQs and Forums on JSPs can be found at: > > http://java.sun.com/products/jsp > http://archives.java.sun.com/jsp-interest.html > http://forums.java.sun.com > http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: form action in jsp
GET is always the default method. Shivani wrote: when i say this- in my jsp what does it imply? is it POST or GET action to get the javabean? i can't understand here since it doesn't need to be mentioned here. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED] Behalf Of Karr, David Sent: Tuesday, March 04, 2003 1:16 PM To: [EMAIL PROTECTED] Subject: Re: ClassNotFoundException You have several problems. First, read up on the structure of a web application. You'll find that you need a "WEB-INF" directory (case sensitive) at the root of your application, and under that a "classes" directory. Your class files go in that directory, hopefully in a directory structure matching your package structure. Second, you have to change your class so that it isn't in the default package. It doesn't matter what package name you give it (as long as it isn't reserved). For instance, you could put it in the "com.foostuff.user" package. Third, your JSP page will need an "import" directive (or rather a "page" directive with an import attribute). So, after changing your source file's "package" statement, and adding a "<%@ page import='com.foostuff.user.UserDataBean'%> line, your directory structure would look like this (I don't know if "public_html" is your webapp root or not): public_html/WEB-INF/classes/com/foostuff/user/UserDataBean.class public_html/beanuser.jsp -Original Message- From: Shivani [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 12:20 PM To: [EMAIL PROTECTED] Subject: ClassNotFoundException i am using weblogic server and jsp's. i create a javabean which is called by the jsp page.example: with i get following error.. Parsing of JSP File '/beanuser.jsp' failed: -- -- /beanuser.jsp(1): Could not create a bean of type: UserDataBean: java.lang.ClassNotFoundException: UserDataBean probably occurred due to an error in /beanuser.jsp line 1: i don't know what to put in class details. i read we have to put package name. but i have just 1 directory and just testing.all my files are under this directory- eg: e:/weblogic/myserver/public_html/ beanuser.jsp UserDataBean.class so where and what do i mention as package name so that it's found? thanks! == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP- INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: form action in jsp
the default protocol for http is get, so that form would be using get protocol. and u are submitting the form to beanuser.jsp using get protocol for processing the form data. Shivani, I would suggest u read up on some of the basic concepts of http/jsp. go thro the tutorial on the java.sun.com site as well.. Hope that helps Amit -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED] Behalf Of Shivani Sent: Wednesday, March 05, 2003 12:54 PM To: [EMAIL PROTECTED] Subject: form action in jsp when i say this- in my jsp what does it imply? is it POST or GET action to get the javabean? i can't understand here since it doesn't need to be mentioned here. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED] Behalf Of Karr, David Sent: Tuesday, March 04, 2003 1:16 PM To: [EMAIL PROTECTED] Subject: Re: ClassNotFoundException You have several problems. First, read up on the structure of a web application. You'll find that you need a "WEB-INF" directory (case sensitive) at the root of your application, and under that a "classes" directory. Your class files go in that directory, hopefully in a directory structure matching your package structure. Second, you have to change your class so that it isn't in the default package. It doesn't matter what package name you give it (as long as it isn't reserved). For instance, you could put it in the "com.foostuff.user" package. Third, your JSP page will need an "import" directive (or rather a "page" directive with an import attribute). So, after changing your source file's "package" statement, and adding a "<%@ page import='com.foostuff.user.UserDataBean'%> line, your directory structure would look like this (I don't know if "public_html" is your webapp root or not): public_html/WEB-INF/classes/com/foostuff/user/UserDataBean.class public_html/beanuser.jsp > -Original Message- > From: Shivani [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 04, 2003 12:20 PM > To: [EMAIL PROTECTED] > Subject: ClassNotFoundException > > i am using weblogic server and jsp's. > i create a javabean which is called by the jsp page.example: > with > > > > > > > > i get following error.. > > > Parsing of JSP File '/beanuser.jsp' failed: > -- > -- > > /beanuser.jsp(1): Could not create a bean of type: UserDataBean: > java.lang.ClassNotFoundException: UserDataBean > probably occurred due to an error in /beanuser.jsp line 1: > > > i don't know what to put in class details. i read we have to put package > name. but i have just 1 directory and just testing.all my files are under > this directory- > eg: e:/weblogic/myserver/public_html/ > beanuser.jsp > UserDataBean.class > > so where and what do i mention as package name so that it's found? > > thanks! > > == > = > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP- > INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > DIGEST". > > Some relevant archives, FAQs and Forums on JSPs can be found at: > > http://java.sun.com/products/jsp > http://archives.java.sun.com/jsp-interest.html > http://forums.java.sun.com > http://www.jspinsider.com = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
form action in jsp
when i say this- in my jsp what does it imply? is it POST or GET action to get the javabean? i can't understand here since it doesn't need to be mentioned here. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED] Behalf Of Karr, David Sent: Tuesday, March 04, 2003 1:16 PM To: [EMAIL PROTECTED] Subject: Re: ClassNotFoundException You have several problems. First, read up on the structure of a web application. You'll find that you need a "WEB-INF" directory (case sensitive) at the root of your application, and under that a "classes" directory. Your class files go in that directory, hopefully in a directory structure matching your package structure. Second, you have to change your class so that it isn't in the default package. It doesn't matter what package name you give it (as long as it isn't reserved). For instance, you could put it in the "com.foostuff.user" package. Third, your JSP page will need an "import" directive (or rather a "page" directive with an import attribute). So, after changing your source file's "package" statement, and adding a "<%@ page import='com.foostuff.user.UserDataBean'%> line, your directory structure would look like this (I don't know if "public_html" is your webapp root or not): public_html/WEB-INF/classes/com/foostuff/user/UserDataBean.class public_html/beanuser.jsp > -Original Message- > From: Shivani [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 04, 2003 12:20 PM > To: [EMAIL PROTECTED] > Subject: ClassNotFoundException > > i am using weblogic server and jsp's. > i create a javabean which is called by the jsp page.example: > with > > > > > > > > i get following error.. > > > Parsing of JSP File '/beanuser.jsp' failed: > -- > -- > > /beanuser.jsp(1): Could not create a bean of type: UserDataBean: > java.lang.ClassNotFoundException: UserDataBean > probably occurred due to an error in /beanuser.jsp line 1: > > > i don't know what to put in class details. i read we have to put package > name. but i have just 1 directory and just testing.all my files are under > this directory- > eg: e:/weblogic/myserver/public_html/ > beanuser.jsp > UserDataBean.class > > so where and what do i mention as package name so that it's found? > > thanks! > > == > = > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP- > INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > DIGEST". > > Some relevant archives, FAQs and Forums on JSPs can be found at: > > http://java.sun.com/products/jsp > http://archives.java.sun.com/jsp-interest.html > http://forums.java.sun.com > http://www.jspinsider.com = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com