Re: multiple modules & "cannot retrieve mapping" & not fun!

2003-11-24 Thread Manish Singla
Use this
/author/loginAuthor.do
in html-el:form
HTH
Manish Singla
Matt Pease wrote:
Hi all --

  I'm trying to move to struts 1.1 multiple application modules &
am getting a very frustrating error that I can't seem to move around.  I've
searched the archives & haven't found a solution.  Bummer!
   When I try to access a very simple JSP (/author/login.jsp) with
a html:form, Struts gives an error saying "Cannot retrieve mapping for
action /loginAuthor".
   What is strange though is that I can go to /author/loginAuthor.do &
struts
finds the mapping then.
  It seems like the login.jsp page doesn't realize that it is in the author
sub-application.  How do I make the JSP know which sub-app it is part of?
The documentation wasn't very clear on this (or at least I couldn't find it)
  The error, a description of my setup, & important parts of various files
are below.
  Has anyone seen this before?  What am I doing wrong?

Thanks very much-
Matt
http://localhost/together/author/login.jsp  -- this gives:
500 Servlet Exception
javax.servlet.jsp.JspException: Cannot retrieve mapping for action
/loginAuthor
at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:810)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506)
at org.apache.strutsel.taglib.html.ELFormTag.doStartTag(ELFormTag.java:324)
at _author._login__jsp._jspService(/author/login.jsp:9)
at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
at com.caucho.jsp.Page.pageservice(Page.java:553)
etc.
http://localhost/together/author/loginAuthor.do  -- this works!!

--
my setup
  I've set up my main web.xml file for multiple applications as instructed
in the struts user guide.  DTD refs in all the struts-config files are 1.1
versions.   The webapp itself is under the /together context.   App server
is Caucho Resin.  Struts is the latest 1.1 release.
---from web.xml
  
action
org.apache.struts.action.ActionServlet

  config
  /WEB-INF/struts-config.xml  


  config/author
  /WEB-INF/struts-author-config.xml

2

  

  
---  from
struts-author-config.xml ---





- from
uthor/login.jsp   ---
<%@ page language="java" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html-el";
prefix="html-el" %>


email address: 
Password: 






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


--
Thanks
Manish Singla
x73166
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


multiple modules & "cannot retrieve mapping" & not fun!

2003-11-22 Thread Matt Pease
Hi all --

  I'm trying to move to struts 1.1 multiple application modules &
am getting a very frustrating error that I can't seem to move around.  I've
searched the archives & haven't found a solution.  Bummer!

   When I try to access a very simple JSP (/author/login.jsp) with
a html:form, Struts gives an error saying "Cannot retrieve mapping for
action /loginAuthor".
   What is strange though is that I can go to /author/loginAuthor.do &
struts
finds the mapping then.

  It seems like the login.jsp page doesn't realize that it is in the author
sub-application.  How do I make the JSP know which sub-app it is part of?
The documentation wasn't very clear on this (or at least I couldn't find it)

  The error, a description of my setup, & important parts of various files
are below.

  Has anyone seen this before?  What am I doing wrong?

Thanks very much-
Matt


http://localhost/together/author/login.jsp  -- this gives:
500 Servlet Exception
javax.servlet.jsp.JspException: Cannot retrieve mapping for action
/loginAuthor
at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:810)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506)
at org.apache.strutsel.taglib.html.ELFormTag.doStartTag(ELFormTag.java:324)
at _author._login__jsp._jspService(/author/login.jsp:9)
at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
at com.caucho.jsp.Page.pageservice(Page.java:553)
etc.

http://localhost/together/author/loginAuthor.do  -- this works!!


--
my setup

  I've set up my main web.xml file for multiple applications as instructed
in the struts user guide.  DTD refs in all the struts-config files are 1.1
versions.   The webapp itself is under the /together context.   App server
is Caucho Resin.  Struts is the latest 1.1 release.

---from web.xml
  
action
org.apache.struts.action.ActionServlet


  config
  /WEB-INF/struts-config.xml  



  config/author
  /WEB-INF/struts-author-config.xml


2

  

  
---  from
struts-author-config.xml ---





- from
uthor/login.jsp   ---

<%@ page language="java" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html-el";
prefix="html-el" %>



email address: 
Password: 









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



Re: Multiple modules in a .EAR without code replication

2003-11-11 Thread Brice Ruth
We just finished a thread on this - see the thread named "Struts across 
WARs" ...

http://www.mail-archive.com/[EMAIL PROTECTED]/msg86129.html

[EMAIL PROTECTED] wrote:

I am creating a STRUTS based app with .EAR as the deployable in which I
want to host 2 .WARs, one for the internal user and the other for external
user. I want to have exactly the same code base for both WARs including any
resources and property/configuration files etc but for one Action class.
Any suggestions how do I achieve this without replicating the code in both
the .WARs
Regards
Sreekant G
@ 98404-65630
 



This mail was scanned by Interscan Virus Wall of Mailserver2 at SNR, TCS, Chennai

 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Multiple modules in a .EAR without code replication

2003-11-11 Thread sreekant_gottimukkala
I am creating a STRUTS based app with .EAR as the deployable in which I
want to host 2 .WARs, one for the internal user and the other for external
user. I want to have exactly the same code base for both WARs including any
resources and property/configuration files etc but for one Action class.
Any suggestions how do I achieve this without replicating the code in both
the .WARs

Regards
Sreekant G
@ 98404-65630


This mail was scanned by Interscan Virus Wall of Mailserver2 at SNR, TCS, Chennai

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

Re: multiple struts-config.xml - multiple modules?

2003-10-22 Thread Ted Husted
If the tools are being developed by the same people, you'll probably be 
better off using mutiple struts configuration files than modules. 
Modules are best suited for when things are being developed by 
independant parties who aren't working together.

If that doesn't describe you, then just give each tool it's own 
subdirectory and use that same name to identify everything else that 
goes with the tool.

Even if you used modules, you can't distribute them as separate WARs.

If your container supports single logon, as Tomcat does, you can 
distribute each tool as a separate application and flip back and forth 
between after a single logon. With a modern container, you can also 
share JARs and save some resources. The applications can't share session 
information, though, so you'd have to pass everything through the 
request or cookies or a database.

