I just do this
 
<p><html:link href="petrol.do">Petrol</html:link></p>

this works for me.
 
Brian
 
 
------------------------------------------------------------
Brian Holzer
IT Analyst
Saskatchewan Government Insurance
email: [EMAIL PROTECTED]
phone: (306) 751-1629
     fax: (306) 569-7683

>>> Bert Catsburg 02/13/03 01:26pm >>> 
Hello, 

How do you include a link in your code which triggers an Action 
which has no Form. The Action class will activate a global 
forward. 
I hope somebody can help me since I am on this problem for 
two days now and have search the whole list, docs and both 
Struts-books. 
A simple direction where to look any further would be of much 
help. 

Thank you, 

Bert Catsburg 



Code samples: 

JSP with the link: 
------------------ 


Petrol

Struts Config 
------------- 







PetrolAction.java 
----------------- 
package senktar 
public class PetrolAction extends Action { 
public ActionForward execute(ActionMapping mapping, 
HttpServletRequest request, 
HttpServletResponse response) 
throws Exception { 

..... // Lines of code 

return mapping.findForward("index"); 
} 
} 


Reply via email to