Results 1 to 2 of 2
  1. #1
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    448
    Rep Power
    6

    Default Print the table in struts...

    My web page has a table with 5 cols and 5 rows and also one button.

    When the user click the button ,the printer window should be opened and the table should be printed ..

    How can i do it..
    Mak
    (Living @ Virtual World)

  2. #2
    dyapasrikanth is offline Member
    Join Date
    Sep 2009
    Posts
    11
    Rep Power
    0

    Default

    use onclick event on the click button
    <script>
    window.print();
    </script>
    ;)

Similar Threads

  1. decorator.jsp problem building Struts Menu in JSP when Struts action is used
    By dkirvan in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 04-29-2010, 05:33 AM
  2. how to print out lines in a table- like form?
    By helloworld in forum New To Java
    Replies: 5
    Last Post: 02-10-2009, 09:31 PM
  3. Replies: 0
    Last Post: 07-11-2008, 04:30 PM
  4. Print the text file and print preview them
    By Java Tip in forum java.awt
    Replies: 0
    Last Post: 06-22-2008, 11:04 PM
  5. Print XML tag
    By DonCash in forum XML
    Replies: 2
    Last Post: 08-07-2007, 06:02 PM

Posting Permissions

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