File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes html:link is not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:link is not working" Watch "html:link is not working" New topic

html:link is not working

rajareddy annavaarm
Ranch Hand

Joined: Mar 15, 2007
Posts: 96
when I am clicking on link ,struts giving page cant be dispayed.
this link is not invoking action class.

this is my code

<html:link page="/">edit</html:link>

what is the problem
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3381

kindly check (or double check)your struts-config.xml file. or can you paste it here?

Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Ajit Kanada
Ranch Hand

Joined: Jan 23, 2001
Posts: 95

Instead of this

try this


harsha veeravalli

Joined: May 23, 2007
Posts: 6

check whether you have an action class called "edit" and check if it is mapped in struts config

Harsha Veeravalli<br />SCJP 1.5
rajareddy annavaarm
Ranch Hand

Joined: Mar 15, 2007
Posts: 96
now its working.the mistake what i did was i didnt extend Action class for action class
I agree. Here's the link:
subject: html:link is not working
It's not a secret anymore!