HTH, Ted.

--
Ted Husted,
  Junit in Action  - ,
  Struts in Action - ,
  JSP Site Design  - .
Michael Blair wrote:
I have a question regarding overall architecture. I am going to have a huge
web app; well it will be a suite of web based tools. Lets say I will have
one main menu, and from there possibly 5 separate modules (separate content
areas). First, how hard is it to have a struts-config for each module (I
have an example below). Second, can each "module" be in its own war and
still be able to go back and forth among the other modules?
web.xml

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


config/module1
/WEB-INF/config/struts-module1-config.xml

now the actions work fine in the default config, but how do I call an action
FROM the default to module 1? Here is what I have tried in my .jsp. Note,
this .jsp is part of the default and im trying to call something in module1.

Thanks,
Mike


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


multiple struts-config.xml - multiple modules?

2003-10-21 Thread Michael Blair
I have a question regarding overall architecture. I am going to have a huge
web app; well it will be a suite of web based tools. Lets say I will have
one main menu, and from there possibly 5 separate modules (separate content
areas). First, how hard is it to have a struts-config for each module (I
have an example below). Second, can each "module" be in its own war and
still be able to go back and forth among the other modules?

web.xml

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


config/module1
/WEB-INF/config/struts-module1-config.xml


now the actions work fine in the default config, but how do I call an action
FROM the default to module 1? Here is what I have tried in my .jsp. Note,
this .jsp is part of the default and im trying to call something in module1.



multiple modules

2003-10-03 Thread Nathan Coast
Hi,

do you have to have a default module called '' or with multiple modules can they 
all be defined with a name?


  config/equipment
  /WEB-INF/struts-equipment-config.xml


  config/logistics
  /WEB-INF/struts-logistics-config.xml

I'm getting errors with deployment when I don't have:


  config
  /WEB-INF/struts-config.xml

Even though theres no mention of a struts-config.xml within my web.xml I'm 
seeing these errors on the console.

DEBUG - Initializing module path '' configuration from '/WEB-INF/struts-config.xml'
2003-10-03 16:05:05,600 DEBUG [ExecuteThread: '13' for queue: 
'weblogic.kernel.Default'] action.ActionServlet (ActionSer
vlet.java:916) - Initializing module path '' configuration from 
'/WEB-INF/struts-config.xml'
<03-Oct-2003 16:05:05 o'clock CST>
<[ServletContext(id=13453463,name=opweb,context-path=/opw
eb)] Root cause of ServletException.
java.lang.NullPointerException
at 
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1003)
at 
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)





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


moving some part of struts-config.xml to Database (vs Multiple modules)

2003-09-19 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
Is it possible to move action and form bean mapping definitions to database ,
and loading them using struts plugin extensions, 
(actullly actionServlet init method calls several another init method,, 
I think inside one of those init methods mapping info is loaded to the applicaiton 
context,
is it possible to postpone this operation until plug-in calls, )

if it is okey, how can do that and which part of struts-config.xml could be moved to 
then database (form map, action map, controller, forward, exception,plugin,...)

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



Re: Multiple modules

2003-09-18 Thread Puneet Agarwal


So its little "funky"...what's trick its not working for me

I did
RequestUtils.selectModule();
and then return new ActionForward(path);

at the loading time of the JSP it gives an error that

Cannot retrieve mapping for action /iny/INY0110S

Any help may be very useful



   

"Craig R.  

McClanahan"  To: Struts Users Mailing List <[EMAIL 
PROTECTED]>
<[EMAIL PROTECTED]cc:  
 
che.org>     Subject: Re: Multiple modules 

   

09/19/03   

10:42 AM   

Please 

respond to 

"Struts Users  

Mailing List"  

   

   





On Thu, 18 Sep 2003, Manish Singla wrote:

> Date: Thu, 18 Sep 2003 20:51:59 -0600
> From: Manish Singla <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Multiple modules
>
> What are the advantages of having multiple struts-config modules defined
in
> web.xml vs comma separated struts-config.xml from design point of view.
>

In my opinion, the largest single difference between the approaches is
really "namespace collisions".  Consider what happens if two different
struts-config.xml files (developed by two independent teams of developers
working on portions of your overall application) both try to define an
 named "/foo", or a global  named "success":

* If you are using a single module (one config file or
  multiple config files isn't relevant -- internally they
  are all combined into a single set of config entries), the last
  definition wins -- so someone's code doesn't work correctly
  unless the identifier is changed.

* If you are using multiple modules, each module has its own
  namespace for actions, forwards, and so on -- so the fact that
  they share the same identifier doesn't matter.

So, multiple modules gives you some protection against this problem, at
the (slight) cost that it's a little funky to switch between modules.

>  I am ok with slight overhead of multiple struts-config file (in web.xml
> approach).
>

I agree that any overhead difference here wouldn't matter (it all happens
only once, before the first user request is processed).  However, because
modules are going to need separate config files anyway, any difference
here is vanishingly small.

Craig

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




DISCLAIMER: The information contained in this message is intended only and
solely for the addressed individual or entity indicated in this message and
for the exclusive use of the said addressed individual or entity indicated
in this message (or responsible for delivery of the message to such person)
and may contain legally privileged and confidential information belonging
to Tata Consultancy Services. It must not be printed, read, copied,
disclosed, forwarded, distributed or used (in whatsoever manner) by any
person other than the addressee. Unauthorized use, disclosure or copying is
strictly prohibited and may constitute unlawful act and can possibly
attract legal action, civil and/or criminal. The contents of this message
need not necessarily reflect or endorse the views of Tata Consultancy
Services on any subject matter. Any action taken or omitted to be taken
based on this message is entirely at your risk and neither the originator
of this message nor Tata Consultancy Services takes any responsibility or
liability towards the 

Re: Multiple modules

2003-09-18 Thread Craig R. McClanahan
On Thu, 18 Sep 2003, Manish Singla wrote:

> Date: Thu, 18 Sep 2003 20:51:59 -0600
> From: Manish Singla <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Multiple modules
>
> What are the advantages of having multiple struts-config modules defined in
> web.xml vs comma separated struts-config.xml from design point of view.
>

