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
          

Similar Messages

  • How to user PowerShell -replace to remove the dreaded em dash from a file name?

    I have a bunch of .msg files in a directory and want to zip them up (to send them to our spam filtering company), but I keep getting errors on file names that contain the em dash (—).  I believe it's (char)0x2014.
    [edited]... the correct syntax is [char]0x2014.
    I wish to eliminate the em dash in the file name but I can't seem to find anything on the web about replacing em dashes.  When I paste '—', PowerShell replaces it with a '-'.
    I found this neat function that does a great job replacing multiple characters within a string.
    http://powershell.com/cs/blogs/tobias/archive/2011/04/28/multiple-text-replacement-challenge.aspx
    I am using the below code for my string replacement.
    Thank you for your help.
    function Replace-Text {
    param(
    [Parameter(Mandatory=$true)]
    $text,
    $replacementlist = "(-,,',,%,,$,,@,,#,,&,,’,"
    Invoke-Expression ('$text' + -join $(
    foreach($e in $replacementlist.Split(',')) {
    '.Replace("{0}","{1}")' -f $e, $(
    [void]$foreach.MoveNext()
    $foreach.Current)
    $path = '<path>'
    Get-ChildItem -Path $path | Rename-Item -NewName {(Replace-Text $_.Name).trim()}

    Here is a simple filter that will strip out all nonprintable chanracters.
    $newname=$file.Name -replace '[^a-zA-Z\.]'
    I just tested it on Win 7 which supports has a Unicode filesystem and it successfullstrips the bad characters.
    We also need to do this on files uploaded to SharePoint and OneDrive.
    The ~ and other similar characters are not allowed in may systems.  You should keep a translation log and tag all renamed files with some obvious tag.
    ¯\_(ツ)_/¯

  • 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

  • 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

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

  • Export File Names with Dashes

    How do I tell Illustrator to NOT put dashes in the file names when I save for web and to JPG or PNG, etc. etc.?  I take them out, only to have Illustrator put them right back in. I can understand if this is for people creating images specifically for websites, whereby spaces are invalid for file names, but I'm not and I happen to like my spaces, thank you very much! Frustrated.

    You can export a file, so that the version name is used as the filename for the exported file. So you would have to open each Faces stack and rename the versions in this with a custom name preset, where you add the name of the person to the custom name.
    A lot of work.
    If you export the an image version with a named face, Aperture 3.5.1 will add the name as a keyword to the exported file. Perhaps the keyword will suffice for your purpose?

  • 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

  • Is there any reason not to use spaces in document file names anymore in a document library?

    We are revamping our sharepoint document library file naming conventions. In lots of blogs and tutorials, I have seen over and over the recommendation to use underscores instead of spaces in document file names in sharepoint. Part of this is I think to prevent
    the infamous %20 in URLs pointing to the documents. That doesn't really concern us and we don't generally have file names that approach 256 characters.  We don't want to go the route of having different document names than document titles so we want our
    document names to be a clear and readable as possible. We think that using spaces (and occasionally dashes) in the file names makes them more readable, and sharepoint 2010 seems to be able to search these file name correctly.  An example document file
    name would be "elephants - how to clean elephant cages".
    Has anyone run into a reason to avoid using spaces and dashes in document file names in sharepoint 2010? I don't want to start using spaces and then be sorry I did down the road. Thanks!

    It isn't going to lead to the fall of western civilisation.
    You will get longer and messier URLs for documents but it's very unlikely to cause issues. There have been some bugs in the past where hyphens in particular can be mis-encoded in searches but they only affect a small range of build numbers if memory serves.
    I much prefer using no spaces for document libraries as it makes the starting URLs so much cleaner but that's a style question. For documents unless you've got a very strict document naming standard spaces are common and dashes aren't uncommon.

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

Maybe you are looking for

  • Sharing Laserjet 1300 from Windows 7 64-bit to XP 32-bit

    I used to have a working setup like this: WinXP-computer#1 --- WLAN ---- WinXP-computer#2 ---USB--- LJ1300 My setup has now changed to this: WinXP-computer#1 ---- WLAN ---- Win7(64bit)-computer ---USB--- LJ1300 I got the LJ1300 working on my Win7 com

  • Unable to install BB DTM for Mac

    I'm running Mac OS 10.6.8 on a Mac Mini. I'm trying to install BlackBerry Desktop Software v2.1.0.24 (bundle 21). After i click the green icon for "install" in the window that opens when the downloaded install disk mounts, nothing happens. Having in

  • Set hidden item in Javascript

    Hi, I am having a hidden page item P4_SELECT in my page. I am trying to set this page item with a value in javascript function. function getTheCurrentRow(triggerItem){       alert( triggerItem.slice(6));    document.getelementbyid(P4_SELECT).value=tr

  • Live corner as style

    This long-awaited tool. Quickly create new shapes. Way to go! I understand that for complex shapes of many different forms niepotarzalne live schmaty corners that are difficult to save as a graphic style. But for an object that has changed corners sy

  • SAP MMC Console (ABAP Trial) -- what's its purpose

    Hi all I've successfully installed SP12 Abap trial on a Win XP Virtual machine. It starts sucessfully using the  standard Windows Menu ==NSP==> Start Application Server. If I use the MMC it takes much longer and there is a lot more disk activity (I'm