• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to give jsp page in href

 
divya kundapur
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a jsp page in this folder jsp/admin/ cc.jsp and i need to give a link to this jsp page



but this does not work
 
Ankit Garg
Sheriff
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Divya I think you should edit your message and disable HTML tags in it. I think your hyperlink is not showing up properly.

Anyways this should work fine

 
divya kundapur
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It did not work, i could not see the whole jsp page
 
Ankit Garg
Sheriff
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
divya kundapur wrote:It did not work, i could not see the whole jsp page


What do you mean by that. Can you see partial JSP page or nothing??
 
divya kundapur
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i could just see part of header in that jsp page .
 
Swastik Dey
Rancher
Posts: 1604
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A better solution might be to use url mapping in web.xml




<A href="main"> click here </a>
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're not providing enough information to help.

What do you mean, you "couldn't see the whole JSP page?" That doesn't have anything to do with the *link* to the page, that has to do with the page being linked to.

There's no reason to create a mapping in web.xml to link to a JSP page, and will just cause confusion later.
 
divya kundapur
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i mapped it in struts-config file since i need the value selected by the user. Thank you guyz.
 
Lei Guoguo
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a href="jsp/admin/cc.jsp" LINK

this link in which jsp page? please give the jsp page name and its folder
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic