Printing without loading the JSP to the browser

Hi All,
Looking for help desporately on how to have different JSPs printed with out loading actual JSPs onto the browser.
The scenario is we have an application with 17 different views for the same data and we should be able to provide a screen where the user can select the pages what he wants to print. Based on the selection only those JSPs are to be printed irrespective of whether the user had viewed the JSP or not.
Also the program should be smart enough to set the print type to landscape or potroait based on the width of the table. (Assuming width is known). Are there any libraries avaibable in java for controling the "print" functionality in servlets and JSP.
To mention, I'm good if the solution works in IE 5.0 and above
Thanks in advance and your time is very much appreciated!
Thanks,
Kishore

Here's my thoughts on this, but not necessarily a solution. Summarized extremely simply, the app server is going to parse your .jsp files and turn them into java source and class files...servlets. I'm sure each app server creates and names it's parsed files differently, and i'm not sure if you can actually specify how this is done. Even then, you're stuck with java servlets that are being processed as the user is running the pages. The html, to my knowledge, is never stored on the server side. So what you're essentially asking how to do is specifically state which jsp's you wish to parse, run the servlet that is created, and then store the html so that you can print out the page, and also specify, or determine, the names of the html files that were created. All without the user ever looking at the page. Right.. doesn't seem too hard :) I'm gonna look into this, cause i'm curious how it might be done, if at all. Anyone else's opinions suggestions are also more than welcome.
Also the program should be smart enough...Lol...Only if the programmer is :)

Similar Messages

  • The photo print quality from my Mac to my Epson Artisan 810 is poor.  When I take the same photo files (JPEGs) to my PC to print to the same printer without even uploading them to the PC, they print brighter and crisper from my PC.

    The photo print quality from my Mac to my Epson Artisan 810 is poor.  I just purchased my iMac for my photography business in Jan. (this is my first Mac).  When I first tried printing, I noticed the quality wasn't as good as I expected it to be.  Then, I had to print 4-3.5x5s on a sheet, so I e-mailed the image to myself and opened it on my PC to print it (much easier to print that way on PC in Windows Photo Gallery - I think it's impossible to print that way in iPhoto).  That's when I first noticed that when I take the same photo files (JPEGs) to my PC to print to the same printer without even uploading them to the PC, they print brighter and crisper from my PC.
    I've already been on the phone and e-mail w/Applecare many times over this issue. We've tried creating a test user and printing from there, and we've tried reinstalling the OS.  I've tried printing from iPhoto, ImageCapture, and Preview apps/utilities, all w/the same result - no comparison to the PC-printed versions (no enhancements have been performed on the PC).
    I'm out of ideas, and so is Applecare.  They say it's most likely a driver issue b/c the printer is outdated, and that the only solution is to buy a new printer.  BUT it is a pain for me to purchase a new printer - it takes days of research due to the nature of my business and the fact that I need a printer that can print directly onto a disc.  I love this printer and don't want to have to buy a new one if I don't have to.

    englishfreak2004 wrote:
    Yes.  I've checked for updates, and the driver I installed is the same as the one on Epson's website.  I also spoke with Epson Customer Service, which was a dead end.  Apple says the problem is due to an Epson driver issue (blaming Epson), but Epson says that with the older printers, it's actually Apple who creates the driver, so the problem is actually with Apple.  Typical he-said, she-said...
    Maybe not. Probably worth checking here:
    Epson drivers for Mavericks:
    http://www.epson.com/cgi-bin/Store/support/SupportMavericks.jsp

  • Why can see the jsp code in browser?

    Q1:
    I just setup completely the oracle application server downloading from OTN website.
    I have created a new OC4J instance 'appweb' in enterprise manager wizard form.
    I can look at the jsp code on the browse when I request the demo application instance.
    I try to deploy a WAR into the 'appweb' container that is been builded by the JBuilder 7 IDE,
    then I can't request all jsp page ,as the browser is normal getting the error 404 message ,but
    the jsp page is sure of.
    Q2:
    I want to change the http server Port ,but the application server can't been taken any request
    servies if change the Port number '7777' in the http.conf file. why for this ??? Be sure , I
    didn't change other configuration parameter.
    Please help me!
    thinks.

    Allaire JRun '%00' or '%2570' could allow an attacker to view the source code of JSP files
    Description:
    Allaire JRun is a program development suite used to create Web applications with Java Server Pages (JSP files) and Java Servlets. JRun versions 3.0 and 3.1 could allow a remote attacker to view the source code of known JSP files on the Web server. A remote attacker could send to the JRun Web Server (JWS) a URL request appended with '%00' or '%2570' for a known JSP file to cause the source code of the file to be returned.
    Platforms Affected:
    JRun 3.0
    JRun 3.1
    Remedy:
    Apply the appropriate patch for your system, as listed in Macromedia Product Security Bulletin MPSB01-15. See References.
    Consequences:
    Obtain Information
    References:
    Macromedia Product Security Bulletin MPSB01-15, "Patch Available for Revealing Source Code when Accessing a JSP as myjsp%00 or myjs%2570 via the JWS or IIS." at
    http://www.macromedia.com/v1/handlers/index.cfm?ID=22288&Method=Full
    or go to, http://www.iss.net/security_center/static/7676.php
    Sudha

  • Af:menutab/af:commandMenuItem - how can I show the JSP on the same page

    I apologize in advance if this has been asked before but I tried to search the forums with no avail.
    I have already spent a few hours searching the internet for answers but no luck. I would greatly appreciate any help.
    JDeveloper version: 10.1.3.4
    I used this guide for reference:
    http://database.in2p3.fr/doc/oracle/Oracle_Application_Server_10_Release_3/web.1013/b25947/web_complex002.htm
    Code snippet (this produces 2 menu tabs):
    <af:page title="Title 1" var="node" value="#{menuModel.model}">
      <f:facet name="nodeStamp">
        <af:commandMenuItem text="#{node.label}"  immediate="true"
            action="#{node.getOutcome}"type="#{node.type}" />
      </f:facet>
    </af:page>Where outcome points to JSPs that only display a simple text. Hello World 1 and Hello World 2 respectively.
    The issue is when I click on a Menu tab, the whole main page (with the menus and all) gets replaced with just the "Hello World xx" text. My expectation is that "Hello World xx" will only get written on the body of the page with the menus still in tact.
    I am wondering if I am missing something. Am I supposed to rewrite all the af:page (or af:panelPage) components on the outcome JSPs?
    Thanks again.

    Rrey,
    Am I supposed to rewrite all the af:page (or af:panelPage) components on the outcome JSPs?Exactly correct, yes.
    The menus take you to another page - if you want the menus to be on that page, you must put them there.
    11g offers you some additional things like Regions that might be helpful.
    John

  • Generating the JSP from the Servlet source file

    Hi,
    Does anyone out there know if there is any utility/class/program which will generate a JSP from the Servlet Source file (.java file) or indeed from the compiled Servlet file (.class file)
    If its possible to decompile a .class file into a .java file, surely it must be possible to convert the .java souce file into the .jsp file that created it.
    any comments would be appreciated
    Richard

    I am the author of the original JSP!
    But I want to run a script on the generated Servlet source file,
    changing its contents, and then generate the JSP that would have created the new Servlet source file.
    but I need to know if theres anything that will reverse engineer a Servlet source into the generating JSP.
    its a kind of of Jeopardy type thing!

  • Why can't  the JSP display the data with logic:iterate?

    Hi,all
    I am writing a web application with Struts framework. I dont know what's the problem when I use the tag logic:iterate in my application. I have created a form bean follow source code:
    public class ProductsForm extends ActionForm {
         private Vector alist;
         public void reset(ActionMapping mapping, HttpServletRequest request) {
         this.alist = new Vector();
         public Vector getAlist() {
              return alist;
         public void setAlist(Vector alist) {
              this.alist = alist;
    I also created action for the form
    public class ProductsAction extends Action {     
    public ActionForward execute(
              ActionMapping mapping,
              ActionForm form,
              HttpServletRequest request,
              HttpServletResponse response)
              throws Exception {
                   String target = "success";
                   if(form!=null){
                        ProductsForm aForm = (ProductsForm) form;
                        Vector aList = new Vector();
         //loadProductsList() method return the Vector object
    // which is a array included Product object.
                        aList = loadProductsList();
                        if(!aList.isEmpty()){
                        request.setAttribute("aList",aList);
                   return mapping.findForward(target);
    JSP page follow:
    <logic:iterate id="aitem" name="aList">
    <tr>
    <bean:write name="aitem" property="productname"/>
    </tr>
    </logic:iterate>
    Anybody tell me why the JSP page can't display the result. Thanks.

    Are you getting any error messages, or are you just not seeing anything in the page? If you get error messages, please post them.

  • How to load the JSP Source Code from Browser

    I have made a program using JSP ( one file ) and Java Beans ( 2 files ).
    The processed in those JavaBeans files and for output to Browser using JSP File.
    And I'm using JBuilder7 Software for building my applicaton.
    I already tested my source through JBuilder ( Applet Viewer ) and my source is running well but I got problem when to load that JSP file through Browser ( IE 6 ) with URL.
    Can anybody help me with this ?
    Best Regards,
    Yeppy S.

    I have made a program using JSP ( one file ) and Java Beans ( 2 files ).
    The processed in those JavaBeans files and for output to Browser using JSP File.
    And I'm using JBuilder7 Software for building my applicaton.
    I already tested my source through JBuilder ( Applet Viewer with TOMCAT Virtual Machine ) and my source is running well but I got problem when to load that JSP file through Browser ( IE 6 ) with URL.
    I put my source at F:\Source\Kiosk9 and my JSP file at F:\Source\KiosK9\defaultroot.
    And the JavaBeans Files at F:\Source\KiosK9\src\kiosk9.
    And the name of the package is kiosk9.
    My structure directory :
    F:\Source\KiosK9
    F:\Source\KiosK9\bak
    F:\Source\KiosK9\classess
    F:\Source\KiosK9\defaultroot
    F:\Source\KiosK9\src
    F:\Source\KiosK9\tomcat
    This directory structure was made automatically by JBuilder7 ( F:\JBuilder7 ).
    URL : http:\\localhost:8080\defaultroot\KiosK9Jsp.jsp
    And the error is :
    "Socket Error
    Connection refused by Remote Host"
    Can anybody help me with this ?
    Best Regards,
    Yeppy S.

  • Help !!! Apache 2.0, can't get the JSP be rendered by the browser

    I'm starting to think I missed something in the configuration/installation of Apache2
    Everthing finished without any errors reported, however when I try to run a JSP page, it is rendered as a text, this is that rather than get the results of the JSP page, the browser just shows the code as text ouput
    My configuration is:
    Win2000 Professional
    Apache 2.0
    J2SE 1.4.2_03
    I installed the Apache from apache_2.0.48-win32-x86-no_ssl.exe binary and haven't made any changes in the configuration file httpd.conf
    I found somewhere in java.sun.com that include the following lines in the httpd.conf file:
    BrowserMatch "Java1.0" force-response-1.0
    BrowserMatch "JDK/1.0" force-response-1.0
    However it didn't fix the problem
    Any ideas ? need more info ?
    I'd appreciate a quick response since I'm developing a project for a customer and because of this, I'm starting to delay...
    Thkx
    Regards,
    Erick

    Cross post:
    http://forum.java.sun.com/thread.jsp?forum=54&thread=494385&tstart=0&trange=30

  • How to prevent re-loading the jsp before servlet execution gets over

    Hi,
    From jsp, I am calling a function in js. From javascript function, I am calling a servlet in background frame after doing client-side validation. Before the servlet execution gets over, javascript function is getting over and it starts reloading the jsp again.
    I want to restrict the re-loading of jsp till the background servlet execution gets over.
    In background servlet, I am doing query execution.
    Its urgent. Please help me with this question.
    Thanks in advance,
    Sri

    For the time being, one suggestion would be to time how long the sql statement takes to execute. Lets say 1.5 seconds.
    Go into your javascript function and add say a 1.5 + .5 = 2.0 second delay before the javascript function completes (submits the page).
    This is a temporary fix. I doubt there is a better fix to this without knowing a great deal of AJAX and how it handles asynchronous communications.
    I don't know what the javascript function for creating a 2.0 second delay, but I imagine there is one in a javascript book.
    Once you implement the temporary fix above, I suggest you redesign your project to avoid these asynchronous problems by treating
    all your JSP pages as simple display pages and not embed any business logic in them (or in the javascripts). All processing should be done back on the server via servlets.

  • How to query from view with parameter, only  when the JSP-page loading

    I use JSF/ADF BC, create two viewes:view1 and view2, in the JSP page the user press a button to query from the view1, but I hope the view2 can be queried only when the page loading, it have no relation with user-operator, and pass the column value of view2 into some variables, the view2 return one record.

    Hi -
    You may want to have a look at this other thread:
    Re: Execute ViewObject with Parameters at JSF Page Load?  JSF/ADF/BC 10.1.3
    John

  • Servlet not forwarding a control to the jsp with req dspher

    hi ppl,my servlet code is supposed to forward a control to a jsp page so as to display the value in the jsp.but the request dispatcher's forward is not forwarding the control to the jsp page.....here is my servlet code----
    // Decompiled by DJ v3.4.4.74 Copyright 2003 Atanas Neshkov  Date: 7/4/2003 12:37:00 PM
    // Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
    // Decompiler options: packimports(3)
    // Source File Name:   BdgtMaster.java
    package publicity;
    import java.io.*;
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class BdgtMaster extends HttpServlet
        public synchronized void service(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse)
            throws ServletException, IOException
            Object obj = null;
            String s3 = "";
            String s4 = "";
            out = httpservletresponse.getOutputStream();
            String s = "";
            String s1 = "";
            String s2 = httpservletrequest.getParameter("option");
            s3 = httpservletrequest.getParameter("branch");
            s4 = httpservletrequest.getParameter("publicity_code");
            String s5 = httpservletrequest.getParameter("budget");
            try
                String s6 = "0";
                String s7 = "0";
                String s8 = "INSERT INTO Budget_Master(Branch,Publicity_Code,Budget_Alloted,Work_In_Progress,Amount_Paid) VALUES (?,?,?,?,?)";
                String s9 = "update budget_master set old_budget = budget_alloted where branch='" + s3 + "' and publicity_code=" + s4;
                String s10 = "UPDATE Budget_Master set budget_alloted=" + s5 + " where Branch='" + s3 + "' and publicity_code=" + s4;
                datasource = "jdbc:odbc:budget";
                con = DriverManager.getConnection(datasource);
                int i = con.getTransactionIsolation();
                con.setTransactionIsolation(2);
                con.setAutoCommit(false);
                if("new".equalsIgnoreCase(s2))
                    PreparedStatement preparedstatement = con.prepareStatement(s8);
                    preparedstatement.setString(1, s3);
                    preparedstatement.setString(2, s4);
                    preparedstatement.setString(3, s5);
                    preparedstatement.setString(4, s7);
                    preparedstatement.setString(5, s6);
                    preparedstatement.executeUpdate();
                    con.commit();
                    preparedstatement.close();
                if("update".equalsIgnoreCase(s2))
                    Statement statement = con.createStatement();
                    statement.executeUpdate(s9);
                    statement.executeUpdate(s10);
                    con.commit();
                con.setTransactionIsolation(0);
                /*htmlStart(out, "BUDGET MASTER");
                out.println("<p> </p><div align=\"left\">");
                out.println("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"50%\">");
                out.print("<tr>");
                out.println("<td width=\"50%\"><strong><small><font face=\"Tahoma\">Branch </font></small></strong></td>");
                out.println("<td width=\"50%\"><small><font color=\"#004080\" face=\"Tahoma\">" + s3 + "</font></small></td></tr><tr>");
                out.println("<td width=\"50%\"><strong><small><font face=\"Tahoma\">Budget Alloted </font></small></strong></td>");
                out.println("<td width=\"50%\"><small><font color=\"#004080\" face=\"Tahoma\">" + s5 + "</font></small></td></tr><tr>");
                out.println("<td width=\"50%\"><small><strong><font face=\"Tahoma\">Publicity Code</font></strong></small></td>");
                out.println("<td width=\"50%\"><small><font color=\"#004080\" face=\"Tahoma\">" + s4 + "</font></small></td></tr></table></div>");
                htmlEnd(out);
              con.close();
                httpservletrequest.getRequestDispatcher("/pages/serview/BdgM.jsp").forward(httpservletrequest,httpservletresponse);        
            catch(SQLException sqlexception)
                cleanUp();
                printSQLException(sqlexception, out);
            out.flush();
        public void init(ServletConfig servletconfig)
            throws ServletException
            super.init(servletconfig);
            try
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                return;
            catch(ClassNotFoundException classnotfoundexception)
                log("Couldn't load class sun.jdbc.odbc.JdbcOdbcDriver");
                throw new ServletException(classnotfoundexception.getMessage());
        static void printSQLException(SQLException sqlexception, ServletOutputStream servletoutputstream)
            throws IOException
            servletoutputstream.print("<b>SQLException</b>\n<p>\n\n");
            for(; sqlexception != null; sqlexception = sqlexception.getNextException())
                servletoutputstream.print("<b>SQLState:</b> " + sqlexception.getSQLState() + "<br>\n");
                servletoutputstream.print("<b>Message:</b> " + sqlexception.getMessage() + "<br>\n");
                servletoutputstream.print("<b>Vendor:</b> " + sqlexception.getErrorCode() + "<br>\n");
        private static boolean checkForWarning(SQLWarning sqlwarning)
            throws SQLException
            boolean flag = false;
            if(sqlwarning != null)
                System.out.println("\n *** Warning ***\n");
                flag = true;
                for(; sqlwarning != null; sqlwarning = sqlwarning.getNextWarning())
                    System.out.println("SQLState: " + sqlwarning.getSQLState());
                    System.out.println("Message:  " + sqlwarning.getMessage());
                    System.out.println("Vendor:   " + sqlwarning.getErrorCode());
                    System.out.println("");
            return flag;
        /*void htmlStart(ServletOutputStream servletoutputstream, String s)
            throws IOException
            servletoutputstream.println("<html><head><title>" + s + "</title></head>");
            servletoutputstream.println("<body topmargin=\"0\" leftmargin=\"0\" bgproperties=\"fixed\">");
            servletoutputstream.println("<div align=\"left\"><table border=\"0\" width=\"100%\">");
            servletoutputstream.println("<tr><td width=\"100%\" bgcolor=\"#DFDFFF\">");
            servletoutputstream.println("<font face=\"Tahoma\" color=\"#000000\"><strong>B u d g e t   M a s t e r - D e t a i l s   E n t e r e d</strong></font></td>");
            servletoutputstream.println("</tr></table>");
        void htmlEnd(ServletOutputStream servletoutputstream)
            throws IOException
            servletoutputstream.print("<hr>");
            servletoutputstream.print("</body></html>\n");
        String link(String s, String s1)
            return "<a href=\"" + s + "\">" + s1 + "</a>";
        public String getServletInfo()
            return "Display and SQL manipulate JDBC databases on the server.";
        public void cleanUp()
            throws IOException
            if(con != null)
                try
                    out.print("Closing database connection");
                    con.setTransactionIsolation(0);
                    con.close();
                    return;
                catch(SQLException _ex)
                    return;
            else
                return;
        public BdgtMaster()
        private Connection con;
        private String datasource;
        private String user;
        private String password;
        private String base;
        private ServletOutputStream out;
    plz tell me where im wrong...
    regards....a_joseph

    Hi,
    Sorry to say this but it'd be lot simple if we can avoid cross posting similar Queries.
    I'd appriciate if you can continue using with your post
    http://forum.java.sun.com/thread.jspa?threadID=5208928
    Hope there are no hard issues on this.
    REGARDS,
    RaHuL

  • How to display japanese charecters in the JSP page

    Hi,
    Below is my jsp page where i am trying to read the japan character from the properties file
    through the Resource bundle.
    ===============================================
    <%@page contentType="text/html" %>
    <%@page pageEncoding="UTF-8"%>
    <%@ page import ="java.util.*" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
         <title>JSP Page</title>
    </head>
    <body>
    <h1>JSP Page</h1>
    <%Locale locale = new Locale(request.getParameter("country"));
    ResourceBundle bundle = ResourceBundle.getBundle("com.sunit.regtool.resources.RegTool",locale);
    String namelabel =bundle.getString("userName");
    String passwordlabel= bundle.getString("password");
    %>
    <%=namelabel %>
    </body>
    </html>
    =========================================================
    In the above code i am getting the value of the country from request object i.e its value
    will be en for English ,ja for japanese etc.
    I am able to get the value from Resource bundle but when my country is japan
    i am not able to see the same japan characters in the browser when i get the JSP on the browser at runtime .
    It shows me " �����&#133;� &#136;�&#131;&#149;�&#130;��&#131;��&#131;��&#131;&#137;" where the charecters are different.
    But when i see in the properties file it is fine.
    Please help me what need to be done furher for this.
    Thanks,
    Kiran

    I think you need to install japanese language fonts in your browser.

  • Type casting problem in the JSP

    Hi,
    I am type casting an Object variable to a interface Variable. I am not getting any error if i have the same code in the servlet but i am getting ClassCast Exception if i have the same code in the Scriplets part of the JSP.
    The code is as follows
    String strKey = " SomeString";
    Context context = new InitialContext();
    java.lang.Object obj = null;
         obj = context.lookup(strKey);
         ContentBroker objCB = null;
         objCB = (ContentBroker)obj; // Error is happening here
    ContentBroker is an inteface.
    I have included the jar files of ContentBroker in the classpath.
    Can anyone please tell me how to eliminate this error.?
    thanks in advance,
    Saravanan

    In that case it's a classloader issue.
    Since the object is bound in the context, I assume that you have made the class available to your server, and you have the class in WEB-INF/classes or in a jar inside WEB-INF/lib.
    Since they're being loaded by two different classloaders, the classes are seen as different by the JVM, thus the ClassCastException.
    Try removing the class from the web-app and let us know what happens.
    BTW. Which servlet container are you using?

  • Precompile the JSP file

    I try to use the weblogic.jspc to precompile all the jsp file to :
              DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myse
              rver\jsp_servlet
              But when I visit the JSP page from browser, it seem like the weblogic
              compile it again
              Any help??
              peter
              

    Hi, David:
    Since this is 9.0.4, I would suggest you that you try the following,
    . create directories build, build/ear, build/ear/app
    . extract the ear to build/ear so that you have build/ear/app.war
    . cd build/ear/app and extract you app.war to build/ear/app
    . mkdir -p WEB-INF/classes
    . ojspc -srcdir WEB-INF/classes -dir WEB-INF/classes yourOtherOptions <list_of_your_jsp_files>
    . now you can repackage ear. As long as the jsp page implementation classes are in WEB-INF/classes or packaged in a jar under WEB-INF/lib, jsp engine will be able to use them if the main_mode is set to justrun in web.xml of the war file or the global-web-application.xml of oc4j installation.
    The main point here is to use the expanded structure to see if that will solve your problem. Other options includes upgrading to 9.0.4.2 (is 9.0.4.3 out?) or even 10.1.3, filing an oracle support ticket. Lastly, you may contact me directly.

  • Class Cast Exception in JSP of the component

    Hi,
      I am trying to call a web service from the JSP of the component.I have written the java code as a scriplets in the JSP. The problem i am facing is Class Cast Exception. The code is as follows
    String strKey = "wsclients/proxies/sap.com/CCMSContentBroker/com.sap.ccmscontentbroker.CCMSContentProxy";
    java.lang.Object obj ;
    obj = context.lookup(strKey);
    str1 = obj.getClass().getName();
    ContentBroker objCB= null; 
    objCB = (ContentBroker)obj; // getting error here
    ContentBroker is an web service interface. The same code is working if i write it in the component but not in the scriplet of the JSP.
    Can't we do the type cast in the JSP ?
    Cant we call the web services in the JSP?
    How to eliminate this Class cast Exception in my code?
    Thanks and Regards,
    Saravanan

    Hi Harini,
             Thanks for your reply. I have checked all the import statements in the JSP.The problem is in the Type casting of object <b>obj</b> to ContentBroker variable <b>objCB</b>.
    Are u saying typr casting is not possible in JSP or organising imports in the JSP.
    These are my imports statements in the JSP
    <%@ page import = "java.util.ResourceBundle" %>
    <%@ page import = "com.sapportals.htmlb.*" %>
    <%@ page import = "com.intel.ccmt.ccmscontentbroker.* "%>
    <%@ page import = "com.intel.ccmt.ccmscontentbroker.types.* "%>
    <%@ page import = "com.sapportals.portal.prt.contentconversion.XSLConverter" %>
    <%@ page import = "com.sapportals.portal.prt.component.IPortalComponentRequest" %>
    <%@ page import="java.io.File" %>
    <%@ page import="javax.naming.Context" %>
    <%@ page import="javax.naming.InitialContext" %>
    <%@ page import="javax.naming.NamingException" %>
    <%@ page import="java.util.StringTokenizer"%>
    Can u help me on rectifying this class cast Exception ?
    Thanks and Regards,
    Saravanan

Maybe you are looking for