Get the Window Name by jsp

Hello
How can I get the Name of the Window with JSP
If I use a JavaScript I can Set a Name by
window.open('jex5.jsp','mywindow');
A New Window Open and
The Window Calls on 'mywindow'
On JavaScript i can read the Name by
Parent.name
But how I can get the Name with JSP
Trank you
Sid

Hi Sid,
You can get the detail of the browser from JSP using request.getHeader("User-Agent");
But you cannot get window name using JSP. I can be done only via Javascript.
Thanks & Regards,
Murali.
===========

Similar Messages

  • How to get the Share Name in windows using java...

    Hi....
    i want to get the Share names of the shared folders in windows.
    I used the command line tool "net share" to get it .But i can't extract the
    share names correctly if the share name contains space.
    Regards
    ~ Suresh G

    Of course there is, if the user running it has "root" privileges (actually root userid or groupid if the permissions have been changed), but if you are going to do that, then why use the lookup at all, simply hardcode it in the program.
    If it is because you don't know how to do it, then I would say to find someone you know who can show you how. That is infinately easier than trying to explain the structure and purpose of the hosts file to you here.

  • Can we get the porlet name of which the JSP file is resided ?

    Hi all,
    Can we get the portlet name of which the JSP file is resided?
    Sincerely,
    Alan.

    you could try the following code
    <%@ page import="com.bea.portal.model.Portlet"%>
    <%@ page import="com.bea.portal.model.PortletState"%>
    <%@ page import="com.bea.portal.render.servlets.jsp.PortletRenderHelper"%>
    PortletState portletState = PortletRenderHelper.getPortletState( request);
    String portletName = portletState.getDisplayName();
    "Alan Liu" <[email protected]> wrote:
    Hi all,
    Can we get the portlet name of which the JSP file is resided?
    Sincerely,
    Alan.

  • How to get the query name from  portal report name

    Hi Experts ,
    I am given a portal report Name and asked to do changes to the queries of that ,so how do i get the query name ,
    Thanks in Advance
    Nitya

    Hi Nithya,
    You can get the technical name by selecting the role in the portal where the report is enclosed you will generally find the report in description then identify the report you are looking then double click on that you will get a window pop-up in that you will have details tab there click on the details the your Query technical name will be displayed.
    EX : zqry_w001 Then replace W with Q and seach in analyser or Designer.
    Regards
    Amar.

  • Hi. Downloads has changed; I cannot open or download attachments. I don't get the window that asked "Open" or "Save" either.

    When I receive an attached document (Word or OpenOffice), I click on it. I get a Norton Antivirus window that says it's clear and I click on the yellow Download button. Then nothing happens. 1. I don't get the windows that asked Open? or Save?. 2. The documents are not in the Download folder. 3. I reset the downloads to my Documents folder - nothing appears there either. 4. I search my iMac with the file names, and no results show up.

    Hi carrieinholland-
    I would recommend reading this Support article on troubleshooting Opening/Download issues:
    [[Managing file types]]
    Hope that helps.

  • How can I get the path name and rename it?

    I Hope someone who knows more about automator than I can help me out here. What I'm trying to do is get the path file name, while also changing part of it. Here is my example:
    I can get the path name with this "Get Path" script I found http://automatorworld.com/archives/get-path/all-comments/
    It does half the job so I just need to tweak it but know how. When I get the path this is what I'll get: /Volumes/Public/Creative Services/Campaigns/2010/NCDDiv-32CDV Upgrade/NCDDIV-32Versions.xls
    I need to remove the beginning part"/volumes" to "file://///nhmanmkt01"
    This is so I can send the path from our sever where we keep our files to my windows friends so they can open it.
    Thanks for any help you can provide!

    ok, make the following workflow.
    1. get selected finder items.
    2. run shell script
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #ADD8E6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    for f in "$@"
    do
    echo "$f"|sed 's%/Volumes%file://///nhmanmkt01%'
    done</pre>
    set the script to accept input as arguments
    3. copy to clipboard
    save it as a finder plugin.

  • How do I get the file names on a customized proof sheet?

    How do I get the file names on a customized proof sheet?

    Actually, I really don't know what you say.
    But when you see the properties of a file in Windows, you can see there are two file size. One is called "SIze" and the other one is called "Size on disk".
    Therefore, I would like to know the size on disk but not just the size.

  • How is it posible to get the File name, size and type from a File out the H

    How is it posible to get the File name, size and type from a File out the HttpServletRequest. I want to upload a File from a client and save it on a server with the client name. I want to conrole before saving the name, type and size of the file.How is it posible to get the File name, size and type from a File out the HttpServletRequest.
    form JSP
    <form name="form" method="post" action="procesuploading.jsp" ENCTYPE="multipart/form-data">
    File: <input type="file" name="filename"/
    Path: <input type="text" readonly="" name="path" value="c:"/
    Saveas: <input type="text" name="saveas"/>
    <input name="submit" type="submit" value="Upload" />
    </form>
    proces JSP
    <%@ page language="java" %>
    <%@ page import="java.util.*" %>
    <%@ page import="FileUploadBean" %>
    <jsp:useBean id="TheBean" scope="page" class="FileUploadBean" />
    <%
    TheBean.doUpload(request);
    %>
    BEAN
    import java.io.*;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.ServletInputStream;
    public class FileUploadBean {
    public void doUpload(HttpServletRequest request) throws IOException
              String melding = "";
              String filename = request.getParameter("saveas");
              String path = request.getParameter("path");
              PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter("test.java")));
              ServletInputStream in = request.getInputStream();
              int i = in.read();
              System.out.println("filename:"+filename);
              System.out.println("path:"+path);
              while (i != -1)
                   pw.print((char) i);
                   i = in.read();
              pw.close();
    }

    Thanks it works great.
    Here an excample from my code
    import org.apache.commons.fileupload.*;
    public class FileUploadBean extends Object implements java.io.Serializable{
    String foutmelding = "geen";
    String path;
    String filename;
    public boolean doUpload(HttpServletRequest request) throws IOException
         try
         // Create a new file upload handler
         FileUpload upload = new FileUpload();
         // Set upload parameters
         upload.setSizeMax(100000);
         upload.setSizeThreshold(100000000);
         upload.setRepositoryPath("/");
         // Parse the request
         List items = upload.parseRequest(request);
         // Process the uploaded fields
         Iterator iter = items.iterator();
         while (iter.hasNext())
         FileItem item = (FileItem) iter.next();
              if (item.isFormField())
                   String stringitem = item.getString();
         else
              String filename = "";
                   int temp = item.getName().lastIndexOf("\\");
                   filename = item.getName().substring(temp,item.getName().length());
                   File bestand = new File(path+filename);
                   if(item.getSize() > SizeMax && SizeMax != -1){foutmelding = "bestand is te groot.";return false;}
                   if(bestand.exists()){foutmelding ="bestand bestaat al";return false;}
                   FileOutputStream fOut = new FileOutputStream(bestand);     
                   BufferedOutputStream bOut = new BufferedOutputStream(fOut);
                   int bytesRead =0;
                   byte[] data = item.get();
                   bOut.write(data, 0 , data.length);     
                   bOut.close();
         catch(Exception e)
              System.out.println("er is een foutontstaan bij het opslaan de een bestand "+e);
              foutmelding = "Bestand opsturen is fout gegaan";
         return true;
         }

  • To get the Application name

    Hai experts,
    I have a requirement as follows:
    I have a component named as ZComponent which has 3 view.
    i am creating 2 applications for the component named as zappl1 and zappl2.
    zappl1 starts from first view itsef where as zappl2 starts from second view.
    I have an ALV table in the second screen.
    it shud not be editable for ZAPPL1 and shud be editable for ZAPPl2.
    Inorder to that i need to get the application name at runtime in the WDDOINIT METHOD of the second view.
    Is there any method to get the application name.
    If so plz help me as soon as possible.
    IF any doubts revert back to me ASAP.
    Cheers,
    Madhu

    Hi Madhu,
    You do not need the application name for this. The following would work:
    1. Create one more inbound plug to your window (interface view), other than the existing plug (default). The second plug should also be an interface plug of type "startup".
    2. Create a node in your component controller with an attribute denoting the editable property.
    3. Map this node in the window's context.
    4. Your window will have 2 plug handlers, for each startup plug. Inside one handler, set the editable attribute to true and in the other, set the same to false.
    5. Map the same node in the view controller also, and in your view layout, bind the "read only" attribute of your table to the node attribute.
    6. Create a new application, zappl2 and in the default plug, specify the name of the second plug.
    Launch both applications, your control should be editable in one and read only in the other.
    Regards,
    Nithya

  • Can you get the file name of the current executing TSQL script?

    Can you get the file name of the current executing TSQL script? I wrote entries to a generic log file and would like to include the script name.

    Okay, So What you can do is
    1. Read get the version from your  database and redirect it to a text file(SQLCMD outout can be directed to text file using -o option or windows redirection operator >)
    2. Now you can read this value from the text file either inside a batch file or a powershell script and decide what operations you can do. 
    Satheesh
    My Blog |
    How to ask questions in technical forum

  • How to get the user name from Single Sign On Process?

    Post Author: sasikumar
    CA Forum: Authentication
    I am loging in Single Sign On Page. Then it goes to one JSP which lists out some links including InfoView link. While clicking InfoView link, I need to pass user name with the url for authentication. How and where can I get the user name?

    Care to be more specific what you mean with single sign-on? There are numerous ways this can be done.
    Just how you get the authenticated o/s user from within an Oracle session, depends on just how the actual authentication to Oracle was done in order to create that Oracle session.
    E.g. dealing in Oracle with a LDAP server is very different than dealing with a NT Primary/Secondary Domain Controller using o/s authentication, than dealing with a Java-based application server that does it own thing, etc.

  • How to get the tag name into javascript

    Hi,
    Is there any way to get the tag name into java script when user clicks on.
    For eg: if i use netui:anchor tag, how can I pass the tag id to the javascript when user clicks on the link using onClick attribute. This tag id needs to be evaluated at run time.
    Ex code is given below.
    function fun1(){
    // how to get the tag name;
    <%
    String st="hai";
    %>
    <netui:anchor action="x" onClick="fun1()" tagId="<%=st%>>
    I want to get this tagId (st) to the java script function fun1() when user clicks on this link. How can I do that. can you please help in this issue.
    Thanks,
    Satish.

    Hi,
    You can set the java variable as a js variable at run time:
    <script>
    var anchorName = <%=getNetuiTagName%>;
    function fun1()
    var anchorID = getNetuiTagName(anchorName);
    alert(anchorID);// this will show the rendered ID for the anchor specified
    </script>
    this works because the jsp variable will be rendered before the js.
    Thanks,
    Steve

  • Getting the page name

    Hi,
    I have a JSP, which is redirected to a servlet. I want to know from which page the request to the servlet is coming from, but am not able to figure that out. If you could please guide me for the same.
    Thanks and Regards,
    Sapan..

    Hi,
    I found the way out.The page name is in the header of the request object. You can get the page name by giving request.getHeader("referer").
    Thanks and Regards,
    Sapan.

  • Get the window title?

    I want to use the method AVWindowGetTitle(AVWindow window, ASText text) to get the window's title, but it even cannot be built successfully. When building the project, it always says "AVTArraySize(_cdecl *)(AVWindow, char *, AVTbufferSize)': too few arguments for call". But it's explictly, I called AVWindowGetTitle but not AVTArraySize... In our SDK's samples, we also call AVWindowGetTItle, why it cannot pass in my code?
    The purpose I get the title is Adobe sdk does recongnize pdf file name in Chinese, so I want to have a try to get the title of the window. If any other way we can get the Chinese name of the file, that would be better.
    Thanks a lot.
    Thanks
    Daniel

    You don't mention what version of the SDK you are using with what compiler on what OS platform.
    Acrobat 9 and X SDKs (which are the only ones supported at this time) work just fine with Chinese filenames.  What API calls are you using that do not?
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Thu, 24 Nov 2011 05:00:01 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: get the window title?
    get the window title?
    created by aaaawerewedsv<http://forums.adobe.com/people/aaaawerewedsv> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4044745#4044745

  • C Programming: How can we get the filesystem name for a given file-path?

    C Programming: How can we get the filesystem name for a given file-path?
    Say I have a filepath=/mnt1/file1
    Using some OS API like stat, can I get the Filesystem /mnt ?
    Thanks in advance,
    -V

    Enter the command up to the point of entering the file path and add a space, then drag the file into the terminal window. It will fill out the path.
    If you need to go further into the contents of the Application package, you can continue with /Contents...
    Another way is to start typing and then hit Tab to auto-complete. It will stop where it can't determine the next letter.
    So, type /App tab and it will fill in /Applications. Type a / and start with the name of the app, then tab and it should complete. Continue till you have the correct path.
    Spaces will be replaced with \<space>, so, App Store would end up as /Applications/App\ Store.app

Maybe you are looking for

  • Virtual KF in a Query

    Hi Guys, I have some questions about virtual key figures/Characteristics . Could anyone help me, please? In a query you can change the columns and delete some of those . If you do that the "query" has to recalculate the value of key figure column bec

  • The padlock under 'Directory Utility' isn't functioning

    Hello everyone. I am the only one who will use my MacBook (running 10.6.2), and my account is 'admin'. If I need to enable the root user, I know I should go to: (1) System Preferences (2) Accounts (3) Login Options (4) Network Account Server: Join...

  • MRP Scheduling with a material with multiple production versions scrap rate

    Greetings all. I have a problem with MRP scheduling.  How do you account for different loss rates or scrap rates on a material because of multiple versions of a material that are in production.  For example, we have an item.  There are two differen w

  • Edge Animate and PhoneGap Build - audio problems

    I am using EA to build an app and using PGB to build it. I have been using EA's built in audio code to play my sound and uut works great, in a browser. I then built a test app with PGB and the animation and interactivity and links all work great, but

  • InDesign CS2 files not creating .idlk lock file

    We are currently experiencing a random issue where sometimes InDesign files that have been opened and saved say they are Read Only and have to be dumped out to the desktop and replaced on the server in order to update the changes.  I have noticed tha