> -----Original Message----- > From: Dave Bender [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 02, 2004 6:38 PM > To: [EMAIL PROTECTED] > Subject: Staying relative > > > > /app1/areas/group1/section1 > /app1/areas/group1/section2 > /app1/areas/group1/section3 > ... > /app1/areas/group2/section1 > /app1/areas/group2/section2 > /app1/areas/group2/section3
Why are making this a real division rather then a logical one? Do the users really care if they're url is /areas/group1/section1 as opposed to /uploadFile? No, in fact they probably would prefer to have the details of where things are hidden from them. When a user logs in, you also get their group, section etc etc and store it in the session. You use that information to store the file upload, or do anything that is file specific. Your ui shouldn't care what the physical is, and just deal with the logical. One of the cool things about JSP/Servlets is that there does not have to be, and should not be (from a purist engineering perspective) direct relationship between the URL and your file structure. > ... > > Where I'm having trouble is staying in the same section. If > a member of group1 goes to section1, and my actions are > defined like this : > > <action forward="input.jsp" path="input" /> > > that takes the user to /app1/input.do, which is outside the > "section". If I change my actions to specify the absolute > path for each Action, it works, but I have to create six sets > of actions, one for each section, like this: > > <action forward="input.jsp" > path="/app1/areas/group1/section1/input" /> > > That works, but ... is that how I'm *supposed* to to do it? > I'm just getting started and I've got a butt-load of Actions. > I don't want to manage them in sextuples. That seems > repetitive and error prone, along with being a maintenance headache. > > Any help would be appreciated. It seems like this problem > must have been solved elegantly somehow, but I'm lost as to how. > > Dave > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]