facebook

Unable to develop jsp application with beans in myeclipse

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #261399 Reply

    trueweb
    Member

    I have create jsp application with in myeclipse using folloeing process

    From the menu i create a J2EE ->WebProject
    The default folder name is src which is create automatically in editor
    when we create a package it will create under src folder
    as i create dbconnection in src folder
    The index.jsp file is in WebRoot folder .
    I have use the bean dbconnection in index.jsp as described below

    <jsp:useBean id=”con” scope=”session” class=”dbconnection.ConnectionManager”></jsp:useBean>
    <jsp:useBean id=”app” scope=”sesion” class=”dbconnection.JspApp”></jsp:useBean>

    <jsp:setProperty name=”con” property=”driverClass”
    value=”com.mysql.jdbc.Driver” />
    <jsp:setProperty name=”con” property=”connectionURL”
    value=”jdbc:mysql://localhost:3306/guestbook” />

    But it generate error and do not show any output There is no errors or warnings in dbconnection folder but i am unable to use it in my index.jsp page
    Please help me
    Thanks in advance

    #261434

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    You mispelled “session” in your 2nd useBean line, I don’t know if that is a mistype, or a possible cause of the problem. Also make sure, if you are launching your app server form MyEclipse, to include the MySQL Connector/J jar in your classpath settings under Tomcat > Paths preference panel

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Unable to develop jsp application with beans in myeclipse

You must be logged in to post in the forum log in