Stop direct calls to a jsp

Hi,
Is it possible to stop users from directly calling a jsp file by typing the address in browser. I just want to include this jsp file in other jsp files.
Thanks a lot,
Chamal.

Put the JSP under your WEB-INF directory:
<APP-BASE>/publiclyAvailable.jsp
           WEB-INF/jsps/onlyIncludeMe.jspThen when you want to include it, use
<jsp:include page="/WEB-INF/jsps/onlyInvludeMe.jsp"/>Users will be unable to access the page directly because the WEB-INF is not visible to them. But it is available to your JSPs (or servlets) to do an include/forward to...

Similar Messages

  • Stop or Reload a call to a JSP--what happens to a EJB running in the JSP?

    I am calling repeatedly calling a method of an EJB bean from within a
              while-loop in a JSP. The EJB is handling some database processing.
              Unfortunately, the EJB's processing can take a lot of time within each
              iteration of the while-loop, which prompts some users to hit "Stop" or
              "Reload" from their browser.
              Therefore, the while-loop gets broken.
              My question is: what happens to the thread of execution within the EJB?
              Will an EJB that is called from a JSP continue to completion even if a user
              hits "Stop" or "Reload?"
              Any feedback will be appreciated. It appears to me that the EJB does not
              continue to completion.
              Dave Bine
              Software Engineer
              Flutter.com
              

    What do you mean that the while loop gets broken? Stop just closes the
              socket from the client end, it does not affect threads that are processing
              on the server unless they explicitly check the state of the socket.
              Similarly, the EJB would not stop processing.
              Cameron Purdy
              "dbine" <[email protected]> wrote in message
              news:3978c327$[email protected]..
              > I am calling repeatedly calling a method of an EJB bean from within a
              > while-loop in a JSP. The EJB is handling some database processing.
              >
              > Unfortunately, the EJB's processing can take a lot of time within each
              > iteration of the while-loop, which prompts some users to hit "Stop" or
              > "Reload" from their browser.
              >
              > Therefore, the while-loop gets broken.
              >
              > My question is: what happens to the thread of execution within the EJB?
              > Will an EJB that is called from a JSP continue to completion even if a
              user
              > hits "Stop" or "Reload?"
              >
              > Any feedback will be appreciated. It appears to me that the EJB does not
              > continue to completion.
              >
              > Dave Bine
              > Software Engineer
              > Flutter.com
              >
              >
              

  • MOH not working in Directed call park

    Hello All,
    After upgrading the voice gateway from 15.1(2)T2 to15.1(3)T4 im facing this issue.
    MOH is not working in Directed call park. We have 10 Directed call park numbers 100-109, users are parking the calls by pressing trasfer key (transfer key-->dial 100-->transfer key). The Music is stopped playing after the user presses the transfer key for the 2nd time. MOH is working fine in hold and call  park. I can see the MOH session in Show ccm-manager music-on-hold and the same MOH session is continuing after pressing the transfer for the 2nd time, only the music is stopping. There are some sites in the same cluster which MOH working in all conditons but the router is rnning with
    Using: 2900 series voice gateway with H.323, Centralized cluster.
    Assistace will be musch appricidated
    Thanks,
    Murali

    This issue has been identified as new BUG. Cisco is working on this.
    -M

  • Wot all ways are there to call servlet from jsp

    hi all
    i want to know wot all methods are available
    so that i can call servlet from jsp
    the one which i know is using RequestDispatcher
    wot are others ?
    thanx

    hi all
    i want to know wot all methods are available
    so that i can call servlet from jsp
    the one which i know is using RequestDispatcher
    wot are others ?
    thanxhi here are few ways... to call servlet from jsp...
    these are just generic syntax.
    Form:     
    <form action="ServletPath">
    Link:     
    Directives & Action tags :
    <%@ page import="ServletPath" %>
         <%@ taglib uri="ServletPth" %>
         <jsp:include page="ServletPath">
         <jsp:forward page="ServletPath">
         <jsp:useBean class="ServletPath"> (Not sure about this useBean)
    hope you got your answer.
    regards,
    immu

  • Call Java from JSP?

    I have a button on a JSP.
    This jsp is using normal html tags - not htmlb tags.
    Normally, I think, the onClick action of a button calls JavaScript.
    Is it possible to call a Java method that is on the same jsp page instead of calling a javascript function?
    If I use HTMLB tags, my code would look like:
    <hbj:button
                                  id="<%=SAPMLogonLogic.uidPasswordLogonAction%>"
                                  text="<%=logonLocale.get("LOGON")%>"
                                  jsObjectNeeded="TRUE"         
                                  width="125px"
                                  tooltip="Click here to log on"
                                  onClick="getUserAgreement"
                                  onClientClick="submitForm"         
                                  disabled="false"
                                  design="EMPHASIZED"
                             />
    But, I just want to use html tags. So, my code would look like this, I suppose:
    <input style="height:3ex;" class="urBtnStd" type="button" name="<%=SAPMLogonLogic.uidPasswordLogonAction%>" value="<%=logonLocale.get("LOGON")%>" onClick="getUserAgreement()">
    Message was edited by: Eric Heilers

    No, you can't do this.
    This is because java is a server side script which cannot be directly called from client side script (javascript).
    You need to post a html form and do some processing there.
    You could for example have a hidden field in the form which you set dynamically with javascript to the method you wish to call, then when you get the form posted to the java code again you can use java reflection api to call the method. (this is in essence what HTMLB does when using the onClick method)

  • IPhone 4 iOS 5.0.1 stops receiving calls and text messages

    Hi all,
    My iPhone 4 (iOS 5.0.1) suddenly stopped receiving calls and text messages. However, I'm still able to send them.
    The workaround for fixing this issue is to make an hard reset to the iPhone.
    This only occured with 5.0.1 version. It's very annoying because I'm not able to know if it's working or not (I can only suppose that it's not working when I'm a long period without receiving calls/messages)
    Do you know how to solve this ?
    Thanks in advance!

    JasminGomez wrote:
    I already hate iphones and I'm reconsidering my blackberry again because at least that one didn't fail me like this one does!
    First, who really cares what you do?  I certainly don't, and I doubt the vast majority of users on this forum don't either.  Ridiculous statements like that just make you look stupid.
    Second, this is a user to user technical support forum.  I saw a lot of whine here, not a question.  What is your technical support question?

  • My iphone5 stopped receiving calls and text messages then a message said my sim is locked what can I do?

    My iphone5 stopped receiving calls and text messages then a message said my sim is locked what can I do?

    You can call you're carrier and have them unlock it.

  • How to call servlet from jsp

    i m trying to call it from jsp using
    <a href="../purchaseP?orderno=<%=pno%>"><%=pno%></a>
    but its giving error..
    type Status report
    message HTTP method GET is not supported by this URL
    description The specified HTTP method is not allowed for the requested resource (HTTP method GET is not supported by this URL).

    i m trying to call it from jsp using
    <a href="../purchaseP?orderno=<%=pno%>"><%=pno%></a>
    but its giving error..
    type Status report
    message HTTP method GET is not supported by this URL
    description The specified HTTP method is not allowed
    for the requested resource (HTTP method GET is not
    supported by this URL).Are you implementing the doGet or doPost method in your servlet? If you are calling from a hyperlink then it needs to be implementing the GET method. To access the POST method use a html form.

  • How can I stop the execution on a JSP page and start it again

    Hi
    I am making a program that simulates how to manage transactions when accessing a database by using locks. I have run into a problem and I hope someone has the time to help me.
    When a user does an update the transaction commits and releases its locks when the program executes
    <%stmt.executeUpdate("commit!"); %>
    I need to put a break in to stop the program executing this statement, to illustrate the lock is set correctly.
    I have tried to put in an alert box but this does not prevent the rest of the java code being executed.
    I have tried to use prompt boxes, JavaScript functions, but these functions cannot have any java code in them.
    I have tried using the java.swing JOptionPane boxes but this didn?t work either
    I have tried to get input from the user but I don?t know how to retrieve this data on the same page. (As far as I know you have to use submit and even refresh the page or retrieve it on the next page).
    Does anyone know how I can stop the execution on a JSP page and start it again (on same page)
    Mette

    I already have another client (Tomcat jsp application) running and it throws a SQLException correctly when I don�t put in a commit=true statement and don't close the database connection.
    But the problem is how to get the code above to stop to illustrate I have set this lock.
    I have tried to use the JOptionPane but because my program is running in a web browser I cannot use the JOptionPane dialog box.
    I have tired using an alert box but it executes the commit statement before the alert box is dispayed. So this does not work
    While (i < 2)
    if( i==1)
    %>alert(�The transactions commits when you press Ok�); <% //what it to stop execution here
    else
    stmt.executeUpdate(�commit�);
    I am not using threads so I cannot use the sleep function.
    I am using mysql and have already configured it to detect deadlocks and how long to wait for locks.
    Thanks for your help
    Mette

  • How to stop the call summary display on home screen?

    How to stop the call summary display on home screen?

    Here are the solutions I can think of (if no one here responds with something better):
    1. Open Settings and then Phone within the Settings screen and see if you can find a setting there for the call summary. The Phone submenu under Settings would be the most likely place.
    2. Open Settings on your iPhone and go through each item including all of the items within each main item. Within about 10 minutes you should be able to get through all of the settings and find the setting if it exists on your phone. There is no such setting on my phone but it is possible that Airtel has a custom menu with that.
    3. If you still haven't found it, you could check a) Airtel's support site and/or b) an Airtel specific forum.
    4. If still no luck, I would call Airtel and ask again and if you get the same response ask for the location of the setting (or to speak to someone who can tell you).
    Good luck.

  • Directed call park number recommendations

    Hi,
    This is more of a design question about numbering plans, but here it goes.  I have configured our sites to use 4 digit internal numbers, and I have matched the call park numbers to the prefix of the internal numbers for each location.  eg.
    location A: 30xx
    location B: 32xx
    location C: 40xx
    location D: 44xx
    etc...
    Directed call park numbers:
    location A: 301, 302
    location B: 321
    location C: 401,402
    location D: 441,442
    This has worked fine up until people wanted to start parking calls on phones that do not have the blf directed call park button.  The interdigit timeout now conflicts with my numbering plan, because 441, could be 4410 in location D.  So people are trying to park calls by just transfering the call to 441, but they have to wait for the 10 second timout to occur before they can complete the transfer.  I was thinking of just changing the call park numbers, but I would have to use a 4 digit number instead of a 3 digit number.
    Dan.

    I am having the same issue. The media resource group that is assigned to the gateway DOES include the Media Resource Group that includes the MoH server.
    Anyone have any idea why else the external callers would here ringing?
    Thanks.

  • Directed call park MOH

    We have installed a multi-tenant solution. Two of the tenants use their own separate MOH audio sources for their devices. Both tenants would like directed call park numbers that need to be separate from each other. They would like their directed call parks to play their own music on hold audio source.
    1. I can't seem to find a way to change the directed call park MOH without changing the default MOH settings in the service parameters. Is there another way to do this?
    2. Is there a way to specify different MOH audio sources for different directed call park DNs?
    3. The callmanagers are version 6.1.3. If there is no way to have different MOH for directed call parks in callmanager version 6 is there a way to do it in callmanager version 7?
    Any help on this would be greatly appreciated.

    This issue has been identified as new BUG. Cisco is working on this.
    -M

  • Difference between invokeMethod vs direct call

    I'm working in a company where there seem to be two ways that the developers called AM functions:
    Direct Calling:
    CompanyTakeoffAMImpl thisAM =
        (CompanyTakeoffAMImpl)pageContext.getApplicationModule(webBean);
    thisAM.runSalesFunction(pageContext.getSalesId());invokeMethod calling
    CompanyTakeoffAMImpl thisAM =
        (CompanyTakeoffAMImpl)pageContext.getApplicationModule(webBean);
    Serializable[] userParam = { new Integer(pageContext.getSalesId()) };
    Class[] userParamType = {Integer.class};
    am.invokeMethod("runSalesFunction", userParam, userParamType);Is there any advantage / disadvantage to why we're doing this basic task in two different ways?
    Which way is recommended?
    Thanks

    From the developer's guide:
    +"If you need the server code to do some work for you, always route your calls through the root application module using the generic "remoteable" invokeMethod() method on the oracle.apps.fnd.framework.OAApplicationModule interface, or create an interface for your application modules so you can call typed methods, whose invocation can be checked at compile time. The application module can delegate or implement the logic as required."+
    +"Note: The OAApplicationModule interface is in the oracle.apps.fnd.framework package and therefore, does not violate the rule stated in the first sentence of this bullet-point. All classes, interfaces, and exceptions in the oracle.apps.fnd.framework package can safely be used in both client and server code. If you opt to create an interface for your application module instead of using invokeMethod(), create this interface in the package directory immediately above your implementation. For example, the EmployeeAM interface for the oracle.apps.fnd.framework.toolbox.labsolutions.server.EmployeeAMImpl application module should be created in the oracle.apps.fnd.framework.toolbox.labsolutions package."+
    Although I can't seem to find it at the moment, the developer's guide give the reason why you should not use AMImpl's from the controller. If I remember correctly, it has something to do with that it can't be assumed that the controller code will executed on the same tier at the AM.
    The easiest thing to do it to create an interface as mentioned in the dev guide excerpts. This is quite easy to do. Double click your AM, then go to Client Methods, and shuttle over the ones you want to call from your controller. If your AM is custom.oracle.apps.fnd.server.MyAppModAMImpl, your interface will be custom.oracle.apps.fnd.MyAppModAM.
    Just import custom.oracle.apps.fnd.MyAppModAM in your controller, and do:
    MyAppModAM am = ( MyAppModAM ) pageContext.getApplicationModule( webBean );
    This will also allow you to have compile time type checking.

  • FSCM Biller Direct Call Center Payment Log

    Hi,
    We are using Biller Direct and Biller Direct Call Center for our dealers/customer AR processing.
    Biller Direct is used by our Dealers to see their account balance and post payment online through Biller Direct web portal.
    Biller Direct Call Center is used by our Account Receivable team to see our dealers account balance and to post payment with authorization from our dealers.
    The main question is:
    How can we see the deatilpayment log/detail on transaction posted through Biller Direct Call Center? Our AR team needs to identify which user from AR team that perform a specific payment. Please advise.
    Is this something that can be setup through XCM or R/3 configuration?
    We need to get the detail of "User ID" and "Date & Time" that a payment is done through Biller Direct Call Center.
    I tried to look from the document changes on AR line item detail of the billing document that got paid. But, the document changes is only showing that user BD_POOL made the payment posting. The user id is setup in XCM for posting any transaction into R/3.
    Appreciate your help in advance.
    Thanks,
    Markus

    Mohit,
    Let me try to answer your questions:
    u2022 What accounting entries are passed from SAP perspective and at what points in time?
    A) SAP will post a CREDIT to the Customer AR item and a DEBIT to a Credit Card Receivable account when the payment is posted in FI.  The DEBIT to the Credit Card Receivable account is included in the nightly Settlement run to be sent to the Processor for a deposit request.
    u2022 How are charges levied by banks / financial institutions handled or can be handled?
    A) There are Processor charges for authorizations and other services such as Fraud checking as well as the INTERCHANGE fee that is a percentage of the Settlement amount.  This could be anywhere from 1.5% to 4% of the Invoice amount depending on the type of transaction and the agreement with the Processor.
    u2022 How any fees / charges imposed by network processors / clearing houses handled on a transactional basis?
    A) The processor will assess and collect these fees, typically on a monthly or daily basis and provide reporting to the Merchant regarding the fees charged.
    u2022 Is this something which Standard SAP Config can accommodate and if yes where exactly? If not what custom development route is appropriate?
    A) Standard SAP does not have the ability to assist with Settlement reconciliation or recognition/assignment of processing fees.  This must be accomplished through Manual postings.
    u2022 Does addition of third party providers like pay metric for interface plug-in help in segregating and processing of credit card charges any better?
    A) Yes, ISVs such as Paymetric which provide integration between SAP and the processors do provide additional SAP and external reporting and functionality to assist with the reconciliation process and in determining the processing fees.
    Regards,
    Eric Bushman
    VP, Solution Engineering

  • How to call script in jsp

    How to call script in jsp
    3A-_@. Feb 8, 2007 3:08 AM
    Hi,
    I have abc.jsp file where i want to call javascript on pressing submit button.
    <input type="text" name="UserName" value="" width="30" />
    <input type="submit" value="Submit" onclick=" <what should i write here??">
    here how to call script?
    and in the same abc.jsp file i have javascript ( i am not sure about the way i m accessing text value inside javascript is right or not)
    <SCRIPT LANGUAGE="javascript" >
    here how can i access UserName field value here??
    if(isThisNotNull(UserName))
    alert("UserName Is Mandatory");
    </SCRIPT>

    If you do it like Greeks says then the javascript variable will be set when the page loads (userName probably blank). You will want the current value from the input field so use getElementById().
    Edited by: gmachamer on Nov 21, 2007 7:23 AM
    oops, just noticed Greeks posted both replies... so what I should have said is use his first suggestion as the second is not what you want.

