Results 1 to 11 of 11

Thread: hello everyone

  1. #1
    richasingh is offline Member
    Join Date
    Jul 2012
    Posts
    3
    Rep Power
    0

    Default hello everyone

    i am new to java and i want to create beans...so please help me if you can...actually what is the procedure to add beans in java i am using net beans...
    so how can i add a bean to a jsp page...plz if u know then help me

  2. #2
    vhonanivb is offline Member
    Join Date
    May 2012
    Posts
    7
    Rep Power
    0

    Default Re: hello everyone


  3. #3
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,755
    Rep Power
    19

    Default Re: hello everyone

    1. They're talking about Beans, not EJBs. They are not the same thing.
    2. That website is notorious for appallingly bad examples.

    As for the OP, I have no idea what it is you are actually asking for?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: hello everyone

    Please go through the Forum Rules -- particularly the third paragraph.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  5. #5
    awinston is offline Student
    Join Date
    Jul 2012
    Location
    United States
    Posts
    328
    Rep Power
    3

    Default Re: hello everyone

    If someone knows, what is a bean?
    "Success is not final, failure is not fatal: it is the courage to continue that counts." - Winston Churchill

  6. #6
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,755
    Rep Power
    19

    Default Re: hello everyone

    I am guessing a bit, but I'd say they mean a Java Bean, since they're talking about importing one into a JSP.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  7. #7
    richasingh is offline Member
    Join Date
    Jul 2012
    Posts
    3
    Rep Power
    0

    Default problem in getting the beans

    <code>//first page
    <html>
    <head>
    <title>View and Session</title>
    </head>
    <body>
    <form method = "get" action = "JspAndSessionJsp.jsp">
    Enter your first Name : <input type = "text" name = "firstName"><br>
    Enter your last Name : <input type = "text" name = "lastName"><br>
    Enter your email : <input type = "text" name = "email"><br>
    Enter the address : <input type = "text" name = "address"><br>
    <input type = "submit" name = "submit" value ="submit"><br>
    </form>
    </body>
    </html>
    //second page
    <%@ page import = "MyBean.JspAndSession"%>
    <html>
    <body>
    <h1>Your Request</h1>
    Here is the information that you submitted to us for processing.<br>
    <%
    JspAndSession jas = new JspAndSession();
    jas.setFirstName(request.getParameter("firstName") );
    jas.setLastName(request.getParameter("lastName"));
    jas.setEmail(request.getParameter("email"));
    jas.setAddress(request.getParameter("address"));
    %>
    <% session.setAttribute("jas",jas ); %>
    <a href = "J..">Click Here to go forward</a>
    </body>
    </html>
    //in the third page of jspsessionview i am not able to get the data that i have send through first page..i have already built the beans..if u guys can have the code plz give it to me
    </code>

  8. #8
    richasingh is offline Member
    Join Date
    Jul 2012
    Posts
    3
    Rep Power
    0

    Default Re: problem in getting the beans

    if u guys have any idea to do this plz reply

  9. #9
    awinston is offline Student
    Join Date
    Jul 2012
    Location
    United States
    Posts
    328
    Rep Power
    3

    Default Re: problem in getting the beans

    Sorry, I don't have any input for your problem.

    But didn't you already post this thread here? --> hello everyone

    Also, you're more likely to get a useful response if you ask a specific question. People won't give you the code.
    "Success is not final, failure is not fatal: it is the courage to continue that counts." - Winston Churchill

  10. #10
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,755
    Rep Power
    19

    Default Re: problem in getting the beans

    Please use [code] tags [/code] when posting code, as that is unreadable without them.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  11. #11
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: problem in getting the beans

    Quote Originally Posted by awinston View Post
    But didn't you already post this thread here? --> hello everyone
    Agreed. I'm merging the two threads.

    richasingh, I already gave you a link to the Forum Rules. Please read them. This thread is in violation of the second paragraph.

    Repeated violation of the rules may lead to a ban.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •