Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stupid error (create a string in a jsp)

Status
Not open for further replies.

tyris

Programmer
Nov 2, 2000
311
FR
hi all,
as i'm new to jsp my question i stupid but do you kown why with this code :

Code:
<%@ page language=&quot;java&quot; %>
<%@ page import=&quot;java.util.*&quot; %>
<%@ page import=&quot;java.lang.*&quot; %>
<html>
<body>
      <% String toto = &quot;blah&quot;; %>
blahh blahh
(html code)
      <%= toto %>
</body>
</html>

I do have this error :

Code:
C:\WebSphere\AppServer\temp\default_host\MyWebApp\ConnClass2_jsp_52.java:93: Invalid declaration. String toto = &quot;toto&quot;;

what's the problem with my declaration ? Best regards X-),
Elise
 
well sorry my question was really stupid i've found the problem Best regards X-),
Elise
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top