Put a JSP page always on top

Hello everyone!
I'm trying to develop a jsp page that should stay on top of other windows, in other words, it should have a "always on top" property set to true.
If anyone knows how to do this I would apreciate any help cause this is an urgent matter that I need to solve.
Thanks in advance.
Best regards

Hello Everyone!
The answer to my doubt is this:
Use this function ShowModelessDialog refered on
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/showmodelessdialog.asp
Thanks a lot anyway

Similar Messages

  • How to make a JSP page always come from servlet

    Hi!
    Although ihave used "<%@ page session="true" %>" in some of my JSP pages, it can be accessed by just typing in the URL of that page in the browser.(After invalidating the session)
    I want that page to be accessed only if it is called theough a servlet..
    Plz help geeks!
    otherwise my applica'n is in for a serious hack!
    thankx in advance
    javed

    Set a flag (attribute) in session in your servlet, then forward/direct the request to your jsp. Test for that flag in your jsp, if it is not there then show error message to the users.
    Like this,
    String flag=session.getAttribute("isComingFromServlet");
    if(flag==null || !flag.equals("true")) {
    out.print("<h1>Sorry, you can't access this page !!!</h1>");
    return;
    }

  • Applet in JSP page

    Hello! I wrote an applet and try to put in jsp page in JDeveloper:
    <jsp:plugin type="applet" code="CompositeTest.class"
    width="400" height="400">
    <jsp:fallback>
    <p>Unable to load applet</p>
    </jsp:fallback>
    </jsp:plugin>
    and I copy the class file to folder where the JSP page is located. When I start Jsp page I have a message: "Applet not found"
    What I do wrong??? PLZ Help!
    BEST REGARDS

    Hi,
    I am not sure the JSP file, which resides in the public_html directory, is part of the class path of the running application. If you open the project properties, you can see where JDeveloper looks for Java classes. Try and extend this setting to include the public_hml directory (you can also try and just add the source as a library path (see library section))
    Frank

  • How can JSP pages be in WEB-INF?

    Hi, I read in a tutorial that anything in the WEB-INF folder is basically private to the outside world, meaning they cannot access it.
    I also read that JSP pages should be kept in the main folder of your application and any subfolders, but out of WEB-INF (which is for libraries, classes, and xml files).
    However, another tutorial has instructed me to put some JSP pages in the main application folder, and some results JSP pages in a subfolder of WEB-INF, and it still works!
    How is that so? The WEB-INF JSP pages are being accessed through a forward tag in my struts-config.xml file.

    users can't directly access WEB-INF, but your app can.
    just change the URL to point to the protected JSPs
    %

  • Unable to manage JSF tabSet in frame(jsp page)

    i am using frameset in jsp page and in top frame i m placing the jsp file which contains the JSF tabSet with 4 tabs and i have set the url proerty and target ='bottom" i.e the name of lower frame
    i am able to navigate the pages in lower frame but not able to keep focus for selected tab.

    Hi,
    You could try using page fragment instead of frames.
    There is a relevant topic on EA discussion.
    Topic :TabSet navigation on a page fragment
    https://feedbackprograms.sun.com/project/forum/thread.html?cap={3F4DA363-16D3-4D4C-920C-992ECB054B6D}&forid={CC6B8562-F896-4A44-ACB6-4684BDD05E19}&topid={DFA961CF-157A-4E7C-9BBC-FDB69D982E9E}
    Hope this helps.
    Thanks,
    RK.

  • How to Make simple JSP page running on TOMCAT 5.5.14

    Hi, Friends
    I have tried many to put test.jsp page in my webapps folder in tomcat installation directory and try to run http://localhost:8080/test.jsp but it will showing errors instead of running it.
    And will u provide me the basic and simple structure of creating the WEB-INF, src, web.xml, build.xml etc. etc.
    I am using my OS as WinXP prof. with sp2.
    also please post answer on mail. [email protected]

    Create a dir under webapps say "mydir"
    under this dir place your .jsp file and create WEB-INF directory too
    and run
    http://localhost:8080/test.jsp

  • How can I create an internal hyperlink in iWeb? Would like to put an interactive menu at the top of a page.

    How can I create an internal hyperlink in iWeb? Would like to put an interactive menu at the top of a page.

    Do you meant a link to one of your other pages or to a location on one of your pages?  If it's the latter those are called anchors and iWeb does not support them.  However, there are workarounds for that.  See this blog: How to use anchors in iWeb.  If you don't have a lot of widgets on the page it can work fairly well.
    OT

  • How to put Tool Tip in JSP page

    Hello.
    How can i put Tool Tip in JSP page and also html page.

    title="value"
    put this in all the tags whereever it is required

  • How to put Download Links on a Jsp Page?

    Hi,
    I am a student and I am working as an intern. This is my question:
    My boss wants me to put some download links(pdf and flash files) on to a jsp page. when a user clicks on the link, all the user info (i.e. name, filename, download time etc) should be stored in a database and then a pop up should appear asking user where you want to download the file.
    I have done most of the part but there is a problem. when a user "left click" on the link then it opens the PDF file in the browser. but if the user "right click and select save target as" then it brings up the box. My boss dont need the user to VIEW the file by left clicking it. I mean on both clicks a pop-up box should appear.
    one more thing to note is that, the PDF are not on the same server. I mean they do not have the same context path.
    Here is what I am doing:
    on the link page:
    sample
    on the other page (which stores information):
    // ... this is downloadfile.jsp
    response.setContentType("application/force-download");               
    String filename = request.getParameter("file");          
    String path = "http://www.domain.com/pdf/" + filename;
    bean.addDownloadDetails(session.getAttribute("email").toString(), filename, request.getRemoteAddr());  // save info in database
    response.sendRedirect(path);
    // ...any ideas or help is appreciated.
    Thanks.

    Straight to the question in the topic title: just use <a> links. But you already found that out. In the future please invent clear topic title covering the actual problem :)
    I have done most of the part but there is a problem. when a user "left click" on the link then it opens the PDF file in the browser. but if the user "right click and select save target as" then it brings up the box. My boss dont need the user to VIEW the file by left clicking it. I mean on both clicks a pop-up box should appear.Change the content disposition to "attachment" instead of "inline".
    one more thing to note is that, the PDF are not on the same server. I mean they do not have the same context path.
    Here is what I am doing:
    // ... this is downloadfile.jsp
    response.setContentType("application/force-download");               
    String filename = request.getParameter("file");          
    String path = "http://www.domain.com/pdf/" + filename;
    bean.addDownloadDetails(session.getAttribute("email").toString(), filename, request.getRemoteAddr());  // save info in database
    response.sendRedirect(path);
    // ...any ideas or help is appreciated.
    Thanks.Better obtain its InputStream by java.net.URLConnection and write it to the OutputStream of the HttpServletResponse. A redirect would create a brand new request, hereby dropping the current request and the response (so setting the content type makes really no sense).
    You can find some pointers in this FileServlet example: [http://balusc.blogspot.com/2007/07/fileservlet.html].

  • Put comments in jsp page

    hello,
    i write a jsp page and i want to put trace to see values during the execution. in java cde, i write "System.out.print();". is there something like that for jsp ? i don't want to write in the console but in my page.
    if anyone has a solution...

    If you what to hide comments in your jsp page:
    <%
       String myValue = "aValue";
    %>
    <!-- <%= myValue %> -->Then, if you take a look at your source, you'll see your info.
    Patrick

  • How do I put page number at the center of the bottom of page one and the rest of the page numbers at top right corner?

    How do I put page number at the center of the bottom of page one and the rest of the page numbers at top right corner?

    Put a section break at the bottom of page 1
    Then insert your page number in the footer of page 1.
    Go to page 2 and click in the body of the text;
    Inspector > Layout > Section > uncheck Use Previous Headers & Footers > click in Header on page > insert > Page Number
    Peter

  • WebCenter RIDC DataControl always redirects any JSP page to login page

    Hi
    I have created a Data Control which connects to the UCM data repository and created a plain JSP page to return the results. I have used RIDC Connection settings and authentication details are tested and they look fine to me.
    RIDC Socket Type: socket
    Server Host Name: localhost
    Content Server Listener Port: 4444
    Authentication: Identity Propagation
    Username/Password: weblogic/weblogic
    But when ever I ran the test JSP page, it always redirects the page to login page. For example: http://127.0.0.1:7101/RIDCDocumentManager-Portal-context-root/faces/oracle/webcenter/portalapp/pages/login.jsp
    Any suggestions?
    Thanks
    Khad

    Thanks for the details Yannick. The home.jspx works as expected. Thanks for that.
    I have got one more question on passing username through RIDC api.
    Via RIDC, how can I pass the UserName to the IdcContext object dynamically [IdcContext userContext = new IdcContext("weblogic");]. I mean how to retrieve the logged in user name for the person requesting the page instead of hardcoding the username. Below is the code fragment:
    // create the manager
    IdcClientManager manager = new IdcClientManager();
    // build a client that will communicate using the intradoc protocol
    IdcClient idcClient = manager.createClient("idc://localhost:4444");
    // get the config object and set properties
    idcClient.getConfig().setSocketTimeout(30000); // 30 seconds
    idcClient.getConfig().setConnectionSize(20); // 20 connections
    //create a simple identity with no password (for idc:// urls)
    IdcContext userContext = new IdcContext("weblogic");
    // create an identity with a password
    //IdcContext userPasswordContext = new IdcContext("weblogic", "idc");
    // get the binder
    DataBinder binder = idcClient.createBinder();
    // populate the binder with the parameters
    binder.putLocal("IdcService", "GET_SEARCH_RESULTS");
    //binder.putLocal("QueryText", parameter);
    parameter = getInputParameter();
    binder.putLocal("QueryText", "<qsch>" + parameter + "</qsch>");
    binder.putLocal("ResultCount", "20");
    // execute the request
    ServiceResponse response = idcClient.sendRequest(userContext, binder);
    // get the binder
    DataBinder serverBinder = response.getResponseAsBinder();
    DataResultSet resultSet = serverBinder.getResultSet("SearchResults");
    // loop over the results
    for (DataObject dataObject : resultSet.getRows())
    dataObject.get("dDocTitle");
    dataObject.get("dDocAuthor");
    dataObject.get("dInDate");
    System.out.println("Title is: " + dataObject.get("dDocTitle"));
    System.out.println("Author is: " + dataObject.get("dDocAuthor"));
    System.out.println("Author is: " + dataObject.get("dInDate"));
    }

  • AS3 how to put the buttons always on top of the external swf in the code below?

    how to put the buttons always on top of the external swf in the code below?  I am  beginner use to as3, can someone help me?
    thanks, for all!!
    var Xpos:Number = 110;
    var Ypos:Number = 180;
    var swf:MovieClip;
    var loader:Loader = new Loader();
    var defaultSWF:URLRequest = new URLRequest("swfs/eyesClosed.swf");
    loader.load(defaultSWF);
    loader.x = Xpos;
    loader.y = Ypos;
    addChild(loader);
    // Btns Universal function
    function btnClick(event:MouseEvent):void {
    removeChild(loader);
    var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf");
    loader.load(newSWFRequest);
    loader.x = Xpos;
    loader.y = Ypos;
    addChild(loader);
    // Btn listeners
    eyesClosed.addEventListener(MouseEvent.CLICK, btnClick);
    stingray.addEventListener(MouseEvent.CLICK, btnClick);
    demon.addEventListener(MouseEvent.CLICK, btnClick);
    strongman.addEventListener(MouseEvent.CLICK, btnClick);

    use:
    var Xpos:Number = 110;
    var Ypos:Number = 180;
    var swf:MovieClip;
    var loader:Loader = new Loader();
    var defaultSWF:URLRequest = new URLRequest("swfs/eyesClosed.swf");
    loader.load(defaultSWF);
    loader.x = Xpos;
    loader.y = Ypos;
    addChild(loader);
    // Btns Universal function
    function btnClick(event:MouseEvent):void {
    removeChild(loader);
    var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf");
    loader.load(newSWFRequest);
    loader.x = Xpos;
    loader.y = Ypos;
    addChildAt(loader,0);
    // Btn listeners
    eyesClosed.addEventListener(MouseEvent.CLICK, btnClick);
    stingray.addEventListener(MouseEvent.CLICK, btnClick);
    demon.addEventListener(MouseEvent.CLICK, btnClick);
    strongman.addEventListener(MouseEvent.CLICK, btnClick);

  • Putting pictures from jsp pages

    hi, i have been assigned a job to do in jsp....this is the first time i am dealing with jsp....
    my problem is to display images from jsp pages, images will come from the url
    http://media.XXXXXXXX.com/books/ISBN#.jpg, where # is the isbn no.
    here is the code which i am using...
    <c:if test="${result.isbn != null}">
                        <div class="search-result-attributes">Image:$(http://media.XXXXXXXXXXX.com/books/ISBN#.jpg) </div>
                   </c:if>any idea....how can i make a variable of #, to display books with different ISBNs.
    Also, the # can be calculated by "result.isbn"
    any help guys....???
    Edited by: ping.sumit on Jun 24, 2008 8:03 PM

    any idea....how can i make a variable of #, to display books with different ISBNs.
    Also, the # can be calculated by "result.isbn"I don't understand what you're talking about.
    At least I can tell you that HTML offers you the <img> tag for displaying images. E.g.
    <img src="${result.isbn}.jpg" />

  • Importing classes into JSP page

    Hi There,
    I am new to this and here is my problem.
    I am doing a shopping cart tutorial and trying to get a JSP page to import two classes :
    <%@ page language="java" contentType="text/html"
    import="ShoppingBasket,Product"
    errorPage="errorpage.jsp" %>
    I get :
    C:\jakarta-tomcat-4.1.30\work\Standalone\localhost\_\shop_0002dbasket_jsp.java:7: '.' expected
    import ShoppingBasket;
    ^
    C:\jakarta-tomcat-4.1.30\work\Standalone\localhost\_\shop_0002dbasket_jsp.java:8: '.' expected
    import Product;
    ^
    C:\jakarta-tomcat-4.1.30\work\Standalone\localhost\_\shop_0002dbasket_jsp.java:50: cannot resolve symbol
    symbol : class ShoppingBasket
    location: class org.apache.jsp.shop_0002dbasket_jsp
    ShoppingBasket basket = null;
    The classes compile ok . I read that instead of comma seperating the classes it might be better to put them in a package but I do not know the correct syntax or where to put the package if this is correct.
    The tutorial is from this book and the shopping cart source code is here.
    http://www.ineasysteps.com/books/?1840781971
    Any help appreciated
    Jim Ascroft

    A little beginners explanation of classpaths and packages is in order here. A package works like an extension of the name to keep class names unique. For example, if you have a ShoppingBasket.class and you want to use my ShoppingBasket.class along with it the two class names must be unique or different from one another in some way. Yours could be in com.yourcompany package and mine could be in org.mycompany package. When you reference you Shopping backet in your code you would use com.yourcompany.ShoppingBasket and when you reference mine in the same code you would use or.mycompany..ShoppingBasket. Shorthand for the class can be used by adding an import at the top of the referencing java file. An import is like saying "hay compiler, whenever you see ShoppingBasket look for it in the com.mycompany package!" That brings us to the next point. The package name must always be reflected in the directory structure of the .class file location in order to be found. Your shopping basket must be stored under the directory com/yourcompany if it is in package com.yourcompany. That directory structure should extend off of a classpath entry in order to be made available to the JVM. Classpath entries point to folders, jar or zip files that contain packaged and unpackaged classes. So If you have a classpath entry that points to C:\jakarta-tomcat-4.1.30\webapps\ROOT\WEB-INF\classes then all unpackaged classes (classes compiled from a .java file without a package statement) will be pulled directly out of this folder. Also, packaged classes will be pulled out of they're packaging directory structure, which should be located in this folder. You can have as many classpath entries as you want but the classes will be pulled out of the first entry that they can be found under. Now with a web app you don't normally fuss with the setting of classpaths since they are already predefined and configured for you. You just need to know to put all of your class files under the WEB-INF/classes directory in the root of your web app. You do, however, still need to know how they work. You also should know that any jar files should be placed in the lib folder of your web app and not under the classes folder.
    Getting back to your immediate problem, why are you getting class not found errors? Well this stems from what was said above. To fix these kind of problems follow these steps:
    1st off, find out exactly which .java file the .class file was compiled from. (This can be a problem in some environments where multiple copies of source hang around.) This step may involve a recompile and paying close attention to the compiler arguments. In an IDE there should be a setting or dialog that lets you find out exactly where it's placing the .class files created from you source.
    Next, determine what package the .class file should be in by examining (and maybe changing) the package statement at the top. For example, if you intended to put ShoppingBasket in the com.bloodoo package make sure it has a package "com.bloodoo;" statement at the top.
    Next recompile the .java source and move the packaging directory structure into the classes folder of your app. (This would be WEB-INF/classes under the root of the web-app.) For example if ShoppingBasket.class was compiled into the com/bloodoo folder under C:\Program Files\YourIDE\projects\yourproject\output then copy the com folder out of the output folder and into the WEB-INF\classes folder.
    Next examine the calling code (JSP or servlet .java code) and make sure it references the problem class out of the right package. For example, yourpage.jsp should reference the class com.bloodoo.ShoppingBasket and not ShoppingBasket if the shopping basket is deployed in package com/bloodoo. This gets tricky with jsp usebean tags because the desire is to use shorthand but I'm not sure if that works with the use bean tag. Make any modifications and recompile if necessary.
    Lastly, as a rule of thumb avoid wild-card imports (eg. import com.package.*) because they are a common cause of confusion especially when refactoring package names and resolving these kind of issues.Those steps should allow you to resolve 85-90% of your class not found issues. The other 10-15% are rare cases involving the use of custom classloaders, the Java extension mechanism and/or classpath trickery. If you still have questions/problems post back.
    Cliff

Maybe you are looking for

  • Need help in creating JCD in JCAPS 5.1.1

    Hi, While creating JCD , If we choose existing implementation of webservice option, then as a second step of it, we need to select an existing webservice operation to implement. For e.g if i am going to read from file i will select Fileclient->receiv

  • Remove danger of using a request parameter in a JSP:include

    HI, I have a basic include where the filename is controlled by a request parameter: <%String fileName = request.getParameter("param1")+".jsp"; %> <jsp:include page="<%=fileName%>" flush="true" />This works fine but I am rather worried about the secur

  • Wireshark capture on access port displays different vlan traffic

    Hi Guys, i have a nexus 4001i Blade Center Switch where i have a server connected in mode access to a particular vlan. when i use wireshark on this port, i see different traffic conversations of different servers in different vlans which seems strang

  • "Critical Errors in Setup" Need help! Setup won't work!

    Ok, when I was installing the trial version of Adobe After Effects CS4, a message came up and "Internet Explorer" saying; "Critical Errors in Setup. Please see setup log for details". First off, what/where is the setup log? And, how to fix this probl

  • Anamorphic setting and chapters lost during export

    Hi, I know "not another anamorphic thread"... but I cant find my solution anywhere so any help would be much appreciated. Ok let me explain what happend from start to finish. Recently I have been capturing anamorphic SD footage off of DV tapes using