Printing from JSP

Hi All!
I'm using the servlet-JSP technology for displaying tables from database in browser. I'd like to know that how can I send the long, multipage tables to a printer. I have to gain such printed document, which contains all of the table with table header in all pages. I tried with JavaScript, but it's not too good.
How can I set the page properties, such as page size, orientation, ...?
Can anyone a quick solve to my problem, or other technology to generates tables?
Thanks for all,
Milcsi

JSP runs on the server, I assume you want to print on the client (browser's) machine. In this case, JSP/Servlet can't do it and you will have to investigate more into printing with javascript.
Another idea would be to make a 'printer friendly' copy of your pages that displays the info in the correct format. Then use javascript or the browser's print option to print.

Similar Messages

  • PRINT FROM JSP

    Hi,
    I have a JSP with data that comes from beans. The issue is How I can print the data info and not the header, banners from my jsp page?
    I used the window.print(), but it print whole the page includes images, header,etc, and I just want to print the data.
    Thanks!
    Carlos

    Yes. you are exactly right. You can see my entire code snippet for your reference.
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-validate">
    <META HTTP-EQUIV="expires" content="0">
    <LINK REL=STYLESHEET HREF="/apps/css/main.css" TYPE="text/css">
    <TITLE>Report Run on <%= new java.util.Date() %></TITLE>
    <SCRIPT Language="Javascript">
    function printit(){
    window.print();
    </script>
    </HEAD>
    <BODY>
    <form name="printpage">
    <TABLE width=750>
    <TR>
    <TD ALIGN=LEFT>
    <input type="button" class="printbutton" onClick="printit()" value=" Print">
    </TD>
    <TD ALIGN=RIGHT>
    <TABLE BORDER=0 CELLPADDING=1 CELLSPACING=0 WIDTH=750>
    <TR HEIGHT=15>
    <TD ALIGN=RIGHT >
    <div class=noprint>
    <IMG SRC=/apps/images/bluearrleft.gif BORDER=0 ALT=" Back ">���
    <IMG SRC=/apps/images/bluearrright.gif BORDER=0 ALT=" Forward ">
    </div>
    </TD>
    </TR>
    </TABLE>
    </TD>
    </TR>
    <TR ><TD colspan=2>
    <%
    String param= new String();
    String rep= new String();
    try{
    param = (String)request.getParameter("params");
    rep = (String)request.getParameter("reps");
    catch(Exception e){
    out.println(e);
    %>
    <%= param %>
    </TD></TR>
    <TR><TD colspan=2>
    <%= rep.replace('~','"') %></TD></TR>
    </TABLE>
    </form>
    </BODY>
    </HTML>
    Hope this helps.
    Best Luck!
    Senthil Babu J

  • How to print report from JSP Page

    Hi Everybody,
    I am developing a simple project in JSP with MS Access. I hav some tables and reports for them. I hav a JSP page which gets inputs from user and save it in the table. Its working fine. But my problems are,
    1) I hav a button called "SAVE & PRINT" in that bottom of the page, if i click that button, the currently entered data has to save in the table and the same data has to print from the MS Access report. I dont know how to print this report from JSP page.
    2) Another button called "REPRINT". If i click that button, it has to ask a number to print the report page, that number is nothing but a field in that report.
    Could anyone help me to solve this problem.

    Hi Everybody,
    I am developing a simple project in JSP with MS Access. I hav some tables and reports for them. I hav a JSP page which gets inputs from user and save it in the table. Its working fine. But my problems are,
    1) I hav a button called "SAVE & PRINT" in that bottom of the page, if i click that button, the currently entered data has to save in the table and the same data has to print from the MS Access report. I dont know how to print this report from JSP page.
    2) Another button called "REPRINT". If i click that button, it has to ask a number to print the report page, that number is nothing but a field in that report.
    Could anyone help me to solve this problem.

  • How to print a local file from jsp

    Hi,
    I want to print a local file(eg. .doc,.pdf) from a jsp.
    Please help me with any answer or any example code
    Thanks in advance
    Regards,
    Sanjeev

    Try this:
    index1.jsp:
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <Link rel='alternate' media='print' href=null>
    <script Language=JavaScript>
    function setPrintPage(prnThis){
    prnDoc = document.getElementsByTagName('Link');
    prnDoc[0].setAttribute('href', prnThis);
    window.print();
    </script>
    </head>
    <body >
    <a href="#" onclick="setPrintPage('index.jsp');"> Click to Print </a>
    </html>This will print index.jsp without opening it in browser. Hope this helps!

  • Printing Problem in Crystal Report From JSP

    Hi,
    I m calling crystal report from JSP.Report is parameterized.I m passing parameters from JSP.Report is displaying on the page,but when I try to print or export the report by pressing Print or export Button ,it displays an error message "Some parameters are missing values".
    Please guide my,what should I do? Following is the code.
    Good Bye
    AQ
    Vector fieldVector = new Vector();
    SPParameters spParams = new SPParameters();
    ReportFactory     reportFactory = new ReportFactory();
    // Setteing the report Name (Path Appended)
    reportFactory.setReportName(ReportsCoreDataConstants.REPORT_PATH.concat("Test_Rep2.rpt"));
    //Setting the parameters for the report
    ParameterField paramFeilds = null;
    System.out.println("fiscalYearCode:"+fiscalYearCode);     
    paramFeilds = spParams.createParams("IPFISCALCODE",fiscalYearCode);
    paramFeilds.setReportName("");
    fieldVector.add(paramFeilds);
    //Creating the ReportSourceInstance
    reportFactory.setFields(fieldVector);
    String exp = "";
    try {
         ReportFactory l_reportFactory=null;
         l_reportFactory = reportFactory;
         if (l_reportFactory != null) {
         CrystalReportViewer viewer = new CrystalReportViewer();
         viewer.setParameterFields(l_reportFactory.getFields());
         viewer.setOwnPage(true);
         viewer.setDisplayGroupTree(false);
         viewer.setHasZoomFactorList(false);
         viewer.setHasLogo(false);
         viewer.setHasPrintButton(true);
         viewer.setHasRefreshButton(true);
         viewer.setHasToggleGroupTreeButton(false);
         viewer.setHasViewList(false);
         viewer.setPrintMode(CrPrintMode.ACTIVEX);
         viewer.setSeparatePages(true);
         viewer.setEnableParameterPrompt(false);
         viewer.setReuseParameterValuesOnRefresh(true);
         viewer.setReportSource(l_reportFactory.createReport( request.getLocale() ));
         viewer.refresh();
         viewer.processHttpRequest(request, response, getServletConfig().getServletContext(),out);
         viewer.dispose();
    } catch(Exception e) {
         exp = e.toString();
         System.out.println("Exception in JSP : " + e.toString());
         e.printStackTrace();
    }

    I think ScreenRaghu is right. If you look at the generated source, your jsp becomes an action and processHttpRequest() method is invoked everytime some action happens. So when you click the export button, request object no longer has the values your report needs. Either put the values in session or via link or db or whatelse.

  • Printing from a 32 bit client in a 64 bit environment (laserjet 4000 n with windows 7)

    I have a HP laserjet 4000n connected to a 64 bit windows 7 machine.  Another client (32 bit) on my network wants to print to that printer.  I saw on the support website instructions for how to do this:
    http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&taskId=110&prodSeriesId=...
    So far, I have installed the 64 bit driver (just re-installed and I can print from the 64 bit server).
    I then downloaded the 32 bit driver files (for PCL 5) and saved them.
    I then went to the printing properties of  the printer and chose advanced drivers and checked the box "x86". The instructions called for finding the file "hpcuXXXc.inf".  In the printer driver folder, there were 2 subfolders - one marked 64 bit and inside that folder was a file "hpcu112t.inf" (file ends in "t" not "c") - so I chose that file and pressed ok and got the following error message:
              The specified location does not contain the driver HP LaserJet 4000 Series PCL5 for the requested processor architecture.
    I then downloaded more drivers (for PCL 6 - even though my printer is labelled PCL 5).  This time, I got no 64 bit subfolder (only one folder labelled windows vista).  However , there WAS a file labelled "hpcu112c" this time - so I chose that and still got the same error message.
    Help!?
    Thanks.
    Janc

    Phychopomp1,
    Windows 7 64 bit is able to run 32 bit programs. However, some programs will have issues.
    Have you checked your programs against the Windows 7 compatibility list: http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=2394
    This should tell you if they are compatible or not with Windows 7 64-bit.
    There are compatibility settings that you can try once you have installed the software also. Right click on the shortcut and choose properties, then go to the compatibility tab and try the various OS settings.
    If those things fail, then you should try Windows XP Mode (convenience link: http://www.microsoft.com/windows/virtual-pc/download.aspx). This will allow you to install your programs in a virtual copy of Windows XP SP3 using Windows Virtual PC. Once XP Mode is installed, when you install your software into it, you will get a shortcut to use the program from your Windows 7 start menu without even seeing the XP Mode window.
    Hope this helps,
    David
    Windows Outreach Team – IT Pro
    http://www.microsoft.com/springboard

  • Need help in writing data from JSP to excel

    Hi ,
    I need help in writing the data from JSP to excel.I somehow able to retrieve the data into excel but unable to get the required format.
    For eg: The amount should be displayed in 0.00 format .when i am exporting it to excel it is displaying as 0 :( .
    I am using the following code in JSP.
    "out.print(amt + '\t');"
    Would like to know if there is any otherway where in i can get my requirement.
    Thanks
    Tom

    Hi,
    Try using format part of the JSTL tag libs.
    Syntax :
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
    <fmt:formatNumber value="40" pattern="$#,##0.00"/>
    I need help in writing the data from JSP to excel.I
    somehow able to retrieve the data into excelHow do u convert the jsp to excel?
    One way to convert the jsp page to excel, is to render it as an excel appl instead of html. Set the content type of the response to application/ms-excel.
    response.setContentType("application/ms-excel")Hope this Helps....

  • Jsf problem go from jsp page to another jsp in new window

    I’ve two jsp pages attendReport.jsp and printAttendReport.jsp
    attendReport.jsp contains inputs for attend duration and employee id and command button “view” to view attendance data entered employee during entered duration inside the same page(this work very good)
    the problem is the same page includes another command button “print” its job is to get the same data but view them in the second page printAttendReport.jsp in another window in order to print the data in some suitable format , but the print button opens attendReport.jsp instead of printAttendReport.jsp and does not hold the inputs else if I set <managed-bean-scope> to session not request which cause caching data , please help me if you to solve this problem
    and here the related lines of code
    <faces-config >
    <managed-bean>
    <managed-bean-name>attendReportBean</managed-bean-name>
    <managed-bean-class>csc.attend.bean.AttendReportBean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
    <from-view-id>/attend/attendReport.jsp</from-view-id>
    <navigation-case>
    <from-action>#{AttendReportBean.attendReport}</from-action>
    <from-outcome>attendReport</from-outcome>
    <to-view-id>/attend/attendReport.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    <navigation-rule>
    <from-view-id>/attend/attendReport.jsp</from-view-id>
    <navigation-case>
    <from-action>#{AttendReportBean.printAttendReportAction}</from-action>
    <from-outcome>printAttendReportAction</from-outcome>
    <to-view-id>/attend/printAttendReport.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config> // here is managed bean code
    public class AttendReportBean {
    // data , getters and setters
    init();
    //Preload in initialization block.
    public void init() {
    // initialize data
    public String attendReport() {
    // code to get attend data to go to view page(same page) it is ok
    return "attendReport"; // Navigation case.
    public static String getRequestParameter(String name) {
    return (String) FacesContext.getCurrentInstance().getExternalContext()
    .getRequestParameterMap().get(name);
    public void printAttendReportListener(ActionEvent event) {
    String fromYearStr = getRequestParameter("fromYearAtt");
    System.out.println("fromYearStr = "+fromYearStr);
    // try to get inputs through ActionListener but it gives me null
    public String printAttendReportAction() {
    // code to get attend data to go to print page(another page in new //window) but inputs come in default values
    return "printAttendReportAction"; // Navigation case.
    }attendReport.jsp
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <f:view>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    //title . styles and validations //
    </head>
    <body>
    <h:form id="attendReportForm">/the form tag appear in running source as <form id="attendReportForm" method="post" action="/newdiwan/faces/attend/attendReport.jsp" enctype="application/x-www-form-urlencoded" >
    i.e. it always submit to attendReport.jsp page
    / some inputs and outputs /
    <h:commandButton onclick="return check();" id="view" action="#{attendReportBean.attendReport}" value="" styleClass="linksNumBlue" />//it works good/
    // some outputs to view data /
    <h:commandLink immediate="true" id="printLink" value="" action="#{attendReportBean.printAttendReportAction}" actionListener="#{attendReportBean.printAttendReportListener}" target="_blank" styleClass="linksNumBlue">
        <f:attribute  name="fromYearAtt" value="2009" />
        <f:attribute  name="fromMonth" value="01" />
       <f:attribute  name="toYear" value="2010" />
       <f:attribute  name="toMonth" value="06" />
    </h:commandLink>//this has two problems 1)submit to attendReport.jsp not printAttendReport.jsp which I want to go to.
    //2)does not get the inputs but return the default values only /
    </h:form></body></html></f:view>I use libraries { jsf-api.jar , jsf-impl.jar , jstl-1.1.0.jar and tomahawk-1.1.6.jar } and deploy on tomcat 6.0
    I’m sorry for the prolongation, please help me if you can
    Edited by: alynoor on Jul 8, 2010 1:51 AM
    Edited by: alynoor on Jul 8, 2010 1:55 AM

    my problem solved 1- i use 2 managed bean , one of request scope (used in attendReport.jsp ) and the other with session scope (used in printAttendReport.jsp)
    2 - add new jsp contains the h:commandLink of the print (attendReportPrintAction.jsp)
    3 - divide the view of attendReport.jsp to two subviews (each subview has its own form) one contains inputs and outputs of attend and the other contains include to (attendReportPrintAction.jsp)
    <%@ include file="attendReportPrintAction.jsp" %>
    4 - send and get parameters using two methods
                public static Object getSessionMapValue(String key) {
                   return FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get(key);
                public static void setSessionMapValue(String key, Object value) {
                   FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put(key, value);
                }faces-config.xml
       <managed-bean>
          <managed-bean-name>attendReportBean</managed-bean-name>
          <managed-bean-class>csc.attend.bean.AttendReportBean</managed-bean-class>
          <managed-bean-scope>request</managed-bean-scope>
       </managed-bean>
        <managed-bean>
          <managed-bean-name>print_attendReportBean</managed-bean-name>
          <managed-bean-class>csc.attend.bean.AttendReportBean</managed-bean-class>
          <managed-bean-scope>session</managed-bean-scope>
       </managed-bean>
    <navigation-rule>  
        <display-name>viewReport</display-name>  
        <from-view-id>/attend/attendReport.jsp</from-view-id>  
        <navigation-case>  
            <from-action>#{AttendReportBean.attendReport}</from-action>
            <from-outcome>attendReport</from-outcome>  
            <to-view-id>/attend/attendReport.jsp</to-view-id>  
        </navigation-case>  
    </navigation-rule>
    <navigation-rule>  
        <display-name>printReport</display-name>
        <from-view-id>/attend/attendReport.jsp</from-view-id>  
        <navigation-case>  
            <from-outcome>printAttendReportAction</from-outcome>  
            <to-view-id>/attend/printAttendReport.jsp</to-view-id>  
        </navigation-case>  
    </navigation-rule>attendReportPrintAction.jsp
    <f:subview id="printAttendReportSubView" >
    <h:form id="printAttendReportForm" onsubmit="return check222();" >
                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                  <tr>
                                    <td width="11%">
                                    <table width="70" border="0" cellpadding="0" cellspacing="0">
                                        <tr>
                                          <td width="7" height="28"><img src="../images/B-left.gif" width="7" height="28" /></td>
                                          <td align="center" background="../images/B-bg.gif">
                                            <!--a href="printAttendReport.jsp" class="linksNumBlue" target="_blank" >&#1591;&#1576;&#1575;&#1593;&#1577;</a-->
    <h:commandLink id="printLink" value="&#1591;&#1576;&#1575;&#1593;&#1577;" title="&#1591;&#1576;&#1575;&#1593;&#1577;"  action="#{print_attendReportBean.printAttendReportAction}"   target="_blank"  styleClass="linksNumBlue">
                                        </h:commandLink>
                                            </td>
                                          <td width="7" height="28"><img src="../images/B-right.gif" width="7" height="28" /></td>
                                        </tr>
                                      </table>
                                      </td>
                                    <td align="right"> </td>
                                  </tr>
                                </table>
    </h:form>
    </f:subview>i hope this helps someone

  • Problem in connecting to times ten from jsp

    Hi sir,
    I am trying to connect with timesten from jsp. But am getting following Exception.
    SQLException: Problems with loading native library/missing methods: no ttJdbcCS70 in java.library.path
    I am using myeclipse 8.6 ide. I have diployed my project in myeclipse tomcat server.
    Please help me in resolving this problem.
    Follosing is my code.
    display.jsp:
    <%@page import="com.tbss.RealTimeDAO,com.tbss.RealTimeCallReport,java.util.*"%>
    <%
    RealTimeDAO rdao=new RealTimeDAO();
    List<RealTimeCallReport> list=rdao.getRecords();
    pageContext.setAttribute("list",list);
    out.print("list"+list+"\n");
    Iterator<RealTimeCallReport> i=list.iterator();
    while(i.hasNext()){
    RealTimeCallReport rp=i.next();
    out.println(rp.getCompaignID()+"\t"+rp.getConnectedPhone()+"\t"+rp.getRecordID()+"\t"+rp.getSessionDuration()+"<br/>");
    %>
    RealTimeDAO.java
    public class RealTimeDAO {
    public List<RealTimeCallReport> getRecords(){
    List<RealTimeCallReport> list=new ArrayList<RealTimeCallReport>();
    try {
    // create the TimesTen data source and set the connection URL
    TimesTenDataSource ttds = new TimesTenDataSource();
    ttds.setUrl("jdbc:timesten:client:dsn=ttc1;UID=ttsa;PWD=abc123");
    // connect to the TimesTen database
    TimesTenConnection ttcon = (TimesTenConnection) ttds.getConnection();
    // create and execute the statement
    Statement stmt = ttcon.createStatement();
    ResultSet rset = stmt.executeQuery("select * from REAL_TIME_CALL_REPORT");
    // process the result set
    while(rset.next()) {
    RealTimeCallReport rp=new RealTimeCallReport();
    rp.setCompaignID(rset.getLong("CAMPAIGN_ID"));
    rp.setConnectedPhone(rset.getLong("CONNECTEDPHONE"));
    rp.setRecordID(rset.getLong("RECORD_ID"));
    rp.setSessionDuration(rset.getString("SESSION_DURATION"));
    rp.setSessionID(rset.getString("SESSION_ID"));
    list.add(rp);
    return list;
    } catch(SQLException e) {
    e.printStackTrace();
    return null;
    }

    The driver requires a shared library (nothing to do with java itself.)
    The shared library is not in the shared library path. The error suggests that the OS is Windows which means that the PATH (env variable) of the executable must have the directory of the shared library in it.

  • Printing from Explorer context menu prints in wrong scale

    Hi,
    I have a problem with a customer; when they right-click a PDF file and choose "Print" from Explorer context menu the actual printout is sometimes printed in the wrong scale, ie it looks zoomed. The same problem exists when printing PDF's from other applications as well, for example Outlook. If they print the same PDF one more time (by right-click-printing) the problem may resolve itself. Sometimes it's enough to print twice, other times they need to do it more times. The problem exists in several computers, which is why i want it to be a problem with some default-settings in Adobe Reader.
    What might cause this behavior ?

    So, 4 years have passed, and one would hope the problem solved itself in some update the last 4 years.
    However, it has not. (Well, actually it was fixed for a short while. Then it broke again:()
    I do have some fresh information that can help you devs at Adobe to maybe get closer to a solution.
    Just before christmas (nov 22) i was doing a new attempt to solve the problem.
    At the time Reader XI had been released, but not yet installed at the client. Crossing my fingers and praying to higher powers i downloaded XI and gave it a shot; and the problem actually went away! My theory was that finally some architectual change had been implemented; or parts of Reader had been rewritten for any reason. Anyhow, the problem was gone after nearly 4 years and both me and the client was happy!
    Today the client called again. The PDF-printouts are zoomed again. Worse than ever. Now, EVERY PDF that's printed was getting zoomed (if printed from another program.). When printing, Reader flashes by the screen; so i guess the app does something like "adobe.exe /print %temp%\whatever.pdf" or however it works.
    I immediately suspected that an update had been installed and broke the Reader again. This was the case. 11.0.06 had been auto-installed last week. After searching adobe site for 30 minutes i finally found the downloads required to get 11.0.05 installed and running again. *poof* problem gone. Every print is good.
    SOO..
    11.0.05 does not contain the bug that makes most printouts zoomed. (WORKS)
    11.0.06 contains the bug again. (DOES NOT WORK)
    So, whatever changes are in that update broke the Reader for the client again.
    ADOBE: Hope this gets u closer to a solution!
    PEOPLE: If you are experiencing the same problem as my client, please try my solution. It just might help you.
    ps. oh, and where u download older versions from adobe.com is
    http://www.adobe.com/support/downloads/product.jsp?product=10&platform=Windows
    Install order:
    - 11.0.01                AdbeRdr11000_mui_Std.zip
    - 11.0.04 patch      AdbeRdrUpd11004_MUI.msp
    - 11.0.05 patch      AdbeRdrSecUpd11005.msp
    Im not sure if installing Multilanguage/All Languages makes a difference.

  • Printing from iPad with no wi-fi?

    I've been researching this for a while and have found some ideas, but nothing satisfactory. My grandmother lives in the country where only dial-up or satellite internet access is available. Dial-up greatly limits her, and satellite is too expensive. I got her an iPad for her birthday and I think the 3G connection will be a happy medium, and less expensive for what she does. However, she prints things sometimes, but her printer is several years old and does not have wi-fi capability, nor does she have a wi-fi network set up in her house. Here's what I've come across so far, and I'd like some suggestions on the best route to take.
    1. Use her existing eMac (running either Panther or Tiger) and create a wi-fi network, and use printer sharing. I'm not sure if the older versions of OSX allow you to do this, or even how to set that up in the Network or Sharing Preferences. Also, if she needs to print, she'd have to switch from 3G to wi-fi, which is a hassle and a burden for a 79 year-old.
    2. Get an Airport Express and set up a local wi-fi network, plug the USB printer into it, thereby making the printer wireless. Again there's the problem of having to switch between 3G and wi-fi.
    3. Find an HP printer that supports airprint and can create it's own network without wi-fi, such as the Envy (which is too expensive for me). I don't know if HP makes less expensive printers that create their own network. Also, I don't know if she has to switch between 3G and wi-fi to do this, or if the iPad will pick up the printer without leaving 3G.
    Lastly, this needs to be a permanent connection that doesn't have to be set up everytime she prints. I live 2 hours away, so whatever is easier for her is better. Thanks so much!

    With the AirPrint application/utility, mentioned earlier, you should be able to keep your existing printer attached to your eMac (running Tiger 10.4). The mLabs website mentions configuring your existing printers, and the existing printer will be advertised over AirPrint (WiFi).  This should help you save from having to buy a new printer.  If the printer still works, I say use it!  Try to keep the total advertised AirPrint Printer combined network path and printer name to less than 63 characters total.
    With regard to the Airport Express, I suspect that you may need to get one.  They serve as a central point, i.e. communications hub.  I'm new to this and not real sure about following. I suspect that the computer and iOS device, with respect to WiFi, will use the same frequency to transmit and receive. Since they are both clients to a router/switch/hub I suspect both (iPad & eMac) would use the same WiFi frequency for transmit and receive.  If both use the same frequency to transmit then there will be a communication problem when trying to talk directly to one another.  Same for the receiving.  I suspect the Airport Express may service as a transition point and the computer must advertise the AirPrint printer over the network (in your home) via the Airport Express.
    Your eMac, when purchased, could have been installed with an airport card providing WiFi with 803.11b protocol.  If no airport card then your looking at connecting your eMac by way of 10/100Base-T Ethernet to the AirPort Express via wire cable.  Lets assume you'll be using a ethernet cable for your computer connection.  This would make your connection look like an eMac with a direct connected printer, AirPrint software application, and the preferences set to allow the printer to be a network shared printer.
    On your #1 line item, you probably won't have to switch from 3G to WiFi.  You will just supplement the 3G with the addition of WiFi to allow printing from the iPad.  The iPad will normally operate on the 3G, but when it comes to printing, the iPad will kick-in the WiFi.  The iPad has the ability to use both WiFi & 3G.  To the user it will appear as if both are working at the same time (seamless).  Remember the iPad does not and will not contain specific printer drivers, it only has a printer address to sent a job (image) to. The print job will be received by the AirPrint application on your eMac (computer required to be on, up, and running), the AirPrint application will then, using the appropriate printer driver within your eMac, convert the printer job (image) to the printer binary and send it to the printer directly.
    On your #2 line item, unless the printer you connect to the USB port is AirPrint ready (or "ePrint-enabled" for HP printers), it will not properly serve as a printer for your iPad. Remember the printer drivers, or lack thereof, is the issue here; the iPad doesn't and won't have any.  With your existing printer the AirPort Express will only serve as the hub to your home network. Print jobs will go from your iPad via Wifi and then to the computer via 10/100Base-T Ethernet... Don't get me wrong here, if you did get a non-AirPrint (non-e-Print enabled) printer connected via USB to the AirPort Express, it could serve as a network printer for other computers; other computers that utilized their own printer drivers. But it would not serve as a solution for your Grandmother's iPad.  If your going to connect a printer to the AirPort Express it has to be Airprint or ePrint-enabled.
    If the printer you connect to the Airport Express USB port is ePrint-enabled, then you would not need your eMac to do the translating of the print job image to the printer binary.  When checking HP website titled:
        HP AirPrint Compatible Wireless Products - How to Use Apple's AirPrint Over a Wireless Network
        Frequently asked questions (FAQs) about AirPrint
    http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&task Id=115&prodSeriesId=4073853&prodTypeId=18972&objectID=c02623193
    This is where you have to decide. If you want to use your existing printer, then you will have to have the eMac on,up, and running whenever your Grandmother wants to print.  Otherwise, for the convenience, you will have to purchase an AirPrint or e-Print ready printer.  If you do decide to get an HP e-Print ready printer, HP recommends updating its firmware-Indicated in above HP web site.
    On your #3 line item:  I see 3 options:
    1. Use existing eMac, existing printer, and purchase AirPort Express. This is probably the cheapest alternative (in materials) but requires the eMac to be on, up, and running to print.
    2. Purchase an e-Print ready printer, and purchase AirPort Express. Cost is a bit more.
    3. Purchase AirPort ready printer. Cost?
    For now, option 1 looks good.  If your Grandmother is unhappy with keeping the computer on, then add an e-Print enabled printer via USB or Ethernet cable. But you decide on what your needs are and stay within your budgets.
    Please let us know your actions and results so that others can learn from the experience.
    2003 iMac G4, PPC, Mac OS X (10.4.11)

  • HSQLDB Queries fail only from JSP

    I am new to Servlets and JSP and have encountered a weird problem when trying to query HSQLDB from JSP pages. If I write a small servlet and deploy it from the same web application with the same classpath, the connection succeeds and queries return. If I make the connection from JSP under either Tomcat or Jetty I get a failure like:
    javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
    at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:276)
    at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:159)
    at org.apache.jsp.index_jsp._jspx_meth_sql_query_0(index_jsp.java:125)
    at org.apache.jsp.index_jsp._jspService(index_jsp.java:68)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427)
    at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:475)
    at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:275)
    at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:169)
    at org.mortbay.jetty.servlet.Default.handleGet(Default.java:312)
    at org.mortbay.jetty.servlet.Default.service(Default.java:232)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427)
    at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:475)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:556)
    at org.mortbay.http.HttpContext.handle(HttpContext.java:1563)
    at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:623)
    at org.mortbay.http.HttpContext.handle(HttpContext.java:1515)
    at org.mortbay.http.HttpServer.service(HttpServer.java:956)
    at org.mortbay.http.HttpConnection.service(HttpConnection.java:814)
    at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981)
    at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)
    at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
    at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
    at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
    Every previous question I have seen about this has been resolved by a classpath problem, but I have verified that the hsqldb.jar is getting loaded in my classpath, and the servlet works fine in the same webapp. Just not the JSP page. Any ideas? This is really frustrating. Thanks!
    Karl

    First of all let me say thanks for your help! I think at this point it's just a matter of getting to work because it should and I want to know what I am doing wrong. To test things out, I wrote a JSP in the same directory as the one which is failing. Instead of using the JSTL sql tags I just wrote a scriptlet inline which uses the java JDBC code directly. This should have the same classpath and access as the JSTL code, right? Anyway, it works fine. So maybe I am running into a bug in the JSTL of some kind? Here is the working code:
    <%@ page import="java.sql.*" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql_rt" %>
    <html>
    <body bgcolor="#FFFFFF">
    <h1>People</h1>
    <%
    try {
         Class.forName("org.hsqldb.jdbcDriver");
         Connection conn = DriverManager.getConnection(
              "jdbc:hsqldb:hsql://localhost:9001/",
              "mrfoo",
              "foo"
         Statement stmt = conn.createStatement();
         ResultSet rs = stmt.executeQuery("SELECT first, middle, last FROM people");
    %>
         <table border="1">
              <tr>
                   <th>First</th>
                   <th>Middle</th>
                   <th>Last</th>
              </tr>
    <%
         while(rs.next()) {
                   out.print("<tr>");
                   out.print(
                        "<td>" + rs.getString("first") + "</td>"
                   out.print(
                        "<td>" + rs.getString("middle") + "</td>"
                   out.print(
                        "<td>" + rs.getString("last") + "</td>"
                   out.print("</tr>");
    %>
         </table>
    <%
         rs.close();
         stmt.close();
         conn.close();
    catch (SQLException se) {
         System.out.println( "SQL Exception:" ) ;
         // Loop through the SQL Exceptions
         while( se != null ) {
              System.out.println("State : " + se.getSQLState() );
              System.out.println("Message : " + se.getMessage() );
              System.out.println("Error : " + se.getErrorCode() );
              se = se.getNextException();
    %>
    </body>
    </html>
    Here, on the other hand, is the not working code:
    <%@ page import="org.hsqldb.*" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql_rt" %>
    <html>
    <body bgcolor="#FFFFFF">
         <sql:setDataSource var="datasource"
              driver="org.hsqldb.jdbcDriver"
              url="jdbc:hsqldb:hsql://localhost:9001/"
              user="mrfoo" password="foo" />
         <sql:query var="people" dataSource="${datasource}">
              SELECT first, middle, last FROM people
         </sql:query>
         <table>
         <tr><td>First Name</td><td>Middle Name</td><td>Last Name</td></tr>
         <c:forEach var="row" items="${people.rows}">
              <tr>
                   <td>${row.first}</td>
                   <td>${row.middle}</td>
                   <td>${row.last}</td>
              </tr>
         </c:forEach>
         </table>
    </body>
    </html>
    I'm starting to think JSTL<->HSQLDB bug... Any help is appreciated. Thanks!!
    Karl

  • How to print from iPad using my airport extreme

    I have a New iPad and an iPhone 4 all connected to my Airport Extreme.  My tower computer is a pc as is all of my laptops at this time. I have downloaded Bonjour Print Services to my pc laptops and they print wirelessly through the Airport Extreme using Bonjour Print Services. How do I print from my iPad since I am connected using the Airport Extreme and the printer is a HP7310 which is not an air printer. Please help!

    Suggest that you try an App like Print Central to see if that will allow the iPad to print to your printer.
    PrintCentral for iPad on the iTunes App Store
    HP also is offering ePrint, which might help as well.
    http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&obje ctID=c02486399&prodTypeId=18972&prodSeriesId=410622
    If still no luck, you really have a question for the iPad support area.  Contact the gurus over there at:
    Using iPad

  • Printing from outlook

    when I print a pdf from outlook, the first page comes out very small in the top left hand corner.  All other pages are normal size.  only happens when printing from outlook.

    General Acrobat Problem Steps
    If you are having problems creating a PDF, there are two steps you should do FIRST
    Go to the appropriate vendor web site and apply all updates to the program you are using (several recent messages have concerned problems with MS Office conversion, with the response that different versions of Office have different BUGS that must be fixed by a download from Microsoft - and MS Office products are not the only ones which may, from time to time, need to be updated to work properly)
    Apply all updates IN NUMBER ORDER
    Acrobat Update http://www.adobe.com/support/downloads/product.jsp?product=1&platform=Windows
    If outlook 2007, visit
    http://www.microsoft.com/downloads/details.aspx?FamilyId=4D951911-3E7E-4AE6-B059-A2E79ED87 041&displaylang=en

  • 'Dunning Letter Print from Dunning Letter Generate'

    hi,
    How can i run the "Dunning Letter Print from Dunning Letter Generate" standard program without runing the spwaned program called 'Dunning Letter Generate'.I mean i want to run the 'Dunning Letter Print from Dunning Letter Generate'(execution method: report) independently.
    I need to pass the parameters to the 'Dunning Letter Print from Dunning Letter Generate' directly instead of passing to the spwaned program ''Dunning Letter Generate".
    Thanks
    Devender

    Hi Gareth,
    New parameters to be add are:
    Tier : <xxxx>
    Service Segment: <xxxxx>
    Account Manager: <xxxx>
    Location where I am picking these 3:
    navigation:select any AR responsibility
    customer->standard(query with any customer)->customer address
    we have enabled 'site use information' dff in customer address window, from this dff we are taking these 3 parameters.
    reason to add these 3 parameters:
    we cant treat all the customers same. so we need to send some smooth(no harsh) dunning letters to some of our most trusted customers. so how can we identify gud customers in the list.
    so we have enabled site use information dff. those customers who is have values for these 3 parameters. will be treated as v good and reguler customers for us. so for them we can send other dunning letters.
    note*: this is to identify the customers like reguler customers,non requler customers.
    bez in spwaned program we have parameters like 1.customer low 2.customer high. thats it .so it is very difficult to find out the nature of customer.
    pls advice me on this..to proceed further..
    Thanks
    Devender

Maybe you are looking for

  • Time Capsule file transfer - why so slow?

    I've got a simultaneous dual-band Time Capsule serving as a router for my network, which includes a newer Macbook Pro and an older PowerPC G5. When I transfer a 2GB file directly from the G5 to the MBP (this is of course going through the TC as the r

  • PAYMENT REFERENCE IN FB60

    hi experts, while entering data in FB60,we encountered a problem stating "PAYMENT REFERENCE MANDATORY". WHAT IS DAT? AND HOW CAN IMAKE THIDS FIELD NOT NECESARY? SO THAT EVEN IF I DONT FILL IT UP IT SHOULD NOT SHOW ANY ERROR. PLZ REVART SOON. THANKS S

  • How to set TimeOut period in Portal

    Hi, I am running a report in the portal which is taking more than 1 min to display the results. After this one min the page is getting timedout. Can any one please let me know how to administrate the timeout interval. I found this link http://help.sa

  • Account

    hi, while creating billing doc system showing error that Account "24600000" in company code "HPCL" is marked as a reconciliation account for account type "D" and cannot therefore be directly posted to.PLease give me the solution. Thanks, Rash

  • Fusion for two Mac users

    Our MacBook Pro is set up for 2 users. Wife is primary user & is Administrator. Husband has his own password and preferences. Husband installed Fusion when logged on under his password. Wife goes to use Fusion when logged in to her side and Fusion wa