RE: Prob:Calling a bean:write inside html:text

2003-07-30 Thread Wendy Smoak
>  Even though this is a frequent question,
> I could not get the Exact syntax for doing it.
>  ""/>

If this  element inside the form that belogs with the Action that
uses registrationForm, then you don't need the 'value' attribute at all.
Struts will magically populate the  form element from the value in
the Form bean.



(The snippet above looks like you're trying to put the phone number in the
username field...)

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 


RE: Prob:Calling a bean:write inside html:text - Nesting is nice

2003-07-30 Thread Bailey, Shane C.

You can do that with the struts tags as well.  But that is only for the
value just like for JSTL.





you could replace the bean:write with hard text too I assume.

I am guessing the Struts tags and JSTL tags are written the same way.
But what was wished for is having any attribute of a tag be specified within
the tag body.  That is different.

I better watch out though if I say something bad about JSTL David will rear
his head and tell me it should be OT. You can't have an opposing opinion, I
guess. 

"Although I recommend using the JSTL's  tag instead because it's
shorter, easier to use, and more powerful."

That is why I got the you should do OT because David is a JSTL Nazi!!

:-)


-Original Message-
From: Steve Raeburn [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 2:28 PM
To: Struts Users Mailing List
Subject: RE: Prob:Calling a bean:write inside html:text - Nesting is nice

Try JSTL. For example: 

  

is equivalent to:

  
26/12/1968
  

The content of the second example can even be generated by nested tags.

Steve

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: July 30, 2003 11:10 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Prob:Calling a bean:write inside html:text - Nesting is
> nice
> 
> 
> It would be nice if this:
> 
> 
> 
> Parsed the same as:
> 
> 
>aValue
> 
> 
> 
> Failing that it would be nice if any tags with attribute
> also accepted nested tags with the same name and meaning as an 
> alternative.
> 
> Brendan
> 
> 
> 
> 
> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 30, 2003 10:23 AM
> To: Struts Users Mailing List
> Cc: [EMAIL PROTECTED]
> Subject: RE: Prob:Calling a bean:write inside html:text
> 
> 
> 
> 
> On Wed, 30 Jul 2003, James Childers wrote:
> 
> > Date: Wed, 30 Jul 2003 11:35:53 -0500
> > From: James Childers <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: Struts Users Mailing List <[EMAIL PROTECTED]>,
> >  [EMAIL PROTECTED]
> > Subject: RE: Prob:Calling a bean:write inside html:text
> >
> >
> > YOU CAN'T NEST TAGS.
> >
> > YOU CAN'T NEST TAGS.
> >
> > You, or anyone else, cannot nest tags. Tags cannot be nested. 
> Nesting tags
> is prohibited. If you nest a tag inside another tag, the page 
> won't compile.
> Nesting tags ist verbotten. Do not nest tags if you want your 
> page to work.
> >
> > The following won't work:
> >
> > " />
> 
> It is true that this won't work, but I would caution you that "nesting
> tags" actually means something different:
> 
>   
> 
> 
>   
> 
> which is perfectly legitimate.  A correct sentence describing what you
> cannot do is "You cannot use one tag to create all or part of the
> attribute value of another tag."
> 
> Craig
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] RE: Prob:Calling a bean:write inside html:text - Nesting is nice

2003-07-30 Thread Brendan . Johnston
The JSTL authors decided that the value might need calculation to work it
out,
but that a pattern would not require other tags to determine.

Were they right?
Maybe, maybe not.

If they adopted the approach I suggested,
they would just have some extra busy work supporting nesting for everything,
but they would not have to think about it, and would be 'right' everytime.

The conceptual size of the tag would be smaller than the approach they took,
because I would not need to look up the documentation to see which
attributes could be tags.

If the authors of XML took this approach,
not only would the authors of JSTL not think have about it,
but parsers would be simpler,
and whole paragraphs wasted on what should be an attribute
and what should be tag would be gone from the world.

So my solution is simple, pretend that the authors of XML did take this
approach.

Brendan



-Original Message-
From: Steve Raeburn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 11:28 AM
To: Struts Users Mailing List
Subject: RE: Prob:Calling a bean:write inside html:text - Nesting is
nice


Try JSTL. For example: 

  

is equivalent to:

  
26/12/1968
  

The content of the second example can even be generated by nested tags.

Steve

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: July 30, 2003 11:10 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Prob:Calling a bean:write inside html:text - Nesting is
> nice
> 
> 
> It would be nice if this:
> 
> 
> 
> Parsed the same as:
> 
> 
>aValue
> 
> 
> 
> Failing that it would be nice if any tags with attribute
> also accepted nested tags with the same name and meaning as an 
> alternative.
> 
> Brendan
> 
> 
> 
> 
> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 30, 2003 10:23 AM
> To: Struts Users Mailing List
> Cc: [EMAIL PROTECTED]
> Subject: RE: Prob:Calling a bean:write inside html:text
> 
> 
> 
> 
> On Wed, 30 Jul 2003, James Childers wrote:
> 
> > Date: Wed, 30 Jul 2003 11:35:53 -0500
> > From: James Childers <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: Struts Users Mailing List <[EMAIL PROTECTED]>,
> >  [EMAIL PROTECTED]
> > Subject: RE: Prob:Calling a bean:write inside html:text
> >
> >
> > YOU CAN'T NEST TAGS.
> >
> > YOU CAN'T NEST TAGS.
> >
> > You, or anyone else, cannot nest tags. Tags cannot be nested. 
> Nesting tags
> is prohibited. If you nest a tag inside another tag, the page 
> won't compile.
> Nesting tags ist verbotten. Do not nest tags if you want your 
> page to work.
> >
> > The following won't work:
> >
> > " />
> 
> It is true that this won't work, but I would caution you that "nesting
> tags" actually means something different:
> 
>   
> 
> 
>   
> 
> which is perfectly legitimate.  A correct sentence describing what you
> cannot do is "You cannot use one tag to create all or part of the
> attribute value of another tag."
> 
> Craig
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Prob:Calling a bean:write inside html:text - Nesting is nice

2003-07-30 Thread Steve Raeburn
Try JSTL. For example: 

  

is equivalent to:

  
26/12/1968
  

The content of the second example can even be generated by nested tags.

Steve

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: July 30, 2003 11:10 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Prob:Calling a bean:write inside html:text - Nesting is
> nice
> 
> 
> It would be nice if this:
> 
> 
> 
> Parsed the same as:
> 
> 
>aValue
> 
> 
> 
> Failing that it would be nice if any tags with attribute
> also accepted nested tags with the same name and meaning as an 
> alternative.
> 
> Brendan
> 
> 
> 
> 
> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 30, 2003 10:23 AM
> To: Struts Users Mailing List
> Cc: [EMAIL PROTECTED]
> Subject: RE: Prob:Calling a bean:write inside html:text
> 
> 
> 
> 
> On Wed, 30 Jul 2003, James Childers wrote:
> 
> > Date: Wed, 30 Jul 2003 11:35:53 -0500
> > From: James Childers <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: Struts Users Mailing List <[EMAIL PROTECTED]>,
> >  [EMAIL PROTECTED]
> > Subject: RE: Prob:Calling a bean:write inside html:text
> >
> >
> > YOU CAN'T NEST TAGS.
> >
> > YOU CAN'T NEST TAGS.
> >
> > You, or anyone else, cannot nest tags. Tags cannot be nested. 
> Nesting tags
> is prohibited. If you nest a tag inside another tag, the page 
> won't compile.
> Nesting tags ist verbotten. Do not nest tags if you want your 
> page to work.
> >
> > The following won't work:
> >
> > " />
> 
> It is true that this won't work, but I would caution you that "nesting
> tags" actually means something different:
> 
>   
> 
> 
>   
> 
> which is perfectly legitimate.  A correct sentence describing what you
> cannot do is "You cannot use one tag to create all or part of the
> attribute value of another tag."
> 
> Craig
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Prob:Calling a bean:write inside html:text - Nesting is nice

2003-07-30 Thread Brendan . Johnston
It would be nice if this:



Parsed the same as:


   aValue



Failing that it would be nice if any tags with attribute
also accepted nested tags with the same name and meaning as an alternative.

Brendan




-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 10:23 AM
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Subject: RE: Prob:Calling a bean:write inside html:text




On Wed, 30 Jul 2003, James Childers wrote:

> Date: Wed, 30 Jul 2003 11:35:53 -0500
> From: James Childers <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>      [EMAIL PROTECTED]
> Subject: RE: Prob:Calling a bean:write inside html:text
>
>
> YOU CAN'T NEST TAGS.
>
> YOU CAN'T NEST TAGS.
>
> You, or anyone else, cannot nest tags. Tags cannot be nested. Nesting tags
is prohibited. If you nest a tag inside another tag, the page won't compile.
Nesting tags ist verbotten. Do not nest tags if you want your page to work.
>
> The following won't work:
>
> " />

It is true that this won't work, but I would caution you that "nesting
tags" actually means something different:

  


  

which is perfectly legitimate.  A correct sentence describing what you
cannot do is "You cannot use one tag to create all or part of the
attribute value of another tag."

Craig

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Prob:Calling a bean:write inside html:text

2003-07-30 Thread Craig R. McClanahan


On Wed, 30 Jul 2003, James Childers wrote:

> Date: Wed, 30 Jul 2003 11:35:53 -0500
> From: James Childers <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>      [EMAIL PROTECTED]
> Subject: RE: Prob:Calling a bean:write inside html:text
>
>
> YOU CAN'T NEST TAGS.
>
> YOU CAN'T NEST TAGS.
>
> You, or anyone else, cannot nest tags. Tags cannot be nested. Nesting tags is 
> prohibited. If you nest a tag inside another tag, the page won't compile. Nesting 
> tags ist verbotten. Do not nest tags if you want your page to work.
>
> The following won't work:
>
> " />

It is true that this won't work, but I would caution you that "nesting
tags" actually means something different:

  


  

which is perfectly legitimate.  A correct sentence describing what you
cannot do is "You cannot use one tag to create all or part of the
attribute value of another tag."

Craig

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Prob:Calling a bean:write inside html:text

2003-07-30 Thread Witbeck, Shane
hmm...someone on a rant here ;) what you want to do is something like:





-Original Message-
From: James Childers [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 12:36 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Prob:Calling a bean:write inside html:text



YOU CAN'T NEST TAGS. 

YOU CAN'T NEST TAGS.

You, or anyone else, cannot nest tags. Tags cannot be nested. Nesting tags
is prohibited. If you nest a tag inside another tag, the page won't compile.
Nesting tags ist verbotten. Do not nest tags if you want your page to work. 

The following won't work:

" />

The above won't work. 

Working pages do not have nested tags. The JSP specification prohibits
nesting tags. If you nest tags, you are supporting terrorists. If you put
one tag inside the attribute of another tag, the page will not compile.

"All work and no play make Homer something something."

-= J


> -Original Message-
> From: guruprasad jakka [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 30, 2003 11:21 AM
> To: [EMAIL PROTECTED]
> Subject: Prob:Calling a bean:write inside html:text
> 
> 
> Hi,
> 
>   Even though this is a frequent question,
> I could not get the Exact syntax for doing it.
> 
>  I tried initializing a textbox from one of the earlier bean's
> property,by nesting the bean:write inside html:text.
> It is giving errors.
> 
>  ""/>
> 
> I tried leaving the quotes but invain.
> 
> Is there a proper syntax for such operation?
> 
> 
> Thanks.
> J G Guru Prasad
> V sem, Information Technology,
> Bachelor of Engineering,
> National Institute of Technology Karnataka, Surathkal.
> ( formerly KREC )
> 
> 
> 
> Get your own "800" number
> Voicemail, fax, email, and a lot more
> http://www.ureach.com/reg/tag
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Prob:Calling a bean:write inside html:text

2003-07-30 Thread James Childers

YOU CAN'T NEST TAGS. 

YOU CAN'T NEST TAGS.

You, or anyone else, cannot nest tags. Tags cannot be nested. Nesting tags is 
prohibited. If you nest a tag inside another tag, the page won't compile. Nesting tags 
ist verbotten. Do not nest tags if you want your page to work. 

The following won't work:

" />

The above won't work. 

Working pages do not have nested tags. The JSP specification prohibits nesting tags. 
If you nest tags, you are supporting terrorists. If you put one tag inside the 
attribute of another tag, the page will not compile.

"All work and no play make Homer something something."

-= J


> -Original Message-
> From: guruprasad jakka [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 30, 2003 11:21 AM
> To: [EMAIL PROTECTED]
> Subject: Prob:Calling a bean:write inside html:text
> 
> 
> Hi,
> 
>   Even though this is a frequent question,
> I could not get the Exact syntax for doing it.
> 
>  I tried initializing a textbox from one of the earlier bean's
> property,by nesting the bean:write inside html:text.
> It is giving errors.
> 
>  ""/>
> 
> I tried leaving the quotes but invain.
> 
> Is there a proper syntax for such operation?
> 
> 
> Thanks.
> J G Guru Prasad
> V sem, Information Technology,
> Bachelor of Engineering,
> National Institute of Technology Karnataka, Surathkal.
> ( formerly KREC )
> 
> 
> 
> Get your own "800" number
> Voicemail, fax, email, and a lot more
> http://www.ureach.com/reg/tag
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]