This week's book giveaway is in the Python forum.
We're giving away four copies of High Performance Python for Data Analytics and have Tiago Rodrigues Antao on-line!
See this thread for details.
Win a copy of High Performance Python for Data Analytics this week in the Python forum!

Sankar B

Greenhorn
+ Follow
since Sep 23, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sankar B

Hi,
What yar. Then u might've provided to declare variable in JSTL and use it without making it as an scoped attribute. Cos, declaring variables are just used for some temporary operations within that page.
Or, Is there any option to declare variables in JSTL and use it without making it as an Scoped Attribute ?
Ex: int x,y; String myString; like this. But, without making it as a scoped attribute.
Yours,
Sankar.B
18 years ago
JSP
Hi
Sorry for asking this. Actually first ive used the getAttribute(jstl), i.e. without double quotes. So it gave error. After that, i used the getAttribute("jstl"), but, without converting it toString() ive used.
But, still im doubt whether without using JSP scriptlet can we use JSTL ? Cos, there is no designers and all here. All html coding as well as jsp coding we developers do. Cos, this is not a web site, we develop web based applications. So, we need to use JSP coding in html pages a lot.
Also, I think, if we start JSTL coding, we will forget Java syntax. Cos, all the JSTL tags use different syntax for all.
So, we fear whether we can utilise JSTL or stick with JSP itself or switch over to JSF when its released.
Yours,
Sankar.B
18 years ago
JSP
Dear Shawn,
Ok, Ill use pageContext to make the variable a scoped attribute.
But, when i use the c:set to set a variable, how to call it from a scriplet ?
c:set var="jstl" value="Shawn"
% String jsp = pageContext.getAttribute("jstl") %
is giving error.
How to call 'jstl' wich is a scoped attribute set in JSTL from a scriptlet ?
Yours,
Sankar.B
18 years ago
JSP
Hi,
See my problem is as follows:
In a JSP page, using scriptlet, we declare some variable. We may do some calculations on it based on the User input in few of the form fields by passing it to Javascript. Ok.
Now, my Q is how to use a variable which is declared in Java Scriptlet from JSTL ?
Ex: String x; int p,q; Now, how to access these variables from JSTL ?
Yours,
Sankar.B
18 years ago
JSP
Hi
For lot of simpler calculations and validations using Javascript we used to declare variables and then do them and use it in Javascript before submitting a form.
Say, int x=2,y=3;x=x+y; and use it in the form as a default value and then we may validate the user input from Javascript and then post the form date using Javascript itself. For these situations, we need to use Java code for declaring and calculations.
How to use the above declared value without making it as a scoped variable ?
Yours,
Sankar.B
18 years ago
JSP
Dear All,
How to declare variables and use it in JSTL as we do in a JSP page.
Example:
String x="test.jsp";
How to declare like this in JSTL or How to use this value of 'x' in JSTL ?
Yours,
Sankar.B
Information Dynamics, Chennai, India
18 years ago
JSP
Dear All,
Is it possible to share the variable declared in JSP from JSTL and from JSTL to Javascript ?
Example:
String x="ID";
out.println(x);
But, when I access this using JSTL out tag,
value="${x}"
Im not getting the value displayed. How to access it.
But, when i put the x value in
pageContext.setAttribute("jstlX",x);
Im able to get the value of the 'jstlX' using the out Tag.
How to access the value of a variable declared in JSP from JSTL Tag ?
How to pass value from Javascript to JSTL and JSTL to Javascript ?
Yours,
Sankar.B
Information Dynamics, Chennai, India
18 years ago
JSP