Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JSP
pageContext forwarding var into function
Marko Debac
Ranch Hand
Posts: 121
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi to all,
I want to ose page scope set values for arguments in function which is in the same
jsp
; I know how to set them, but I dont now how to call them.
I cant get it, please help:
... <c:set value="${param.name}" var="name" /> <c:set value="${param.pw}" var="pw" /> <% String name = pageContext.getAttribute("name");//here is something String pass = pageContext.getAttribute("pw");// wrong function(name,pass); %>
Thanks
Natasza Biecek
Greenhorn
Posts: 28
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hi,
... <c:set value="${param.name}" var="name" /> <c:set value="${param.pw}" var="pw" /> <% String name = (String)pageContext.getAttribute( "name" ); String pass = (String)pageContext.getAttribute( "pw" ); %>
regards,
Natasza
ps.
casting to
String
was missing...
[ October 31, 2006: Message edited by: Natasza Biecek ]
Ben Souther
Sheriff
Posts: 13411
I like...
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
There is no such thing as a 'function' in JSP.
Are you trying to write a javascript function (client) or a
Java
method (server)?
Java API
J2EE API
Servlet Spec
JSP Spec
How to ask a question...
Simple Servlet Examples
jsonf
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
How do I get the '� ' symbol to appear in a JSP
Difference between URLs: /? and /login?
Problem with JSTL c:out tag
JSTL Formatting
params in jsp:setProperty in .tag file won't accept el
More...