Have a link call an Action? Try to use the <html:link /> tag like this: <strutshtml:link href="Action.do" paramId="custPIC" paramName="dataItem" paramProperty="custPIC"><B><strutsbean:write name="dataItem" property="custPIC" /></B> </strutshtml:link>
Brian Tricky failure. I have to parameters which have the same name. One is a String which is sent with the request and the other parameter is an abstractObject which is populated in the formBean. Struts tried to set the string value from request into the abstractObject and failed Manuel An "'Struts Users Mailing List'" "Saul Q Yuan" <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Kopie 22.01.2004 16:43 Thema RE: Urgent: Call ActionClass from link Bitte antworten an "Struts Users Mailing List" <[EMAIL PROTECTED] org> I guess you're missing the web context in the action, try use <html:rewrite page="InfoAction.do" /> instead of InfoAction.do in the open function, that way it'll prefix the web context in the action. Saul -----Original Message----- From: Manuel Lenz [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 9:54 AM To: Struts Users Mailing List Subject: Urgent: Call ActionClass from link Hi to all, I still have the same problem and didn t find any hint in the list archive. I want to call an ActionClass from a Link. This code should be run (I copied it from an archive topic): <a class="leftnav" href="javascript:window.open('InfoAction.do','windowName', 'status=no')"> But if I deploy this code my appServer returns an error: [INFO] RequestProcessor - -Processing a 'GET' for path '/InfoAction' [22.01.04 15:46:04:696 CET] 43b8e552 WebGroup X Servlet Error: : java.lang.NullPointerException at org.apache.struts.util.RequestUtils.forwardURL(RequestUtils.java:1223) But there exists an Action which has this name? Any idea why this doesn t work? Manuel --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]