Can EJB's be called from within JSP pages?

Hi,
(This is a general question, not necessarily related to OAS in any way...)
I have read/heard conflicting reports pertaining to calling EJBs from within JSP pages.
Can anyone tell me if it's possible to reference an EJB session bean from a JSP page? Can anyone point me to some documentation on the topic?
Any help would be appreciated. Thanks!
David Christopher
[email protected]

Hi,
Check the following code: http://www.jguru.com/jguru/faq/view.jsp?EID=5314 for ejb example.
-Ruchi
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Davidc:
Hi,
(This is a general question, not necessarily related to OAS in any way...)
I have read/heard conflicting reports pertaining to calling EJBs from within JSP pages.
Can anyone tell me if it's possible to reference an EJB session bean from a JSP page? Can anyone point me to some documentation on the topic?
Any help would be appreciated. Thanks!
David Christopher
[email protected]<HR></BLOCKQUOTE>
null

Similar Messages

  • Can 'Form Data' Be Called From Within A JavaScript?

    Hi,
    I'm trying to import form data from within a JavaScript. What would the following code be changed to, if my form data file was called "NewDoc"?
    n=app.alert("Are you sure you want to Reset?/Êtes-vous certain de vouloir recommencer?",2,1);
    if (n==1)
    this.resetForm();

    First you will need to set the other PDF's "disclosed" property to "true" so you can open it in the first PDF.
    Then you can modify the following code from example 3 for the "app.openDoc" method:
    oDoc = app.openDoc({
    cPath:"/C/myDocs/myInfo.pdf",
    bHidden: true
    }); // oepn other PDF
    var v = oDoc.getField("myTextField").value;
    this.getField("yourTextField").value = v; // get value of field in other document
    oDoc.closeDoc(); // close the other document

  • Can i cal .fmx file from a JSP Page

    Hi,
    i have Forms Runtime loaded in my System. i able run the .fmx file from Windows Run command. But i want run the fmx file from a link of JSP Page.
    is it possible... plz let me know
    [email protected]

    U can not .
    U can only if you are using an appliction server to run the forms. In this case you can call the URL to run the forms from JSP
    Rajesh ALex

  • How get ServletContext from within JSP-page

    Hi! I was wondering how to get the ServletContext from within a JSP-page?
    /Ernstad

    The "application" implicit scripting variable is the same thing. e.g
    application.getAttribute(...);

  • Can a servlet get paramters from two jsp pages?

    Hi all,
    I am writing a servlet to get the parameters from two different jsp pages, but I can not find any solution for this problem. Is there any way to solve this problem ?
    Any suggestion ?
    Thanks in advance.

    I am writing a servlet to get the parameters from two
    different jsp pages, what do you mean by that?
    please elaborate your question.

  • How can I grab NT username from a jsp page?

    I have a requirement to grab the user's NT username using a jsp page.
    I thought about using JAAS NT module samples, but I would need an application running on the client to do this (not a webpage). Then I thought about using an applet, but then read that an applet cannot read the username (not even a signed applet).
    I know that Request.ServerVariables() in ASP and IIS, returns the NT domain and username. I'm using ATG Dynamo and iPlanet. I'm wondering if this can only be done through webserver variables. Would iPlanet have this?
    Thanks for your assistance.
    -AJD

    I can think of no way to accomplish this goal through the JSP/Servlet API. That type of information is not broadcasted via HTTP, so any server-based resource that captures it is probably interfacing with some client application. I know nothing about ASP, but suspect that it is only able to capture the user names by interfacing with some application that is hidden to the client- that is, I doubt it is using HTTP. Some thing will probably have to be installed on the client machine to capture this information.... ...it would seem to me that the only legitimate need for that information would be for authenticating intranet users. Can't each user just be assigned an application ID that is equivelent to their NT ID?

  • Can't access a Bean from a JSP page !

    Hello everybody,
    I work with Oracle 8i 8.1.7, it means Oracle HTTP Server + Oracle JSP 1.1.0.0.0. But i don't use the Oracle Servlet Engine.
    In this context, i try to load ` JSP page, which instantiate a Bean. But it is impossible to access to this bean !...
    1) In jserv.properties file, i have mentionned the CLASSPATH to beans directory, as said in the OracleJSP documentation :
    wrapper.classpath=D:\...\myBeansDirectory\
    2) i have copied the .class file of my bean in the bean directory ...
    So did i forget something ?
    Seeking desperatly help !
    Thanks.

    Hi,
    Did you restart the HTTP listener after adding the CLASSPATH to the jserv.properties file? The change in jserv.properties (and in any other configuration files) will take effect only after the listener is restarted.
    Good luck,
    Srinivas.

  • How to call a report from a jsp page

    Hi
    1) Can anyone please tell me how can i view Discoverer report from a jsp page instead of opening it directly thru plus/viewer.
    2) Please clarify do i need to install Infrastructure and OID for it.
    Please advice.
    Thanks

    You need the AS infrastructure if you want to use connections. If you do not intend using connections, you do not require the infrastructure.
    Note that you cannot pass in passwords in the URL any longer. You do not need to pass passwords if you pass in a Discoverer connection id (but then again - if you don't use connections, then you do need to still pass in the connection information - username, password, database, language, EUL)
    I have a post on my blog that describes how to pass a password using an HTML Form submit - http://oraclebi.blogspot.com/2005/08/passing-password-to-viewer.html
    Thanks
    Abhinav
    Oracle Business Intelligence Product Management
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    Discoverer: http://www.oracle.com/technology/products/discoverer/
    BI Software: http://www.oracle.com/technology/software/products/ias/devuse.html
    Documentation: http://www.oracle.com/technology/documentation/appserver1012.html
    BI Samples: http://www.oracle.com/technology/products/bi/samples/
    Blog: http://oraclebi.blogspot.com/

  • Securing a JSP call from within the OAF

    Dear All
    I am calling a custom JSP file ($OA_HTML/test.jsp) from within the controller class of an OAF page using the pageContext.setForwardURL where the JSP file is registered as an AOL function, so therefore the first parameter of the setForwardURL call is the function name.
    Now the whole reason of wrapping this JSP file around OAF, is to take advantage of OAF’s security framework and Apps Specific Functionality, so that we can perform various security checks and validation before proceeding with the call to the JSP page.
    This is working fine and we are getting the desired result, however, there is nothing stopping someone from directly typing the call to the JSP into the browser and executing the JSP and effectively bypassing the OAF page/controller, e,g:
    http://server.host.domain:port/OA_HTML/test.jsp
    Now the question is, is there any way for us to either
    ·     Prevent a direct execution of the JSP from the URL, by placing some kind of special JSP commands, which intrinsically ties the JSP with the OA controller.
    ·     Inside JSP validate and authenticate a user.
    ·     Any other methodologies that will secure the JSP file.
    Your help and Guidance is appreciated.
    Thanks
    Patrice

    Actually there is AOL security u can use to validate whether the particular jsp is directly invoked or coming from secure session.You can use code like
    WebAppsContext webAppsContext = WebRequestUtil.validateContext(request, response);
    The validateContext method checks whether the session associated with the request and response streams is a valid one - if so it returns a properly validated context. If the session is invalid or expired, this will take care of displaying a login page to the user and the method will return null.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Is it allowed to make a rmi call from within an ejb??

    Hello,
    Am I allowed to make a rmi call from within an ejb such as:
    String host = "localhost";
    RemoteObject ro = (RemoteObject) Naming.lookup("rmi://"+host+"/MonServeur");
    ro.myMethod();
    package pack;
    import java.rmi.Naming;
    import java.rmi.RemoteException;
    import java.rmi.server.UnicastRemoteObject;
    public class MyRemoteObject extends UnicastRemoteObject implements RemoteObject {
        public MyRemoteObject() throws RemoteException {
        public void myMethod() throws RemoteException {
            System.out.println("toto");
        public static void main(String[] args) {
            try {
                RemoteObject ro = new MyRemoteObject();
                Naming.rebind("MonServeur", ro);
            } catch (Exception ex) {
                ex.printStackTrace();
    }Is it allowed by the spec?
    Is it good design?
    Thanks in advance,
    Julien Martin.

    Allowed - yes
    Good design - no, in my opinion.

  • How can we get a url for a "Meet Now" conference call from within the Windows Store App?

    Hi,
    Is it possible to get the url for the current meeting / new "Meet Now" call from within the Windows Store app?
    You have the option of inviting your current Lync contacts, but I don't see a way of giving a URL to clients that would launch Lync on their device, or take them to the web app.
    I can see how to get the link using the Outlook plugin, for pre-scheduled meetings. Is this link always the same and the one that should be used for an impromptu "Meet Now" meeting? It would still be good to know how to get this URL from within
    the store app so I can tell clients where to get it.
    Some people may be on Windows RT devices and not have access to the plugin in Outlook, and want to start a meeting at short notice and then invite others via email or pasting a link to them elsewhere.
    Any help appreciated.
    If I have answered your question, please mark it as the correct answer. If I have provided helpful information, please mark it as so.

    Hi,
    Agree with Holger, I check on my Lync Windows Store app and can't find the meeting URL as well.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • "Can't find bundle for base name" in a JavaBean called from a JSP

    I have quite a large EAR file which contains an EJB.jar file, a WAR file and various other jars used by the EJB.jar file. I the WAR file has a number of JSPs and now some JavaBeans. The JavaBeans live in their own jar which is deployed in the WEB-INF\lib directory. I am trying to use ResourceBundles for the error messages which are generated in the JavaBeans.
    Here is the problem. I have put the resource bundle properties files in the WEB-INF\classes directory and I can access them just fine from the JSPs. Not so from the JavaBeans, I get the following error:
    "Can't find bundle for base name webui-resources, locale en_US Can't find bundle for base name webui-resources, locale en_US ".
    I have tried just 'jarring' up the properties files into the JavaBeans jar but no dice.
    It 'smell's like a Classloader issue. Any help greatly appreciated.
    Ian.
    p.s. I am using JBoss 2.4.4 with Tomcat 3.2.3 and JDK 1.3.1_09 on XP.

    Here is my suggestion.
    Do you have the property file named "webui-resources_en_US.properties"?
    Here is the example
    language="en"
    country="US"
    locale = new Locale(language, country);
    bundle = ResourceBundle.getBundle("com.<companyname>.webui-resources");
    copy the webui-resources_en_US.properties file to the directory
    com.<companyname> in your workspace/IDE/localdirectory. or ftp that file to classes/com/companyname directory
    This should work. I am using it that way.
    which appserver r u using?

  • How do I call a 10g report from a jsp page securly?

    How can I call a report from a jsp page securly? We are migrating from 10g forms to J2EE, and we want to keep using our reports. In forms we were able to do this using a cookie. How can I pass a users credentials to reports without the user having to connect to the database? Single Sign-on isn't an option either.
    Thanks,
    Jim

    Hi Jim,
    If you want to pass the user credentials to the report dynamically, then SSO (Single Sign-On) is the only option I can think of.
    If the user credentials can be hard-coded, then the following 2 solutions are possible:
    1. Use cgicmd.dat file, and write the user credentials in the file.
    2. In your report JSP itself, you could write the following:
    <rw:report id="report" parameters="userid=scott/tiger@mydb">
    Navneet.

  • How can I make a call from iPad

    How can I make a call from IPad

    Oh, you have to get the iPhone app.
    Seriously, though .... you are aware that it's not a telephone, right? Any calls you make will be using VOIP and any of the apps and/or services (Skype, Google Talk, etc., etc.) which support that. Some of those are US-only, all have various restrictions and cost structures.

  • Windows 8.1 PC, using reader, when searching a folder containing approx 100 doc's. If i search for a word, no results are returned. only the doc names can be found but nothing from within the doc. This is a new problem and was not the case before.

    Windows 8.1 PC, using reader, when searching a folder containing approx 100 doc's. If i search for a word, no results are returned. only the doc names can be found but nothing from within the doc.
    This is a new problem and was not the case before.

    Works perfectly fine for me with the latest Reader version (11.0.09).
    You write that it worked "before"; before what?  An update?  Update from what version to what version?

Maybe you are looking for