Click here to Skip to main content
15,911,531 members

Comments by Hamza Halim (Top 7 by date)

Hamza Halim 17-Jan-17 10:19am View    
Thank you Mr Ahmed, but i steel have the same problem. when i want to associate url to instance i go on sturts-config.xml file and i write the following lines:

<action path="/threed1" type="DManager1" validate="false">
<action path="/threed2" type="DManager2" validate="false">

and tomcat create instances of DManager1, DManager2 and associate these instances to paths /threed1, /threed2.

that's what i want to do dynamically without write these lines on sturts-config.xml file
Hamza Halim 16-Jan-17 9:40am View    
yes, it works, but how can i make this instance serve url one or url two ...
Hamza Halim 16-Jan-17 4:36am View    
i need to dynamically instantiate a java class that extends Action Class(struts), and associate this instance to a specific url without use struts-config.xml, to associate this url to that instance.

<action path="/threed1" type="DManager1" validate="false">


<action path="/threed2" type="DManager2" validate="false">

DManager1 and DManager2 in fact, are the same class. so what i want to do is to use just one class and create instances to treat urls(threed1, threed2, ..., threedN)
Hamza Halim 16-Jan-17 4:26am View    
Deleted
i have to serve multi client, by create a instance of my class that extends Action(struts). for every client i need one instance to treat client http Request
Hamza Halim 15-Jan-17 11:29am View    
thank you, but what i need seriously is that instance must be associated to url without use web.xml, just with coding