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!

JSP qns? 1

Status
Not open for further replies.

yama

Programmer
Jun 28, 2001
69
SG
hi, I go two qns to ask, hope someone could help mi out =)

1) Can I use integrate javascript with JSP codes in a single JSP page?

2)If i want to encrypt something without using SSL, how do i encrypt a text on client side, then send to server the encrypted text? I can't use javascript cos this will make the algorithm visible to the client.

Thanks


 
1) A JSP page outputs whatever you tell them to. So you can use javascript just like in any plain HTML document. The thing to note is that client-side javascript cannot seamlessly interact with server-side Java code. This is a mistake that most beginners make, they assume they can access variable between javascript and JSP code.

2) This is exactly what SSL does. No other way around it. Wushutwist
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top