Forum: JSP Aug 17th, 2009 |
| Replies: 6 Views: 542 Can you please make clear the difference for me? |
Forum: JSP Aug 16th, 2009 |
| Replies: 6 Views: 542 Thanks again.
I was wondering... is
request.setAttribute("x","");
the same as
HttpSession session = request.getSession(true);
session.setAttribute("x",""); |
Forum: JSP Jul 22nd, 2009 |
| Replies: 1 Views: 1,118 Hello, I want to know if it is possible to do that, and how if yes.
I tried doing something like this
...
<%!
public static Object selectobject;
%>
<select name"xxx" onChange="<%... |
Forum: JSP Jul 21st, 2009 |
| Replies: 6 Views: 542 Please tell me something about sessions so i can know what to look for. Or give me a link to a tutorial,or smthing...
And what do you suggest me to do with the database? Is it storing the count in... |
Forum: JSP Jul 21st, 2009 |
| Replies: 6 Views: 542 Hello, i want to print on my website how many people are viewing it. I thought doing it with cookies:
1. Give the guest a guest cookie. Increase a static variable "guest".
2. If he registers, give... |
Forum: JSP Jul 21st, 2009 |
| Replies: 2 Views: 537 Hello CodeBoy101,
1. I don't think this code compiles because i don't see where you declared a "out" object for the following code.
catch(Exception ex){
out.println("error :"+ex);
}
2. This... |
Forum: JSP Jul 21st, 2009 |
| Replies: 2 Views: 532 harshit99, i'm sorry, i wasn't able to understand what was your question. Please be more coherent in thoughts and words. |
Forum: JSP Jul 17th, 2009 |
| Replies: 7 Views: 1,070 Thanks!
I do the following in my jsp page :
String path= request.getParameter("path");
but it returns null. The parameters that where given to the servlet are still there in jsp, but not so for... |
Forum: JSP Jul 17th, 2009 |
| Replies: 2 Views: 318 Let's say you retrieved some books' name/title from the database and you want to print their name/title on the page, and still be a link.
You'll have to write something like this:
<a... |
Forum: JSP Jul 17th, 2009 |
| Replies: 7 Views: 1,070 Thank you adatapost, but it's still not clear for me how to exactly do it, for i have tried the following :
public class ComputeSearch extends HttpServlet {
private static final long... |
Forum: JSP Jul 16th, 2009 |
| Replies: 2 Views: 477 What do you mean you store your password in the servlet? Is it a field of the class or directly typed in the source code?
If so then maybe your not doing it the way it meant to be...
Use a doPost... |
Forum: JSP Jul 16th, 2009 |
| Replies: 7 Views: 1,070 I'm sorry? .. I don't think i know about a request dispatcher, haven't heard of.
I'm new to java/jsp, i've started learning it form zero 2 weeks ago.
Please tell me how can i make it compile the... |
Forum: JSP Jul 15th, 2009 |
| Replies: 7 Views: 1,070 Hello. This is what i'm trying to do:
public class ComputeSearch extends HttpServlet {
private static final long serialVersionUID = 1L;
protected void doGet(HttpServletRequest request,... |
Forum: JSP Jul 15th, 2009 |
| Replies: 1 Views: 267 Sorry , i've found the problem myself . :) It looks like i didn't created a servlet but maybe accidentally an ordinary class. Now i made a servlet and copied everything there and all went smooth. |
Forum: JSP Jul 15th, 2009 |
| Replies: 1 Views: 267 Hello. I'm starting to have a headache at solving this. I work in Eclipse IDE and run the project on tomcat server.
What i do is this:
i have a form, like this:
<form method="GET"... |