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:
Tim Cooke
Campbell Ritchie
Ron McLeod
Junilu Lacar
Liutauras Vilda
Sheriffs:
Paul Clapham
Jeanne Boyarsky
Henry Wong
Saloon Keepers:
Tim Moores
Tim Holloway
Stephan van Hulst
Piet Souris
Carey Brown
Bartenders:
Jesse Duncan
Frits Walraven
Mikalai Zaikin
Forum:
JSP
Appending Variables
Jeff Chuongvan
Greenhorn
Posts: 1
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I'm attempting to join variables into one variable, in a
JSP
.
&lname=<%=user_lastName%>
&fname=<%=user_firstName%>
Can someone please show me how to do this?
Bear Bibeault
Sheriff
Posts: 67645
173
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I am not clear on what you are trying to accomplish. Is perhaps something like:
<%= fname + lname %>
what you are after?
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
merwin pinto
Ranch Hand
Posts: 39
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I think you are trying to send a jsp variable as a parameter to the next page ... You could try this
in the script ...
var lastName="<%=user_lastName%>";
var firstName="<%=user_firstName%>";
window.open('somePage?fname='+firstName+'&lname='+lastName,'scrollbars=yes,width=980,height=600'
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
how to compare two variables in struts logic:equal
ArrayList gets duplicate values in JSP
Doubt on an Jsp file
Tags with scripting varaibles .
Swimming up Stream
More...