In my opinion, the largest single difference between the approaches is
really "namespace collisions".  Consider what happens if two different
struts-config.xml files (developed by two independent teams of developers
working on portions of your overall application) both try to define an
 named "/foo", or a global  named "success":

* If you are using a single module (one config file or
  multiple config files isn't relevant -- internally they
  are all combined into a single set of config entries), the last
  definition wins -- so someone's code doesn't work correctly
  unless the identifier is changed.

* If you are using multiple modules, each module has its own
  namespace for actions, forwards, and so on -- so the fact that
  they share the same identifier doesn't matter.

So, multiple modules gives you some protection against this problem, at
the (slight) cost that it's a little funky to switch between modules.

>  I am ok with slight overhead of multiple struts-config file (in web.xml
> approach).
>

I agree that any overhead difference here wouldn't matter (it all happens
only once, before the first user request is processed).  However, because
modules are going to need separate config files anyway, any difference
here is vanishingly small.

Craig

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



Re: Multiple modules

2003-09-18 Thread Manish Singla
> What are the advantages of having multiple struts-config modules defined in
> web.xml vs comma separated struts-config.xml from design point of view.
>
>  I am ok with slight overhead of multiple struts-config file (in web.xml
> approach).
>

Again, what design problem multiple struts-config problem is solving.
(Scalability and Separation of Concerns can be solved by comma separated
struts-config.xml)


>
> Thanks
>

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

2003-09-18 Thread Manish Singla
What are the advantages of having multiple struts-config modules defined in
web.xml vs comma separated struts-config.xml from design point of view.

 I am ok with slight overhead of multiple struts-config file (in web.xml
approach).

Thanks


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



Re: and multiple modules

2003-08-14 Thread Sgarlata Matt
Still not working for me.  I tried these 5 things:







I still get:

org.apache.jasper.JasperException: ServletException in
'/datasharing/multiItem-body.jsp': Cannot retrieve definition for form bean
null

Any more ideas?  Thanks again,

Matt
- Original Message - 
From: "Reinhard" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Sunday, August 10, 2003 11:52 AM
Subject: Re:  and multiple modules


> > 
> > 
> > 
>
> with the hidden attribute it won't work. Both arguments are needed in the
> querystring and for so you have to use the way I wrote it in my first
reply.
>
> cheers Reinhard
>
> -
> 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]



Re: and multiple modules

2003-08-14 Thread Sgarlata Matt
No luck with the SwitchAction.  To recap, I have a "bin" module and a
"datasharing" module, and I want to do a submit from the bin module to an
action in the datasharing module.

In struts-config-bin.xml:

  

In struts-config-datasharing.xml:

  
   
  

In my JSP in the bin module:





And the app barfs:

org.apache.jasper.JasperException: ServletException in
'/datasharing/multiItem-body.jsp': Cannot retrieve definition for form bean
null

That actually makes sense to me, because the switchToDataSharing action
doesn't have a form bean.  The form bean is in another module, which is the
whole reason I wanted to use SwitchAction in the first place ;)

It looks like Struts does not support this.  Of course I can just do HTML
and forget about the  tag library, but I would prefer seeing a module
attribute added to the  tag.  Thoughts anyone?

Thanks,

Matt
- Original Message - 
From: "Reinhard" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Sunday, August 10, 2003 5:41 AM
Subject: Re:  and multiple modules


> have you tried to embed your switch-action in the action-attribute of
> 
> i.e. 
action="/yourSwitchAction?prefix=/yourDesiredModule&page=/theActionToProcess
YourForm/>
>
> cheers Reinhard
>
> -
> 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]



Using multiple modules causes plugins to initialize double - BUG ? - Could someone of the stutrs-dev list respond

2003-08-14 Thread Marcel Overdijk
Hello,

I have encountered a problem when using multiple modules.
When I have a plugin attached for just 1 of my modules (not 2), the
plugin is initialized twice.

This happens for example with the Tiles plugin, but also for the plugin
I'm writing myself.

The [Tiles definition factory loaded for module '/reflection'.] is
loaded twice !!

See logfile lines marked with >>>

Starting service Tomcat-Standalone
Apache Tomcat/4.0.3
13-aug-2003 16:27:20 org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
13-aug-2003 16:27:20 org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNul
l=true
13-aug-2003 16:27:23 org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='ApplicationResources', returnNull=true
13-aug-2003 16:27:23 org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='resources.application', returnNull=true
13-aug-2003 16:27:24 org.apache.struts.tiles.TilesPlugin init
>>> INFO: Tiles definition factory loaded for module '/reflection'.
13-aug-2003 16:27:24 org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='resources.application', returnNull=true
13-aug-2003 16:27:24 org.overdijk.xcontent4struts.ContentFactory
createComponent
INFO: XContent component 'news' loaded for module
'/xcontent4struts-0.3'.
13-aug-2003 16:27:24 org.overdijk.xcontent4struts.ContentFactory
createComponent
INFO: XContent component 'products' loaded for module
'/xcontent4struts-0.3'.
13-aug-2003 16:27:24 org.overdijk.xcontent4struts.XContentPlugIn init
INFO: XContent factory loaded for module '/xcontent4struts-0.3'.
13-aug-2003 16:27:25 org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
13-aug-2003 16:27:25 org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
13-aug-2003 16:27:26 org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='ApplicationResources', returnNull=true
13-aug-2003 16:27:26 org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='resources.application', returnNull=true
13-aug-2003 16:27:27 org.apache.struts.tiles.TilesPlugin init
>>> INFO: Tiles definition factory loaded for module '/reflection'.
13-aug-2003 16:27:27 org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='resources.application', returnNull=true
13-aug-2003 16:27:27 org.overdijk.xcontent4struts.ContentFactory
createComponent
INFO: XContent component 'news' loaded for module
'/xcontent4struts-0.3'.
13-aug-2003 16:27:27 org.overdijk.xcontent4struts.ContentFactory
createComponent
INFO: XContent component 'products' loaded for module
'/xcontent4struts-0.3'.
13-aug-2003 16:27:27 org.overdijk.xcontent4struts.XContentPlugIn init
INFO: XContent factory loaded for module '/xcontent4struts-0.3'.
Starting service Tomcat-Apache
Apache Tomcat/4.0.3


