Ivan Tamayo

Ranch Hand
+ Follow
since Aug 13, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ivan Tamayo

Core Servlets and JSP
17 years ago
Try

sendRedirect("/index.jsp");
19 years ago
JSP
Try opening a socket to this URL and reading the result.
19 years ago
There are two different environment variables:

PATH = Where are placed the javac and java program, besides others executables.

CLASSPATH = Where are the classes you need.

You should put the path of servlet-api.jar in the CLASSPATH
19 years ago
JSP
JSP are Servlets.
Servlets are web related programs written in Java. For that reason, you *should* learn the Java programming language as soon as possible, or you�ll find many troubles in future.
Isn�t that simple as PHP scripting.
20 years ago
JSP
In order to compile Servlets, you don�t have to download the entire J2EE.
What IDE or tool are you using?
20 years ago
You should first try Access without datasource, create a odbc alias, then a servlet that uses the bd.
Later you can use datasources
20 years ago
That�s not a JSP Question. Is a SQL question.
With ANSI SQL you cannot make such a query, the best you can hope is select * from employees order by salary and take the first 5 records.
With propietary extensions is possible.
Oh my God!
The out variable makes sense en the jsp page, is the JSPWriter used to make the response. This variable doesn't exist in your class.
You can replace the out.println in your class, return a String for the method and use that String in the JSP.
(I think you should read carefully the error messages before posting... )
20 years ago
JSP
A servlet is not required to have a init() method.
20 years ago
256 should be sufficient for anyone!
20 years ago
JSP
In general, if you want to call a servlet from another, use a RequestDispatcher.
20 years ago
This question is equivalent to:
"I�ve sent a file to a friend and i dont want him to see it"
Since the file is ALREADY in his computer, there�s no way you can limit his rights.
Any *protection* you put in the source code is irrelevant, remember the HTTP protocol
JSP
No.
The request and response can be used in the JSP scriptlets without explicit bean references.
20 years ago
JSP