Results 1 to 8 of 8
  1. #1
    vknehra10 is offline Senior Member
    Join Date
    Dec 2016
    Posts
    103
    Rep Power
    0

    Default Print values on same page

    Hi ,
    i am new in jsp&servlets
    i want to print input field value using button so i have to use seperate input field and button or i have to use form ?
    and then print that input field value on same page ?
    how to do please tell me

    Thanks

  2. #2
    benji2505 is offline Senior Member
    Join Date
    Sep 2014
    Location
    MA, USA
    Posts
    390
    Rep Power
    4

    Default Re: Print values on same page

    You can do both versions.
    The how-to answer obviously depends on whether you work with a JSP file or with a Servlet.
    Here is my suggestion: Invest a few Dollars in this course:https://caveofprogramming.teachable....ions-with-java
    They give you the first few lessons free. If the amount is too steep for you, write John an email and ask whether you can get that course for free. From what I hear he does that if you have a good explanation.

  3. #3
    vknehra10 is offline Senior Member
    Join Date
    Dec 2016
    Posts
    103
    Rep Power
    0

    Default Re: Print values on same page

    ok den officialy i am on JSP ...

    so what's the solution except that tutorials...

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    25

    Default Re: Print values on same page

    I'm not too clear what it is you are trying to do.

    It sounds like you want a field on a page, and a button.
    When the button is clicked what do you want to happen to the value in the field?

    If it is just having it displayed somewhere on the same page then you don't need to go to the server at all.
    That would just be some JavaScript.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    25

    Default Re: Print values on same page

    Please do not ask for code as refusal often offends.

    ** This space for rent **

  6. #6
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,203
    Rep Power
    12

    Default Re: Print values on same page

    I would recommend checking out this site. Java CoreServeLets. It provides a step by step tutorial with lots of examples. Of course, you need to have a Java Servlet Container installed. I used Tomcat for the exercises.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  7. #7
    benji2505 is offline Senior Member
    Join Date
    Sep 2014
    Location
    MA, USA
    Posts
    390
    Rep Power
    4

    Default Re: Print values on same page

    Quote Originally Posted by Tolls View Post
    If it is just having it displayed somewhere on the same page then you don't need to go to the server at all.
    That would just be some JavaScript.
    I think he wants it from the server.

  8. #8
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    25

    Default Re: Print values on same page

    That's why I wanted it cleared up, because as it stands there's no server needed to achieve what he wants.
    :)
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. method to print values
    By dmp5658 in forum New To Java
    Replies: 4
    Last Post: 09-28-2016, 11:29 PM
  2. Replies: 0
    Last Post: 04-16-2012, 08:35 AM
  3. Can you print to a file using page break?
    By kahoots in forum New To Java
    Replies: 14
    Last Post: 07-02-2010, 02:06 PM
  4. iReport - Print on page bigger than A4
    By mobydickJavaCoder in forum Advanced Java
    Replies: 1
    Last Post: 05-26-2010, 10:55 AM
  5. how to print more than one page
    By elizabeth in forum New To Java
    Replies: 1
    Last Post: 07-25-2007, 12:51 PM

Tags for this Thread

Posting Permissions

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