Getting name of jsp file.

i have a jsp file calling another jsp file. how do i get the filename of the first jsp file? It has to be obtained at runtime.

Ive been looking into the same problem, whilst it is possible to get the path / current working directory, I have not found a way to get the filename.
I think you are going to have to pass the name as a parameter from the first page.

Similar Messages

  • Droplet - getting name of dropped file

    This post does not need answering, as I have already solved the problem described. I have put it here in case it might help someone else save a bit of time. However, feel free to make comments and observations for further enlightenment of myself and others who are grappling with various aspects of AppleScript.
    Recently, I decided to learn to use droplets and open handlers. In my first attempt, I set out to modify an existing script which prompted the user to choose a file which is then processed in various ways. My aim was to drop the file on the new droplet version of the script, with the droplet identifying the file automatically, and have it run as before from there onwards. So far, through trial and error and a fair bit of internet searching, I have been able to work out most things in a reasonably short time. One that took me a while involved getting the name of the file which is dropped onto the droplet - the file name could be anything, but the script needed its name for the various things which happen in the script.
    I quickly discovered that a droplet can quite happily and easily give a list of the names of files inside a folder which is dropped onto it. When it comes to just one single file, it took a bit of work.
    I started off with something like this (with a few variations):
    (the display dialog bit is there to show if I got exactly what I wanted - it's not necessary for the correct running of the droplet, but droplets don't have "Result" and "Event Log" available for seeing what's happening)
    +on open Dropped_File+
    +tell application "Finder"+
    +set NameOfFile to name of Dropped_File+
    +display dialog NameOfFile+
    +end tell+
    +end open+
    There was usually an error message such as: Can't get name of {alias "Macintosh HD:Users:username:Desktop:filename.txt"}, or another one about not being able to make the acquired information into the right data type. Generally I was getting the complete pathway of the file, but couldn't separate out what I wanted from the rest of it.
    As part of my looking for a solution, I tried duplicating the file and getting the name of the copy. Success, in the sense that I could get the name of the copy.
    +on open Dropped_File+
    +tell application "Finder"+
    +set CopyOfFIle to duplicate Dropped_File to desktop+
    +set NameOfCopyOfFIle to name of CopyOfFIle+
    +display dialog NameOfCopyOfFIle+
    +end tell+
    +end open+
    After more experimentation I found the "info for" command (in StandardAdditions), and ended up with the following successful droplet:
    +on open Dropped_File+
    +tell application "Finder"+
    +set NameOfFile to (name of (info for Dropped_File))+
    +display dialog NameOfFile+
    +end tell+
    +end open+
    I hope this saves somebody some time. About a third of my scripting attempts are usually assisted unknowingly by someone else who has been trying something similar and, having succeeded, posted their results online for others to benefit from.

    Hi Pierre,
    I tested both at the same time with the following code:
    +on open Dropped_File+
    +tell application "Finder"+
    +set Name1OfFile to name of item (item 1 of Dropped_File as alias)+
    +display dialog Name1OfFile+
    +set Name2OfFile to name of (item 1 of Dropped_File as alias)+
    +display dialog Name2OfFile+
    +end tell+
    +end open+
    Both versions gave the desired result - just the name of the file - whereas when I had tried using "as alias" (obviously not in the same place and not using "item 1 of") I had received error messages. From memory, I think I had tried "name of (item Dropped_File) as alias".
    I "fiddled" with your suggestion a little, and found that the following (omitting the "item" and "item 1 of") also works:
    +on open Dropped_File+
    +tell application "Finder"+
    +set Name1OfFile to name of item (Dropped_File as alias)+
    +display dialog Name1OfFile+
    +set Name2OfFile to name of (Dropped_File as alias)+
    +display dialog Name2OfFile+
    +end tell+
    +end open+
    It looks the correct placement and usage of "as alias" did the trick.
    Thank you very much for taking the time to examine the problem and come up with a solution which should work equally well under both System 10.4 and 10.5.
    Message was edited by: Steven Jones

  • Want to edit web.xml page to give name of jsp file

    I want to organise some files in web application so thus want to edit the web.xml page.
    What is the tag to give a name to a JSP page?
    Below is the web.xml page that I have tried but it does not work
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
        "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
         <servlet>
              <servlet-name>processpage</servlet-name>
              <servlet-class>processSystemlogin.jsp</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>processpage</servlet-name>
              <url-pattern>/processpage</url-pattern>
         </servlet-mapping>
    </web-app>

    The element <servlet-class> is reserved for servlets and refers to classes in /WEB-INF/lib or /WEB-INF/classes of your webapp. You do not need to name your jsp(s) in this manner. Just keep them one level above /WEB-INF .
    I want to organise some files in web application so
    thus want to edit the web.xml page.
    What is the tag to give a name to a JSP page?
    Below is the web.xml page that I have tried but it
    does not work
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web
    Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
         <servlet>
              <servlet-name>processpage</servlet-name>
              <servlet-class>processSystemlogin.jsp</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>processpage</servlet-name>
              <url-pattern>/processpage</url-pattern>
         </servlet-mapping>
    </web-app>

  • Getting names of all files in a directory.

    import java.io.*;
    import java.util.*;
    public class dir{
         public static void main(String args[]) throws IOException{
              //BufferedReader in = new BufferedReader(new FileReader(args[0]));
              PrintWriter out = new PrintWriter(new FileWriter("dir.txt"));
              File file = new File(args[0]);
              //FileFilter filefilter = "log";
              Vector x = new Vector();
              int vlength;
              x = getDirectoryContent(file);//,filefilter);
              vlength = x.size();
              for(int i=0;i<x.size();i++){
                   out.println(x.elementAt(i));
              out.close();
         public static Vector getDirectoryContent(File file){//, FileFilter fileFilter){
              Vector v= new Vector();
              if (file.isDirectory()) {
                   File[] content = file.listFiles();//fileFilter);
                   for (int i=0; i<content.length; i++){
                        v.addElement(content);
                   }//for
              }//is directory
              return v;
         }//getDirectoryContent
    That is the code that I am using, what I am trying to do with it is read all the files in a directory. So I can open them and calculate all the data in all of the files at the same time.
    These are the file names that are in the directory when I run the program.
    L0519013.log
    L0331001.log
    I have the code out put the file names in a file called dir.txt
    after running the program this is what I get in the output file.
    [Ljava.io.File;@70ccc4b2
    [Ljava.io.File;@70ccc4b2
    [Ljava.io.File;@70ccc4b2
    Any clue waht this means?
    also I am passing in the director as args[0]

    if possible as well...
    I could not get the FileFilter to work, could not get the syntax down to get it to work when I was initializing it so for the moment it is remed out. all files in the given directory will be of type .log so there really is no need for the FileFilter. But any help on how to include that in the code would be greatly helpful.
    Thankxs
    Korbin

  • How to get  value on jsp file from ActionServlets class

    Hi All,
    I am facing problem in action servlets class into Struts, I am able to get the value on jsp file from action class with the help of session scope but i want to another method for it , so how i can solve the problem.Plz help me
    Thanks......... in advance

    I got a way out to access the attribute, i feel it is
    <jsp:usebean id="myRack" class="settings.Rack"/>
    <c:foreach var="book" item="myRack.books">
    </c:foreach>
    I am not able to check if this is correct or not because myRack.books is not having any value set by me in the request scope. How do i get instance of Rack class set by another page in the current request? I can get the value if i use scriptlet but i dont want to use scriptlet.
    I am continiously trying, if I get an answer, I shall post, else pls somebody guide.

  • How to get name of batch file/shell script that starts program?

    I don't think there's a way to do it, but I'm asking the question anyway...
    of course, the startup script could pass its name as a parameter to the Java program, but I was wondering if the information could be determined "directly," via Java code. The idea is to allow your Java program to modify the startup configuration specified by your startup shell script.
    For example, a "startup configuration" menu item would pop up a dialog box that would display- and allow you to change- the startup parameters, and then let you write the changes back to the script file.

    There are always some ways to do things.
    I guess for your case, you need to go through JNI and have a native program to back track the Process ID of who started who. Never done that but I guess should work.
    But a more natural way to do this is to have your startup configuration stored in an xml file or a properties file inside your classpath.
    --lichu                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Get name of a file

    I have a full filename information (directory + file extension) and I would like to have only the filename without directory without extension. Is is possible with LabWindows
    For instance,
    I have c:\test\text1.txt and I would have text1
    Thanks 

    To exclude the extension you can do the following:
    if ((nc = FindPattern (FileName, 0, -1, ".", 0, 0)) > 0) FileName[nc] = 0;
    FindPattern is part of the Formatting and I/O Library
    Edit: written while Wolfgang was giving the same response 
    Message Edited by Roberto Bozzolo on 06-07-2010 12:33 PM
    Message Edited by Roberto Bozzolo on 06-07-2010 12:34 PM
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • [b]jsp file naming conventions[/b]

    I have heard that if name any jsp file with some capital letter it can create some problem
    Is it avoidable to have any capital letter in jsp file name?
    For example should I use login.jsp or Login.jsp ? (Which one is advisable?)
    Please suggest me.
    Thanks
    Nitin

    I have had JSPs with capital letters and have had no problems with them on Tomcat 5.0, not sure if there would be problems with other servers, but I doubt it...
    It comes down to convention. I prefer the all lower case because it makes typing the URL into the addressbar easier. But that is just me. (I also tend to give the application WAR files a capitalized name, like /MyApp/login.jsp but AFAIK, there is no reason to do it this way...)

  • 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 pull path name from a file upload window

    Hello everyone!
    I have encountered the following problem with the following JSP code:
    <form method="post" action="filename.jsp">
    Upload JAVA program:
    <input type=file size=20 name="fname" accept="java">
    <input type=submit value="go">
    </form>
    <%
    String s = "";
    if (request.getParameter("fname") != null)
    s = request.getParameter("fname")
    %>
    The value of s is alway the filename. However I want to get the full path in addition to the filename, so that I can read the file. Does anyone know how to get the pull name of the file?
    thanks a lot in advance,

    Dear Sir,
    thanks a lot for your reply. Please let me explain what I intended to do: I want to upload a file from the local machine and then read the content of the file. Therefore I need to the fullpath of the filename like /var/local/file.java instead of file.java. The latter is what I got.
    The problem I have with your code is that the function like "request.getServerScheme()" is not recognized. Maybe is it because I didn't install servelet package? I only installed javax package btw. Also my application runns on Tomcat server if this could give you some information. The error message I had is as follows:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 36 in the jsp file: /addExercise.jsp
    Generated servlet error:
    [javac] Compiling 1 source file
    /usr/local/jakarta-tomcat-5.0.12/work/Catalina/localhost/tutor/org/apache/jsp/addExercise_jsp.java:133: cannot resolve symbol
    symbol : method getServerScheme ()
    location: interface javax.servlet.http.HttpServletRequest
    url = request.getServerScheme()
    ^
    An error occurred at line: 36 in the jsp file: /addExercise.jsp
    Generated servlet error:
    /usr/local/jakarta-tomcat-5.0.12/work/Catalina/localhost/tutor/org/apache/jsp/addExercise_jsp.java:136: cannot resolve symbol
    symbol : method getServerScheme ()
    location: interface javax.servlet.http.HttpServletRequest
    + ((("http".equals(request.getServerScheme()) && request.getServerPort() != 80)
    ^
    An error occurred at line: 36 in the jsp file: /addExercise.jsp
    Generated servlet error:
    /usr/local/jakarta-tomcat-5.0.12/work/Catalina/localhost/tutor/org/apache/jsp/addExercise_jsp.java:137: cannot resolve symbol
    symbol : method getServerScheme ()
    location: interface javax.servlet.http.HttpServletRequest
    ||("https".equals(request.getServerScheme()) && request.getServerPort() != 443))
    ^
    An error occurred at line: 36 in the jsp file: /addExercise.jsp
    Generated servlet error:
    /usr/local/jakarta-tomcat-5.0.12/work/Catalina/localhost/tutor/org/apache/jsp/addExercise_jsp.java:139: cannot resolve symbol
    symbol : method getServletConfig ()
    location: interface javax.servlet.http.HttpServletRequest
    + "/" + request.getServletConfig().getServletName()
    ^
    An error occurred at line: 36 in the jsp file: /addExercise.jsp
    Generated servlet error:
    /usr/local/jakarta-tomcat-5.0.12/work/Catalina/localhost/tutor/org/apache/jsp/addExercise_jsp.java:140: cannot resolve symbol
    symbol : variable path
    location: class org.apache.jsp.addExercise_jsp
    + "/" + path
    ^
    5 errors
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:128)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:413)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:453)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:437)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:555)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

  • File Name from JSP not shown although attached

    Hi all,
    I have written a JSP to attach files. The file is attached and I can see the file size , but for some reason the file name does not show up. Any reason why?
    My code in the JSP to attach files is:-
    <td><input id="attachment" type="file" <f:fieldName att="fileHolder.fileHolders.file"/> value="" ></td>
    I have a JSP to attach a file and then a BPM presentation to show that file.
    Is that a problem?
    Do we need JSPs only?
    The file size is also not a problem because the max. file size in studio is 5MB and I am running this code in studio and attaching files less than 5MB.
    I have just copy pasted the JSP found at this location
    http://www.4shared.com/get/wuHzQ0fj/FileChooserDemo.html
    into my process?
    It works in Dan's process but not in my process?
    Why is that so?
    How can I get the name of the file attached in my process?
    Edited by: user8766631 on Jun 20, 2011 4:49 PM
    Edited by: user8766631 on Jun 20, 2011 5:23 PM

    Finally resolved the error..
    It seems that file_filename is a KEYWORD and cannot be changed..
    so the two attributes in the object should be of exact name to make sure your file is attached with the right file name.
    1) file
    2) file_filename
    If we write fileName instead of file_filename, it will not work.
    Where is the documentation on this?
    Oracle BPM documentation really is bad.. They need to improve their documentation.

  • How to get the weblogic.httpd.session.timeoutSecs value in a JSP file

    Hi,
              We are using Weblogic 5.1 SP8. We set weblogic.httpd.session.timeoutSecs=900 in the weblogic.properties file. How can I get this value in a JSP file if I don't use java.util.Properties to parse the properties file?
              Can I use session.getValue(sessionName) to get it? If so, what is the session name for this property?
              Thanks.
              Frank
              

    I think something like this should work:
              T3ServicesDef services = T3Services.getT3Services();
                   services.config().getProperty("weblogic.httpd.session.timeoutSecs");
              Frank Yu <[email protected]> wrote:
              > Hi,
              > We are using Weblogic 5.1 SP8. We set weblogic.httpd.session.timeoutSecs=900 in the weblogic.properties file. How can I get this value in a JSP file if I don't use java.util.Properties to parse the properties file?
              > Can I use session.getValue(sessionName) to get it? If so, what is the session name for this property?
              > Thanks.
              > Frank
              Dimitri
              

  • Is it possible to get control of the .SWF files in JSP files

    Hi All
    In my web application, I got 4 swf buttons which are created by flash and they are embedded in the jsp's. Each button perform the navigation to other page.
    this is the jsp file.
         <table width="100%" border="0">
                  <tr>
                    <td width="2%" height="26"> </td>
                    <td width="31%"> <object classid="clsid:...." codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="22">
                        <param name="BASE" value=".">
                        <param name="BGCOLOR" value="">
                        <param name="movie" value="button1.swf">
                        <param name="quality" value="high">
                        <embed src="button1.swf" width="100" height="22" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" base="." ></embed>
                      </object> <font size="-1" face="Arial, Helvetica, sans-serif"> </font></td>
                    <td width="67%" class="sitemapgy">*Add*  </td>
                  </tr>
                  <tr>
                    <td height="26"> </td>
                    <td><object classid="clsid:..." codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="22">
                        <param name="BASE" value=".">
                        <param name="BGCOLOR" value="">
                        <param name="movie" value="button2.swf">
                        <param name="quality" value="high">
                        <embed src="button2.swf" width="100" height="22" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" base="." ></embed>
                      </object> </td>
                    <td class="sitemapgy">*Edit* ;</td>
                  </tr>
                  <tr>
                    <td height="26"> </td>
                    <td><object classid="clsid:..." codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="22">
                        <param name="movie" value="button13.swf">
                        <param name="quality" value="high">
                        <param name="base" value=".">
                        <embed src="button7.swf" base="."  quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" ></embed>
                      </object></td>
                    <td class="sitemapgy">*Create*</td>
                  </tr>
                  <tr>
                    <td height="26"> </td>
                    <td><object classid="clsid:.." codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="22">
                        <param name="BGCOLOR" value="">
                        <param name="movie" value="main_print.swf">
                        <param name="quality" value="high">
                        <param name="base" value=".">
                        <embed src="main_print.swf" base="."  quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" ></embed>
                      </object></td>
                    <td class="sitemapgy"><font face="Arial, Helvetica, sans-serif">*Print*</font></td>
                  </tr>
                  <tr>
                    <td height="26"> </td>
                    <td><object classid="clsid:..." codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="22" >
                        <param name="BGCOLOR" value="">
                        <param name="BASE" value=".">
                        <param name="movie" value="button3.swf">
                        <param name="quality" value="high">
                        <embed src="button3.swf" width="100" height="22" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" base="." ></embed>
                      </object></td>
                    <td class="sitemapgy"><font face="Arial, Helvetica, sans-serif">*_Admin_*</font></td>
                  </tr>
                  <tr>
                    <td height="24"> </td>
                    <td> </td>
                    <td> </td>
                  </tr>
                </table>When I click the button3.swf (Admin) button....it navigates to other page...Before that I need to get control of swf button and need to perform some login checks.
    Is it possible to get control?
    Thanks

    Thanks for your responses, I tried in the same way but when ever it looking at the path "/admin/admin_main.jsp",
    its navigating to error page if the username is admin too(abcd).
    Can you please help me regarding this.
    I am sending you my code and web.xml.
                     <filter>
              <filter-name>ExampleFilter</filter-name>
              <filter-class>com.pack.db.ExampleFilter</filter-class>
         </filter>
                   <filter-mapping>
              <filter-name>ExampleFilter</filter-name>
              <url-pattern>/admin/admin_main.jsp</url-pattern>
         </filter-mapping>
    import java.io.*;
    import javax.servlet.Filter;
    import javax.servlet.FilterChain;
    import javax.servlet.FilterConfig;
    import javax.servlet.ServletException;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.http.*;
    public class ExampleFilter implements Filter {
         private FilterConfig filterConfig=null;
         public void init(FilterConfig config) throws ServletException {
              this.filterConfig = config;
         public void destroy() {
              filterConfig = null;
         public void doFilter(ServletRequest request, ServletResponse response,
                   FilterChain chain) throws IOException, ServletException {
              RequestDispatcher rd = null;
              String userInfo = "";
              String userName="";
              if (request instanceof HttpServletRequest) {
                   userInfo = ((HttpServletRequest) request).getUserPrincipal()
                                      .getName();
                             String[] pieces = userInfo.split("\\\\"); // Firefox sends DOMAIN\USERNAME as UserPrincipal
                                  userName = pieces[pieces.length -1]; // getting the username for which I need to perform check
                                  if(userName!="abcd"){
                                  System.out.println("userName IN ELSE PART:"+userName);
                                  System.out.println("INVALID USER NAME");
                                 rd = request.getRequestDispatcher("/admin/error.html");// i need to forward the response url to error page if the username is not equal to "abcd"
                                 rd.forward(request, response);
                             else{
                             chain.doFilter(request, response); // if username="abcd" I need to navigate to normal pages.
    Thanks

  • Valiable file name in JSP include

    Hi,
    I am trying to include a html file in a JSP page. The filename comes from the properties file and hence is a variable. The JSP file that has this include does not cache the JSP page plus it "refreshes" (reloads) ever 30 seconds.
    When I include the HTML file using jsp:include I am not getting the HTML file on alternate browser refreshes. Wierd?
    I then hard coded the filename and included the html file using <% @ include... and it works just fine.
    But I cannot have a variable name in <%@ include.
    Please comment on this wierd behaviour of jsp:include and gimme a solution.
    Thank you all in advance,
    Ravi Mittal

    Sorry this isn't a solution, because I have the very same problem and was just getting ready to post a question when I saw your post. I have also tried using:
    <jsp:include page="<%= myFilename %>" flush="true" />
    as well as
    <%@ include file="<%= myFilename %>" %>
    Neither of these work. This kind of approach seems to work just fine using <jsp:forward....>, but there's something funny about trying to include a file dynamically.
    I would also appreciate a solution. Good luck.
    - Joe

  • How to get iStore template name from jsp filename?

    Hi,
    We have implemented Oracle iStore R12.
    We have a requirement where we want to get template access name based on jsp file name. e.g. If jsp is ibeCCkdBHdrShip.jsp it should return STORE_CHKOUT_B2B_SHIP_HEADER.
    Is there any java API available for the same?
    We know we can get jsp filename from template access name as follows:
    String jspFilename = DisplayManager.getTemplate("STORE_CHKOUT_B2B_SHIP_HEADER").getFileName()
    However our requirement is other way round..getting access name based on jsp filename.
    Any prompt help/suggestion in this regard is appreciated.
    Thanks,
    Vivek

    Hi Vivek,
                            how about the query? can you use the query in your code ? If yes please use the query below.
    SELECT distinct I.ACCESS_NAME,
    A.FILE_NAME,i.description,I.Item_Name
      FROM JTF.JTF_AMV_ATTACHMENTS A,
      APPS.JTF_AMV_ITEMS_VL I,
      IBE.IBE_DSP_LGL_PHYS_MAP M,
      IBE.IBE_MSITES_TL S
      WHERE
      A.ATTACHMENT_ID = M.ATTACHMENT_ID
      AND I.ITEM_ID = M.ITEM_ID
      AND M.MSITE_ID = S.MSITE_ID
      AND A.File_Name like 'ibeCCtdStBlSuStI.jsp'
      Order by A.File_Name
    Thanks
    Shahzad Qamer

Maybe you are looking for

  • How can PDFs be distilled with narrow margins for optimized viewing on iPad?

    I am not reporting a serious issue. I am seeking to expand my understanding of PDF creating. Using Adobe Acrobat XI version 11.0.10 on MacBook Pro (Retina, Mid 2012, 2.7 GHz Intel Core i7, 16 GB DDR3), I have been creating PDF files of music charts o

  • Cash flow analysis

    Hi experts,                   My clients are not satisfied with cash flow in standard reports. they require reports like      Supplier Name     PO No     Date     Part No.     Qty     Account payable till Date      Payable for current receipt     Sch

  • Problems accessing History Store in NW Developer Studio

    Hello All: This is a problem that I had previously logged as a secondary issue under another problem.  I'm relogging it here in the hopes that the new subject will bring some new eyes (and ideas) to the issue.  May the moderators of the forum indulge

  • Xfapplet plugin has a white background

    Hello, all I use the Xfce panel in Openbox. Recently, I was fed up with the standard Xfce menu, so I tried some alternatives. So far, the only one I can get to work is mintMenu. It worked fine with the MATE panel. But, I prefer the Xfce panel, so I i

  • Code generators is ABAP

    Hi all, is it possible to Write a program which can create a Function Module with the import,export parameters and coding. iam always creating same kind of function modules with small differences. is it possible??????