How to configure .ocx file in a JSP page

Hi i am doing a project which involves data retrival from a Swipe card. I am going to retrive the id from the card and this data has to be sent to a JSP page. After retriving the ID from the card, we access the database and retrieve all the information required. The latter part is done thru JSP, STRUTS and EJB.
The swipe card reader is programmed in VC++ and an OCX file is created. Now i need to know how to configure this OCX file into Java technology thru web.
If anyone could help me, i'll be more thankful.

out.println("<br/>"); or use of
tag

Similar Messages

  • How to Generate a Java file for a JSP Page

    Hi ,
    I am using weblogic11 .
    I am working on a JSP page which nearly consists of 4000 lines of code.
    I need to debug the file , but weblogic server is not generating the java file for the JSP pages .
    Please let me know how can i genertae Java file for the jsp pages ??

    JSPs are compiled into servlets automatically and those classes are stored in WEB-INF/classes folder. Servlet engine handles servlets.

  • How to include a .class file in a jsp page

    hi everyone,
    i know the syntax as:
    <%@ include file = "filename.class" %>
    then at run time the server could not find the class file
    if i use,
    <%@ page import = "FileName.class" %>
    then also the same problem persists
    & if i use
    <jsp:include page = "Relative address"/>
    the problem still remains as it is...
    please help me out...i am working on developing an EJB application in which client interacts with server's Stateful session bean through a jsp page...it is necessary for me to include the home interface class file in my jsp page.
    P.S. do not suggest me to include the class file in a package & then use
    <%@ page import = "packageName.ClassFileName" %>
    i
    Edited by: Ankit_JIITU on 6 Jul, 2008 1:55 AM

    Ankit_JIITU wrote:
    i have already included the remote interface class file by <%@ page import = "University.RemoteInterfaceName" %>in my jsp page ...
    if i try to make a new package called test & then include my home interface in that package...i need to import University.*to generate the class file of my home interface ; but the class file generation is not taking place as i am getting the error..
    "package University does not exist".How can i overcome this problem. The package University, which you are trying to import, must be in the classpath. If you removed it then you will have to add it back.
    i have tried my best..but tell me if there's any possible way of including a class file in the jsp page without involving a package.No, there isn't.
    If not,then pls help me to generate the class file of my home interface within a package called test.Read the New To Java Tutorial and understand how packages work.
    >
    i am assuming that u have a deep knowledge of developing EJB applications.

  • How to configure the file adaptor so as to send an sample XML message.

    Hi all ,
    I had done the configuration and now i want to test the scenario but i dont now how to do that ?.
    how to configure the file adaptor so as to send an sample XML message to the integration server ?.
    I am totally new to XI.
    please help me out how to do it.
    its an urgent.
    Thanks,
    shuja

    Hi,
    I think you should post your question Process Integration (PI) & SOA Middleware.
    Regards
    Message was edited by:
            Shehryar Khan

  • I used tag to show PDF file inside my JSP page, It is working properly in IE but nothing shows in Mozilla. What should I do?

    I've used to display a PDF file inside my JSP page. It is working fine in IE. However, many of users of this application are using Mozilla and the platform is Ubuntu so it is vital that the file is shown in Mozilla as well. How can I solve this problem.
    == This happened ==
    Every time Firefox opened
    == I run my jsp page

    Such conditional code will only work in IE and not in other browsers like Firefox.
    You can ask questions and advice about web development at the mozillaZine Web Development/Standards Evangelism forum.<br />
    A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    The helpers at that forum are more knowledgeable about web development issues.<br />
    You need to register at the mozillaZine forum site in order to post at that forum.<br />
    See http://forums.mozillazine.org/viewforum.php?f=25

  • Write an image file to a jsp page

    Hy,
    I've writen a small program, which draws a chart. The program normally creates a .png file of this chart which it stores on the file system and then read the png file and display the chart on a jsp page. Now, what I want is that, instead of writing the png file on the filesystem, i write it on a jsp page and then read the file from that jsp page. (i.e Its the jsp page which contains the image file).
    Can anyone please explain to me how to achieve this and if possible the codes also
    thanks in advance

    Hi, gulshan21
    JSP pages are intended to send text type content (though in the most of the containers this approach seems works fine). The best thing is to make a servlet, like this:
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.awt.*;
    import javax.imageio.*;
    import java.awt.image.*;
    public class GraphicServlet extends HttpServlet {
      public void doGet(HttpServletRequest request,
                                       HttpServletResponse response)
                               throws ServletException, IOException {
        response.setContentType("image/jpeg");     // Or "image/png"
        OutputStream os = response.getOutputStream();
        ImageIO.write(getImage(100, 100), "PNG", os);      // Sends the image
        os.close();
      private synchronized BufferedImage getImage(int width, int height) {
        BufferedImage img = new BufferedImage(width, height,
                                                                                    BufferedImage.TYPE_INT_RGB);
        Graphics g = img.createGraphics();
        // Here you draw the image with the graphics methods
        g.dispose();
        return img;
    }Salud
    David

  • Writing XML file from a jsp page

    how can i write a xml file from my jsp and store the values and after sometime, for example when the user clicks on the submit button, i check the values from xml file and compare those values from the data base.
    it means both writing and reading xml file from a jsp page...
    urgent help needed......thanks

    You need some API like XSL or JDOM to read data from/to XML file
    you can get a best tutorial from
    http://www.javaworld.com/javaworld/jw-05-2000/jw-0518-jdom.html
    and
    http://www.javaworld.com/javaworld/jw-07-2000/jw-0728-jdom2.html
    after reading both articals you will be able to do both the tasks

  • How do i use Connection pool in JSP pages

    Hey everyone,
    I am using a connection pool in my web application. I am using DbConnectionBroker from Javaexchange.com. It has a class that creates a connection pool available for the servlets. I am trying to figure out that how to use connection pool within the JSP pages if I want to connect to the database. In the servlets i am using DBConnectionBroker pool = (DbConnectionBroker) getServletContext().getAttribute("dbPool") to get database connection. How Can i use this in JSP page to get a db connection.
    Thanks

    If the reference to the connection pool is already stored as an ServletContex attribute, try:
    <jsp:useBean id="dbPool" scope="application" class="com.javaexchange.dbConnectionBroker" />
    <%
    Connection con = dbPool.getConnection();
    %>

  • Uploading a file in a jsp page

    Hii Javaites
    I am developing an application in which i need to upload file from a jsp page, right now i am using tomcat can anyone tell me the code for uploading a file.
    Thanking in Advance

    Hi,
    For uploading file from jsp:
    1) Goto javazoom.com, then download latest version for upload the files.
    2) Extract the zip & thay giving four jar files
    they are:
    i)uploadbean.jar
    ii)struts.jar
    iii)fileupload.jar
    iv)cos.jar
    put all this jar in lib of u r web application
    ex:
    C:\jakarta-tomcat-5.0.25\webapps\URWEBAPP\WEB-INF\lib\
    3) Set it in class path
    4) create one jsp with file option<input type='file' name = 'somename'>
    5) In action page(next page)
    <%@ page language="java" import="javazoom.upload.*,java.util.*" %>
    <%@ page errorPage="error.jsp" %>
    <jsp:useBean id="upBean" scope="page" class="javazoom.upload.UploadBean" >
    <jsp:setProperty name="upBean" property="folderstore" value="c:/uploads" />
    </jsp:useBean>
    Set the folder where u want upload the particular file.
    MultipartFormDataRequest mrequest = new MultipartFormDataRequest(request);
    Hashtable files = mrequest.getFiles();
         UploadFile file = (UploadFile) files.get("somename");//Give name u r given in the previous page.
         String fileName = file.getFileName();     
    upBean.store(mrequest, "userFile");
    follow this steps it works fine.
    regards
    DRA

  • Displaying pdf file in a jsp page...

    hi,
    I want to display a pdf document in a jsp page. i got that pdf file from a servlet class(MVC Architecture) through session. now my problem is to display that pdf file in my jsp page. can anyone give me a idea to solve this problem..

    hi,
    i used that code in scriplets. Actually my problem is I got one pdf file from session and i stored that file in a File object. the code is ..
    File pdfDocument = (File) session.getAttribute(CommonConstants.EBILL_PDF_DOCUMENT);
    now i have to display this pdf file in jsp..

  • How we can generate dynamic menu in jsp page

    Hi all,
    how we can generate dynamic menu in jsp page.
    Thanks
    Manjinder

    by reading more about them on the web or in a good book, OR BY HIRING SOMEBODY TO DO SO. ;)

  • HOW to send a value to another jsp page

    HOW to send a value to another jsp page, like user name in one jsp page to another jsp page

    In the most simplest form...
    // pageA.jsp
    <html>
    <body>
    <form action="pageB.jsp" method="post">
    <b>First Name:</b> <input type="text" name="FNAME" value="Joe">
    <input type="submit" value="Submit">
    </form>
    </body>
    </html>
    // pageB.jsp
    <html>
    <body>
    <b>Name:<b> <%=request.getParameter("FNAME")%>
    </body>
    </html>

  • How to view pdf file in java/jsp?

    Hello Everybody,
    Any one help me how to view pdf file in jsp using java application.
    I have pdf file c:\app.pdf.
    How can i display the pdf file.
    Please help me.................
    Thanks

    Hello,
    You can use the below code, but i am not sure how far is this a startard way of doing it.
    # <%
    # ServletOutputStream servletOutputStream = response.getOutputStream();
    # File reportFile = new File("C:\\Tomcat 5.0\\webapps\\TestApp\\myfile.pdf");
    # FileInputStream fis = new FileInputStream(reportFile);
    # byte[] bytes= new byte[128000];
    # int count=fis.read(bytes);
    # try
    # response.setContentType("application/pdf");
    # response.setContentLength(bytes.length);
    # servletOutputStream.write(bytes, 0, bytes.length);
    # servletOutputStream.flush();
    # servletOutputStream.close();
    # }catch(Exception e){}

  • How to create a xml file from the jsp page?

    I'm a beginner of the develop xml,my question like this,
    there has a jsp page,some parameters in it,I wanna get the parameters and create a xml file,so,what parser method should I use?
    And how to create a new xml file,when the file haven't exist at first?
    pls give some code,thanks.

    a ggod link for u http://www.theserverside.com/resources/article.jsp?l=JSP-XML2

  • How to configure jar files in BAT file

    hi to all .I have one doubt. how to configure the no.fo jar files in BAT file.
    can any one help me
    thanks

    sorry
    i want to set the class path for all jar files .those are in some folder.so I want to set the class path to all jar files from MOS-DOS.
    for i have done like this(provided bellow) and name as jarfiles.bat.
    set CLASSPATH=
    "C:\Documents and Settings\Administrator\Desktop\FORUM\jarfiles\hibernate2.jar";"C:\Documents and Settings\Administrator\Desktop\FORUM\jarfiles\servlet-api.jar";"C:\Documents and Settings\Administrator\Desktop\FORUM\jarfiles\poi-scratchpad-3.0-rc4-20070503.jar";"C:\Documents and Settings\Administrator\Desktop\FORUM\jarfiles\commons-collections-2.1.1.jar";"C:\Documents and Settings\Administrator\Desktop\FORUM\jarfiles\poi-contrib-3.0-rc4-20070503.jar";"C:\Documents and Settings\Administrator\Desktop\FORUM\jarfiles\poi-3.0-rc4-20070503.jar";
    is it correct way.
    can u give me clear idea on this

Maybe you are looking for

  • Duplicate invoice posting due to archived accounting documents

    Hi, Duplicate invoice posting is allowing against the below two Invoice reference nou2019s In transaction MIRO. 00082 and 00072. After investigation I have found that these invoice reference nou2019s are used in 2002 for accounting documents 33001304

  • Refer external Jars

    Hi All, Is there a way in which one could refer to external jars through the manifest of a jar file. For example, i have the following directory structure:- product | |- bin | | | |- myproduct.jar | |- lib | | | |- resource1.jar | |- resource2.jar No

  • WCCP on lower end switches

    Hi - I'm searching for a lower end switch that supports WCCP. According to the feature navigator the 3550 is the only one that supports wccp. The only 3550 still available is the DC version, for which you can only get the SMI version and not the EMI

  • Videos stop downloading at 10mb    please help

    2 different videos stop at 10mb and will not go any further. Any ideas?

  • Change order of comments - bring to front / send to back

    Hello. Is there any way to order comments, such as the bring to front or send to back commands that are used in Word, AutoCAD, PDF Xchange etc? I need to get my comments in front of the various arrows and things that I have scatterered around my draw