user « Request « JSP-Servlet Q&A





1. What are some thread safe techniques for storing data about a single user's request in a servlet?    stackoverflow.com

If a servlet is not thread safe, then does that mean that all objects created and referenced during the servlet lifecycle are not thread safe? Maybe I'm not quite getting this, ...

2. How to display variant number of record each page based on user's request ?    coderanch.com

On one shopping cart jsp page it displayes the records retrieved from database in table format. Now I find I have so many records (rows) to display, so I want to give user an option to choose how many rows they want to view on each page, e.g. they can choose to view 10 rows, or 20 rows, and if they ...

3. Prioritize user request    coderanch.com

Hi, Firstly, I'm sorry if I posted to a wrong place as I don't where it should fit. My question is if I have a web resource, says a JSP page, and I'd like to give priority to certain user to access the page. i.e. paid user will have faster access than anonymous user How can I achieve it? I've read ...

5. restricting users resubmiting requests    coderanch.com

No, that not. You already mentioned the PRG pattern for that. Another alternative is a (preshared) key with an unique identifier in the session scope which is been passed as request parameter and is immediately handled on the very beginning of the request processing. Apache's MVC framework Struts uses this technique under the caller "token".