JSF - Why getting wrong path Handling URLs in Facelets Templates

Hi, I am trying to do a web application using JSF, Facelets in Netbeans 6.7. but I am having a problem:
Why I am getting wrong path ?
It is very simple, straight forward web application.
When run, it shows the template-client.xhtml perfectly . The navigation menu is shows ok, but they don't work. However, if I enter in the browser address http://localhost:8080/test3/portal/products.jsf it goes perfect to the right page and the navigation between About, Products and Home works perfect. But once I click on Home, the menu start to give me errors. Looks like the path is wrong again.
folders structure:
test3My code:
faces-config.xml:
<?xml version='1.0' encoding='UTF-8'?>
<!-- =========== FULL CONFIGURATION FILE ================================== -->
<faces-config version="1.2"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
    <application>
        <view-handler>
            com.sun.facelets.FaceletViewHandler
        </view-handler>   
    </application>
</faces-config>web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <context-param>
        <param-name>com.sun.faces.verifyObjects</param-name>
        <param-value>true</param-value>
    </context-param>
    <context-param>
        <param-name>com.sun.faces.validateXml</param-name>
        <param-value>true</param-value>
    </context-param>
    <context-param>
        <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
        <param-value>.xhtml</param-value>
    </context-param>
    <context-param>
        <param-name>facelets.DEVELOPMENT</param-name>
        <param-value>false</param-value>
    </context-param>
    <context-param>
        <param-name>facelets.SKIP_COMMENTS</param-name>
        <param-value>true</param-value>
    </context-param>
    <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
    <welcome-file-list>
        <welcome-file>forward.jsp</welcome-file>
        </welcome-file-list>
    </web-app>forward.jsp:
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<jsp:forward page="template-client.jsf"/>template-client.xhtml:
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html">
    <body>
        This text above will not be displayed.
        <ui:composition template="/template.xhtml">
            This text will not be displayed.
            <ui:define name="title">
                Facelets
            </ui:define>
            This text will also not be displayed.
            <ui:define name="body">
                Hello from the Facelets client template!
            </ui:define>
            This text will not be displayed.
        </ui:composition>
        This text below will also not be displayed.
    </body>
</html>template.xhtml:
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:ice="http://www.icesoft.com/icefaces/component">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Facelets - Template Example</title>
        <link href="#{facesContext.externalContext.requestContextPath}/css/default.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <div id="menu">
            <ui:insert name="linemenu">
                <ul>
                    <li><a href="../forward.jsp">Home</a></li>
                    <li><a href="about.jsf">About Us</a></li>
                    <li><a href="products.jsf">Products</a></li>
                </ul>
            </ui:insert>
        </div>
        <div>
        <h1>
            <ui:insert name="title">Default Title</ui:insert>
        </h1>
        <p>
            <ui:insert name="body">Default Body</ui:insert>
        </p>
        </div>
    </body>
</html>about.xhtml:
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <body>
        <ui:composition template="./../template.xhtml">
            <ui:define name="title">
                title ABOUT
            </ui:define>
            <ui:define name="body">
                body ABOUT
            </ui:define>
        </ui:composition>
    </body>
</html>products.xhtml:
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <body>
        <ui:composition template="./../template.xhtml">
            <ui:define name="title">
                title PRODUCTS
            </ui:define>
            <ui:define name="body">
                body PRODUCTS
            </ui:define>
        </ui:composition>
    </body>
</html>

My folders:
Test3
     Web Pages
          /WEB-INF
          /css
              -default.css
          /layouts
          /portal
              -about.xhtml
              -products.xhtml
          -forward.jsp
          -template.xhtml
          -template-client.xhtmlPlease, I need help with this. It may is very easy to find out, I maybe skiping something
Thank for your help anyone!!!

