struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 10953] - sub-application loses message resource
Date Fri, 19 Jul 2002 15:55:47 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10953>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10953

sub-application loses message resource





------- Additional Comments From jks0112@myrealbox.com  2002-07-19 15:55 -------
Q. "It would also be useful to know if the sub-app in question works correctly 
when it is deployed as the default (or only) sub-app under 1.1."

A. Yes, I currently have them both deployed as separate webapps. The first 
webapp performs a user logon, then presents a menu of links. The second webapp 
enters/stores rows in the database.

Q. "Also, please try this under a recent nightly build -- there have been many 
bug fixes since the 1.1-b1 release."

A. I tried the nightly build from 7/17/2002 before I bugged you. I also tried 
to use the new "SwitchAction" class which is only available in recent builds. 
(I was unsuccessful there too, but looking at the code helped me realize Struts 
is correctly selecting my sub-app in all "actions", just not the resources).

Q. "A couple of important rules for sub-app support:

* Every request has to flow through the controller -- linking directly
  to a JSP page will cause that page to not think it is part of the
  sub-app it belongs to.

* You have to use extension mapping (*.do style) for the controller servlet."

A. I am using extension mapping, but I may be violating the first rule. Once 
the user logs on (the default app), my JSP uses an HTML "<a href=" to 
invoke "subapp/StartAction.do". Then StartAction.do forwards to another menu 
JSP. That JSP uses "<html:link page="/DataForm.do?action=Select">" to invoke an 
action that forwards to my data entry JSP (I couldn't find a way to get 
the "html:link" to accept the subapp prefix).

The first time I get to my data entry JSP, everything is fine. Hitting the 
submit button gets me to the correct action (saving the form data to the 
database), but once it returns a forward the resources are "lost".

I don't know how much time you're willing to spend looking into this problem, 
so I've avoided attaching a bunch of code. If you're willing, I'll send any/all 
parts for you to review. Unfortunately the apps won't run unless you've got the 
database up and running too, but I've got the SQL scripts for the DB too if you 
want.

I'm new to Struts, but I'm reading the O'Reilly preview book to learn about it. 
Thanks for all your help!

Jolly

--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@jakarta.apache.org>


Mime
View raw message