Could someone explain why the factory is loaded twice?
And further, are the tiles definitions files actually loaded twice ?
Cause I went to the source and there is a line which says only the
definitions are loaded if there is no context for the given module..
And after the first time they are in context..


Marcel Overdijk


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



and multiple modules

2003-08-14 Thread Sgarlata Matt
Does anyone know of a way to use the  tag to submit to a module other than 
the current module?  In the "bin" module I want to submit to the "datasharing" module. 
 I tried



and



In both cases I get this error:

org.apache.jasper.JasperException: ServletException in 
'/datasharing/multiItem-body.jsp': Cannot retrieve mapping for action 
/datasharing/multiItem

I'm guessing that this behavior is not supported by struts.  If a struts committer 
reads this, I'd be willing to work on fixing this, either by adding a module attribute 
to the  tag or by editing the action attribute so that it understands 
syntax like 

Thanks,

Matt

Re: and multiple modules

2003-08-14 Thread Reinhard
have you tried to embed your switch-action in the action-attribute of 

i.e. 

Multiple modules / Oracle 9IAS

2003-08-14 Thread Hariharan
Hello friends,

I have been working on Oracle 9IAS 904 for quite some time now.
last week I tried new module switching feature of struts 1.1
on this server.

i get the follwing error when I try to switch b/w modules,
from the error below I see that it is not able to read the
resource bundle from my module2.

I tried the same by downloading "simple-module-switching"  example from
http://prdownloads.sourceforge.net/struts/
This seems to work fine with Tomcat, but fails for Oracle 9IAS 904.

Has any one of you come across this error with Oracle 9IAS,
now iam sure that it is a bug with Oracle 9IAS (MODULE SWITCHING FEATURE
DOES NOT
WORK WITH ORACLE 9IAS), since it works perfectly fine with Tomcat.

any suggestions, or am I wrong .


javax.servlet.jsp.JspException: Missing message for key
"toDefaultModule.using.forward"
at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:297)
at _mod1._index._jspService(_index.java:133)
[SRC:/mod1/index.jsp:24]
at com.orionserver[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.j
ava:721)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDis
patcher.java:306)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.
java:209)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
57)
at
org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(Requ
estProcessor.java:1004)
at
org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.ja
va:577)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:260)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1421)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.j
ava:721)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDis
patcher.java:306)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:
767)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.ja
va:797)
at java.lang.Thread.run(Thread.java:536)


Thanks $ Regards
-Hari


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



Re: and multiple modules

2003-08-14 Thread Reinhard
> org.apache.jasper.JasperException: ServletException in
> '/datasharing/multiItem-body.jsp': Cannot retrieve definition for form bean
> null

not sure, but as your action is /multiItem[.do] and the exception talks about 
/datasharing/multiitem-body.jsp
I think the switching worked and your problem is with the action-definition. 
You know that with module-switching you have to cut of the path of the module 
in the action-definition?

hope this helps.
Reinhard
 

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



Re: and multiple modules

2003-08-11 Thread Reinhard
I think I got it:

the  takes the bean-information from the target-action (the 
action called after submit). So if you use a switchaktion to pass your bean 
between different modules, you have to use the "deprecated" attributes from 
the  and specify a "name" and a "type".
The form-bean has to be declared/defined in both modules.
Doing so, I succeeded in passing the bean between modules (without using the 
session-scope for the bean).

Hope this will help.

But anyway, if the bean does not reach the desired action, you don't get a 
Jasper-Exception. So there may be some other bugs too.

Enjoy your next try and don't change too fast to JSTL ;-)
Good luck.

cheers Reinhard

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



Re: and multiple modules

2003-08-11 Thread Reinhard
> 
> 
> 
 
with the hidden attribute it won't work. Both arguments are needed in the 
querystring and for so you have to use the way I wrote it in my first reply.

cheers Reinhard

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



RE: Multiple modules - Please help

2003-07-30 Thread Steve Raeburn
It wouldn't be (easily) possible to change ForwardAction to be configurable
between context and module relative because the ActionMapping only has one
parameter which is already being used to provide the path.

A couple of options would be to create a second version of ForwardAction
(ModuleForwardAction ?) that returns a module relative ActionForward, or to
create a simple action that returns an ActionForward which is configured in
struts-config with a well-known name ("success", in my example).

I prefer the latter approach because it is more flexible and uses the
standard method of configuring the ActionForward via struts-config. You'd
have to create your own for now, but I hope to add this as a standard
action.

The action (SuccessAction):
  public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
  throws Exception {

  return mapping.findForward("success");

  }

struts-config.xml:
  
  

  

-or-

  
  

  



Steve


> -Original Message-
> From: Ajay Patil [mailto:[EMAIL PROTECTED]
> Sent: July 29, 2003 7:11 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: Multiple modules - Please help
>
>
> Dear Steve,
>
> Thanks for finding the problem in the configuration file. I had
> not realized it. ** sorry for the typo in bug report **
>
> So, now I have an enhancement request.. :)
>
> Would it be possible to enhance ForwardAction so that it also
> requires a MODULE relative path ?
>
> It would be then very intuitive and convenient.
> Also, splitting into modules will be easier as you simply have to
> chop off the module path globally. Changing module names will be
> even easier.
>
> If you think the above is ok and it doesnt conflict with the current
> implementation, I shall re-open the bug as an enhancement request.
>
> Please let me know,
>
> Thanks a bunch,
> Ajay



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



RE: Multiple modules - Please help

2003-07-29 Thread Ajay Patil
Dear Steve,

Thanks for finding the problem in the configuration file. I had 
not realized it. ** sorry for the typo in bug report **

So, now I have an enhancement request.. :)

Would it be possible to enhance ForwardAction so that it also 
requires a MODULE relative path ?

It would be then very intuitive and convenient.
Also, splitting into modules will be easier as you simply have to
chop off the module path globally. Changing module names will be
even easier.

If you think the above is ok and it doesnt conflict with the current 
implementation, I shall re-open the bug as an enhancement request.

Please let me know,

Thanks a bunch,
Ajay

Ajay,
I've closed this bug. It seems to be a configuration problem...

I'm assuming that your add.jsp and edit.jsp files are in the /admin
directory.

