aspose file tools*
The moose likes Struts and the fly likes how to give jsp page in href Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to give jsp page in href" Watch "how to give jsp page in href" New topic
Author

how to give jsp page in href

divya kundapur
Ranch Hand

Joined: Aug 21, 2007
Posts: 110
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


SCJP - 5.0
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9305
    
  17

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



SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
divya kundapur
Ranch Hand

Joined: Aug 21, 2007
Posts: 110
It did not work, i could not see the whole jsp page
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9305
    
  17

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

Joined: Aug 21, 2007
Posts: 110
i could just see part of header in that jsp page .
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1477
    
    6

A better solution might be to use url mapping in web.xml




<A href="main"> click here </a>


Swastik
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Aug 21, 2007
Posts: 110

i mapped it in struts-config file since i need the value selected by the user. Thank you guyz.
Lei Guoguo
Greenhorn

Joined: Mar 31, 2009
Posts: 26
a href="jsp/admin/cc.jsp" LINK

this link in which jsp page? please give the jsp page name and its folder


I'm a chinese, my english is so bad, I need help. If you want to help me, you can send your question to my e-mail: lgg860911@yahoo.com.cn, I will help you, and improve my english. Thanks everyone.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to give jsp page in href