
July 6th, 2002, 01:48 PM
|
|
Junior Member
|
|
Join Date: Jun 2002
Posts: 0
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Quote: Originally posted by jnicholas
A variable doesn't appear automatically like it does in php. You can grab a query string variable like this:
<% String myvariable = request.getParameter("variable"); %>
Also you can't test for string equality the way you did. if(variable == "test") would test if variable and "test" were the actual same object not just the same characters. you need if(variable.equals("test")) .
outprintln() also includes a line return already so you don't need the \n |
ok thanks for the help, i appreciate it... but i have another question, does jsp allow you to encrypt objects in the query string... for example in coldfusion i could encrypt the value of variable with something like this :
<CFSET variable2 = Encrypt(key, variable)>
this just adds a little more peace of mind when dealing with user information.
|