A concern regarding JSP lifecycle

Hello Developers,
I am totally new to JSP stuff and I seek some help. I am trying to make an application such that the user will load an HTML page and fill in the data, then a jsp file will process it and mail the result back to the address that the user specified in the initial HTML file. So, within JSP page, I have embedded java code to create object of appropriate class, loading the appropriate method etc.
My main concern is that it takes almost an hour to process the request. So is there anyway in which the user can close the browser soon after he submits the data and the corresponding jsp will run in 'background' at the serverend? And eventually, once the result is ready after an hour, the server sends email?
Thanx!
Jatan

Yes, make the request asynchronous. The proper way to do this is with message-driven beans sent to a JMS queue. If you have a more lightweight environment, spin off a separate thread to do the work. Though be sure you can manage it properly. :^)
- Saish

Similar Messages

  • Concerns Regarding Adobe LifeCycle Licensing

    There is starting to be a growing buzz over at Javaranch.com about FLEX and Lifecycle in particular. It would be nice if someone for Adobe could post a few responses at Javaranch.com regarding the LifeCycle Product:
    Developers Responses:
    D1: "RemoteObjects are part of Flex and therefore free to use. Flex Data Management Services were a part of Flex Data Services in Flex 2 and have long since been rebranded and packaged in Lifecycle ES which is licencable product. Last time I heard a price it was listed at $30,000."
    D2: "Let's hope that price is going to come down in the near future. As a back-end Oracle Database Developer, this is going to be the bread and butter for me (FYI - Google the Cairngorm Architecture.) The LiveCycle Product is a much perferred option than build the web services in JDeveloper manually."
    D3: "I went through the same motions and abandoned LifeCycle because of the ridiculous pricing compared to free, simpler solutions."
    D2:"Okay, since there is interest in the Adobe LifeCycle, I think I am going to try and knock on doors (virtually) at Adobe get some help in this area for this product--license wise. Hopeful I can get a hold of James Ward, the Adobe Evangelist and have him to briefly post some words on this. Because I am with an educational institution, we have some grace with licensing for development, but never inquired about the LifeCycle license. Adobe have been pushing the BlazeDS, the open source option. I haven't used it yet, but if you search for BlazeDS at Adobe, you will find and pre-configured Tomcat download bundled with BlazeDS. This should provided a MVC ready environment for FLEX development accessing a database back-end."
    D3: "Great for you, but those in the software development world have no options other than to abandon LiveCycle. It's unfortunate given the obvious value in these tools."
    D2: "Of course you right, but the first step in getting Adobe to change this matter is to ask, or more so let them know that there is a growing interest with the product. If a number of Flex developers positively express (in writing, emails, blogs, post, etc) interest directly to Adobe, with the complaint the Lifecycle product has locked a lot of the developer community out from using the product, then I think they will happily change the licensing practice for this product over time. For Adobe is all about dollars and sense (as in what makes sense in business). If they can get more developers to positively endorse (FOR FREE) there products--they will start giving away things for free to get them to continue. So stay positive! Things will change."
    There is a growing interest in the Lifecycle product, but most developers are hitting the wall when trying to utilize the product for self training, and education of the product.  Adobe Representatives please chime in and help the developer community regarding the licensing issue.  Also, please post as well to Javaranch.com under the FLEX forum branch.

    Well, doesn't sound like a problem from what you've said, provided you're abiding by Adobe's licensing agreement for Reader:
    http://www.adobe.com/products/eulas/reader/index.html

  • Some concerns regarding upgarde

    Hi,
    We are upgrading our portal from SP11 to SP16. We have some concerns regarding certain customized PAR files.
    e.g. During our SP11 implementation, we had copied and renamed the com.sap.portal.runtime.logon.par to a custom one and assigned this for our logon.
    Have there been any major fixes in this PAR for which we need do the same customization for the PAR of SP16, or we can continue using the same SP11 PAR? Same goes for the Masthead and other personalization PARs.
    Hope SAP has kept the main components separate from the customizable components, so as to leave only the JSPs to be customized so that the upgrade does not need re-implementation and also gives us the advantages of the upgrade.
    Regards,
    Nirav Mehta

    Hi,
    There is really no way to tell, other than unpack the par files (and possibly decompile the classes) and do a file compare (winmerge http://winmerge.sourceforge.net/ is good for this).
    The recommended approach is to reapply the change using the code of SP16 and througoughly test it.
    Dagfinn

  • Concerns regarding the softwere of the camera.

    Dear apple, my name is D@%8eL. I wanted apple to know that this technology is amazing and is enabling me to express myself in ways before unimaginable. The concern regarding this letter is not merely to show appreciation but to ask you guys at Apple to help me further explore myself. The camera that is on iPod is a great accessory and I love how I can take pictures while listening to music.( that includes both the front camera and the back camera) the only serous flaw ( And I mean that lightly is) is that I cannot take a video of myself while listing to music. I'm jamming hard and dancing smiling, whilein and just having fun listening to the iPod. Can you guys at apple please try to invent some new technology that enables me to video record myself while I'm jammin out!!!!!! Please please please. I understand one concern might be " so when the users are videoing should the music and as well as the environmental sounds be recorded, or should just the sound environmental sound be recorded." my answer to you is simple. You guys are apple!!!! Figure it out so that im at liberty to choose!!!!! Please email me with any thought feelings or concerned. Looking forward to hearing from you.
    Sincerely D.... K.....

    You already have the feedback link. Other than that, you could, I supposed, write to them. The address should be found by using the Contact Us link that you'll find at the bottom right of every page. However, I wouldn't expect that you'd get any answer other than a form letter/email, if that.

  • Plz help me regarding jsps

    Hi all,
    I have menu.jsp which is included in 100 jsp's
    in menu.jsp i have lots of db calls so each and evry action this menu is getting called so my application performence is getting decreasing so how can i include menu.jsp in all 100 jsps so i my application works faster and faster.., any suggetions are welcome
    Regards
    Rajani

    if you know the ans tell me or els dont make joke of
    itI wasn't making a joke, you quite clearly didn't bother reading my post. you just saw that I hadn't spoon-fed you code like you hoped, and moved on. this happens every single day. and since this is a free forum, I think I'll choose for myself what and who I reply to, and in what manner

  • Question/Concern Regarding HTTPS Connection

    Perhaps this question belongs under security; perhaps it belongs here. Regardless, here's my concern:
    I have an application running under a secure HTTPS connection, and I want and expect the secure connection to begin as soon as the login page loads. When the login page (login.jsp) loads the URL indicates that I have a secure HTTPS connection. However, I'm not seeing the lock icon that contains my certificate until after I login. Is my login screen connection secure? I'm guessing not. The security-constraint/login-config portion of my web.xml file follows. Am I missing an element? Thanks!
      <security-constraint>
        <web-resource-collection>
          <web-resource-name>Reserve</web-resource-name>
          <url-pattern>/*</url-pattern>
        </web-resource-collection>
        <auth-constraint>
          <role-name>comm</role-name>
        </auth-constraint>
      </security-constraint>
      <login-config>
        <auth-method>FORM</auth-method>
        <form-login-config>
          <form-login-page>/login.jsp</form-login-page>
          <form-error-page>/login_error.jsp</form-error-page>
        </form-login-config>
      </login-config>
      <session-config>
        <session-timeout>10</session-timeout>
      </session-config>

    Thanks for your reply, although I'm still not fully convinced I have a secure connection. My form action is only set to 'j_security_check' . It's the standard Tomcat login form.
    <form method="POST" action='j_security_check' >I also added a CONFIDENTIAL user-data-constraint element to my web.xml.
    Still no lock. A book I read suggests that I do indeed have a secure, encrypted connection. I still have my doubts. Any other thoughts/ideas are greatly appreciated. This is one I can't afford to be wrong about!
        <user-data-constraint>
          <transport-guarantee>CONFIDENTIAL</transport-guarantee>
        </user-data-constraint>   

  • Regarding JSP,Struts

    Hello , Pls reply Urgent ,
    This is my code ,
    struts-config.xml
    <form-bean name="studentForm" type="com.ltc.forms.StudentForm"></form-bean>
    <action path="/userAction" type="com.ltc.actions.StudentMaintananceAction" name="studentForm" scope="session" validate="true" input="/jsp/homePage.jsp" >
    <forward name="success" path="resultSuccess"/>
    <forward name="fail" path="resultFail"/>
    <forward name="addPage" path="userAddPage"/>
    <forward name="viewPage" path ="userViewPage"/>
    </action>
    StudentMaintananceAction
    if(strBtnValue.equals("view"))
    ArrayList viewList = sBean.viewStudentList();
    sForm.setResults(viewList);
    forward = mapping.findForward("viewPage");
    StudentForm.java
    ---------------------------->
    public class StudentForm extends ActionForm {
    private String firstName = null;
    private ArrayList results = null;
    public String getFirstName() {
    System.out.println("--- getFirstName --:"+firstName);
    return firstName;
    public void setFirstName(String firstName) {
    this.firstName = firstName;
    public ArrayList getResults() {
    return results;
    public void setResults(ArrayList results) {
    this.results = results;
    userView.jsp
    ---->
    userView.jsp
    <logic:present name="studentForm" property="results">
    <% System.out.println(" -------- logic:present 1---:"+request.getAttribute("studentForm")); %>
    <hr width="100%" size="1" noshade="true">
    <bean:size id="size" name="studentForm" property="results"/>
    <% System.out.println(" -------- bean:size ---"); %>
    <logic:equal name="size" value="0">
    <% System.out.println(" -------- bean:size 0---"); %>
    <center><font color="red"><b>No Students Found</b></font></center>
    </logic:equal>
    <logic:greaterThan name="size" value="0">
    <% System.out.println(" -------- bean:size >0---"); %>
    <TABLE BORDER="1" >
    <tr><th>Student ID</th><th>First Name</th><th>Last Name</th><th>Qualification</th>
    <th>Technology</th>
    </tr>
    <logic:iterate id="resultId" name="studentForm" property="results">
    <%System.out.println(" ----- JSP 1-----"); %>
    <tr>
    <%System.out.println(" ----- JSP 2-----"); %>
    <td><bean:write name="resultId" property="firstName"/></td>
    <%System.out.println(" ----- JSP 3-----"); %>
    <td><bean:write name="resultId" property="lastName" /></td>
    <%System.out.println(" ----- JSP 4-----"); %>
    <td><bean:write name="resultId" property="qualification" /></td>
    <%System.out.println(" ----- JSP 5-----"); %>
    <td><bean:write name="resultId" property="technology"/></td>
    <%System.out.println(" ----- JSP 6----"); %>
    </tr>
    </logic:iterate>
    </TABLE>
    </logic:greaterThan>
    </logic:present>
    This is the error I am facing ,
    javax.servlet.ServletException: No getter method for property firstName of bean resultId.
    Upto System.out.println(" ----- JSP 2-----"); Its coming ,
    Pls send me solution urgently.
    Regards,
    Praveen

    hi,
    public String getFirstname() {
    System.out.println("--- getFirstName --:"+firstName);
    return firstName;
    public void setFirstname(String firstName) {
    this.firstName = firstName;
    }now it will work,
    use upper case letter after getX & setX, remaining you to follow in small case

  • Concern regarding new weblog point system....

    All,
    Have you seen the <a href="/people/sap.user72/blog/2006/02/15/top-weblogs-of-all-time-3-to-0">blog</a> by Craig? What concerns me is the weblog point system mentioned by Craig - weblog must be "<b>live</b>" for 5 days to recieve more than 40 base points. I believe "live" will be judged based on the number of hits !!
    What concerns me more is, the developer ares which has a lesses number of active users will never get a chance to grow !! I come from MDM area which got a reincarnation an year ago and even the number of users is very very less in MDM area, it still has got lot of audience during the past few months. I am the Top contributor in MDM forum with just 232 poiunts as of today. But, the fact is, I keep my sdn open almost 12 hours a day and this has been going on for an year or so.... It was/is  very hard to keep my enthusiasm alive during the initial days.
    But, with the kind of point system mentioned by Craig, people like me trying very hard to keep up the enthusiasm will start losing it forever !! This type of point system is meaningful for the areas which recieve atleast 10 blogs per week ! Just to give you an idea, MDM has just 72 blogs altogether even from the days before MDM 5.5 existed....My blog on "Master Data Management & Spend Analysis" had just 1305 hits even though it was on the MDM Home page as a featured blog for 2 months !!
    <b>Craig:</b> Please re-consider your decission and do not take any steps to demotivate people like me working very hard in the "developing" areas of community. Hope you understand.....:)
    Any support for me???
    Regards,
    Rajani Kumar

    I think there has been a slight misunderstanding.
    "<b>LIVE</b>" means that if a blog is published on Feb. 16 then it will not be reviewed for points evaulation until Feb. 21.
    Often times in the past we received multiple mails from those wanting their points immediately - this does not fly anymore the community should have a chance to review and evaluate as much as we do.
    No worries for the amount of activity in each area that plays no role

  • Questions regarding jsp file download from blob

    Hi developers, i'm doing jsp file download from a blob column in DB2 using struts,
    1) How do i design the jsp page such that the page will show perhaps a hyperlink for me to download the file?
    2) What about struts-config.xml? Do i need to modify any mappings there?
    It would be great if some kind developers were to provide some sample codes for me. Thanks alot. Your effort is kindly appreciated.

    http://kr.forums.oracle.com/forums/thread.jspa?threadID=1982213 - looks similar, you may need to change contentType as per use case

  • Im interested in a mac, but I have some concerns regarding windows and Boot Camp.

    Having both Mac OS and Windows on 1 computer would be a dream for ne, however , I have some Feature concerns that im hoping someone may be able to adress.
    1: Im an avid PC gamer, and use Steam to play all my games. Only a few games I own are Mac Compatible, And I was wondering, if I used Windows 7 Via Boot Camp, would I be able to play those games?
    2: Would I be able to freely switch between Windows and OS without and consequences?
    3: What Mac should I get to use Windows 7 (and aformentioned Gaming) Effectivly?
    Thank you in advance if you answer!

    1. Yes, Bootcamp gives you a 100% functional Windows machine.
    2. Yes, you only need to reboot the machine each time to switch between OS X and Windows 7.
    3. All current Macs will run Windows 7 as good or better than any PC/ Laptop.
    For gaming, the Macbooks have mediocre video cards. The 13 inch has the Intel 3000 which is really not that good The 15 and 17 inches have the Radeon 6750M and 6770M. Those are much better for gaming (especially the 6770M. It's not a gaming card. Mac desktops have much better cards for gaming. The iMac has the 6970M. The Mac Pro would be the best gaming rig with a 5770, which isn't a mobile one (no 'M') and is the best performing card out of all of these. The Mac mini has the worst of all machines.
    But since the Mac Pro is the most expensive, you're best bet is to get the 15' macbook pro for gaming. The 6770M is better too if you can afford it. The iMac would be the next step up, again if you can afford it.
    Also, what bootcamp does is make a partition of your harddrive. In other words it splits your hard disk into 2 parts. Like if you had a 500gb hard drive, it would make 2 250gb hard drives- one with Windows files and one with Mac files. You can pick how much space you want to make the Windows partition.

  • Concern regarding SAP Portal Performance

    I don't know if this is the right area to post this message.  Please advise me if there is a more appropriate area.
    I just finished signing up for the workshops at the up coming Boston TechEd '05. The sign up is done on the TechEd website at http://www.sapteched.com/usa. I am assuming that the TechEd website is built and maintained by SAP employees on the SAP EP.  During the sign-up session, I ran into a few 'System Errors' and 'ODBC Errors'.  Also, the page navigation was extremely slow.
    My company is currently in the process of migrating to the SAP EP.  I am concerned that the SAP EP is not 'ready for prime time'.  If SAP employees cannot operate the portal at a higher level that what I just experienced, why should I believe my company will have success operating the SAP EP?

    Hi Doug,
    I also had the same problems when trying to sign up this morning. Though I am not an expert in this particular area, I guess it might have been temporary and caused by  a large number of people all trying to sign up for their desired hands on sessions at the same time. It started working smooth at around 11:45 am CST...

  • Query regarding JSP in appache server

    i have a problem with JSP .
    I am new to JSP. worked with asp with IIS, and servlet with Apachee server,
    but how am i going to run the jsp page .in appache server.
    Plz can u come on line for a help by yahoo or hotmail messenger ,or else send me reply
    Its urgent

    Go to
    http://jakarta.apache.org/tomcat/index.html
    get Tomcat 3 or 4

  • XI:Concerns regarding CCMS alerts,IDOC,JDBC,FILE,PROXY

    Dear Experts,
    I have some doubts regarding below listed points.Please,help Me to find thesuitable answer for these.
    *1.if multiple messages to be sent(IDOC) through same JDBC adapter,how we'll do it(THROUGH SAME jdbc Aadpter,in same config scenario)?*
    *2.in receiver determination,if we have to send to multiple receivers according to payload content(conditional passing to receiver depends on payload),**how we'll acheive it?*
    *3.what is file content conversion?*
    *4.why proxy is known as adpterless scenario?*
    *5.in case of idoc/proxy why sender side no communication channel but in receiver side we are using communication channel?*
    **6.what is CCMS alert?
    *7.in a file2file scenario,if we want to convert one file content to other file content in a different form(as x->1,y>2),*
    *how we'll acheive it?*
    *7.if lots of data checkings are there in case of SAP R/3,by whcih way we'll go?(idoc/proxy/rfc)
    *8.how we'll decide whether to go for SOAP scenario?*
    *9.what is adapter module?whan we'll go for different adapter modules other than standard?*
    *how we can develop our own adapter modules?*
    *10. how to map one field to other field,when they are present in different noad with respect to source and target strucrture?*
    Eagerly waiting for youyr valuable opinion.
    Regards,
    Rasmiraj Tripathy

    Do a search in SDN first for these questions.
    You will find the answers to the most.
    Else post specific questions

  • Serious concern regarding copyright.

    I emphasise that what follows is a matter of opinion. No allegations are specifically made and, hopefully, there is either a fix or Apple will resolve the problems pronto presto.
    As matters stand, iWeb makes it very difficult to prevent web-users from downloading images from websites: indeed, the default position encourages it. The act of authorisation is an exclusive right of the copyright owner. Accordingly, enabling download of content which is licensed solely for use on the website is an infringement of that copyright. Importantly, EVEN IF THE USER TAKES CARE to prevent such use, the software obligingly offers facilities such as downloads and feeds: see the Photos page. EVEN IF the user goes to the Media Index or the Photo section of the Inspector, this still happens. For example, the feed button vanishes from the iWeb Photos page but not on the published site. Indeed, an unexpected "Download" button appears. This means that iWeb seems rather risky for business use. In fact, if this is correct (which of course, IP lawyer though I be, I am not asserting in any way), then presumably Apple could be exposed to liability, either for having itself authorised use of the copyright material, in negligence for failing in its duty of care to its customers, or misrepresentation in that the software suggests that the changes have been made.
    I like to think that this is solved by a simple technical tweak and that someone is able to show me how. Does anyone have any brilliant ideas?? If not, please would Apple fix this problem pronto presto!

    Roddy wrote:
    ...using the services of MobileMe for business use is, in fact, prohibited under the terms and conditions.
    Roddy ~ The following phrase was removed from the MobileMe Terms of Service a long time ago:
    "The Service is designed for personal individual use and is not intended to be used for commercial business purposes, including, but not limited to, transacting online sales or software distribution via an e-commerce site."
    ...Unless I've overlooked something, business use is not prohibited under the current MobileMe Terms of Service.
    Copyright Lawyer wrote:
    If not, please would Apple fix this problem pronto presto!
    You can use this form to send feedback to Apple regarding iWeb:
    http://www.apple.com/feedback/iweb.html

  • Concern regarding quality of dual sim phones

    Can we have nokia build phones similar to asha 300 or Nokia X3-02 with dual sim option and i am sure we can expect a lot more market for nokia in India.
    We still have a big lot of consumers who prefer normal keypad kind of phones with dual sim option, just that the quality has to be to the mark, when i did a review on the types of dual sim phones, its really sad to see nokia producing low quality phones with dual sim options, i agree the target is to reach economy class but if we have atleast 1 new model with featuers and quality as that of nokia 300 or x3-02,,, much appreciated.
    Regards,
    Prem

    Verizon will only activate Verizon-branded phones on its network.  Any Verizon phone will be compatible with the 3G CDMA network, but may also have radios for 4G LTE and/or various GSM bands (with a SIM card slot - Verizon calls these global phones) depending on the particular phone.
    If you want a phone to use with Verizon and in another country, you'd need to buy one of Verizon's global models and have it unlocked to work with the SIM card from the other provider.  You'd also want to carefully check that the phone's GSM radio supports the frequencies that the other company uses.

Maybe you are looking for