Jsp file names lowercase?

Hello,
the Sun guidelines
"Code Conventions for the JavaServer Pages Technology Version 1.x Language"
state that jsp filenames should always start with a lowercase letter.
Java class names start with uppercase letters.
Can anyone tell me why jsp file names should begin lowercase, is it just a de facto standard?
regards
Jonathan

Hi,
It is just a convention. Same as you use set and get methods for members in JavaBeans. You always use very first letter as capital letter after set and get.
Thanks

Similar Messages

  • Configuring weblogic 8.1 to hide the jsp file name to be displayed

    Hi,
              I am having problem with configuring weblogic 8.1 to display the jsp file name in the address bar. Please have a look at this link for a description of my problem
              http://theserverside.com/news/thread.tss?thread_id=28381
              Any help would be great.
              Thanks
              Uma

    You should use a controller servlet which forwards to the correct JSP. Then the JSP name is not displayed in the address bar.
              With 8.1 you simply could use a Java pageflow to link several JSPs.
              Generated URLs in the browser will look like
              http://localhost:7001/sampleportal/newpageflow1/test.do;jsessionid=BFssBfmdv4Ly1GDG7gJNZH1d3s2ShJG2qpG4KJJMVvSf0JdyG2nQ!1118879021

  • Dashes in JSP File Names

              Has anyone seen this problem before?
              I have a WAR application deployed to WebLogic Server 6.0 including several JSP
              files. The construction of the WAR file and all of the JSP pages is correct.
              However, if any of the JSP file titles include a dash character, i.e., "-", there
              are cases in which Web Logic server emits the emphasis, "Can't find class in the
              path . . ." error. Change the dash character in the offending JSP file title
              to either an underscore, i.e., "_", or to eliminate the dash character altogether,
              and the application works just fine.
              I am running WebLogic Server 6.0 on an MS W2K system.
              Anyone seen this or have an idea for a fix that allows the use of dash characters
              in JSP file titles?
              Thanks,
              Ted
              

              Yes, I am running Service Pack 2 (should have said that in original post).
              And, I see the class file names with the ascii code in the names. But, sometimes
              it can't find that resulting class file. So, since I now have multiple engineers
              reporting the same problem on multiple development machines (all running SP2),
              we are avoiding all special characters except underscore in our JSP file names.
              Ted
              Dimitri Rakitine <[email protected]> wrote:
              >Strange - did you try the latest service pack? The only special thing
              >about jsps with dashes in names (and other characters not allowed in
              >Java
              >identifiers) is that JSP compiler replaces them with decimal ascii code
              >
              >when it creates .java files.
              >
              >Ted Gladieux <[email protected]> wrote:
              >
              >> Has anyone seen this problem before?
              >
              >> I have a WAR application deployed to WebLogic Server 6.0 including
              >several JSP
              >> files. The construction of the WAR file and all of the JSP pages is
              >correct.
              >
              >> However, if any of the JSP file titles include a dash character, i.e.,
              >"-", there
              >> are cases in which Web Logic server emits the emphasis, "Can't find
              >class in the
              >> path . . ." error. Change the dash character in the offending JSP
              >file title
              >> to either an underscore, i.e., "_", or to eliminate the dash character
              >altogether,
              >> and the application works just fine.
              >
              >> I am running WebLogic Server 6.0 on an MS W2K system.
              >
              >> Anyone seen this or have an idea for a fix that allows the use of dash
              >characters
              >> in JSP file titles?
              >
              >> Thanks,
              >
              >> Ted
              >
              >--
              >Dimitri
              

  • How to get JSP file name within a servlet?

    I wonder is there any method that we could use to print out the JSP's file name which called a servlet within the servlet itself? For instance, A.jsp called B.class which is a servlet, and when the servlet is being invoked print out "A.jsp" or "A" in a dos screen.
    Thanks for any reply.

    The Referer is an optional HTTP header, and it only exists when a page is called from an hyperlink (i.e. from another web page). The general meaning of Referer is the "caller page". There at least two situations in which there will be no Referer header:
    1. When the usuer types in the destination page address directly, or get it from a bookmark/favorite or similar. Since there is no caller page, there would be no Referer.
    2. Althought browsers usually send the referal page when you choose a link, some privacy control programs (such as Norton Internet Security etc.) can intercept the request and strip out the Referer header, even when there is a caller page.

  • Writing file content on to mobile phone (need to specify the file name req)

    Hi,
    I have a jsp page which i am trying to execute on a mobile phone. In this page i am trying to open a ServletOutputStream and using this i am trying to write some content on to the phone. But by default the file name is beeing given as the name of the jsp page, so is there any that we can we specify the name of the file explicitly using the program itself (i mean other than the jsp file name). Can some one give me an idea to implement this.
    Here is the code snippet used......
    ServletOutputStream outstr = response.getOutputStream();
    String itemPath = "http://172.10.100.25/file_dwn/funny_pic.gif";
    java.net.URL url = new java.net.URL(itemPath);
    javax.activation.URLDataSource source = new javax.activation.URLDataSource(url);
    javax.activation.DataHandler dataHand = new javax.activation.DataHandler(source);
    String file = itemPath.substring(itemPath.lastIndexOf("/")+1);
    response.setHeader("Content-Type","application/vnd.oma.drm.message;boundary=foo");     
    outstr.println();
    outstr.println("--foo");
    outstr.println("Content-Type: " + dataHand.getContentType()+";Name=\""+file+"\"");
    outstr.println("");
    dataHand.writeTo(outstr);
    outstr.println();
    outstr.println("--foo--");
    outstr.println();
    outstr.flush();
    outstr.close();

    Hi,
    You can Include a Knowledge Management Folder as a Web Folder, this way you can copy and paste files from KM to  file system very easily.
    Check this
    http://help.sap.com/saphelp_nw70/helpdata/EN/30/75b62c659d724fb908c74ade23af51/frameset.htm
    Regards,
    Praveen Gudapati

  • How to dynamically include jsp files using jsf el in include tag ?

    Hi,
    I'm trying to get the jsp file name from my backing bean to use it in an include tag but I can't make it work
    When using this piece of code I can get the generated path
             <h:outputText value="/_partial/#{myBean.jspName}.jsp"/>whereas in this code the jsf el is not replaced by this value.
            <%@ include file="/_partial/#{myBean.jspName}.jsp" %> Have you any idea of how to solve this ? I'm currently developing for J2EE 1.4 platform.     
    Thanks for your help,
    Regards.

    If you're using JSF 1.2 and JSTL 1.2 at a JSP 2.1 environment, then you can just use <jsp:include> with unified EL.
    If you're using JSF 1.1, then you may find this article useful [http://balusc.blogspot.com/2007/01/dynamic-jsf-subviews.html]

  • JSP File in PAR.

    I made one PAR file and made JSP dyn pages. Now I want to add JSP files under dist/PORTAL-INF/JSP folder. Please suggest me how to add JSP files under this folder.

    Hi,
    In general when you craeate JSPDynpage the corresponding jsp file will be created in the pagelet folder. But if you want to create a jsp file in JSp folder (PORTAL-INF/JSP) then follow the below instructions.
    a) Right click on JSP folder. Goto new->Others->simple->file->next
    b) Give the jsp file name with jsp extension and click finish.
    If you want to call this jsp file from Dynpage then use the relative path of the jsp file name and comment the below lins in PAR fire correspondng to the JSPDynpage component.
             <property name="ComponentType" value="jspnative"/>
            <property name="JSP" value="pagelet/your jasp file name"/>
    Regards
    Shanmukha Rao Banisetti
    Edited by: Shanmukha Rao on Mar 4, 2009 12:32 PM

  • [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't run jsp files in Jdeveloper

    I have some existing jsp files and when I compile these files, Oracle9i Jdeveloper keeps telling me "Error: JSP files must reside in the server root directory or a subdirectory beneath it".
    I originally think that's because of "import" and I got rid of all "import ....", and the same error message still insists.
    Please help, thanks!:-).

    Hi All!
    I have just downloaded jdeveloper 9.0.3.3 - and I have run into a similar issue...
    1. I created workspace by selecting new workspace from wizard
    2. I created a new project -- from existing (previously tested using Resin server) code -- and, I select the "copy files to project directory" checkbox in the "wizard" dialog
    3. when I rebuild the project in jdev9033, for each jsp file name I get this message, i.e.,
    "Error: JSP files must reside in the server root directory or a subdirectory beneath it"
    what does this mean for me do?? (btw - I am using the default server that is integrated within Jdeveloper)
    In my working "existing code", my jsp files are loosely located under my "myProject" folder (which also contains the "WEB-INF" and "src" folders.
    Where, in my existing code, does JDeveloper expect to my the JSP files to be?....In a "JSP" folder?.... Or, where - within my new workspace/project - should I copy these JSP files in order to make this error message go away??
    Thanks for you help!!

  • How to add more than one JSP file for a single JSPDYNPage component

    Hello Everyone,
                           I am creating one portal application which involves JSPDYNPage component, while creating this component one JSP file is also created. But i want one more JSP file for my application ...i.e- for the same JSPDYNPage component. can anybody tell me how to create one more JSP for the same component.
    Thanks
    Chetan Deshpande

    Hi Pooja,
                 I tried the way u said, but when i try to create it(i.e- right click on pagelet folder & then new---> other......the way u said.) it asks for JSP file name but finish button is disabled even after entering the JSP file name.....is it that i am doing something wrong....please guide me for this & one more thing it asks for folder name also ...where to store that file....but when i try to enter anything.It doesn't show or doesn't allow me to do so
    Thanks
    Chetan

  • 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.

  • Retrieving file name from jsp

    I have an input field on my jsp. The input type is "File".
    I am trying to get the contents of that field and the filename and/or file path that is included in that field.
    Does anyone know how to do this?
    I tried a request.getParameter in the servlet but this field is not a text field.
    Thanks.

    Check out the Apache FileUpload package:
    http://jakarta.apache.org/commons/fileupload/
    It has the methods you'll need to get the file name and file contents.

  • RoboHelp changes file name to lowercase

    I am using RH X5.0.2 (running on Win XP SP2) to import HTML files as topics. The primary layout is Microsoft HTML Help.
    The original HTML file names are mixed case, but when the files are imported into RoboHelp, the file names are changed to all lowercase. For example, GL_Audit.htm is changed to gl_audit.htm. This is an issue because the topic title reflects the file name, and I need the topic title to retain the mixed case of the original files.
    After I import the file, I have to manually change the topic title. However, RoboHelp does not like it when the title has an underscore. If I change gl_audit to GL_Audit and click OK, the change is not saved. But if I change gl_audit to GLAudit and click Apply, and then change it to GL_Audit, the change is saved.
    I am using an existing project that was created by someone else a long time ago. Here are the steps that I am following:
    1. Right-click the destination folder, and then click Import.
    2. At the Import File screen, select the desired file, for example, GL_Audit.htm, and click Open. The file is imported as a topic.
    3. Right-click the topic, and click Properties. Note that the Topic Tile is gl_audit, and the file name is gl_audit.htm.
    4. In the Topic Title field, type GL_Audit, and click OK. Note that the Topic title is still gl_audit, and not GL_Audit.
    5. Open the Topic Properties screen again.
    6. In the Topic Title field, type GLAudit, and click Apply.
    7. In the Topic Title field, enter an underscore between the L and the A so that the topic title is GL_Audit.
    8. Click OK. Not that the topic title is saved as it was typed -- in mixed case.
    If I can get RH to import the files without changing the original case, it will not matter that it takes two steps to change the topic title name.
    Any suggestions would be greatly appreciated.
    Ashley

    Hi again
    Ashley, how are these HTML pages being created? I ask because I performed a small test. While the import process did indeed convert the file name to all lower case, it ignored the Topic Title. However, if I didn't have a Topic Title defined, it did create one that was all lower case.
    I'm thinking that whatever tool that was used to create the topics you are importing didn't properly configure a proper Title Tag.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Parametricizing the file name in the jsp directive %@ include file=

    Is there any way to parametricize the file name in the above directive. Am not too keen on using
    <jsp:include ..
    because of performance issues and also i am only including a static HTML issues.
    Any responses would be appreciated?

    Nope.
    The <%@ include %> occurs at the time of translating/compiling the jsp into a servlet. It thus cannot accept any runtime parameters.
    Are the performance issues of using <jsp:include> that large?

  • How Can Hide The File Name in URL Using Jsp

    I Want source code for Hiding The File name in url address using jsp.
    for example www.website/login.jsp is view but i want www.website/ only.

    Hi Praveen - how does that DEF would be determined?
    Have a look at the below blog for executing os commands
    SAP XI File Adapter OS Command Line Feature - Process Integration - SCN Wiki
    XI/PI: Command line sample functions
    Is there any problem in using the dynamic file name configuration??
    Message was edited by: Hareesh Gampa

Maybe you are looking for

  • IPhone 5s voice dial always asks to confirm

    I am able to voice dial most everyone in my conacts database without problems - except my wife. I say 'Call Jane Smith, mobile" and the display correctly interprets my voice and displays 'Call Jane Smith". Then it asks "Do you mean Jane Smith?" Once

  • ITunes U basic questions

    New user here. A couple of questions. 1. Is it possible to allow only student, staff and faculty at our University to view copyrighted material, and if so, how is this done? 2. Can statistics be gathered on which type of user would be viewing our mat

  • Exchange 2007 SP3 latest update rollup

    I would like to install the latest update rollup for Exchange 2007 SP3.  I was reading and found Update Rollup 12, is this the latest version?  No other update rollups are installed. I did the SP3 update by installing on the hub transport first, then

  • AVI saved to avi

    Hi- I am using MPEG Streamclip to trim home movies. When I save my .AVI clip in "Save As" it creates a .avi clip, and when in my MOVIES folder in my Finder, I do not see a thumbnail of the clip anymore, just a clip with the same title, but a lowercas

  • Dv3-4103TX audio not working

    i upgraded my dv3-4103TX which was originally a windows 7 to windows 8 several months ago. One day the audio and the volume keys suddenly stopped working. The keys for audio are not functioning such as play,pause,stop,volume -,+ and etc. i tried trou