You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Gemes Tibor <ti...@i-trade.hu> on 2003/06/23 13:57:12 UTC

Re: question in lookupdispatchaction

Frances Aleah Z. de Guzman írta:

>im using lookupdispatchaction with parameter handler "action",  in my jsp i 
>have a <html:submit property="action"><bean:message key="log"/></html:sumbit>
>my application works fine when i click the submit button, but how can i call 
>the same actionforward in my lookupdispatchaction when i press the enter key? 
>the exception im getting is "Request[/timelog] does not contain handler 
>parameter named action"
>  
>

Use a hidden parameter for the "action" property.
(btw the input named "action" is a bad idea, as it hides the action 
attribute of the html form).



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: question in lookupdispatchaction

Posted by "Frances Aleah Z. de Guzman" <ad...@ingenium.com.ph>.
by the way it worked! thanks a lot

On Monday 23 June 2003 09:12 pm, Gemes Tibor wrote:
> Frances Aleah Z. de Guzman írta:
> 
>
> >i followed your advice but im encountering the same exception
> ><html:hidden property="method"><bean:message key="Log"/></html:hidden>
> >  
> >
>
> Accidentally you sent a mail directly to me.
> 
> There is no reason to use <bean:message> in hidden tags.
> Have you tried using a required validator on parameter method?
> 
> (the method is an attribute of the html form again, sorry)
> 
> Tib
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 

-- 
Frances Aleah Z. De Guzman
SA/Programmer
Ingenium Technology, Inc.
http://www.ingenium.com.ph

Disclaimer :
This message is intended only for the named recipient. If you are not the
intended recipient you are notified that disclosing, copying, distributing
or taking any action in reliance on the contents of this information is
strictly prohibited.



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: question in lookupdispatchaction

Posted by Gemes Tibor <ti...@i-trade.hu>.
Frances Aleah Z. de Guzman írta:

>i followed your advice but im encountering the same exception
><html:hidden property="method"><bean:message key="Log"/></html:hidden>
>  
>
Accidentally you sent a mail directly to me.

There is no reason to use <bean:message> in hidden tags.
Have you tried using a required validator on parameter method?

(the method is an attribute of the html form again, sorry)

Tib




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: question in lookupdispatchaction

Posted by "Frances Aleah Z. de Guzman" <ad...@ingenium.com.ph>.
i followed your advice but im encountering the same exception
<html:hidden property="method"><bean:message key="Log"/></html:hidden>

On Monday 23 June 2003 07:57 pm, Gemes Tibor wrote:
> Frances Aleah Z. de Guzman írta:
> 
>
> >im using lookupdispatchaction with parameter handler "action",  in my jsp
> > i 
 have a <html:submit property="action"><bean:message
> > key="log"/></html:sumbit> my application works fine when i click the
> > submit button, but how can i call the same actionforward in my
> > lookupdispatchaction when i press the enter key? the exception im getting
> > is "Request[/timelog] does not contain handler parameter named action"
> >  
> >
>
> 
> Use a hidden parameter for the "action" property.
> (btw the input named "action" is a bad idea, as it hides the action 
> attribute of the html form).
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 

-- 
Frances Aleah Z. De Guzman
SA/Programmer
Ingenium Technology, Inc.
http://www.ingenium.com.ph

Disclaimer :
This message is intended only for the named recipient. If you are not the
intended recipient you are notified that disclosing, copying, distributing
or taking any action in reliance on the contents of this information is
strictly prohibited.



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


I am Not Able To See any Logs From My Action Classes

Posted by AshokD <as...@visualsoft-tech.com>.
Dear All,

I am in a confusion problem.

I configured Log4J through my CustomActionServlet, init() method. It is
configuread successfully I got a log from this init() method also.


[6/25/03 8:27:46:888 GMT-05:00]   63ffdf SystemOut     U 08:27:46,887
[ORB.thread.pool:2] DEBUG com.vm.cart.struts.CartActionServlet -
CartActionServlet: init() : Logging Configuration Setted Sucessfully through
CartActionServlet init method

But I am not able to see any other logs except above log.

I tried with my jsp page. I am getting those logs also.

Another strage thing is I am not able to see any System.out.println also
from Action classes. But I am  able to see the System.out.println s from my
jsp page.

Can any through some light on this problem.

Thanks & Regards,
Ashok.D


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org