file « Page « JSP-Servlet Q&A





1. how to reference a java .class file from a JSP page?    stackoverflow.com

I have the JSP file (/page.jsp) in the root of my app directory. I want to use this class located in /WEB-INF/classes/Helper.class. I tried using the JSP page import statment ...

2. Javascript - JSP page won't run .js file    stackoverflow.com

I have javscript code in a .js file which validates the text fields but it won't work when it's an external file. I mean when the code is separated from the ...

3. web page not shows new file content    stackoverflow.com

I'm trying to load an html page from a jsp file. like this. I give the file name to the jsp from a controller and using dojo I call another controller ...

4. How do I call this Createquery.java file from a jsp page that has OpenLayers integrated in it?    stackoverflow.com

package database;


    import java.io.IOException;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    import database.Dbconnect;

    public ...

5. How to create JSPC file for my jsp page    forums.netbeans.org

Hello, I'm in the process of learning to write and create servlets and jsp pages. I'm using a tutorial and in the tutorial they refer to JSPC which displays the compiled ...

6. How to Launch a JNLP File from JSP Page    coderanch.com

First, javacorp isn't any closer to our policy than Scorpion King so, please read and follow the naming policy. Remember, the JNLP file is simply a text file with a special extention and mime type. If you wish to dynamically generate this, you need to map the extention to the resource. You'll need to map the .jnlp extention to a servlet ...

8. JSP page creates a temp file in Internet temporary files PROBLEM    coderanch.com

When my jsp page gets invoked a second time it is using the same pdf file in internet temp files if I delete the file from internet temp files it is ok it makes a new request for the new file. Is there a way to get rid of cache in the header I do set the no cache I use ...

9. Simple "dir" command in DOS file structer JSP server via JSP page    coderanch.com

I've done some searches here and on google for information about this. It seems, in general, that there is no way to return a "dir" query back to where it was called. There is much information on program execution, but whenever the "dir" command is mentioned, the thread stops with no solutions. ...... On a side note, the reason why I ...





10. Change file name ending for JSP pages    coderanch.com

It would be ill-advised to map the JSP's to some extension that is known to be 'static' (such as .html). Trust the voice of experience! We did this at one of my former jobs and it caused no end of problems. Turns out there are 'helpful' servers out there (AOL servers included) that will cache html pages. It resulted in clients ...

11. save a Web page to an MHT file using jsp    coderanch.com

hi I have a requirement to save a Web page to an MHT file using jsp I got it in asp but I dont know how to convert into jsp this is some ASP code I have to convert this into jsp ------------------------ASP starts here------------------------------------- <%@ Language=VBScript %> <% ' ***************************************************** ' ASP script to save a ...

12. Automatically generate a JSP file in another active JSP page    coderanch.com

A jsp is just a text file so, as long as your app is running as an exploded file system, there is no reason that you couldn't use the classes in java.io.* to write whatever text you like to a file within the webapp. Of course, you could also have one test page that get's all of its questions from a ...

13. Accessing a zip file through a JSP page.    coderanch.com

I have a zip file in my JSP application for clients to access (password-protected by tomcat). I also have a JSP that will detect the last time user tries to access, how many times they have accessed, etc. before it redirects user to the zip file. But this is the ideal case. There's no way to prevent user from accessing the ...

14. accessing .dcr files from jsp pages    coderanch.com

Maybe you should elaborate on you question! It is not really clear what you want to do! I don't know anything about Director so I do not know what those files do but if you want to read them (and extract some data from them) in your servlet or jsp you can do that using plain File IO. If you would ...

15. calling java files from jsp page    coderanch.com

From the looks of it you are not importing the java file you want to use. Here is how you import that file. Here is an example of importing the Vector class <%@ page language="java" import="java.util.Vector" %> After that the class is available to be used by the JSP. Put the import statement at the top of your JSP page. Joey ...

16. Calling a DLL file from a JSP page??    coderanch.com





18. Displaying .bmp file on the jsp page.    coderanch.com

I would like to display a bitmap (.bmp File) on a jsp page. Servlet is able to read the BLOB from databse and byte stream is written successfully to response. But at the jsp side nothing get displayed. In servlet code I have done the outstream.flush(); and res.flushBuffer(); Also stream is closed. I have tried both following ContentType res.setContentType("image/x-ms-bmp"); res.setContentType("image/bmp"); At ...

20. Access a flash file using a JSP page.    coderanch.com

Welcome to JavaRanch. What do you mean by "access the .swf file"? Are you just trying to display the SWF on the HTML page that gets created by the JSP, or are you trying to implement some interaction between the HTML page and the SWF file? Or maybe even between the JSP page and the SWF file?

21. how to call a java file from jsp page?    coderanch.com

24. <%@page errorPage=""%> not Working.    coderanch.com

25. Executing a batch file from a JSP page    go4expert.com

26. Calling a IReport Jasper Report file from a JSP page    forums.oracle.com

Good afternoon all, I am a JAVA programmer working in National Atomic Energy Enstitue in Ankara, Turkey. My superior asked me to design a web page and use IReport tools for reporting. I downloaded IReport 3.5, created my report, build it and now I have ".jasper" file. Now, how can I call this report from a JSP page? How can transfer ...

27. how to send a file from servlet to a jsp page    forums.oracle.com

hi every one i am new to servlet programming i am creating a servlet that reading one of my text file, and replacing some pattern inside the file by some text and then converting it to a Html file(creating inside the tomcat dir) . But i dont want to store it rather i want to send it directly this file to ...

28. I should create a odt file in a JSP page.....    forums.oracle.com