How can I invoke a JSP using a URL instance from another JSP?

          Hi all.
          I've been developed a J2EE application using Oracle 9iAS.
          Now I'm migrating to WL Server and I have the following problem.
          I was using the following code to read a URL contents from another JSP:
          URL url = config.getServletContext().getResource("/path/to/url/of/textfile.xsl");
          This was working fine in a expanded directory project structure (typical during
          development time) and Oracle 9iAS.
          When I execute this code from my WL packed .ear file I get a URL not found exception.
          Which is the right way to get a resource available from the same context root?
          Thanks in advance for your answers (and sorry for my bad english ;-))
          

The previous owner of that machine should have wiped it and install the original OS that shipped with the system leaving the system at the point where the new owner takes over and enters all there own information.
Before you go much further with this machine you should seriously consider backing up any new stuff you have done and wiping it and starting from scratch. If you keep the system like it is you  will be plagued with problems. Even doing OS updates will prove frustrating.
Right now the best you can do is to move the Aperture that is on the system into the trash, log into the App Store using your ID and buying Aperture. That should work but to be honest I have never had to do it so can;t say for sure.
You might want to look at this What to do before selling or giving away your Mac from Apple to read what they recommend.
good luck
regards

Similar Messages

  • How can I to control any element of my GUI from another class?

    How can I to control any element of my GUI from another class?

    For that, you need the external class to have the reference to your element.. If your idea is to change basic properties like width, height etc.. then you can have the constructor of the external class to take the object of the parent of your class as the parameter and modify ..
    However, if the properties to be altered/accessed are custom to your element, then you will have to have the class accept an object of your class as the parameter. No other option..
    What exactly is your requirement?

  • How can I call a public function in one component from another component?

    I have two components: Form and Confirmation.  Form is a Canvas and Confirmation is a TitleWindow.
    Form contains several controls and a submit button.  Confirmation contains an OK button.  When the user clicks the submit button, the Confirmation appears over the Form (Form is blurred).  When the user clicks the OK button on the Confirmation, I want to run a function on Form to set some default values in the controls.
    How can I address the function in the Form component from the Confirmation component so I can fire the function?
    Thanks!

    Here is the source
    CustomForm.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300">
    <mx:Script>
    <![CDATA[
    public function callBack(): void {
    lblStatus.text = "Success";
    ]]>
    </mx:Script>
    <mx:Label id="lblStatus"/>
    <mx:Form x="50" y="50" verticalGap="15">
            <mx:FormHeading label="Send us comments" />
            <mx:FormItem label="Full Name:">
                <mx:TextInput id="fullName" />
            </mx:FormItem>
            <mx:FormItem label="Email:">
                <mx:TextInput id="email" />
            </mx:FormItem>
            <mx:FormItem label="Comments:">
                <mx:TextArea id="comments" />
            </mx:FormItem>
            <mx:FormItem>
                <mx:Button id="submit"
                    label="Submit" />
            </mx:FormItem>
         </mx:Form>
    </mx:Canvas>
    CustomTitle.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="absolute" width="200" height="80"
    showCloseButton="true" close="closeMe(event)"
    backgroundAlpha="1"
    color="#173553" backgroundColor="#EEEEEE"
    headerColors="#FFFFFF, #CBCCCC"
    borderColor="#666666" borderStyle="solid">
    <mx:Script>
    <![CDATA[
    import mx.managers.PopUpManager;
    public var callBack: Function = new Function();
    private function closeMe(event: Event): void {
    PopUpManager.removePopUp(this);
    callBack();
    ]]>
    </mx:Script>
    <mx:HBox width="100%" height="100%" horizontalAlign="center" verticalAlign="bottom">
    <mx:Button id="btnOK" label="OK" click="closeMe(event)" />
    </mx:HBox>
    </mx:TitleWindow>
    TitleWindowSample.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
    xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns="*"
    layout="absolute"
    width="100%" height="100%"
    creationComplete="init()">
    <mx:Script>
    <![CDATA[
    import mx.managers.PopUpManager;
    private function init(): void {
    customForm.submit.addEventListener(MouseEvent.CLICK, onMouseClick);
    private function onMouseClick(event: MouseEvent): void {
    customForm.lblStatus.text = "";
    var customTitle: CustomTitle = new CustomTitle();
    customTitle.callBack = customForm.callBack;
    PopUpManager.addPopUp(customTitle, this);
    PopUpManager.centerPopUp(customTitle);
    ]]>
    </mx:Script>
    <mx:VBox
    width="100%" height="100%"
    verticalAlign="middle" horizontalAlign="center">
    <CustomForm id="customForm" width="500" height="300">
    </CustomForm>
    </mx:VBox>
    </mx:Application>

  • How can I display some OrdImages using a Applet in html or Jsp?

    hi
    I want to use a applet to display some images retrieved from intermedia OrdImage Object.
    Now ,I know that a applet can display some image objects or some images with their own filepaths. But we can get ordimag objects from Oracle database.And we can image data or image properties by ordimage java mathod. It is in html/Jsp environment. So how can I transform from ordimage to applet?? I appreciate someone who can help me!
    Bill

    Do you mean applet or Servlet?
    An Applet is java code that is downloaded over the web and runs in a web browser environment. Is this what you are doing?
    I suspect you are really talking about servlet/JSP environments, and the ability to include images from the database in a web page.
    In either case (applet or servlet), you want to be able to access images via a URL. For a Servlet/JSP/web page, this URL will be specified in a HTML <IMG> tag with a key as a parameter to the image you wish to view. Images are not in-line downloaded in a web page. They are access after the HTML is loaded, and are accessed with URLs, sometimes relative URLs rather than fully specified URLs.
    To deliver images to the web from the database using the PL/SQL gateway and iAS, where the procedures are generated by a wizard, see:
    http://otn.oracle.com/software/products/intermedia/htdocs/descriptions/imedia_code_wizard.html
    You can create a simple servlet (JSPs can not deliver binary data) that delivers database images using java classes. See:
    http://otn.oracle.com/software/products/intermedia/htdocs/descriptions/servlets_jsp.html
    http://otn.oracle.com/sample_code/products/intermedia/htdocs/intermedia_servlet_jsp_samples/imedia_servlet_jsp_readme.htm
    for a sample.

  • How can I create a widget using a visual different from its parent?

    Hi All:
    I have a 8-bit-depth shell widget, how can I create a child widget using 24-bit-depth visual, the child is a XmDrawingArea. I cannot set XmNvisual.
    But why GLwCreateMDrawingArea() can?
    Thanks?

    Move your formulas in a non header column.
    In the cell A2 of the table "aux", the formula is :
    =IF(ISBLANK(main :: A2),"",main :: A2)
    then I applied Fill Down.
    Yvan KOENIG (VALLAURIS, France) mardi 2 août 2011 15:07:54
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • How can i access all the objects of one schema from another schema

    Dear All,
    How can i access all the objects(Tables,Views,Triggers,Procedures,Functions,Packages etc..) and do the modifications of one schema from another schema (Without using synonyms concept).
    Thanks in advance,
    Mahi

    First of all, synonyms only help you easy reference the object. It doesn't have any implication of object privilege.
    As long as you have proper privilege on target object. You can access it with or without synonyms.
    Assuming you have proper privilege of objects, you can use following command to assume schema owner.
    ALTER SESSION SET CURRENT_SCHEMA = Schema_owner

  • How can I uninstall a previously installed version of Aperature from another owner?

    Hi,
    I purcased my iMac from a previous owner.  His version of Aperature is still on it - registered under his AppleID.  I would like to uninstall it as it is preventing me from using my own version of iPhoto.  How can I do this?  Would it be asvisable to uninstall it and then purchase a new version of Aperature and then convert my iPhoto library to Aperature?  Right now, iPhoto wont launch becuase it wants me to upgrade Aperature, but I don't own a registered copy to my Apple ID, so I can't upgrade it.
    My setup is:
    iMac 27" 12,2
    3.4 GHz Intel Core i7
    32GB 1333 MHz DDR3
    Graphics AMD Radeon HD 6970M 2048MB
    OS X 10.9.2 (13C64)
    Aperature 3.2.4
    iPhoto 9.5.1
    Thank you!

    The previous owner of that machine should have wiped it and install the original OS that shipped with the system leaving the system at the point where the new owner takes over and enters all there own information.
    Before you go much further with this machine you should seriously consider backing up any new stuff you have done and wiping it and starting from scratch. If you keep the system like it is you  will be plagued with problems. Even doing OS updates will prove frustrating.
    Right now the best you can do is to move the Aperture that is on the system into the trash, log into the App Store using your ID and buying Aperture. That should work but to be honest I have never had to do it so can;t say for sure.
    You might want to look at this What to do before selling or giving away your Mac from Apple to read what they recommend.
    good luck
    regards

  • How can A state machine be used to monitor flow from a micro motion using bridgeview/labview

    I want to be able to use a state machine to monitor if the flow stops during a chemical charge. Currently I am using labview 5.0 and this monitors flow but I need an alarm to let me know if flow stops during a charge. Any suggestions?

    this example might explain what i meant.
    A Rafiq
    Attachments:
    statemon.vi ‏55 KB

  • How can I make a member of one class accessible from another class?

    I thought by making a data member protected it was available to all members of the package, but the compiler is giving me an error. If I put the class name dot the data object it thinks it is a function and gives an error.

    I can't post actual code or I'll get in trouble.
    I can't create an instance of A because the class
    needing to call the structure is a Thread and there
    will be multiple instances of it.
    I need one solid structure and it can't be static
    because it has to be ablet o change.So you can't use a static and you can't use an instance. So how exactly do you ever access A?
    BTW you are describing the impossible so you need to take a deep breath and give an explanation that makes even a modicum of sense. Hint: what you have described thus far is nonsensical enough that nobody is going to want to steal your precious code trust me.

  • How can i open a particular ibook in ibook app from another app

    I am preparing some presentation, so  i want to open an particular ibook in ibook app via another app on click event . Click event is such as <a href="path" ></a>.But i am not getting that particular ibook path. I can open ibook app using url Scheme i. e. "ibooks://", but how to pass parameter for paricular ibook.
    Thanks in advance.

    You might be better served posting this in the developers forum. https://discussions.apple.com/community/developer_forums

  • How can I disassociate my songs in the iTunes store from another musician with the same name?

    My songs in the iTunes store are showing up with the artist John Powers. That is my name. There seems to be another musician called John Powers, and our songs seem to be grouped together. I feel bad for the guy, as he seems quite clean-cut and my songs are all a bit... edgy. Is there any way to clarify that there is another artist also called John Powers, or will my songs forever be linked to his through our common name?
    Here's a link to the artist page.
    My songs are "Empire State of Meh," "Venereal Disease," and "Get Some Blow."
    https://itunes.apple.com/us/artist/john-powers/id19118058
    Thanks,
    John Powers

    alamoangels wrote:
    Can someone please help me figure out how to make our recordings available to the world via iTunes??
    go here: _*iTunes Content Providers*_.
    JGG

  • How can other people invite me to their events not from another AppleID and that event will appear in my default calendar?

    What e-mail they have to invite me by which can grab their events and put into my calendar ?

    this:
    Did not exist at the point of delivery to the consumer.
    Nor did the white corrosive agent present exist at the point of sale.
    " exposure   of copper   alloys   to   moisture   or   salt   spray   will   cause   the formation  of  blue  or  green  salts  called  verdigris.  The presence   of   verdigris   indicates   active   corrosion."
    I see also 2 contact points with DEEP corrosion pitting not indicative of any defect from the factory.

  • How can I unlock my iPhone when the phone come from another country?

    My iPhone is from South Korea, not as a call to the number that I got from twitter (@ olleh_expats) and in my country I want to help even though they said that if they had done in a statement through e-mail.
    Attached copy of the press.

    Wrong forum. This forum is for questions about the Apple Support Communities forums themselves.

  • How can we store xml data using jsp

    hai,
    Can anyone please explain in brief how to store xml data using jsp. Also if possible please explain by specifying the code.
    regards,
    Praveen Vinnakota.

    [email protected] wrote:
    how can we publish Labview data using the web?
    You could use shared variables and publish them to the network or use data sockets.
    Kudos always welcome for helpful posts

  • How can i invoke a file chooser dialog box with out using input type=file

    how can i invoke a file chooser dialog box with out using <input type=file> can any one help me mail me to [email protected]

    You could use an applet...
    Or maybe Javascript has some way to do it.

Maybe you are looking for

  • Itunes won't open -- no error either

    ITunes isn't opening. When I click to start the application nothing happens. The Task Manager says that iTunes is running under processes, but the application does not open. If I try to end the process nothing happens. Before updating to the most rec

  • Can't set up wireless connection for HP C4385 All-In-One with Windows 7.

    Hi guys, I just got a new laptop with Windows 7 64 bit. I already had an HP C4385 All-In-One that I was using with my last computer. I have also just set up a new wireless network because I got a new cable provider. So basically I needed to do everyt

  • ITunes won't lunch when iPhone is connected

    Recently only, when I plug in the iPhone iTunes does not launch automatically to sync. It used to do it. Automatically sync is checked in the prefs. Any ideas?

  • Iweb page hit counter

    If you are a .mac user you can click on Mac in the top menu bar. It lists Account, Mail, Address Book, My Pages, etc. Under My Pages, it lists hits for my . mac homepage pages and now I notice it will show hits for 5 of my iweb pages, but how can I c

  • How to pass pricing type using BAPI_SALESORDER_CHANGE

    Hi all, How will we use BAPI_SALESORDER_CHANGE  to re-price the orders. There is parameter LOGIC_SWITCH  which can be used to export the pricing type. But what all are the other parameters we should pass? Has anybody worked in such a context.?