Similar Messages

  • Why am I getting the flag Invalid URL for web content overlay when making scrolling panel in Indesig

    Why am I getting the flag 'Invalid URL for web content overlay" when making scrolling panel in Indesign? Iam making additions to existing articles but the problem is new. The articles were originally made using CS and now I am on CC, which I have just uninstalled and re installed, no difference, can anyone help please? Steve

    Hi Bob, thankyou very much for coming back on this. The flag is coming up towards the end of the preview process on desk top. I have made dozens if not hundreds on my two published apps on the app store, but have not done an update for nearly a year, in which time I have needed a refresher, and as usual went to Lynda. In this case I have followed to the letter your DPS course, which is great, and I found the process of making the scrolling panels somewhat easier than when I started 2-3years ago. Initially I was mystified that the flag talked about url and web content, but just put it down to something I had missed in recent improvements in CC.
    I tried over and over, but always got the same result. I thought at one point it might be because the content of my slide was copy and photo, so for a test I deleted the photo. Same result, and many of my existing slides are copy and picture.
    I also uninstalled Indesign CC and reinstalled in case of corrupted content, I also copied to IDML and relaunch, same problem. I am sure I have made the scrolling content as instructed, The one thing I havn't done is trash my preferences, if you think that would be a good Idea could you please direct me to some content at Lynda on how to do it in CC. Many thanks, Steve

  • Why do i get "wrong password" when i try to log on to the wifi on my ipad 3?

    I have 2 laptops, 2 ipones (5 and 4s, running on ver 6.1.4), an ipad mini and an ipad 3 in my home.
    I'm using my wifi successfuly with every device except for my ipad 3.
    on the "wireless" tab, i can see the network, i'm trying to type the password but i keep on getting "wrong password".
    The ipad can use wifi in other places with passwords.
    I checked how im writing and tried to type again on other devices, that's not the problem. Its not a problem with capitals or o-0 or something like that.
    I've tried reseting the network settings,  reseting my router, reseting my ipad (pressing "off button" + "home button"). I've tried changing password on my router, without succuess.
    that is really annoing, you're paying a lot for something that's suppose to work perfectly, and you get problems like that.
    I really need wifi on my ipad, and I've searched forums all over the internet for a solution. it turnes out that a lot of people are experiencing the same problem, whitout a proper solution.
    please help

    Restore the iOS software.
    Transfer purchases into iTunea, backup your iPad, restore to factory settings, restore from the backup and sync with iTunes and then try again.
    iTunes: Restoring iOS software - Support - Apple

  • Error: Path to URL.VI

    Why path to url.vi in Open HTML Report in Browser (Path).vi put the text file://localhost/ before my net path builded with Current VI's Path.vi.
    Example:
    File Location: \\server01\labviewproduction\help\pag01.html
    file location=file patch => path to url => file://localhost/server01\labviewproduction\help\pag01.html =>It's is wrong path.
    My Help file HTML don't open in Browser.....MESSAGE: don't is possible find file.
    Leonardo de S. Cavadas
    Maintenance Engineer and Inspection - Bureau Veritas do Brasil
    Engineer Metallurgist with emphasis in Advanced Materials
    Technologist in Computer Science

    Hmm.... It seems the stock Open URL in Default Browser VI doesn't handle file URLs all that well. I see the issue you're referring to.
    What's interesting is that if you call the Open URL in Default Browser core VI directly with a valid file:// URL, it doesn't launch the browser. It doesn't generate an error either. It just doesn't do anything. Yet, I can paste the file:// URL directly in the browser (tried IE and Firefox), so I know the URL is valid.
    You can call the Open URL in Default Browser core VI instead of the Open URL in Default Browser VI in the example I had shown. (The Open URL in Default Browser VI simply replaces the spaces in the string and then calls the Open URL in Default Browser core VI.) This seems to work with UNC paths that have spaces. Warning: One odd thing that I found is that the browser got launched, but sometimes returning to LabVIEW crashed LabVIEW. I couldn't replicate this all the time. If you encounter this issue, I would suggest the System Exec route, as done in the example VI in this message.
    It seems that NI has a little work to do with that VI and file URLs.

  • JSF always uses absolute path

    Hi I am new to JSF. You might be able to help me with an absolute path problem I encountered in my project.
    Our team has a JSF project called PHA, it has been deployed to 8 production machines. Recently I made some change to it and want to test it on one of my company's testing machine n251. In order to access n251, I need to use my company's proxy bbweb1. Here is the URL I ran:
    http://bbweb1.xxxxx.com/bravo/pxhistory/map/n251/charlie/pha/ to access PHA on n251.(BTW, we use http://bbweb1.xxxxx.com/charlie/pha/ to access our production machines.) It seems like I got my main PHA page from N251. But when I clicked any
    of the menu bars, bbweb1 proxy always ignores the relative path "bravo/pxhistory/map/n251" and simply rediect me to the main page again on one of our production machines. Here is the URL AFTER I clicked the menu bar:"http://bbweb1.xxxxx.com/charlie/pha/faces/jsp-pages/main page.jsp;jsessionid=CC8BD42D458EB5361532FF99FC1F5D83". I studied my code for the last 3 days and didn't find any problem. An only wild guess is: when I view source on my IE, I found JSF
    always use absolute path :
    src="/charlie/pha/faces/myFacesExtensionResource/tree2.HtmlTreeRenderer/1161281
    90776/javascript/tree.js"></script><script type="text/javascript" I don't know if this indicates why I failed to route to N251. Could this cause by a wrong config on bbweb1? or is there some trick I don't know? ... Since I don't
    have much experience on JSF, can you please help me with this? Thanks in advance.

    I wish there were. I don't know of any way to do this. Why
    not submit it
    here -
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "mikeycorn" <[email protected]> wrote in
    message
    news:gou2p7$8dl$[email protected]..
    > When I design my newsletters in Dreamweaver, I always
    have to manually
    > switch
    > the image links to the absolute path before sending it
    out as an email.
    > Is
    > there a way I can switch back and forth between relative
    paths for when
    > I'm
    > designing the site and absolute paths for when I'm doing
    the newsletter?
    >

  • How can I get the direction handles to show up for the Position attribute?

    How can I get the direction handles to show up for the Position attribute?
    I have CS3 and I did the formentioned test and was able to make the handles work for the scale attribute but they don't seem to show when editing the position values.
    *I am in the graph editor looking at the "value graph"
    *I select the keys and convert the keys to auto bezier (I also tried the ease in and out buttons)
    *It changed the graph the way you might think (no longer linear) however the handles are not showing to edit further.
    *I also tried using the "convert vertex tool" (part of the pen tool) and still no luck getting those handles.
    *the handles only show up in the speed graph but that does me no good.
    Please help!
    THANKS 

    I don't have CS3 installed on any of my machines any more but your value graphs for position should look something like this:
    There are no handles for position in the Graph editor. You adjust the position curve by editing the motion path in the composition window. Press the G key to bring up the pen tool, then use the modifier keys Crtl/Cmnd and Alt/Option to temporarily switch between select and convert vertex to adjust the paths. Changes will be reflected in the value graphs. You will get editable handles with scale and rotation because these are not spatial properties. Spatial properties, position, Anchor Point, all XY & Z coordinates are edited in the comp window or in the layer window after revealing the properties. IOW, you edit anchor point position paths by opening up the layer window and choosing Anchor Point from the display options.
    The Manual isn't wrong. Here's a link to the live docs.

  • Wrong path for go.bat in portal integration

    Hi Friends,
    during the configuration of the portal integration in rspor_cust01 I get the message
    'Windows can not find C:\usr.......\go.bat'.
    Where can I change the path because it is in D:\usr\sap\......go.bat.
    Thanks you for any help.
    Rg Jimbob

    Hi Subbu,
    I used workshop page properties to associate the image to the page.
    framework/skins/classic/images/home.gif
    - Shankar
    Subbu Allamaraju <[email protected]> wrote:
    Shankar,
    Did you use any tag to create the img tag? Do you have any sample
    HTML/JSP snippet?
    Subbu
    Shankar Bala wrote:
    I created a new desktop and have the following problem. The imagelinks to portal
    pages in the horizontal nav bar in the top have wrong path.
    Example.
    In the original portal the home page link in the nav bar has a imageassociated
    with it in workshop.
    \framework\skin\classic\images\home.gif
    The partial url generated for the image looks liek this:
    \mywebapp\\framework\skin\classic\images\home.gif.
    I created a new desktop everything works fine except for the images.The href's
    are created for the links but the image path is wrong.
    the url generated is : \mywebapp\appmanager\framework\skin\classic\images\home.gif
    The "appmanager" in the path causes the problem.
    Is this a bug?

  • Wrong path on JNLP chain

    Hi
    Sorry to post it here, but I was unable to find where We can post JavaFX Issues.
    This is a minor issue, but need to be adressed.
    I always set my java Console to shown, to test my applets, etc.
    While testing some JavaFX, I could note that JavaFX has a wrong path, or a wrong path chaining:
    network: Connecting http://javafx.com/launch/lib/lib/basickit.jar with cookie "JSESSIONID=c3c4962140d944b30859de123fae; s_cc=true; s_sq=%5B%5BB%5D%5D"
    java.io.FileNotFoundException: http://javafx.com/launch/lib/lib/basickit.jar
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at sun.plugin.PluginURLJarFileCallBack.downloadJAR(Unknown Source)
         at sun.plugin.PluginURLJarFileCallBack.access$000(Unknown Source)
         at sun.plugin.PluginURLJarFileCallBack$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin.PluginURLJarFileCallBack.retrieve(Unknown Source)
         at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)
         at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
         at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
         at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
    (...)Note the correnct URL is
    http://javafx.com/launch/lib/basickit.jar an not
    http://javafx.com/launch/lib/lib/basickit.jar , without the extra /lib
    A few lines later there is a correct call to basickit.jar :
    network: Connecting http://javafx.com/launch/lib/basickit.jar.pack.gz with cookie "JSESSIONID=c3c4962140d944b30859de123fae; s_cc=true; s_sq=%5B%5BB%5D%5D"
    network: ResponseCode for http://javafx.com/launch/lib/basickit.jar.pack.gz : 304
    network: Encoding for http://javafx.com/launch/lib/basickit.jar.pack.gz : null
    network: Disconnect connection to http://javafx.com/launch/lib/basickit.jar.pack.gzI hope it help to find out a fix.
    A.

    Which applet were you running?It happens on several demos at JavaFX.com .
    Perhaps in all of then.

  • Profile pictures wrong Path

    I have setup the thumbnail pictures for users in Sharepoint 2013. I can browse the library throughy this  link
    http://myserver/sites/mysite/_layouts/15/start.aspx#/User%20Photos/Forms/Thumbnails.aspx?RootFolder=%2Fsites%2Fmysite%2FUser%20Photos%2FProfile%20Pictures&FolderCTID=0x0120008BF2C6579F4E1947B6C670F4524E2C06&View=%7BDF932ADB%2D33D5%2D4024%2DA88C%2DA4B0253DBE98%7D
    but when I open a user page, the picture is not loading. I see from the debugger that is calling the following url which is missing a "/" right after the sites/mysite
    http://myserver/sites/mysiteUser%20Photos/Profile%20Pictures/j_doe_LThumb.jpg?t=63560464578
    How can I fix this??
    CKotsis

    Hi CKotsis,
    According to your description, my understanding is that the profile picture showed a wrong path.
    Please try to run a full user profile sync, compare the result.
    Please modify and run the following PowerShell commands to check if it works:
    $site = get-spsite "https://sharepoint" 
    $context= [Microsoft.office.server.servercontext]::GetContext($site)  
    $userProfileManager = new-object Microsoft.office.server.userprofiles.userprofilemanager($context)  
    $profiles = $userProfileManager.GetEnumerator()
        foreach ($profile in $profiles)
         $Matchurl = "mysitesUser Photos"
          if($profile["pictureurl"].value -match $matchurl)
                     Write-host $profile["AccountName"].value "contains incorrect url"
                     $CurrentURL = $profile["Pictureurl"].value
                     $CurrentURL = $CurrentURL.tostring()
                     $GoodUrl = "mysites/User Photos"
                     $CorrectUrl = $CurrentURL.replace($matchurl,$goodurl)
                     $profile["pictureurl"].value = $correcturl
                     $profile.commit()
                     Write-host $profile["AccountName"].value "PictureURL has been corrected"
    Here is a similar post for your reference:
    https://social.technet.microsoft.com/Forums/office/en-US/1fa50226-a495-4d3c-8fd3-da9fdede6a52/wrong-profile-picture-url?forum=sharepointadminprevious
    Best Regards,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Get ivi instrument handle from NISE Session

    In TestStand I begin my sequence with an niSE Open Session.vi and I then pass this NISE session reference around to other VI which use the niSE Connect and Disconnect VI's to connect/disconnect routes specified in MAX.  This works perfectly for me.  How do I convert this NISE session reference into an instrument handle for specific IVI devices in this NISE Session?  I want to be able to use the "ni Switch Get Relay Position.vi".  I tried using the "ni Get IVI device session.vi" but i get an error that says VI was stopped at IUseDCO.  What does this mean?  Is it possible to do what I'm asking?
    Thanks
    I'm using TestStand 3.5 and Labview 8.2
    Attachments:
    error.JPG ‏25 KB

    Hi Chad,
    The problem with the find route.vi is it just tells me if the path is available or not.  It doesn’t tell me what state the relay is in.  When using SPDT relays this is a problem.
    I’m using a 2570 card set for SPDT operation.  So if I do a find route after a reset on “Com->NO” and “Com->NC” both return path available.  I understand this because I have not made a connection call to either one.  If I make a call to connect “Com->NC” the relay changes states.   The connection then returns a path exists.  My problem comes when it comes time to disconnect.  Since it is a SPDT I have to first disconnect “Com->NC” then make a call to connect “Com->NO” (which is very annoying).  If someone just calls disconnect and I try to read the path availability both return path available again and the relay has changed state.  How do I know for sure which pole the common is connected to?
    If I open Switch Soft Front Panel it shows exactly what position the relay is in.  How do I get this info to labview?  This is why I was trying to get the instrument handle to the underlying IVI session so that I can look at individual relays instead of paths between endpoints.
    I hope this makes sense.  I know I can’t be the first one to have this problem, so if anyone has another solution I would appreciate any help.
    Thanks    

  • Unable to get automatic event handling for OK button.

    Hello,
    I have created a form using creatobject. This form contains an edit control and Search, Cancel buttons. I have set the Search buttons UID to "1" so it can handle the Enter key hit event. Instead its caption changes to Update when i start typing in the edit control and it does not respond to the Enter key hit. Cancel happens when Esc is hit.
    My code looks like this -
    Dim oCreationParams As SAPbouiCOM.FormCreationParams
            oCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
            oCreationParams.UniqueID = "MySearchForm"
            oCreationParams.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Sizable
                    Dim oForm As SAPbouiCOM.Form = SBO_Application.Forms.AddEx(oCreationParams)
    oForm.Visible = True
    '// set the form properties
            oForm.Title = "Search Form"
            oForm.Left = 300
            oForm.ClientWidth = 500
            oForm.Top = 100
            oForm.ClientHeight = 240
            '// Adding Items to the form
            '// and setting their properties
            '// Adding an Ok button
            '// We get automatic event handling for
            '// the Ok and Cancel Buttons by setting
            '// their UIDs to 1 and 2 respectively
            oItem = oForm.Items.Add("1", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
            oItem.Left = 5
            oItem.Width = 65
            oItem.Top = oForm.ClientHeight - 30
            oItem.Height = 19
            oButton = oItem.Specific
            oButton.Caption = "Search"
            '// Adding a Cancel button
            oItem = oForm.Items.Add("2", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
            oItem.Left = 75
            oItem.Width = 65
            oItem.Top = oForm.ClientHeight - 30
            oItem.Height = 19
            oButton = oItem.Specific
            oButton.Caption = "Cancel"
    oItem = oForm.Items.Add("NUM", SAPbouiCOM.BoFormItemTypes.it_EDIT)
            oItem.Left = 105
            oItem.Width = 140
            oItem.Top = 20
            oItem.Height = 16
            Dim oEditText As SAPbouiCOM.EditText = oItem.Specific
    What changes do i have to make to get the enter key to work?
    Thanks for your help.
    Regards,
    Sheetal

    Hello Felipe,
    Thanks for pointing me to the correct direction.
    So on refering to the documentation i tried out a few things. But I am still missing something here.
    I made the following changes to my code -
    oForm.AutoManaged = True
    oForm.SupportedModes = 1 ' afm_Ok
    oItem = oForm.Items.Add("1", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
            oItem.Left = 5
            oItem.Width = 65
            oItem.Top = oForm.ClientHeight - 30
            oItem.Height = 19
    oItem.SetAutoManagedAttribute(SAPbouiCOM.BoAutoManagedAttr.ama_Visible, 1, SAPbouiCOM.BoModeVisualBehavior.mvb_Default)
            oButton = oItem.Specific
            oButton.Caption = "OK"
    AND
    oForm.Mode = SAPbouiCOM.BoFormMode.fm_OK_MODE
    oItem = oForm.Items.Add("1", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
            oItem.Left = 5
            oItem.Width = 65
            oItem.Top = oForm.ClientHeight - 30
            oItem.Height = 19
    oItem.AffectsFormMode = False
    I get the same behaviour OK button changes to update and enter key does not work.
    Could you please tell me find what is it that i am doing wrong?
    Regards,
    Sheetal

  • Problem in getting the image through URL

    hi all,
    I facing the problem,Inwhich i am unable find the solution...I am using the following code to display the image
    public void doGet(HttpServletRequest request,HttpServletResponse response)
                        throws IOException, ServletException {
                   int data=0;
                   response.setContentType("image/png");
                   ServletOutputStream out = response.getOutputStream();
                   String file = request.getContextPath()+imageNames[0];
                   //String file = "C:/Program Files/Apache Group/Tomcat 4.1/webapps/ImageComm/WEB-INF/images"+imageNames[index];
                   BufferedInputStream in = new BufferedInputStream(new FileInputStream(file));
                   System.out.println("the size of the inputStream is..."+in.available());
                   System.out.println("the context path is..."+request.getContextPath());          
                   while ((data = in.read()) != -1) {
                   out.write(data);
    with the above i am not getting any error at the compile time but it was giving exception like FileNotFoundException.
    but the same thing(URL address) when i am copying on the browser it was displayig the image.
    (what might be the reason)
    one more thing when i commented on the url address and try to use the actual realpath address it was displaying the image with out any problem
    can anybody give me the solution like where to keep my images by which i can able to get the images through url address
    thanks in advance
    lakshman

    hi all,
    I am getting the image from the server.but the problem is i am getting the Exception as ArrayOutOfBound exception.
    It was displaying the Image for the first time.and when ever it was going for the second time in to the paint method it was displaying the IOException in reading the stream from the connection.
    can anybody give me the solution in rectifying that exception.
    thanks in advance
    lakshman

  • Get current path in Java LINUX?

    Hi,
    I m trying to get the current path of file using the getAbsolutePath.Its works fine (gets the current working directory) in Windows both in debug & release mode.Whereas, in LINUX ,It is not working.
    i.e.,It gets home path instead current path while running in release(by clicking jar file).
    File objfile = new java.io.File("SampleCloud.txt").getAbsoluteFile();
    JOptionPane.showMessageDialog(null, objfile.getAbsolutePath());
    Message box display home path instead of current path on linux.
    I dont know why its so.Ur help would be appreciated.
    System.getProperty("user.dir")
    I used it but its also taking the home dir path on linux
    Sonal
    Edited by: 850979 on 13-Apr-2011 06:04

    Thanks for your reply.
    I have copied the .jar file in a new directory under <user name>/Documents. The SampleRTLCloud.txt is also in the same directory. How do I get the path of the directory where the application is run from?
    Your help will be much appreciated.
    Sonal

  • Wrong path and application in registry protocol\stdFileEditing\Server ?

    Hi
    How come there is a wrong path in registry is it a security issue, error or just values not in use anymore ?
    I check via regedit: HKEY_CLASSES_ROOT the key .pdf points to
    AcroExch.Document the key curver points to AcroExch.Document.7
    Under this i check
    HKEY_CLASSES_ROOT\AcroExch.Document.7\protocol\StdFileEditing\server
    the value is
    "C:\Program Files\Adobe\Reader 9.0\Acrobat\Acrobat.exe" (Acrobat catalog and the exe file is not existing)
    but in my filesystem the real path is
    C:\Program Files\Adobe\Reader 9.0\Reader
    and i think the program should be AcroRd32.exe instead
    When I have corrected the key an update would reverse it to the old not existing value
    So could anyone tell me why i se this behaviour ?
    Regards
    SEJ

    Hi Frank,
    How did you call the application in a war?
    Regards,
    Violeta

  • How to get the Path of the Current File using Import & Export File -Reg.

    Dear all,
    I have a mega (big) doubt. I have manually inserted the Figures from the figure folders. Now i need, fully automated. So How can I get the Figure path
    Example :
    PMString path = "E://development/Figures/";
    now i checked, How many subFolders is there in "path", get the All Subfolders and check to the Article Name.
    Example
    Article Name == subFolder name then get the Files from the SubFolders(E://development/Figures/ChapterF/*.eps files").
    now I paste the Document using to For Loop.
    Please any one can suggest me, How can We get the Path in SDK.
    Note:
    Should I have to create the relative path by myself?
    No method supplied in SDK to do this directly?
    Please I need a help of this Query as soon as posible.
    Thanks & Regards
    T.R.Harihara SudhaN

    http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/input_file.asp?frame=true
    When a file is uploaded, the file name is also submitted. The path of the file is available only to the machine within the Local Machine security zone. The value property returns only the file name to machines outside the Local Machine security zone. See About URL Security Zones for more information on security zones.
    i need to know on how to get the compelete path /directory of the filename
    using <input type="file"> tag You can't. Its a security thing.
    is there any other way to get an input file from a local host aside from <input type="file"> tag?No. Not using just html.
    You could always go into activex components, but thats different again.
    Cheers,
    evnafets

Maybe you are looking for

  • Scanning transparencies with image capture/preview

    We have just bought an epson v600 scanner. We have Lion so we need to use image capture or preview to scan with the it; this is not a problem for twhat we hope to use it for. When we first used it, we scanned some small pics to see what they looked l

  • ALV grid with checkbox

    Hello,   I am facing a problem in getting the refreshed value of the checkbox field in the internal table. I will explain you what is the program does ,  first i am displaying the set of values with the internal table with the checkbox clicked. Then

  • What else are stored in the database buffer cache?

    What else are stored in the database buffer cache except the data blocks read from datafiles?

  • Current Music Playing (Album Cover etc) on TV Screen?

    Anyone heard of a software upgrade from Apple that allows the current song information (what is usually displayed on the IPod screen when music is playing) to be shown on the TV screen (assuming IPod correctly hooked up to TV etc)? It seems kind of d

  • Blocked account

    Hello I tried to purchase credit with my US Based card and forgot to change the billing address from UK to US and obviously payments keep failing after several attempts. When I realized my mistake and corrected it, Skype still won't accept so I paid