• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Combining two different struts modules of a big application

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Scenario:
Developer1 creates a struts based dynamic web application
Developer2 creates another struts based dynamic web application
Environment: Struts 1.3.10 and IDE:Eclipse

How can we combine these two into One big application,each having separate Configuration files

Any complete tutorials regarding this aspect?Please
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to configure and build a new module for second (or first, whatever you wnat to integrate) we app, To make a struts module, Have look at this and this.

HTH
 
Dishpal Bhaluja
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Environment:Netbeans 6.5 Struts Web Project

I created a module named Basics and put it under my WebPages Folder
It has two files index2.jsp and myNewIndex.jsp

Index2.jsp has one form which gets submitted and action class forwards it to myNewIndex.jsp
But on running index2.jsp its showing :Cannot retrieve mapping for action /mynewAction error.

And my GlassFish server is showing the error:Missing configuration file for struts-config-moduleBasics.xml

I guess the problem is that server is loading only struts-config.xml and not the other xml and checking the action mappings in that xml file.


My configuration file:struts-config-moduleBasics.xml


My WEB.XML is


My index2.jsp is:


 
Sagar Rohankar
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Have you checked the path for your "config/Basics" struts configuration file, whether this path is correct or not ?
"/WEB-INF/Basics/struts-config-moduleBasics.xml"

If yes, then checked whether that .xml is valid and well formed or not

Once you're able to configure it, you have to modify action like this



OR use switch Action

and the resulted URI
http://localhost:8080/toModule.do?prefix=/moduleB&page=/index.do
 
Dishpal Bhaluja
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried all things as you said:
Checked paths,Validated XML's everything correct.

My Form tag: -->moduleBasics is the name in struts-config-moduleBasics.xml where as i define it like config/Basics in my web.xml ,Anyway I tried changing that too,But in vain


Still getting the error like:


 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic