R: how to handle requests submitted using java script with a LookupDispatchAction subcalss

2006-04-06 Thread Diaconu Eduard
 protected Map getKeyMethodMap() {
Map map = new HashMap();
map.put("getPrograms","getPrograms");
return map;
}
 ApplicationResources.properties 
getPrograms=getPrograms

 in jsp


-Messaggio originale-
Da: Nava Krishna Mallela [mailto:[EMAIL PROTECTED]
Inviato: giovedì 6 aprile 2006 12.32
A: user@struts.apache.org
Oggetto: how to handle requests submitted using java script with a
LookupDispatchAction subcalss



Hi,

Please guide me overcome this issue.

My jsp page has two list boxes, the values in one of those 
boxes(dependent list box) are populated depending on the selected value 
in the other one (independent listbox).

I tried submitting the value selected in the independentlistbox using 
javascript.
I am using LookupDispatchUpAction subclass to handle this request.

I am getting  the following error message,

javax.servlet.ServletException: Request[/effortTracker] does not contain 
handler parameter named method
   
 
org.apache.struts.actions.LookupDispatchAction.execute(LookupDispatchAction.java:200)
   
 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446)
   
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)





Extract from jsp:
--

Select




The javascript used:


function resubmit(form_name,method_value)
{

document.forms[form_name].method.value= method_value;
document.forms[form_name].submit();

}

LookupDispatchAction subclass:


public class EffortAction extends LookupDispatchAction{

protected Map getKeyMethodMap() {
Map map = new HashMap();
map.put("getPrograms","getPrograms");
return map;
}

public ActionForward getPrograms(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException
{

I have a parameter named "method" configured in struts- config.xml.






 ApplicationResources.properties


I will be happy to provide any more information as you find needed. 
Thank you

Regards,
Nava Krishna M





-
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]



Validator with DynaValidatorForm

2005-12-28 Thread Diaconu Eduard
I would like to know whether to implement validator with DynaValidatorForm (I 
hope that and possible)  
  
thanks   
edward

-Messaggio originale-
Da: Vasumathi [mailto:[EMAIL PROTECTED]
Inviato: mercoledì 28 dicembre 2005 11.56
A: Struts Users Mailing List; [EMAIL PROTECTED]
Oggetto: RE: Regarding Log4j


Thank you very much sir.

I am having one doubt.we are using Tomcat.can u tell me how to configure 
log4j.xml in web.xml.i got the following information already from u.bcoz i got 
server error when deploying and starting the server.


Quoting "JEEVANATHAM P. /BPCRP/INFOTECH/VASHI" <[EMAIL PROTECTED]
infotech.com>:

> 1.Download log4j.jar from here
> http://jakarta.apache.org/log4j/docs/download.html
> 
> Put the jar in web-inf/lib
> 
> 2.Create log4j.xml in your WEB-INF/classes directory.
> 
> ++ sample log4j.xml +
> 
> ***
> 
> 
> 
> 
> 
>  
> 
> 
> 
>  
> 
>   
> 
>   
> 
> 
> 
>
> value="[%d{ISO8601}] [WEbAPP] [%5p] %C.%M:%L: %m%n"/>
> 
> 
> 
>   
> 
>  
> 
>   
> 
> 
> 
> 
> 
>   
> 
> 
> 
> 
> 
> 3.Create instance for your class log4j
> 
> private Logger logger = Logger.getLogger(yourclass.class);
> 
>  
> 
> then you can any where in your class instead of System.out.println()any one
> of the below.
> 
> logger.debug();
> 
> logger.info();
> 
> logger.error();
> 
> logger.Warn();
> 
> logger.fetal();
> 
>  
> 
> that's all.
> 
>  
> 
> Regards,
> 
> Jeeva.P
> 
>  
> 
> -Original Message-
> From: Vasumathi [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, December 28, 2005 9:28 AM
> To: Struts Users Mailing List
> Subject: Regarding Log4j
> 
>  
> 
>  
> 
>  
> 
> Hi Guys
> 
>   I am working on struts for last one year. In my current project we are
> using 
> 
> Log4j for Logger.i like to know how to configure and use in our
> application.
> 
> particularly we are using Ant tool.
> 
>  Anyone can help me please.
> 
> its very urgent please
> 
> regards
> 
> vasumathi.p
> 
>  
> 
> -
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> 
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -- 
> Greetings!
> 
>  
> 
> 
> ICICI Infotech is now 3i Infotech.
> 
> 
> The e-mail addresses of the company's employees have been changed to
> @3i-infotech.com. You are requested to take note of this new
> e-mail ID and make use of the same in future
> 
>  
> "This e-mail message may contain confidential, proprietary or legally
> privileged information. It should not be used by anyone who is not the
> original intended recipient. If you have erroneously received this message,
> please delete it immediately and notify the sender. The recipient
> acknowledges that 3i Infotech or its subsidiaries and associated companies,
> (collectively "3i Infotech"), are unable to exercise control or ensure or
> guarantee the integrity of/over the contents of the information contained in
> e-mail transmissions and further acknowledges that any views expressed in
> this message are those of the individual sender and no binding nature of the
> message shall be implied or assumed unless the sender does so expressly with
> due authority of 3i Infotech. Before opening any attachments please check
> them for viruses and defects."
> 
> 




-
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]



R: frame

2005-11-08 Thread Diaconu Eduard
To me it interests to go out of the frame nell certain condition. I know only 
it when I arrive in action

-Messaggio originale-
Da: Dixa M [mailto:[EMAIL PROTECTED]
Inviato: martedì 8 novembre 2005 10.16
A: Struts Users Mailing List
Oggetto: Re: frame


  
I cant exactly tell how toimplement in struts but. u can use a simple form 
having a 'target' as your desired frame. that means when the form is submited 
your result will be focused in the frame specified in form's target.This can be 
done with Struts html:form too.

Hope this will help you,
Best luck

On Tue, 08 Nov 2005 Diaconu Eduard wrote :
>with javascript to go out of a frame "test" you do
>
>parent.test.location.href = "test.jsp"
>
>How does it do him in struts? without javascript if and possibility. Interest 
>me if I arrive within in an action and I want to go out of the frame
>how do I do?
>thanks
>Tedy
>
>-
>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]



frame

2005-11-08 Thread Diaconu Eduard
with javascript to go out of a frame "test" you do  
  
parent.test.location.href = "test.jsp"  
  
How does it do him in struts? without javascript if and possibility. Interest 
me if I arrive within in an action and I want to go out of the frame   
how do I do?  
thanks  
Tedy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



frame

2005-11-08 Thread Diaconu Eduard
with javascript to go out of a frame "test" you do  
  
parent.test.location.href = "test.jsp"  
  
How does it do him in struts? without javascript if and possibility. Interest 
me if I arrive within in an action and I want to go out of the frame   
how do I do?  
thanks  
Tedy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



R: trouble with dispatching on a paramter

2005-10-18 Thread Diaconu Eduard


-Messaggio originale-
Da: Troy Bull [mailto:[EMAIL PROTECTED]
Inviato: martedì 18 ottobre 2005 14.35
A: user@struts.apache.org
Oggetto: trouble with dispatching on a paramter


Hello

I am trying to get my form to dispatch to different functions inside my 
action handler class.  I followed this tip exactly : 
http://www.husted.com/struts/tips/002.html (except i fixed a couple type 
o's).

The problem is my dispatch parameter is not being recognized.  I have 
the following code in my ActionForward execute method:

   SearchForm s = (SearchForm) form;
   String dispatchString = (String) request.getAttribute("dispatch");
   System.out.println("this is execute");
   System.out.println(dispatchString);
   System.out.println(s.getDispatch());

and it prints out the following

05/10/18 07:30:28 this is execute
05/10/18 07:30:28 null
05/10/18 07:30:28 run_main_search


what I want is the method run_main_search to execute instead.
My strut-config contains the following action mapping:


 
   

Any ideas?

Thanks in advance

troy

unknown
protected boolean unknown
Indicates Action be configured as the default one for this module, when true


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]