RE: Accessing my form from an included page

2004-12-23 Thread fzlists
l! If I didn't know about filters or hadn't thought of it you would have done me a service informing me, so it's all good as far as I'm concerned :) > Paul > >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> Sent: 2

Re: Accessing my form from an included page

2004-12-23 Thread fzlists
> Lord, Frank --- no worries. One of the worst things is people who > take things too seriously and read jots and tiddles on these lists. > Relax with me. Sounds like therapy? LOL ;-) Therapy... I could use that :) > I did not mean that it was in the response object but accessed within > the

RE: Accessing my form from an included page

2004-12-23 Thread Paul McCulloch
4:41 > To: user@struts.apache.org > Subject: RE: Accessing my form from an included page > > > On Thu, December 23, 2004 9:13 am, Donie Kelly said: > > [Donie Kelly] Hi Guys > > > > OK, I ran through most of what your are telling me and must > first

RE: Accessing my form from an included page

2004-12-23 Thread fzlists
nder and Chief Software Architect Omnytex Technologies http://www.omnytex.com > Paul > >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> Sent: 23 December 2004 14:27 >> To: user@struts.apache.org >> Subject: RE: Accessing my form f

RE: Accessing my form from an included page

2004-12-23 Thread Paul McCulloch
7;t know. Check the group archives (http://marc.theaimsgroup.com/?l=struts-user&r=1&w=2) - breadcrumbs have come up before. Paul > -Original Message- > From: Donie Kelly [mailto:[EMAIL PROTECTED] > Sent: 23 December 2004 14:14 > To: Struts Users Mailing List > Subj

RE: Accessing my form from an included page

2004-12-23 Thread fzlists
On Thu, December 23, 2004 9:13 am, Donie Kelly said: > [Donie Kelly] Hi Guys > > OK, I ran through most of what your are telling me and must first thank > you > all for the detailed responses. You spawned an interesting thread! The seemingly simple questions are usually the ones that do that th

RE: Accessing my form from an included page

2004-12-23 Thread Paul McCulloch
e mapping in an attribute whose name you define? Paul > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 23 December 2004 14:27 > To: user@struts.apache.org > Subject: RE: Accessing my form from an included page > > > That's what on

Re: Accessing my form from an included page

2004-12-23 Thread Dakota Jack
On Thu, 23 Dec 2004 09:29:31 -, Paul McCulloch <[EMAIL PROTECTED]> wrote: > When you execute an action the name of the action from used is set in a > request scope attribute "org.apache.struts.action.mapping.instance". It's a > fairly simple matter to get the actual actionform object if you kno

RE: Accessing my form from an included page

2004-12-23 Thread fzlists
That's what one of my solutions was too, although I wasn't 100% sure the mapping instance was actually in request (I thought I remembered seeing it, but wasn't sure). The argument against doing that though is that the attribute name could conceivably be changed down the road, breaking your code

RE: Accessing my form from an included page

2004-12-23 Thread Donie Kelly
[Donie Kelly] Hi Guys OK, I ran through most of what your are telling me and must first thank you all for the detailed responses. I'm sure I need to explain my case a bit more clearly and please let me know if what I am trying to do is easier if I take some other approach as I'm new to struts. 1

RE: Accessing my form from an included page

2004-12-23 Thread Paul McCulloch
When you execute an action the name of the action from used is set in a request scope attribute "org.apache.struts.action.mapping.instance". It's a fairly simple matter to get the actual actionform object if you know the scope. For instance, all my forms are session scope so I can get the just-used

Re: Accessing my form from an included page

2004-12-22 Thread Dakota Jack
See within: On Thu, 23 Dec 2004 00:16:57 -0500, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > > > Dakota Jack wrote: > > Frank, > > > > Donie is getting more than was planned for out of us. > > We're like that Scottrade dude that builds the log cabin for his buddies > in that commercial :) >

Re: Accessing my form from an included page

2004-12-22 Thread Frank W. Zammetti
Dakota Jack wrote: Frank, Donie is getting more than was planned for out of us. We're like that Scottrade dude that builds the log cabin for his buddies in that commercial :) Before I go any further, let me be sure you understand something... If anything I say comes across like I'm talking do

Re: Accessing my form from an included page

2004-12-22 Thread Dakota Jack
Frank, Donie is getting more than was planned for out of us. First, to be fair to Donie, the answer to his problem is clear. We are discussing somethings that are unnecessarily far afield. A servlet can clearly know its own name. And, since the servlet creates the response object and the htm

Re: Accessing my form from an included page

2004-12-22 Thread fzlists
On Wed, December 22, 2004 1:56 pm, Dakota Jack said: > Plasma TV? Not a new copy of Java Today? LOL ;-) No self-respecting geek would choose the magazine! :) (self-respecting geek... talk about an oxymoron!) > The form has a name from the mapping. Whatever servlet, html, etc. > you have is g

Re: Accessing my form from an included page

2004-12-22 Thread Dakota Jack
Plasma TV? Not a new copy of Java Today? LOL ;-) The form has a name from the mapping. Whatever servlet, html, etc. you have is going to reflect that form, right? What you want to do is manage the RESPONSE not the REQUEST, right? The form is not in the request but in the response. The heade

Re: Accessing my form from an included page

2004-12-22 Thread fzlists
Yes, if the enjoyment I cause my wo-workers was worth money, I'd be a rich man indeed. My wife would have her new car and I'd have my 60-inch plasma TV. Oh well, back to reality :( The way I read the original post is that he wanted to have some common code in header.jsp access the form associ

Re: Accessing my form from an included page

2004-12-22 Thread Dakota Jack
On Wed, 22 Dec 2004 08:38:39 -0800 (PST), [EMAIL PROTECTED] > > (Caveat: I may be wrong about all this :) ) > > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technologies > http://www.omnytex.com Frank, you are a hoot. ;-) You must be great to have as a work partner. I

Re: Accessing my form from an included page

2004-12-22 Thread fzlists
Since the form you'd need to retrieve is named depending on the main page content, you won't know that information in the header (not easily anyway). I mean, think of it this way... when your page is converted to a servlet, the header code is included in with the main page, and then the footer,

Re: Accessing my form from an included page

2004-12-22 Thread Dakota Jack
On Wed, 22 Dec 2004 14:59:04 -, Donie Kelly <[EMAIL PROTECTED]> wrote: > Hi all > > I have the following jsp layout for my pages > > Included header.jsp > > STRUTS PAGE > > Included footer.jsp > > Now in the header.jsp I have my site logo and I also want to add > breadcrumbs. I want to est