The problem is with your configuration. ForwardAction requires a CONTEXT
relative path which, in this case would be:

 
 

(Note also, you had your parameter in a separate tag, but it should be 
an
attribute of the action tag. Not sure if that's what you actually had in
your
source or it's just a typo in the bug report, but it wouldn't help!)

The reason it worked when you used your own custom action is that by 
default
ActionFoward paths are MODULE relative, so your configuration entry
"/edit.jsp"
would be translated by the RequestProcessor to a context relative path 
of
"/admin/edit.jsp"

... if you still have problems after this, please post back to the user
list.

Steve




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



RE: Subject RE: Multiple modules - Please help

2003-07-29 Thread Steve Raeburn
Ajay,
I've closed this bug. It seems to be a configuration problem...

I'm assuming that your add.jsp and edit.jsp files are in the /admin
directory.

The problem is with your configuration. ForwardAction requires a CONTEXT
relative path which, in this case would be:

 
 

(Note also, you had your parameter in a separate tag, but it should be an
attribute of the action tag. Not sure if that's what you actually had in
your
source or it's just a typo in the bug report, but it wouldn't help!)

The reason it worked when you used your own custom action is that by default
ActionFoward paths are MODULE relative, so your configuration entry
"/edit.jsp"
would be translated by the RequestProcessor to a context relative path of
"/admin/edit.jsp"

... if you still have problems after this, please post back to the user
list.

Steve

