making each column Value clickable such that the page id redirected to the corresponding page

I have written my First JSP apllication wherein I parse a text file and show it in a Table .

Each row has some unique Identifiers  (some thing line AA1234 ,GO:123 ..etc ) these Identifiers can be linked to external side by adding the Identifier to the end

something like

http://www.godatabase.org/cgi-bin/amigo/go.cgi?action=query&view=query&search_constraint=terms&query=5737

where the 5737 is the Id I have in the Table ..

I was wondering how I can make the values in each row clickable such that the corresponding click will direct the page to the the requisite one


Could you gimme  an example which does this ..any small example would do ..
micro_learnerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kelvin_KingCommented:
It's called a hyper link, in fact all you need to do is go to the browser and click view source and you can see that the code that does this is :

<a href="javascript:NewWindow('go.cgi?view=details&show_associations=list&search_constraint=terms&depth=0&query=GO:0005737&session_id=5480b1139976105', 'Details', '650', '650', 'custom', 'front');" class="aspect">cytoplasm</a>

Give it a shot : )
Giant2Commented:
Agree with Kelvin_King.
It use a function:
function NewWindow(mypage,myname,w,h,pos,infocus)
to open a window with parameter passed (position, focus, etc.).
See the html source to view it full
micro_learnerAuthor Commented:
I am extarcting the Identifier from an array and I am unable to insert the variable into the href ...could you please help me here

say the variable is in "dataToken[i])" and I need to embedd this "value" at the end the URL ""http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?db=nucleotide&val="

Tried this but this does not work ...
 

*******************

<%        
                        
                  <a href=
                  <%
                  "http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?db=nucleotide&val="+dataToken[i];
                  %>
                  >
                  <%
                  out.println(dataToken[i]);
                  %>
                  </a>            
                  <% } %>
*******************************************************
OWASP: Threats Fundamentals

Learn the top ten threats that are present in modern web-application development and how to protect your business from them.

Giant2Commented:
<a href="http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?db=nucleotide&val=<%=dataToken[i]%>">
               <%=dataToken[i])%>
               </a>

In this manner you write the link directly. To open in a new window you can call the target. So your code became:
<a href="http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?db=nucleotide&val=<%=dataToken[i]%>" target="_blank">
               <%=dataToken[i])%>
               </a>

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Giant2Commented:
OR somthing like:
<a href="javascript:NewWindow('http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?db=nucleotide&val=<%=dataToken[i]%>','Details', '650', '650', 'custom', 'front')">
<%=dataToken[i])%>
</a>

and use the same NewWindow script of the page you posted at top.
Giant2Commented:
:-)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.