emmanuel ramos

+ Follow
since Dec 21, 2011
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by emmanuel ramos

thank you very much is what I wanted

Vishal Shaw wrote:Hi,

Please check out this link


9 years ago

Bear Bibeault wrote:I don't really know what you mean by that, but you shouldn't be using scriptlets in a JSP at all. You should be using the JSTL's <c:url> tag to create properly encoded URLs.

Please read this this JspFaq entry.

I'am reading the book "Head Firts in Servlets and JSP" and the book put this code

public void doGet(HttpServletRequest request, HttpServletResponse response)
throws IOException {
PrintWriter out = response.getWriter();
HttpSession session = request.getSession();
out.println(“click me”);

and Say " if you
don’t explicitly encode your URLs, and the client won’t accept cookies,
you don’t get to use sessions. If you do encode your URLs, the Container
will first attempt to use cookies for session management, and fall back to URL
rewriting only if the cookie approach fails."

My question is what is the diference between response.encodeURL() and encodeRedirectURL(), because in the book are very similar this methods?

9 years ago
hi All
I have a question about the encodeURL and encodeRedirectURL, what is the diference between them and why if I put

<a href="<% response.encodeURL("sessions.jsp"); %>">link</a>

why this link points to another direction that is not the JSP

9 years ago

Paul Clapham wrote:Probably one of the threads in that thread pool. Why do you ask?

I wanted to know who invoked the method init (), but I see it is of the threads in the pool
thank you very much it was the question
9 years ago

Paul Clapham wrote:Did you interpret that to mean that a new thread is created for every single request?

Because that isn't what actually happens in real-life servlet containers. There is a pool of threads which are reused as required. So a request which happens at 10 am and another request which happens 6 hours later might run in the same thread. All that can be said for sure is that two requests which are running at the same instant will be running in different threads.

Just one question, which thread invokes the method init () and what happens with the thread
9 years ago
hello, I have a question I'm reading a book servlets, but I do not understand something,
the book says that each request runs in a separate thread
but if I sobreescribo the method init () and print the name of the thread that runs, the same name appears in the JSP

//in the Servlet

public void init(){
System.out.println("Mi thread is "+ Thread.CurrenThread().getname());


//in the JSP


System.out.println("Mi thread is "+ Thread.CurrenThread().getname());


Why when I run for the first time have the same name

9 years ago
But because if the Midlet comes destroyApp (), I guess that ends the execution or had to do to no longer return startApp () in the code above
9 years ago
hello all ,I would like to help me , I have a question regarding the status changes midlet,
and is why when I run the outputs are


I do not understand that the last thing printed is "activate" if the Midlet is supposed to be destroyed and release resources
I would appreciate it.

9 years ago
Hi all, I'm starting to read the book Design Patterns in Java but do not quite understand the Facade pattern,
someone could help me with a little more information about this pattern, they are appreciated.
9 years ago
I plan to submit the certification Mobile
hi could someone help me with some titles to study the SCJD certification, either free books or books pay. would be helpful.
please someone could help me with a question with the code because they do not understand why let me enter an inner class in an enum
so as this example and how it could make an instance of outside

please can any help me with some informacion about Quantifiers and the diference betwen "gredy" and "reluctant"