• 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
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

How to pass URL link to JSP page using onlcick event in JavaScript

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
i have one URL in servletmapping file,here i want to pass that url into JSP page.how can i do that?
can any one suggest?

Thanking you,
Regards,
Sreelakshmi.
 
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am totally at a loss as to what you are asking/trying to do. Could you expand on what you want to do and maybe provide an example? What is a "servletmapping file"?

- Brent
 
Sheriff
Posts: 28394
100
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And what does it mean to "pass a URL into" a JSP?
 
sreelakshmi kolla
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have one url in servletmapping named /DL.now i want to relate that url into jsp page in this link
<a href="<%= fileDisp1 %> onclick".here i want to pass that url into onclick method.how can i do that?
can anyone help?
Thank you,
Regards,
Sreelakshmi.
 
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See, if its work for you

I tried lots of time to add correct html, but i could not post in the correct syntax. it is shosing error me at writing onclick. so used onclick1. it is onclick actually. and please can anyone tell me how i can avoid this error message while posting the code containing html.
reply
    Bookmark Topic Watch Topic
  • New Topic