Matt Phipps

Greenhorn
+ Follow
since Aug 25, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Matt Phipps

Sorry....

Isn't it always the way. As soon as you submit a question you find the answer for yourself!!!

In my case it was one of my struts-config.xml files not being properly formatted.

Matt
18 years ago
Hi,

I'm getting a problem with a struts application I've built "Servlet action is not available" where action is my ActionServlet as defined in the web.xml

I can run another struts app ok and my web.xml, struts-config.xml are both similar.

I'm using Tomcat 5.5.7.

Has anyone had a similar problem? I'm fairly sure its not my code or configs.

Thanks for your help.

Matt
18 years ago
Hi,

Sorry for the newbie question, I'm sure the answer is obvious but I can't find it...

I have a config.xml file in WEB-INF (next to web.xml and struts-config.xml) and I need to pass this files location to a commons digester program (reads in xml files). The digester program needs the full path and file name. If i put the file in c:\temp\config.xml it works fine but how do I find the path to /WEB-INF/config.xml when the app is deployed? Is there a standard method I can call to give me the path to my web app?

Thanks for your help,
Matt
18 years ago
Hi,

I'm writing an application where the end user will create a "application/configuration" on top of my app. Basically it is an MVC model where I am providing the model and controller as a vanilla 'product' whilst the view (html) would be the configurable bit.

My problem is that the form/session beans should be configurable as part of the view layer and the model requires a configuration file. I'm planning to have the init() method of a model servlet pull in the configuration file from the .war file but I don't know how to design a controller that can recieve slightly different beans (ie those configured for the view). Also the models configuration file will contain some clues as to the beans structure (if this helps).

Is there a pattern for this or am I taking the completely wrong approach? If this is a product should I worry about MVC? Also, I'm planning on tying this all together with struts - is this wise?

Thanks in advance,
Matt
19 years ago
OK,

So should I add the action forward to each modules struts-config.xml? If so then how do I get around the relative path URL? Will the module assume the path is relative to the itself even though my index.jsp is in a folder one layer up? Is it just "../index.jsp"?

Also, how would you link from one module to another? Would you enter the module name in the url or again would this be seen as a path relative to the current module?

Thanks,
Matt
19 years ago
Hi,

I'm tring to learn about modular struts apps but I'm having trouble with a global forward to my home page (index.jsp).

I have a global struts-config.xml with: as a global forward and as an action mapping in the same struts-config.xml.

When I place a in the jsp's in the modules the jsp will not run with an "Cannot retrieve ActionForward named home" error.

Is this because index.jsp isn't in a module? If so how can I overcome this?

Thanks,
Matt
19 years ago