> -Original Message-
> From: Steve Raeburn [mailto:[EMAIL PROTECTED]
> Sent: July 28, 2003 9:13 PM
> To: Struts Users Mailing List
> Subject: RE: Subject RE: Multiple modules - Please help
>
>
> Glad you got it working. I'll take a look at your bug report and see if I
> can sort out what's happening with ForwardAction.
>
> Steve
>
>
> > -Original Message-
> > From: Ajay Patil [mailto:[EMAIL PROTECTED]
> > Sent: July 28, 2003 8:28 PM
> > To: [EMAIL PROTECTED]
> > Subject: Subject RE: Multiple modules - Please help
> >
> >
> > Dear Steve,
> >
> > > Can you access the edit or remove actions by entering the URL in your
> > > address bar?
> > > e.g. http://localhost:8080/myapp/admin/edit.do?parameter=XXX
> >
> > Your tip helped me to debug the problem.
> >
> > Apparently, I got the 404 error from the browser.
> > In the config file, edit.do was declared to be of type "ForwardAction".
> > I created a new action class and used it instead of ForwardAction.
> >
> > and voila, it worked !
> >
> > So, it might be a bug in ForwardAction.
> >
> > I have posted a bug at
> > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21949
> >
> > Thanks,
> > Ajay
> >
> >
> > -
> > 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]
>
>
>



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



RE: Subject RE: Multiple modules - Please help

2003-07-28 Thread Steve Raeburn
Glad you got it working. I'll take a look at your bug report and see if I
can sort out what's happening with ForwardAction.

Steve


> -Original Message-
> From: Ajay Patil [mailto:[EMAIL PROTECTED]
> Sent: July 28, 2003 8:28 PM
> To: [EMAIL PROTECTED]
> Subject: Subject RE: Multiple modules - Please help
>
>
> Dear Steve,
>
> > Can you access the edit or remove actions by entering the URL in your
> > address bar?
> > e.g. http://localhost:8080/myapp/admin/edit.do?parameter=XXX
>
> Your tip helped me to debug the problem.
>
> Apparently, I got the 404 error from the browser.
> In the config file, edit.do was declared to be of type "ForwardAction".
> I created a new action class and used it instead of ForwardAction.
>
> and voila, it worked !
>
> So, it might be a bug in ForwardAction.
>
> I have posted a bug at
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21949
>
> Thanks,
> Ajay
>
>
> -
> 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]



Subject RE: Multiple modules - Please help

2003-07-28 Thread Ajay Patil
Dear Steve,

> Can you access the edit or remove actions by entering the URL in your
> address bar?
> e.g. http://localhost:8080/myapp/admin/edit.do?parameter=XXX

Your tip helped me to debug the problem.

Apparently, I got the 404 error from the browser.
In the config file, edit.do was declared to be of type "ForwardAction".
I created a new action class and used it instead of ForwardAction.

and voila, it worked !

So, it might be a bug in ForwardAction.

I have posted a bug at 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21949

Thanks,
Ajay


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



RE: Multiple modules - Please help

2003-07-27 Thread Steve Raeburn
Can you access the edit or remove actions by entering the URL in your
address bar?
e.g. http://localhost:8080/myapp/admin/edit.do?parameter=XXX

Steve

> -Original Message-
> From: Ajay Patil [mailto:[EMAIL PROTECTED]
> Sent: July 27, 2003 11:21 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Multiple modules - Please help
>
>
> Hello,
>
> Thanks for the lightning response !
>
> Actually, I am not switching modules. I am trying to forward
> to another action in the same module. I still get the 404 error
> with the contextRelative attribute in forward definition.
>
> Inside web.xml:
> ---
> 
>  config/admin
>  /WEB-INF/struts-admin.xml
> 
>
>
> Inside struts-admin.xml
> ---
>  type="xxx.yyy.zzz.ListAction">
>   
>   
> 
> 
>
>  type="xxx.yyy.zzz.EditAction">
>   
> 
>
>  type="xxx.yyy.zzz.RemoveAction">
>   
> 
>
> It was working when I had a single configuration file. I created
> struts-admin.xml file and removed the admin (module name)
> prefix from all paths.
>
> Now the JSP forwards are working.
> But the action-chainings give me 404 errors.
>
> Thanks for patiently reading through my problem.
>
> Ajay
>
>
> > If the action you are forwarding to is in a different module then
> > you need to use the SwitchAction or specify contextRelative=true on
> > your forward definition.
>
> >   > contextRelative="true">
>
> > Steve
>
>
>
>
> -
> 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]



RE: Multiple modules - Please help

2003-07-27 Thread Ajay Patil
Hello,

Thanks for the lightning response !

Actually, I am not switching modules. I am trying to forward
to another action in the same module. I still get the 404 error
with the contextRelative attribute in forward definition. 

Inside web.xml:
---

 config/admin
 /WEB-INF/struts-admin.xml



Inside struts-admin.xml
---

  
  




  



  


It was working when I had a single configuration file. I created
struts-admin.xml file and removed the admin (module name) 
prefix from all paths. 

Now the JSP forwards are working. 
But the action-chainings give me 404 errors.

Thanks for patiently reading through my problem.

Ajay


> If the action you are forwarding to is in a different module then 
> you need to use the SwitchAction or specify contextRelative=true on 
> your forward definition.

>   contextRelative="true">

> Steve




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



RE: Multiple modules - Please help

2003-07-27 Thread Steve Raeburn
If the action you are forwarding to is in a different module then you need
to use the SwitchAction or specify contextRelative=true on your forward
definition.

  

Steve

> -Original Message-
> From: Ajay Patil [mailto:[EMAIL PROTECTED]
> Sent: July 27, 2003 10:30 PM
> To: [EMAIL PROTECTED]
> Subject: Multiple modules - Please help
>
>
> Hello,
>
> I am trying to configure Struts with multiple modules. I have got
> most of it working but I am stuck up at one point.
>
> When the action classes forward to a JSP page, everything works ok.
> But I get a 404 error if the action forwards to another action.
>
>  .>
>   
> 
>
> Has anyone got the above case working with multiple modules ?
> If yes, could you please send me the sample working config file ?
>
> I also tried giving the modulename prefix but I got a 400 error :-(
>  .>
>   
> 
>
> Any help is a blessing.
> Ajay
>
>
> -
> 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]



Re: Multiple modules - Please help

2003-07-27 Thread Nagendra Kumar O V S








  hi,
  there is an SwitchAction available with struts, which can be used to 
  switch bet' modules. try it
  i have't implemented though
   
  -- nagi
   
  ---Original Message---
   
  
  From: Struts Users Mailing 
  List
  Date: Monday, July 28, 
  2003 10:47:39 AM
  To: [EMAIL PROTECTED]
  Subject: Multiple 
      modules - Please help
   Hello,I am trying to configure Struts with 
  multiple modules. I have got most of it working but I am stuck up at 
  one point. When the action classes forward to a JSP page, 
  everything works ok.But I get a 404 error if the action forwards to 
  another action..>Has anyone got the above 
  case working with multiple modules ?If yes, could you please send me 
  the sample working config file ?I also tried giving the modulename 
  prefix but I got a 400 error :-(.>Any help is a 
  blessing.Ajay-To 
  unsubscribe, e-mail: [EMAIL PROTECTED]For 
  additional commands, e-mail: [EMAIL PROTECTED].





	
	
	
	
	
	
	




  IncrediMail - 
Email has finally evolved - Click 
Here



Multiple modules - Please help

2003-07-27 Thread Ajay Patil
Hello,

I am trying to configure Struts with multiple modules. I have got 
most of it working but I am stuck up at one point. 

When the action classes forward to a JSP page, everything works ok.
But I get a 404 error if the action forwards to another action.


  


Has anyone got the above case working with multiple modules ?
If yes, could you please send me the sample working config file ?

I also tried giving the modulename prefix but I got a 400 error :-(

  


Any help is a blessing.
Ajay


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



Re: Does multiple modules work?

2003-07-16 Thread Eugen Bushuev
Hi.
I have the same problem. Have you solved it?
ben wrote:

Hi there,

Question: Has anyone successfully worked with multiple modules? I experience
quite some problems, see below.
Cheers Ben

 

-Original Message-
From: ben [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 8. Juli 2003 02:54
To: 'Struts Users Mailing List'; 'Jing Zhou'
Subject: Linking between non-default module. WAS: RE: jsp
links to stay
within module
I'm still struggling in with this.

To recap: Using Struts 1.1rc2. Basically I want to do just a
simple link
between 2 jsp's that reside in moduleA, which is not the
default module.
This worked when using the org.apache.struts.actions.SwitchAction even
though its a bit cumbersome since I do not really need to
switch but access
just a jsp within the same module.
2nd I also have link that passes parameters and needs to resolve to an
action to do the processing of those.
The action mapping can however never be resolved. I have the following
setup:
1. JSP: (inside module osscatalog)

View

2. struts-config-osscatalog.xml

   
   
   
3. Exception:

org.apache.jasper.JasperException: Cannot retrieve mapping for action
/osscatalog/prodView
Can anyone help or has anybody just worked with modules at
all and knows if
there are any issues? Is Struts 1.1 rc2 stable?Thanks a lot. Ben
BTW:
I use not the href but the page attribute which is correct
according to the
docs. The href can only be used when setting the hrefbase which i do.
The module-relative path (beginning with a "/" character) to
which this
hyperlink will transfer control if activated.
   

-Original Message-
From: Stephen Brown [mailto:[EMAIL PROTECTED]
Sent: Montag, 7. Juli 2003 22:05
To: 'Struts Users Mailing List'; 'Jing Zhou'
Subject: RE: jsp links to stay within module
Use
 or 
steve
 

-Original Message-
From: ben [mailto:[EMAIL PROTECTED]
Sent: July 7, 2003 3:45 PM
To: 'Struts Users Mailing List'; 'Jing Zhou'
Subject: RE: jsp links to stay within module
Unfortunately this is then a absolute link to the webserver
root and not
relatively to the deployed application root. This does not
work, at least
with my setup. ;(
   

-Original Message-
From: Jing Zhou [mailto:[EMAIL PROTECTED]
Sent: Montag, 7. Juli 2003 21:28
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: jsp links to stay within module
You might want to give a try

The leading slash is important.

Jing

- Original Message -
From: "ben" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'"
 

<[EMAIL PROTECTED]>
   

Sent: Monday, July 07, 2003 11:15 AM
Subject: RE: jsp links to stay within module
 

But using the switch action is a bit strange since I do not
   

want to switch
 

module but stay in the current module.

Hm however if the module is only request scoped... ???

   

-Original Message-
From: Sandeep Takhar [mailto:[EMAIL PROTECTED]
Sent: Montag, 7. Juli 2003 17:59
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: jsp links to stay within module
there is a SwitchAction that you can use.

someone else probably has more details...
sandeep
--- ben <[EMAIL PROTECTED]> wrote:
 

Hi,

I link 2 jsp's in moduleA (=not default module).
In order for struts to stay within moduleA i learnt
i cannot href the jsp
directly, because the module will then switch again
to the default. I cannot
make the module session persistent, right?
When then using a forward action like below, I get a
404:
message Invalid path /prodSubmit was requested

source jsp:
Submit a
Product
struts-config-moduleA.xml:

 

type="org.apache.struts.actions.ForwardAction"
name="prodSubmitForm"
parameter="/osscatalog/prodSubmit.jsp"/>



Ideas?

Cheers ben



   

-
   

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

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
 

-
   

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]
   

   

 

-
   

To unsubscribe, e-mail:
 

[EMAIL PROTECTED]
   

For additional commands, e-mail:
 

[EMAIL PROTECTED]
 

   

-

Re: Does multiple modules work?

2003-07-11 Thread Martin Cooper

"ben" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi there,
>
> Question: Has anyone successfully worked with multiple modules? I
experience
> quite some problems, see below.

Yes, modules work. I use them extensively.

You do need to make sure that you *always* go through the controller, and
don't go directly to JSP pages, and you need to use extension mapping (which
it looks like you're doing).

There is one pretty serious bug (#11932) that somehow got marked as LATER
instead of being fixed for Struts 1.1. It applies if you are using *both*
multiple modules and multiple message resource bundles. (I'll be checking in
the fix for it this weekend.) Other than that, modules work just fine.

By the way, you should really upgrade from 1.1rc2 to 1.1 Final. :-)

--
Martin Cooper


>
> Cheers Ben
>
> > -Original Message-
> > From: ben [mailto:[EMAIL PROTECTED]
> > Sent: Dienstag, 8. Juli 2003 02:54
> > To: 'Struts Users Mailing List'; 'Jing Zhou'
> > Subject: Linking between non-default module. WAS: RE: jsp
> > links to stay
> > within module
> >
> >
> > I'm still struggling in with this.
> >
> > To recap: Using Struts 1.1rc2. Basically I want to do just a
> > simple link
> > between 2 jsp's that reside in moduleA, which is not the
> > default module.
> > This worked when using the org.apache.struts.actions.SwitchAction even
> > though its a bit cumbersome since I do not really need to
> > switch but access
> > just a jsp within the same module.
> >
> > 2nd I also have link that passes parameters and needs to resolve to an
> > action to do the processing of those.
> >
> >
> > The action mapping can however never be resolved. I have the following
> > setup:
> >
> > 1. JSP: (inside module osscatalog)
> >  >  paramName="prod_list_el" paramProperty="name">
> > View
> > 
> >
> > 2. struts-config-osscatalog.xml
> >
> >  > name="prodSubmitForm"
> > path="/prodView"
> > type="com.ctp.cosi.osscatalog.web.ProductSubmitAction"
> > unknown="false"
> > scope="session"
> > input="/productList.jsp"
> > parameter="view"
> > validate="false">
> >  > name="success"
> > path="/productView.jsp"
> > redirect="false" />
> > 
> >
> >
> > 3. Exception:
> >
> > org.apache.jasper.JasperException: Cannot retrieve mapping for action
> > /osscatalog/prodView
> >
> >
> > Can anyone help or has anybody just worked with modules at
> > all and knows if
> > there are any issues? Is Struts 1.1 rc2 stable?Thanks a lot. Ben
> >
> > BTW:
> > I use not the href but the page attribute which is correct
> > according to the
> > docs. The href can only be used when setting the hrefbase which i do.
> >
> > The module-relative path (beginning with a "/" character) to
> > which this
> > hyperlink will transfer control if activated.
> >
> > > -Original Message-
> > > From: Stephen Brown [mailto:[EMAIL PROTECTED]
> > > Sent: Montag, 7. Juli 2003 22:05
> > > To: 'Struts Users Mailing List'; 'Jing Zhou'
> > > Subject: RE: jsp links to stay within module
> > >
> > >
> > > Use
> > >  or  > > href='/prodSubmit.do' >
> > >
> > > steve
> > > > -Original Message-
> > > > From: ben [mailto:[EMAIL PROTECTED]
> > > > Sent: July 7, 2003 3:45 PM
> > > > To: 'Struts Users Mailing List'; 'Jing Zhou'
> > > > Subject: RE: jsp links to stay within module
> > > >
> > > >
> > > > Unfortunately this is then a absolute link to the webserver
> > > > root and not
> > > > relatively to the deployed application root. This does not
> > > > work, at least
> > > > with my setup. ;(
> > > >
> > > > > -Original Message-
> > > > > From: Jing Zhou [mailto:[EMAIL PROTECTED]
> > > > > Sent: Montag, 7. Juli 2003 21:28
> > > > > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > > > > Subject: Re: jsp links to stay within module
> > > > >
> &

Does multiple modules work?

2003-07-11 Thread ben
Hi there,

Question: Has anyone successfully worked with multiple modules? I experience
quite some problems, see below.

Cheers Ben

> -Original Message-
> From: ben [mailto:[EMAIL PROTECTED]
> Sent: Dienstag, 8. Juli 2003 02:54
> To: 'Struts Users Mailing List'; 'Jing Zhou'
> Subject: Linking between non-default module. WAS: RE: jsp
> links to stay
> within module
>
>
> I'm still struggling in with this.
>
> To recap: Using Struts 1.1rc2. Basically I want to do just a
> simple link
> between 2 jsp's that reside in moduleA, which is not the
> default module.
> This worked when using the org.apache.struts.actions.SwitchAction even
> though its a bit cumbersome since I do not really need to
> switch but access
> just a jsp within the same module.
>
> 2nd I also have link that passes parameters and needs to resolve to an
> action to do the processing of those.
>
>
> The action mapping can however never be resolved. I have the following
> setup:
>
> 1. JSP: (inside module osscatalog)
>   paramName="prod_list_el" paramProperty="name">
> View
> 
>
> 2. struts-config-osscatalog.xml
>
>  name="prodSubmitForm"
> path="/prodView"
> type="com.ctp.cosi.osscatalog.web.ProductSubmitAction"
> unknown="false"
> scope="session"
> input="/productList.jsp"
> parameter="view"
> validate="false">
>  name="success"
> path="/productView.jsp"
> redirect="false" />
> 
>
>
> 3. Exception:
>
> org.apache.jasper.JasperException: Cannot retrieve mapping for action
> /osscatalog/prodView
>
>
> Can anyone help or has anybody just worked with modules at
> all and knows if
> there are any issues? Is Struts 1.1 rc2 stable?Thanks a lot. Ben
>
> BTW:
> I use not the href but the page attribute which is correct
> according to the
> docs. The href can only be used when setting the hrefbase which i do.
>
> The module-relative path (beginning with a "/" character) to
> which this
> hyperlink will transfer control if activated.
>
> > -Original Message-
> > From: Stephen Brown [mailto:[EMAIL PROTECTED]
> > Sent: Montag, 7. Juli 2003 22:05
> > To: 'Struts Users Mailing List'; 'Jing Zhou'
> > Subject: RE: jsp links to stay within module
> >
> >
> > Use
> >  or  > href='/prodSubmit.do' >
> >
> > steve
> > > -Original Message-
> > > From: ben [mailto:[EMAIL PROTECTED]
> > > Sent: July 7, 2003 3:45 PM
> > > To: 'Struts Users Mailing List'; 'Jing Zhou'
> > > Subject: RE: jsp links to stay within module
> > >
> > >
> > > Unfortunately this is then a absolute link to the webserver
> > > root and not
> > > relatively to the deployed application root. This does not
> > > work, at least
> > > with my setup. ;(
> > >
> > > > -Original Message-
> > > > From: Jing Zhou [mailto:[EMAIL PROTECTED]
> > > > Sent: Montag, 7. Juli 2003 21:28
> > > > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > > > Subject: Re: jsp links to stay within module
> > > >
> > > >
> > > > You might want to give a try
> > > > 
> > > >
> > > > The leading slash is important.
> > > >
> > > > Jing
> > > >
> > > > - Original Message -
> > > > From: "ben" <[EMAIL PROTECTED]>
> > > > To: "'Struts Users Mailing List'"
> <[EMAIL PROTECTED]>
> > > > Sent: Monday, July 07, 2003 11:15 AM
> > > > Subject: RE: jsp links to stay within module
> > > >
> > > >
> > > > > But using the switch action is a bit strange since I do not
> > > > want to switch
> > > > > module but stay in the current module.
> > > > >
> > > > > Hm however if the module is only request scoped... ???
> > > > >
> > > > > > -Original Message-
> > > > > > From: Sandeep Takhar [mailto:[EMAIL PROTECTED]
> > > > > > Sent: Montag, 7. Juli 2003 17:59
> > > > > > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > > > &g

Struts validator for multiple modules

2003-03-21 Thread Navjot Singh
Hi List,

Somehow, I made it working for myself. Now i am happy with the overall
setup. (After a learning pain of almost 5-7 days ;-)
Whenever I get time, I will put up my sample app on board so that others
won't waste time to setup their module based app structure.

regards
navjot singh

- Original Message -
From: "Navjot Singh" <[EMAIL PROTECTED]>
To: "Struts Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 19, 2003 7:33 PM
Subject: struts validator


| hi all,
|
| I have this kind of setup.
|
| + def, mod1, mod2 [3 Modules]
| + Def1.properties, Mod1.properties , Mod2.properties  [respective Message
| Resources]
| + validation-def.xml, validation-mod1.xml, validation-mod2.xml [respective
| Validation files]
|
| I have tried this. BUT every time, after Validation it picks up from
Default
| resource bundle.
|
| Please HELP! I am getting fed up from Struts now.
| >From past 10 days, all i am trying to to do is to get the Modules based
| setup working. Still, i am doing the same and not getting to the
application
| logic.
|
| DOES VALIDATION Support multiple message resources / validation files.
|
| regards
| navjot singh
|
|
| -
| 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 resource files with multiple modules

2003-02-19 Thread A Stephen
Greetings,
To Access 




struts config message resource for module /order-tools







My question is there a easier way to access the message resource , using this syntax 
The page designer would have to be aware of the where to look for the sub-application 
in the web.xml and also be aware to look for the appropriate resource bundle key to 
find out the key of the message



One solution that  I can think of is to check and see if there is request "prefix"

value. 

That way the page designer would not have know about the sub-module









Thank you,

-S

 





 



How to tell if multiple modules are loading

2003-02-12 Thread HEMBREE, Matt
(Struts 1.1b3, Win2000, Oracle 9ias, brand-spankin-new to struts)

I have 3 extra modules declared in web.xml:


  config
  /WEB-INF/struts-config.xml


  config/accounts
  /WEB-INF/struts-accounts.xml


  config/inventory
  /WEB-INF/struts-inventory.xml


  config/administration
  /WEB-INF/struts-administration.xml


When the app starts, I see no messages in the log telling me that any of
the module configs have loaded.  Additionally, if I force bad XML into
one of the module-level configs, no errors (I think I've seen this mentioned
before on the list as well).

Additionally confusing: I am configured with module-aware Tiles.  In 
the app log, I see only one Tiles definition factory being loaded, for
what I assume is the default module:

12 Feb 2003 12:04:13,048. 3094 [ApplicationServerThread-6] INFO
org.apache.struts.tiles.TilesRequestProcessor  - Tiles definition factory
found for request processor ''.

I only have a single tiles-defs.xml, but the Tiles plugin is included
in all the module configs and loads this defs file.

Am I just missing something obvious here (its been known to happen)?

--matt

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




Multiple modules and ApplicationResources, Images and Tiles

2003-01-20 Thread Arnesen, Geir
I have managed to get a sub module up running, the sub module is not
able to read the ApplicationResources - displayed as:
(???no_NO.car.package1.info.short???) 

Accessing the main module, - I get the messages from the resources. I
can't figure out how access, - or how to configure the resources for a
submodule.

Graphics, - located under /images, didn't at first show up in the sub
module, - but after creating a new folder /ks/images (ks - submodule
name) and copying the images to this folder, - they showed up. Is this
the correct approach?

For what regards Tiles, - should I/can I have a separate Tiles config
for each sub-module???

Geir A.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: