Search:

Type: Posts; User: mastervh

Search: Search took 0.28 seconds.

  1. Replies
    2
    Views
    1,454

    Re: Question about sessions

    You need to store each user into a vector and then store the vector as a session variable.

    Take a look at java shopping carts for a better understanding


    ...
    public void...
  2. Re: Extending a Servlet and sharing HttpServletRequest

    Ye I been trying this - and in theory it would be in reverse - it still failed to work.

    If I explain what I am trying to achieve hopefully it will make more sense.

    If you take the code I have...
  3. Re: Extending a Servlet and sharing HttpServletRequest

    import java.io.*;
    import java.net.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.net.URL;

    public class Template extends HttpServlet {
    public...
  4. Re: how we can do that when one user is log suuceefully (servlets)

    Well you would probably need another db fields as a timedate

    `logged_in` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,

    select id from table where username='blah'...
  5. Re: Extending a Servlet and sharing HttpServletRequest

    Been doing some more testing - it appears that HttpServletRequest req is returning a null value.

    What I am trying to achieve is to let the 2nd extended class query the output of http request...
  6. Extending a Servlet and sharing HttpServletRequest

    Hi there.

    I been messing around with having a template master servlet which does all the verifications required and then running a basic code to extend from this template servlet.

    Within the...
Results 1 to 6 of 6