Maybe you are looking for

  • MacBook Pro is corrupting media cards - any suggestions on how to fix this?

    Memory cards become corrupted when inserted into the card reader slot. When I put the card back in the camera, the camera malfunctions (Error 99 message). I have had the camera cleaned and sent in for repairs, but there in nothing wrong with it. New

  • Showing "Plugged in, Charging" .... but not charging

    Hi Everyone, I bought HP Pavilion dv4 almost 18 months back .... suddenly it started giving me problems with charging the battery. When I start charging .. it says "Plugged in, charging" ... I left it for couple of hours while the system was switched

  • K7T ProV1 Don't start(classic)

    I already saw the same topic on the old forum. The problem is classic, i run a 3D game and boom the screen goes black and my computer won't start for a day, or more... Not all game do this... The worst one is Warcraft 3, as soon as i press the new ga

  • ADF Taskflow Transaction Management Pattern

    We have a project that consumes public common taskflows from a shared library. How should we define the transaction management of these public common taskflows? Who is respondsible for the transaction management? I am able to understand the various t

  • Can time machine backups be migrated to another drive?

    I'm intersted in moving my time machine backups from one external hard drive to another with larger capacity. How can I do this and still have access to the older backups? Neither of the drives are Time Capsule and they both have USB and FireWire com