How to include a jsp file from other site

Hi all,
I met a problem in my recent work. I need to include another seperate jsp file into my current jsp file, but the file is located at the different site (different physical server). Is there a way to include?
Cheers
Chris

Thanks tolmank, but our weblogic server didn't support jstl, so when I try to using <c:import.. > it doesn't work. If I use <jsp:include page="..."/>, nothing display on the page.

Similar Messages

  • How to call a .jsp file from Applet

    Could any one guide me how to call a .jsp file from a Applet using action Event.
    Thanks

    http://javaalmanac.com/cgi-bin/search/find.pl?words=URL+post

  • Include directive to include a JSP file from a JAR file

    I have an Eclipse project in which I have placed a JSP file in the package structure with the rest of my code. This is in fact only a code snippet page, not a full blown JSP file.
    I have a second project that is a Dynamic Web Project in Eclipse that incorporates the first project as a JAR in the /WEB-INF/lib directory.
    In this project I have a JSP file and I want to include the JSP file embedded in that JAR file.
    How do I do that?
    I'm thinking the only real solution is to rewrite the snippet portion as a custom tag.

    The JSP fragment page in question is actually a HTML form page. It is a form to be used specifically by a particular servlet. That is why they are "bundled" together in the same project, in the same package structure.
    I have multiple web applications that I want to include that form/servlet, so it gets added to these projects in the /WEB-INF/lib folder as a JAR library. But I don't want to recreate the form over and over again for each application. It would be nice if I could write a JSP page that wraps the fragment using an include directive to bring that fragment into the new page.
    So to do that with any other fragment I would write:
    <%@ include file="/WEB-INF/jsp/SOME_FORM.jsp" %>
    which works great if my fragment page is in the /WEB-INF/jsp subfolder. But if I want to access the JSP fragment as it is bundled in a JAR file, this:
    <%@ include file="/WEB-INF/lib/FORM.jar/SOME_FORM.jsp" %>
    doesn't work so good. It's just all wrong.
    I was wondering how I could just write one include statement to get what I need. There are work-arounds galore, but I thought if I could get this working it would be the simplest solution overall.

  • How to view the JSP file from JBuilder 2007?

    Hi,
    I want to know that how to preview the JSP page from jbuilder 2007. whenever i am changing the jsp code, i would like to see the reflection in preview page. but i couldn't find that tab in jbuilder. Is JBuilder not supporting the preview feature ?? :-(
    awaiting for your immediate response.
    thanks
    pannar

    it's more likely because you lack even a basic understanding about both JBuilder and JSP.
    If you have even a modicum of intelligence the documentation is enough to get you up and running, but don't expect it to be a how-to document that holds your hand every step of the way through implementing an entire application from scratch.
    And no, we're not going to write something like that for you.

  • How to include a jsp file in servlets and javabeans

    Hi to all..I have a jsp file which contains some database connections and I would like to include in that file in my servlets and javabeans.What coding can i use?Can show me sample coding.

    Hi to all..I have created a javabean storing the
    database connections. How do i include and call that
    bean in my servlet and javabeans?Can pls show me some
    sample coding?I am new to servlets and beans.The same way you do with normal Java Classes. If you are new to Java, I suggest you go to http://java.sun.com/docs/books/tutorial/index.html and look through the first couple of tutorials.
    As a note, it is best to put all your objects into packages, especially if you use JDK 1.4 or higher.

  • How to call a jsp file from an servlet and access the jsp file objects??

    Hi everybody
    I have an jsp file where it contains a vector object with some data and I have a servlet that needs to access this vector object . How can my servlet call for this jsp page and get the vector object. ?
    then an applet will be calling this servlet to get some other object created with the data contained within this vector object...so each time Applet ask the servlet for the object the servlet need to call for this jsp page somehow
    My main question is the communication servlet-jsp
    please if u have any clue I will appreciate it
    thanks

    Hi
    There are several ways to share objects between JSPs/Servlets.
    You can share objects by putting them in the request-in which case the objects lifetime is limited by that of the request, Another way is to store them in the session, againg the lifetime is limited by the lifetime of the session. To have objects that have to persistent over the application life-span use the servletContext to store the objects.
    Any good tutorial should help you get started. Please see the link below for a tutorial on Servlets/JSPs
    Note: Local variables in the JSP cannot be shared with other components as their scope is limited to that particular Page/Servlet.
    Link: http://java.sun.com/docs/books/tutorial/servlets/
    Good Luck!
    Eshwar Rao
    Developer Technical Support
    Sun microsystems inc
    http://www.sun.com/developers/support

  • How to read a text file from other machine???

    I have a text file located in local machine. I use th e code below to retrieve data from that particular text file.
    String realPath     = (String)getServletContext().getRealPath("");
    BufferedReader holsFile = new BufferedReader(new FileReader(realPath + "/webpages/holidays.txt"));My question is , how could I retrieve the records from the tsxt file if the file is located in another machine or webserver?
    Thanks for advanced.

    It's ok to be new.
    The answer is yes. (But I'll let you look in the javadoc to see which package it's in).
    Also it may be worth understanding that there is no such thing as a "function" in java, operations are termed "methods". To go further, you should realise that URL is a class not a "function" or method. The parentheses mean you're calling the constructor.
    HTH
    /k1

  • How to call one .sql file from other .sql

    I am trying to call no of .sql files from one .sql file.
    But it gives me error in SQL*PLUS that unable to open file.
    Suggest me solution.
    Thanks
    Chanda

    Are the sql files in the current directories where sqlplus has been started ?
    If not, did you give the full path name for the called sql files when calling them from sqlplus ?
    Could you give us the complete sqlplus command that you use to call your files and the physical location of the called files with the exact error message ?

  • How can I include a jsp file in other jsp from different applications?

              Hi,
              I'd like know if it´s possible to include jsp or servlet from different applications.
              

              Thanks Deepak but I think you don´t understand me.
              I would like the include works like a normal include. I have a jsp in my application
              and , when the client requests this jsp, in the jsp should be added the result
              of the other jsp ejecution that belong to other application in the same domain.
              Is this possible?
              Thank you very much.
              Deepak Vohra <[email protected]> wrote:
              > A Jsp from a different application is included with a relative url to
              >th=
              >e Jsp.
              ><%@ include file=3D"relative url" %>
              >
              >A Jsp could be included with request parameter.
              > <jsp:include page=3D'<%=3D request.getParameter("incFile") %>' />
              >
              >javilla wrote:
              >
              >> Hi,
              >>
              >> I'd like know if it=B4s possible to include jsp or servlet from differe=
              >nt applications.
              >
              

  • How to view icloud numbers file from other ipad (which one is on another iCloud)

    Hello.
    I have a problem. On one ipad I have account in icloud and iWork instaled. I have done a tale in numbers and now i want to view it from another ipad (which have also another icloud account) So how i can connect from one ipad to another (via WebDav, iCloud or another?) to view a live changes on main ipad?
    Best regards,
    Thanks

    try this
                File inputFile = new File("C:/textfile.txt");
                File outputFile = new File("D:/textfile.txt");
                FileInputStream fis = new FileInputStream(inputFile);
                FileOutputStream fos = new FileOutputStream(outputFile);
                int c;
                while ((c = fis.read()) != -1)
                  fos.write(c);
                fis.close();
                fos.close();

  • How do I access iPhoto files from other programs (i.e. PhotoShop Elements)

    From within many programs, specifically PhotoShop Elements or Adobe Bridge tonight, I navigate to "iPhoto Library" and can not access the files within the library to use in these programs. I can get there from within Finder, just not other programs. This is extremely frustrating...can someone please help?

    Of course - it is a database and you must use the correct access methods
    and for a photo editor like PSE you also need to explain what you are trying to do
    IF -- you want to edit photos within the iPhoto library then simply set PSE as the external editor in the iPhoto preferences - then you edit and save (not save as) and the database is automatically updated -- if you want to choose iPhoto or PSE as the editor then after setting PSE as the external editor set the external editor back to in main window and now normal editing will be in iPhoto but by right clicking on a photo in iPhoto you get a menu allowing you to use PSE for it
    IF - you are generally asking and want the general answer - all open (or attach) dialogue windows have the media browser in the lower left - look under media ==>pictures ==> iPhoto but if you use this method you can not just return photos to iPhoto - you must save as and then import into iPhoto
    click here for a general discussion on accessing your photos safely and correctly.
    LN
    Message was edited by: LarryHN

  • How to run java source files from other java files??

    hello all,
    i need to run 3 to 4 .java files (first.java,second.java,third.java) from one file.
    i tried the
    Runtime.getRuntime().exec(cmd); but here cmd must be an exe file.
    NOTE THAT i need to run the first.java file ,second.java file each time to generate their .class files(ie I NEED TO COMPILE THEM ALL TIMES AND THEN RUN THEM)
    PLZ. help me if this can be done,
    warm regards,
    Vishal.

    One way to do this is to put all your commands into a batch file (this is Windows?) try unix shell otherwise. Anyway here's an example .bat file called cmplrun.bat:
    @echo off
    javac -classpath . TestCase*.java
    java -cp . TestCase01
    java -cp . TestCase02
    java -cp . TestCase03Then the Java pgm can look like this:
    import java.io.*;
    public class RunProcess {
      public static void main(String[] arg) {
        try {
          Process myProcess;
          myProcess = Runtime.getRuntime().exec("cmd /c cmplrun");
          String s = null;
          DataInputStream in = new DataInputStream(
                               new BufferedInputStream(
                                   myProcess.getInputStream()));
          while ((s = in.readLine()) != null) {
            System.out.println(s);
          System.exit(0);
        catch (IOException e) {
          System.out.println("Exception: "+ e);
          System.exit(-1);
    }Just one way to do this, all caveats apply and HTH;
    ~Bill

  • How to send/recieve vcf-files from other phones?

    Hi,
    THIS works on every phone known to man, the ability to send and recieve addresscards(vcf-files) between phones. But not with a high end phone like iPhone,
    what gives? anyone?
    tom

    Sending through email, yes but the question is how to send vcf-files to another phone directly and not through email. There is as you know mobiles out there that does not utilize email as a mean of communicating and even worse sending vcf-file to iphone users with to success. This is done today by using a well known format called MMS. If you have not heard about it, you must be working at Apple since they ignore to add MMS-support in their/your iPhone.
    A app called squirellMMS fixed that in early hacked iphones. But now? who knows.
    Anyone?

  • How to get the EXCEL file from web site (b2b) into SAP system?

    Hi Guys,
    I have a requirement of saving the excel file that has been send to SAP system from a B2B site.
    Currently there is a call to the SAP system from the B2B site via an RFC function ,this RFC functions gets the excel file as an input to the SAP system,i need to store this Excel file in the SAP  (as an excel file itself).
    How can i acheive this?
    Please suggest.
    Thanks ,
    Swati

    You can extract a date portion and  assign to the variable and then compare with GETDATE()
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • HT1391 How can I copy new songs from other sites back to my windows folders?

    I just bought an ipod and downloaded itunes on it and my lap-top, (where I use windows media player.) Today I bought some songs from another website on my computer, but I couldn't find them in the "my music" folders, I signed on to itunes and found them there. I checked, and my preferences for that site hadn't been changed; how can I copy those songs back into windows? Itunes copied my entire library from my computer...

    I'm replying to myself:
    I figured this out; just go to the itunes folder, open it, and then move the song, or album, into that artist's folder in "my music." I thought about doing this, then I read the cautions about renaming, or moving, tracks and hesitated. It worked just fine.

Maybe you are looking for

  • How do I change the name associated with my device?

    My iphone5 carries my husbands name and I would like it to reflect my name. Any way to do this wise people of the internet?

  • Design universe

    Hi, I have a small doubt that. i am new t design so then i occurs a problem that...... i have a 4 FACT tables and 5 Dimensions table by how we can design the universe these data..... and the same dimensions is available to all fact tables........ Reg

  • Java(TM) Platform SE Binary not responding - Cisco CIMC KVM console

    I have 4 PCs,  one HP Probook450g1 - WORKS one HP Probook 4540s  - NO WORK (used to work) one ECS Generic  -  NO WORK VMware Win 7 guest of ECS - WORKS I have literally spent a week troubleshooting this, researching, rebuilding computers, installing

  • Cannot burn CDs after installing Tiger

    I recently installed Tiger on my G4. When I try to copy a CD in Toast Lite, I get a message reading, "The volume...could not be unmounted. All open files and programs on this volume must be closed first." However, I have no trouble burning individual

  • [solved] Xmonad periodically forgets keyboard shortcuts

    I'm running Xmonad + Xmobar. Sometimes, seemingly at random, Xmonad refuses to respond to certain shortcuts. I can't open a terminal, open dmenu, and possibly others. Others, such as switching layouts, changing workspaces, and restarting Xmonad work