Click here to Skip to main content
15,889,595 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Suppose,

function abc(){    
var x='100';
var y='200';
var z=x+y;



In JSP age can I write the following snippet of code?
<%
String i=z;
%>
Posted
Updated 23-Apr-11 6:24am
v3

Yes :)

Based on your question, I think you have a bit of reading ahead of you. Here is a few options on reading up on jdbc and PostGreSQL - take your pick:
Search Google for: jdbc tutorial postgresql[^]

Regards
Espen Harlinn
 
Share this answer
 
no, javascript is client script,
and its run after the server response to the client.
I wonder if you can use <input type="hidden"/>?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900