Re: Multiple Struts Config Problem

2009-04-07 Thread srinivasch

Sanchayan,

   You should have used a different post than using my post. Its called
thread jacking. Please post a new one.

Thanks


Sanchayan Bandyopadhay wrote:
> 
> I have multiple user types in my application and for each such user type I
> intend to keep one specific struts-config.xml file.
> 
> In my web.xml, I have declared them as ...
> 
>   
>config
>/WEB-INF/struts-default.xml
>   
>   
>config/agents
>/WEB-INF/struts-agents.xml
>   
> 
> My application starts with the default struts file that’s the first one.
> In the given start up page, there is a login panel where the username and
> password is accepted. The users are unique and based on the user type if
> it is of "agent" type, the agents module take up.
> 
> My struts-default.xml file looks as below ...
> 
> 
> 
>   
>type="com.osl.forms.staticcontent.PortalHomeForm" />
>   
> 
> 
>   
>type="com.osl.action.staticcontent.PortalHome" name="PortalHomeForm"
> scope="request" validate="false">
>path="/application/staticcontent/index.jsp">
>path="/application/staticcontent/index.jsp">
>path="/agents/AgentHome.do">
>   
>   
>   
> 
> 
> 
> 
> Based on this I am able to move to the agent module and display the
> relevant pages. I have a logout button, clicking which the user should be
> taken back to the start up page with login panel after completing the
> necessary tasks.
> 
> My struts-agents.xml looks as below ...
> 
> 
> 
>   
>type="com.osl.forms.agentcontent.AgentHomeForm" />
>   
> 
> 
>   
>type="com.osl.action.agentcontent.AgentHome"
> name="AgentHomeForm" scope="request" validate="false">
>path="/config/PortalHome.do">
>path="/../application/agentcontent/index.jsp">
>   
>   
>   
> 
> 
> 
> But this logout thing is not working in the sense that I am unable to get
> back to the start up page and even before the server is started fully it
> is showing the message ---
> 
> The content of element type "struts-config" must match
> "(display-name?,description?,data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)".
> 
> Pls treat this as SOS.
> 
> Additional info: I am using JBoss server and struts 1.2
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Error-when-starting-sun-java-App-Server-com.opensymphony.xwork2.inject.DependencyException%3A-Security-manager-in-use%2C-could-not-access-constructor%3A-com.opensymphony.xwork2.ObjectFactory%28com.opensymphony.xwork2.ObjectFactory%29-tp22832385p22926714.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Multiple Struts Config Problem

2009-04-07 Thread Sanchayan Bandyopadhyay
I have multiple user types in my application and for each such user type I 
intend to keep one specific struts-config.xml file.

In my web.xml, I have declared them as ...

  
   config
   /WEB-INF/struts-default.xml
  
  
   config/agents
   /WEB-INF/struts-agents.xml
  

My application starts with the default struts file that’s the first one. In the 
given start up page, there is a login panel where the username and password is 
accepted. The users are unique and based on the user type if it is of "agent" 
type, the agents module take up.

My struts-default.xml file looks as below ...




















Based on this I am able to move to the agent module and display the relevant 
pages. I have a logout button, clicking which the user should be taken back to 
the start up page with login panel after completing the necessary tasks.

My struts-agents.xml looks as below ...


















But this logout thing is not working in the sense that I am unable to get back 
to the start up page and even before the server is started fully it is showing 
the message ---

The content of element type "struts-config" must match 
"(display-name?,description?,data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)".

Pls treat this as SOS.

Additional info: I am using JBoss server and struts 1.2





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



Re: Multiple Struts-config problem

2005-01-12 Thread Kishore Senji
The module name in the  should start with a "/"

link


On Wed, 12 Jan 2005 18:39:58 +0530, sachin <[EMAIL PROTECTED]> wrote:
> hi all ,
> 
> i am implementing multiple modules in struts 1.2.4
> i have two config files which i define in web.xml like
> 
>
>  config
>  /WEB-INF/struts-config.xml
>
>
>  config/master
>  /WEB-INF/master/master-config.xml
>
> 
> and in the master-config.xml i have an action defined like ...
> 
> 
>  name="cityMasterBean" scope="request" validate="true"
> input="/cityMaster.do">
> 
> 
> 
> but when i try to access the from with html link .. it gives error
> link
> 
> The error given is : no action found /cityAction
> 
> Please could tell me how to access the actions defined in modules
> 
> Sachin Hegde
> Paradyne Infotech Limited , Mumbai
> 09324546711
> 
> -
> 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]



Multiple Struts-config problem

2005-01-12 Thread sachin
hi all , 

i am implementing multiple modules in struts 1.2.4
i have two config files which i define in web.xml like


  config
  /WEB-INF/struts-config.xml


  config/master
  /WEB-INF/master/master-config.xml


and in the master-config.xml i have an action defined like ...






but when i try to access the from with html link .. it gives error 
link

The error given is : no action found /cityAction

Please could tell me how to access the actions defined in modules 


Sachin Hegde
Paradyne Infotech Limited , Mumbai
09324546711


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