dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Yevgeni Duvenage

Search: Search took 0.01 seconds.

  1. Java JSP - using if()-else() inside scriptlets

    Good day, all.

    I have the following setup:

    - A JSP that outputs an HTML form to browser, then when one of the buttons is clicked after user enters an amount in the
    text field,
    - The data is...
  2. Servlet thread safety of a local session attribute

    Good day, all.

    I have a servlet, in which I have local variables declared, initiated and assigned to session attributes.

    I need the servlet to be thread-safe, such that multiple browser windows...
  3. Re: Synchronizing on servlet instance variable

    Any ideas? Thanks.
  4. Re: Synchronizing on servlet instance variable

    The next task I am to do indeed instructs to remove instance variables and use session attributes, with which no synchronization is needed and multiple threads will not interfere with one another.
    ...
  5. Re: Synchronizing on servlet instance variable

    Priya456, that is a good suggestion, and this IS my next task indeed. But for this task in discussion, I need to do it the way described, and that is to use a class scope (instance) variable.
  6. Re: Synchronizing on servlet instance variable

    // Import servlet and HTTP functionality packages.
    import javax.servlet.*;
    import javax.servlet.http.*;

    // Import packages to: handle user inputs and outputs, enable usage of decimal formatting...
  7. Re: Synchronizing on servlet instance variable

    Hey Norm.

    By "did not work" I meant a second thread of the servlet did not wait at all for the 10-second delay imposed in the synchronized code to elapse before it could proceed to work on the...
  8. Synchronizing on servlet instance variable

    I am having trouble making a servlet thread-safe using synchronization.

    I do know it's best to avoid instance (state) variables in servlets, but my college assignment calls strictly for this.
    ...
  9. Re: Servlet handling its own outputted HTML form

    Hey, Norm.

    All that happens is the initial form shows on the screen, with blank textfield and "Balance: $0" shown below it.

    When I click the "Deposit" button, the textfield clears, I see on the...
  10. Re: Servlet handling its own outputted HTML form

    Guys, I've modified the code trying to get it to work. If you can go through it (I also describe how the servlet must perform in the post), I'll be infinitely obliged to you. :) Thanks.
  11. Servlet handling its own outputted HTML form

    I am still new to Java and I find that by far the aspect taking longest to understand is servlets.

    I am busy writing a servlet that must initially show an HTML form (if a FORM is actually needed...
  12. Re: Launching servlet in browser - error "The requested resource is not available"

    Okay, I solved this problem:

    As stated by Norm - the error log actually shows that line 42 of the web.xml file has an error. I examined that line and found a very stupid typo right at the...
  13. Re: Launching servlet in browser - error "The requested resource is not available"

    Guys, I insert below the content of an error file generated by Tomcat. I am a novice at Java, so to me it doesn't explain much. Please see if it helps to find the issue. Thanks!

    08 Sep 2017...
  14. Re: Launching servlet in browser - error "The requested resource is not available"

    Hey, Norm.

    I meant I wrote and compiled the said servlet, as per explanation in the post, and am trying to access it using URL in my browser. Would you have any suggestions as to the my said...
  15. Launching servlet in browser - error "The requested resource is not available"

    Hey, everyone! I truly hope you can help.

    I am well aware there have been many, many related questions asked already about this, as well as even more answers. Unfortunately, having tried all this...
Results 1 to 15 of 15


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)