| | |
jsp,eclipse and weblogic server
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Apr 2007
Posts: 6
Reputation:
Solved Threads: 0
hi expert!
i am new to jsp. i m using a html form to get user input. i want to collect all the information given by the user, using a javabean class with it's get and set property. and again i wat to display it to the user.
i am using eclipse ide and weblogic server.
but when i call that html form inertnet explore using
http://localhost:7001/example/userinfo.htm first i see the form and as i fill this form and press submit, controll goes to jsp page which has
<jsp:useBean id="formHandler " class="foo.FormBean" session="request">
but at this point i get an error
Parsing of JSP File '/examples/jsp/forms/process.jsp' failed:
/examples/jsp/forms/process.jsp(9): class 'foo.FormBean' could not be loaded
probably occurred due to an error in /examples/jsp/forms/process.jsp line 9:
<jsp:useBean id="formHandler" class="foo.FormBean" scope="request">
plz help me to sort out this problem.
regards
Abhishek
i am new to jsp. i m using a html form to get user input. i want to collect all the information given by the user, using a javabean class with it's get and set property. and again i wat to display it to the user.
i am using eclipse ide and weblogic server.
but when i call that html form inertnet explore using
http://localhost:7001/example/userinfo.htm first i see the form and as i fill this form and press submit, controll goes to jsp page which has
<jsp:useBean id="formHandler " class="foo.FormBean" session="request">
but at this point i get an error
Parsing of JSP File '/examples/jsp/forms/process.jsp' failed:
/examples/jsp/forms/process.jsp(9): class 'foo.FormBean' could not be loaded
probably occurred due to an error in /examples/jsp/forms/process.jsp line 9:
<jsp:useBean id="formHandler" class="foo.FormBean" scope="request">
plz help me to sort out this problem.
regards
Abhishek
•
•
Join Date: Apr 2007
Posts: 6
Reputation:
Solved Threads: 0
hi!
plz help me. i am using weblogic server and eclipse for my project. i want to know how to load javabean classes into a jsp page.
here is my code, i m just trying a simple example
form to get user input
named get.htm
<HTML>
<BODY>
<FORM METHOD="post" ACTION="Save.jsp">
What's your name? <INPUT TYPE=TEXT NAME=username SIZE=20><BR>
What's your e-mail address? <INPUT TYPE=TEXT NAME=email SIZE=20><BR>
What's your age? <INPUT TYPE=TEXT NAME=age SIZE=4>
<P><INPUT TYPE=SUBMIT>
</FORM>
</BODY>
</HTML>
jsp page to process it named save.jsp
<jsp:useBean id="user" class="my.UserData" scope="session"/>
<jsp:setProperty name="user" property="*" />
<HTML>
<BODY>
You entered<BR>
Name: <%= user.getUsername() %> <BR>
Email: <%= user.getEmail() %><BR>
Age: <%= user.getAge() %><BR>
</BODY>
</HTML>
and this is my javabean class named UserData.java
package my;
publicclass UserData {
String username;
String email;
int age;
public void setUsername( String value )
{
username = value;
}
public void setEmail( String value )
{
email = value;
}
public void setAge( int value )
{
age = value;
}
public String getUsername() { return username; }
public String getEmail() { return email; }
public int getAge() { return age; }
}
plz help me. i am using weblogic server and eclipse for my project. i want to know how to load javabean classes into a jsp page.
here is my code, i m just trying a simple example
form to get user input
named get.htm
<HTML>
<BODY>
<FORM METHOD="post" ACTION="Save.jsp">
What's your name? <INPUT TYPE=TEXT NAME=username SIZE=20><BR>
What's your e-mail address? <INPUT TYPE=TEXT NAME=email SIZE=20><BR>
What's your age? <INPUT TYPE=TEXT NAME=age SIZE=4>
<P><INPUT TYPE=SUBMIT>
</FORM>
</BODY>
</HTML>
jsp page to process it named save.jsp
<jsp:useBean id="user" class="my.UserData" scope="session"/>
<jsp:setProperty name="user" property="*" />
<HTML>
<BODY>
You entered<BR>
Name: <%= user.getUsername() %> <BR>
Email: <%= user.getEmail() %><BR>
Age: <%= user.getAge() %><BR>
</BODY>
</HTML>
and this is my javabean class named UserData.java
package my;
publicclass UserData {
String username;
String email;
int age;
public void setUsername( String value )
{
username = value;
}
public void setEmail( String value )
{
email = value;
}
public void setAge( int value )
{
age = value;
}
public String getUsername() { return username; }
public String getEmail() { return email; }
public int getAge() { return age; }
}
•
•
Join Date: Apr 2007
Posts: 6
Reputation:
Solved Threads: 0
hi!
plz help me. i am using weblogic server and eclipse for my project. i want to know how to load javabean classes into a jsp page.
here is my code, i m just trying a simple example
form to get user input
named get.htm
<HTML>
<BODY>
<FORM METHOD="post" ACTION="Save.jsp">
What's your name? <INPUT TYPE=TEXT NAME=username SIZE=20><BR>
What's your e-mail address? <INPUT TYPE=TEXT NAME=email SIZE=20><BR>
What's your age? <INPUT TYPE=TEXT NAME=age SIZE=4>
<P><INPUT TYPE=SUBMIT>
</FORM>
</BODY>
</HTML>
jsp page to process it named save.jsp
<jsp:useBean id="user" class="my.UserData" scope="session"/>
<jsp:setProperty name="user" property="*" />
<HTML>
<BODY>
You entered<BR>
Name: <%= user.getUsername() %> <BR>
Email: <%= user.getEmail() %><BR>
Age: <%= user.getAge() %><BR>
</BODY>
</HTML>
and this is my javabean class named UserData.java
package my;
publicclass UserData {
String username;
String email;
int age;
public void setUsername( String value )
{
username = value;
}
public void setEmail( String value )
{
email = value;
}
public void setAge( int value )
{
age = value;
}
public String getUsername() { return username; }
public String getEmail() { return email; }
public int getAge() { return age; }
}
when i call get.htm from internet explorer and gives my input and press submit button i got the error as follows
Parsing of JSP File '/Save.jsp' failed:
/Save.jsp(1): class 'my.UserData' could not be loaded
probably occurred due to an error in /Save.jsp line 1:
<jsp:useBean id="user" class="my.UserData" scope="session"/>
plz anyone who knows the solution help me.
thanks in advance.
regards
abhishek
plz help me. i am using weblogic server and eclipse for my project. i want to know how to load javabean classes into a jsp page.
here is my code, i m just trying a simple example
form to get user input
named get.htm
<HTML>
<BODY>
<FORM METHOD="post" ACTION="Save.jsp">
What's your name? <INPUT TYPE=TEXT NAME=username SIZE=20><BR>
What's your e-mail address? <INPUT TYPE=TEXT NAME=email SIZE=20><BR>
What's your age? <INPUT TYPE=TEXT NAME=age SIZE=4>
<P><INPUT TYPE=SUBMIT>
</FORM>
</BODY>
</HTML>
jsp page to process it named save.jsp
<jsp:useBean id="user" class="my.UserData" scope="session"/>
<jsp:setProperty name="user" property="*" />
<HTML>
<BODY>
You entered<BR>
Name: <%= user.getUsername() %> <BR>
Email: <%= user.getEmail() %><BR>
Age: <%= user.getAge() %><BR>
</BODY>
</HTML>
and this is my javabean class named UserData.java
package my;
publicclass UserData {
String username;
String email;
int age;
public void setUsername( String value )
{
username = value;
}
public void setEmail( String value )
{
email = value;
}
public void setAge( int value )
{
age = value;
}
public String getUsername() { return username; }
public String getEmail() { return email; }
public int getAge() { return age; }
}
when i call get.htm from internet explorer and gives my input and press submit button i got the error as follows
Parsing of JSP File '/Save.jsp' failed:
/Save.jsp(1): class 'my.UserData' could not be loaded
probably occurred due to an error in /Save.jsp line 1:
<jsp:useBean id="user" class="my.UserData" scope="session"/>
plz anyone who knows the solution help me.
thanks in advance.
regards
abhishek
Last edited by abhishek.tyagi1; Apr 24th, 2007 at 6:38 am.
![]() |
Similar Threads
- How to Deploy the Web applications(JSP) on weblogic server (JSP)
- difference between TOMCAT server and WEBLOGIC server (Java)
Other Threads in the JSP Forum
- Previous Thread: Enovia Matrix and Remote JSP debugging
- Next Thread: Including blob in JSP
Views: 4570 | Replies: 8
| Thread Tools | Search this Thread |
Tag cloud for JSP
apache array backbutton combobox comma connection csv database development directorystructure dropdownlist dynamicpagetitles eclipse frames glassfish ie8 imagetodatabse imageupload integer internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 mysql netbeans network parameters passing ping printinserverinsteadofclient project read redirect request.getparameter response seperated servlet servletdopost()readxml sessions software sql ssl state_saving_method stocks sun tomcat tutorial update values video web write






