java - JSP code error - can't figure why -


')' expected out.println("welcome "+myname+", <a href="logout.jsp\" >logout</a>");                                           ^  illegal character: \92 out.println("welcome "+myname+", <a href="logout.jsp\" >logout</a>");                                                     ^ 

all jsp files in 1 folder, not sure why issue?

the quotes around logout.jsp need escaped. change to:

out.println("welcome "+myname+", <a href=\"logout.jsp\" >logout</a>"); 

Comments

Popular posts from this blog

php - How to build a web site which gives a sub-domain dynamically to every registered user? -

c# - Add item to Generic List / Collection using reflection -