473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

HTML JSP HREF parameters

Most likely a dumb question, but I am week in this area.
I have a table which is generated dynamically in my jsp as I do a jdbc
query. I have created an anchor
<TD><A><HREF="<%bean.getValue()%>?id=rs.getID()%>. ..I believe the
value is posted, since I move my mouse on top of the field and it
displays the right value....but where? I need to know which API I
should use to read id (HTTPServletRequest.getxxx?)
Thank you very much.
Jul 20 '05 #1
1 9893
Babak wrote:
I have a table which is generated dynamically in my jsp as I do a jdbc
query. I have created an anchor
<TD><A><HREF="<%bean.getValue()%>?id=rs.getID()%>. ..I believe the
value is posted, since I move my mouse on top of the field and it
displays the right value....but where? I need to know which API I
should use to read id (HTTPServletRequest.getxxx?)


This newsgroup isn't the best place to ask about server-side programming
(it's for HTML, hence the name ciwa.html). In future, please try and find
a suitable newsgroup, you are likely to get much better, faster help.

From the little I know about JSP, it looks like you want the getParameter()
method. Handling query strings is just about as basic as you can get with
server-side scripting, I'm sure you can find the answer in any decent
tutorial.

The HTML you have posted is badly broken, as any validator would tell you:

<URL:http://validator.w3.org/>

Also, remember that the JSP code goes between <% and %>, and that everything
outside of that is plain HTML that will be parsed by the user-agent and not
the server.

--
Jim Dabell

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: xmp333 | last post by:
Hi, I'm trying to create a page where clicking on a link will go to a php page and pass it parameters so it can determine which link was clicked. I don't want to use any client side scripting...
4
by: Troy Jerkins | last post by:
Hi all, I've been struggling for hours with this one and could really use some help converting the code. The HTML portion below works exactly the way I want it to: <a language="vbs"...
4
by: Brad Smith | last post by:
I have a unique requirement to run an executable file from withing a HTML document. The HTML is actually embedded in an email sent as a notification to a user of our application. I need to include...
2
by: +The_Taco+ | last post by:
I already use session variable in my project to set a session timeout when the user doesn't do anything for 10 minutes. When I call other pages, I often use parameters in HREF link. I was...
6
by: Paolo Pignatelli | last post by:
I have an aspx code behind page that goes something like this in the HTML view: <asp:HyperLink id=HyperLink1 runat="server" NavigateUrl='<%#"mailto:" &amp;...
1
by: kusanagihk | last post by:
To all, I'm working on a javascript to dynamic build a common set of HTML controls. 01) I've used the DOM object to build a <div> tag; then build 1 <input type='button'/> and 1 <input...
1
by: Dave Kelly | last post by:
I'm posting on this again. Sorry I am so thick heading but I do not understand why this failure. I have put in some 'printf' statements for debugging and some comments. And some questions. ...
16
by: Eric | last post by:
I have a user of a web application written in Java/JSP that is unable to login to the site simply because certain links on the page do not run when they are clicked. Other popups using Javascript...
7
by: Mariusf | last post by:
I am a novice Perl programmer and need to change a perl script that I use to create web pages with thumbnail images and some text. Currently the script created a web page for each artist / category...
0
by: Elroyskimms | last post by:
I'm updating an existing project to send data between pages using Server.Transfer (HTTPContext) instead of response.redirect and querystring parameters. All of my web user controls inherit from a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.