navigation from one jsp to another jsp using db result column as a hyper link -


i fetching db result using class dao , displaying result on web page(.jsp file) using beans have navigate user jsp page while have useone of column hyper link navigate user. how it?

if understand requirement need dynamically create url user redirected , use url hyper linking particular column @ time of rendering entire resultset on jsp page. may find difficulties dynamically generating redirection url based on id parameters of resultset.

for can use similar below code snippet:

string uid = <some value resultset particular record>      string schemeprotocol = request.getscheme(); string servername = request.getservername(); int portnumber = request.getserverport(); string contextpath = request.getcontextpath();  string redirectionurl = schemeprotocol + "://" + servername + ":" + portnumber + contextpath + "/app/userinfo?uid=" + uid; 

and use redirectionurl on anchor attribute.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -