File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Newbie help using html:link action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Newbie help using html:link action" Watch "Newbie help using html:link action" New topic
Author

Newbie help using html:link action

John Zwick
Ranch Hand

Joined: Mar 02, 2009
Posts: 34
I am having trouble getting two links to work. When I click on the links, it doesn't forward to the appropriate page. I am not getting any exceptions on the server either.
Can someone show me what I am doing wrong?

The jsp:

The action-mapping in struts-config file:


The DisplaySearchPageAction class:
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I totally can't read that.

Is it rendering correctly? I don't recall if you can create the entire link like that when using the "action" attribute; there are other attributes normally used to specify parameters (paramId, paramName, paramProperty come to mind).
John Zwick
Ranch Hand

Joined: Mar 02, 2009
Posts: 34
David Newton wrote:I totally can't read that.

Is it rendering correctly? I don't recall if you can create the entire link like that when using the "action" attribute; there are other attributes normally used to specify parameters (paramId, paramName, paramProperty come to mind).


Sorry about the formatting on my original post. I have edit it and it looks better now.

Yes, the links are rendering correctly. It's just that when I click on the links, they don't get forwarded to the appropriate page, it just stays on the same page.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Newbie help using html:link action
 
Similar Threads
Getting Bad Request
DispatchAction:seems fine, but doesn't work
Error: DispatchMapping[/login] does not define a handler property
Pass Parameter value to dipatchMethod
execute method