Re: .NET and Struts...

2001-09-26 Thread Craig Tataryn

I aggree, but I guess it's easy to know how to build a better class library
when there is one already out there you can "model".

VS.NET is a pig as far as eating up processor and RAM but man, can those
guys ever make an excellent development studio.

One of my favorite features of VB.NET that Java doesn't have is automatic
"boxing" of primitive types.  Basically the compiler will treat your "int"
variable as an object if you use it like an object, or it will treat it as a
primitive if you use it like a primitive.

Craig.

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 26, 2001 11:31 AM
Subject: .NET and Struts...


> i'm a long time unix/c/c++/java/jsp developer, but honestly, my
> experience with .NET in its short time since beta 2 release has been
> very eye-opening. all of the usual features you'd expect from msft in
> terms of whizbang gui features are all there of course, in
> VS.NET. even more impressive to me is the .NET framework and its
> associated class libraries. it's a massive effort with massive
> developer/design hours invested. i have yet to find something in
> java's sdk class lib that isn't already in .NET. in fact, .NET
> arguably already has a better class library, including such basic
> features such as built-in Regex support that's missing from
> sun. that's just a start.
>
> i'm not tooting msft here at all - just trying to be informative. if
> anything, i'm saddened that there's less and less that seems to be
> able to defend against the msft monopoly/juggernaut. ;)
>
>
> jae
>
> Craig Tataryn writes:
>  > Hi all, I just wanted to give an observation and perhaps propose
another "ToDo".  I recently attended a ".NET roadshow" seminar in
Minneapolis (btw: not worth the money, just buy a book and read it, all the
instructors did was read the slides to us).




RE: .NET and Struts...

2001-09-26 Thread Taylor Cowan


regexp will be there soon.  It's been around for a while as a freely
available gnu package and there's one other called ORA match, but now Sun
has it as well.

>arguably already has a better class library, including such basic
>features such as built-in Regex support that's missing from
>sun. that's just a start.

So that's not a start.  Come up with something else to help us see your
point.

http://java.sun.com/j2se/1.4/docs/api/java/util/regex/package-summary.html


-Original Message-
From: Jae W. Chang [mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, September 26, 2001 12:32 PM
To: [EMAIL PROTECTED]
Subject: .NET and Struts...


i'm a long time unix/c/c++/java/jsp developer, but honestly, my
experience with .NET in its short time since beta 2 release has been
very eye-opening. all of the usual features you'd expect from msft in
terms of whizbang gui features are all there of course, in
VS.NET. even more impressive to me is the .NET framework and its
associated class libraries. it's a massive effort with massive
developer/design hours invested. i have yet to find something in
java's sdk class lib that isn't already in .NET. in fact, .NET
arguably already has a better class library, including such basic
features such as built-in Regex support that's missing from
sun. that's just a start.

i'm not tooting msft here at all - just trying to be informative. if
anything, i'm saddened that there's less and less that seems to be
able to defend against the msft monopoly/juggernaut. ;)


jae

Craig Tataryn writes:
 > Hi all, I just wanted to give an observation and perhaps propose another
"ToDo".  I recently attended a ".NET roadshow" seminar in Minneapolis (btw:
not worth the money, just buy a book and read it, all the instructors did
was read the slides to us).



Re: html:errors tag implementation

2001-09-26 Thread David Winterfeldt

The string you pass into ActionError must be a key
from your message resource property file.  Otherwise
the property for error messages is just a key to look
up messages and the convention is to make it match the
property name.



errors.add ("bar.foo[3].xyz", 
   new ActionErrorError ("error.required");

error.required="The field is required."


This is more of user list question than a dev list one
so I've copied the user list.

David

--- Henry Mugasha <[EMAIL PROTECTED]> wrote:
> Hi All,
> 
> Does the current stable struts release support
> assigning errors to
> nested indexed propertys of ActionForms?
> 
> 
> For example,
> I have an ActionForm called fooBean with the
> property bar that is a class with a reference to the
> collection whose reference is foo and each item in
> the collection has a property xyz.
> 
> I want to access the errors assigned to this
> property (by the validate method of the fooBean
> ActionForm) like so:
> 
>   property="bar.foo[3].xyz">
> 
> 
> If this feature is supported, how does one set the
> ActionError?
> 
> I tried 
> 
> ...
> ActionErrors errors = new ActionErrors();
> ...
> errors.add ("bar.foo[3].xyz", 
>  new ActionErrorError ( " error string "
> );
> 
> 
> but this failed to show any error messages.
> 
> The point of this is to show error messages against
> each form field
> in stead of showing all error messages at the top of
> form with
> .
> 
> Any help,suggestions,ideas are highly appreciated.
> 
> Thanks
> 
> Henry
> 
> 
> Make a difference, help support the relief efforts
> in the U.S.
> http://clubs.lycos.com/live/events/september11.asp


__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger. 
http://im.yahoo.com



.NET and Struts...

2001-09-26 Thread struts

i'm a long time unix/c/c++/java/jsp developer, but honestly, my
experience with .NET in its short time since beta 2 release has been
very eye-opening. all of the usual features you'd expect from msft in
terms of whizbang gui features are all there of course, in
VS.NET. even more impressive to me is the .NET framework and its
associated class libraries. it's a massive effort with massive
developer/design hours invested. i have yet to find something in
java's sdk class lib that isn't already in .NET. in fact, .NET
arguably already has a better class library, including such basic
features such as built-in Regex support that's missing from
sun. that's just a start.

i'm not tooting msft here at all - just trying to be informative. if
anything, i'm saddened that there's less and less that seems to be
able to defend against the msft monopoly/juggernaut. ;)


jae

Craig Tataryn writes:
 > Hi all, I just wanted to give an observation and perhaps propose another "ToDo".  I 
 >recently attended a ".NET roadshow" seminar in Minneapolis (btw: not worth the money, 
 >just buy a book and read it, all the instructors did was read the slides to us).



RE: template taglib example

2001-09-26 Thread Vaillancourt, Richard

thanks.  that worked.

> -Original Message-
> From: Cedric Dumoulin [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, September 26, 2001 11:59 AM
> To:   [EMAIL PROTECTED]
> Subject:  Re: template taglib example
> 
> 
>   Try to add flush="true" in each of your 
> tags.
> This should solve the problem (coming from your web container).
> 
> Cedric
> 
> "Vaillancourt, Richard" wrote:
> 
> > Thanks Kevin.
> >
> > See enclosed.  Extremely simple template example.
> >
> > The taglibs seem to work in that the individual .jsps are located and
> > rendered as html, it's just that the order of execution seems off.
> >
> > The individual pieces of html are at the top, and the template is on the
> > bottom?
> >
> > Is this it?
> >
> > I modified the following code per some instructions, I was having other
> > issues before I made these changes (couldn't get to linked pages in
> > strutsexample app)
> >
> > org.apache.struts.taglib.html.FormTag.doEndTag
> >
> > thanks
> >
> > -Rick
> >
> >  /**
> >  * Render the end of this form.
> >  *
> >  * @exception JspException if a JSP exception has occurred
> >  */
> > public int doEndTag() throws JspException {
> >
> > // Remove the page scope attributes we created
> > /*  pageContext.removeAttribute(Constants.BEAN_KEY,
> > PageContext.REQUEST_SCOPE);
> > COMMENTED OUT
> > pageContext.removeAttribute(Constants.FORM_KEY,
> > PageContext.REQUEST_SCOPE);
> > */
> > // Remove the page scope attributes we created
> > pageContext.removeAttribute(Constants.BEAN_KEY);
> > pageContext.removeAttribute(Constants.FORM_KEY);
> >
> > // Render a tag representing the end of our current form
> > StringBuffer results = new StringBuffer("");
> >
> > // Render JavaScript to set the input focus if required
> > if (focus != null) {
> > String tempFocus = focus;
> > StringBuffer refocus = new StringBuffer("[");
> > if (tempFocus.indexOf("[") > 0) {
> > StringTokenizer st = new StringTokenizer(tempFocus,
> "[");
> > if (st.countTokens() == 2) {
> > tempFocus = st.nextToken();
> > refocus.append(st.nextToken());
> > }
> > }
> > results.append("\r\n");
> > results.append(" > results.append(" type=\"text/javascript\">\r\n");
> > results.append("  \r\n");
> > results.append("\r\n");
> > }
> >
> > // Print this value to our output writer
> > JspWriter writer = pageContext.getOut();
> > try {
> > writer.print(results.toString());
> > } catch (IOException e) {
> > throw new JspException
> > (messages.getMessage("common.io", e.toString()));
> > }
> >
> > // Continue processing this page
> > return (EVAL_PAGE);
> >
> > }
> >
> > ><>
> > >
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > > Sent: Tuesday, September 25, 2001 7:22 PM
> > > To:
> > > Cc:   Vaillancourt, Richard
> > > Subject:  Re: template taglib example
> > >
> > >
> > >
> **
> > >
> > > Note: This e-mail is subject to the disclaimer contained at the bottom
> > > of this message.
> > >
> > >
> **
> > > :
> > >
> > > Not sure your template look like, but you may try to use flush="true"
> in
> > > your template.
> > >
> > > There is a broken JSP container in Websphere 3.5 not sure 4.0 fixed it
> or
> > > not.
> > >
> > > Regards
> > > Kelvin
> > >
> > >
> > > :
> > >
> **
> > > **
> > >
> > > The information transmitted in this message and attachments (if any)
> > > is intended only for the person or entity to which it is addressed.
> > > The message may contain confidential and/or privileged material.
> > > Any review, retransmission, dissemination or other use of, or taking
> > > of any action in reliance upon this information, by persons or
> entities
> > > other than the intended recipient is prohibited.
> > >
> > > If you have received this in error, please contact the sender and
> delete
> > > this
> > > e-mail and associated material from any computer.
> 

html:errors tag implementation

2001-09-26 Thread Henry Mugasha

Hi All,

Does the current stable struts release support assigning errors to
nested indexed propertys of ActionForms?


For example,
I have an ActionForm called fooBean with the property bar that is a class with a 
reference to the collection whose reference is foo and each item in the collection has 
a property xyz.

I want to access the errors assigned to this property (by the validate method of the 
fooBean ActionForm) like so:

 


If this feature is supported, how does one set the ActionError?

I tried 

...
ActionErrors errors = new ActionErrors();
...
errors.add ("bar.foo[3].xyz", 
 new ActionErrorError ( " error string " );


but this failed to show any error messages.

The point of this is to show error messages against each form field
in stead of showing all error messages at the top of form with
.

Any help,suggestions,ideas are highly appreciated.

Thanks

Henry


Make a difference, help support the relief efforts in the U.S.
http://clubs.lycos.com/live/events/september11.asp



Re: template taglib example

2001-09-26 Thread Cedric Dumoulin


  Try to add flush="true" in each of your  tags.
This should solve the problem (coming from your web container).

Cedric

"Vaillancourt, Richard" wrote:

> Thanks Kevin.
>
> See enclosed.  Extremely simple template example.
>
> The taglibs seem to work in that the individual .jsps are located and
> rendered as html, it's just that the order of execution seems off.
>
> The individual pieces of html are at the top, and the template is on the
> bottom?
>
> Is this it?
>
> I modified the following code per some instructions, I was having other
> issues before I made these changes (couldn't get to linked pages in
> strutsexample app)
>
> org.apache.struts.taglib.html.FormTag.doEndTag
>
> thanks
>
> -Rick
>
>  /**
>  * Render the end of this form.
>  *
>  * @exception JspException if a JSP exception has occurred
>  */
> public int doEndTag() throws JspException {
>
> // Remove the page scope attributes we created
> /*  pageContext.removeAttribute(Constants.BEAN_KEY,
> PageContext.REQUEST_SCOPE);
> COMMENTED OUT
> pageContext.removeAttribute(Constants.FORM_KEY,
> PageContext.REQUEST_SCOPE);
> */
> // Remove the page scope attributes we created
> pageContext.removeAttribute(Constants.BEAN_KEY);
> pageContext.removeAttribute(Constants.FORM_KEY);
>
> // Render a tag representing the end of our current form
> StringBuffer results = new StringBuffer("");
>
> // Render JavaScript to set the input focus if required
> if (focus != null) {
> String tempFocus = focus;
> StringBuffer refocus = new StringBuffer("[");
> if (tempFocus.indexOf("[") > 0) {
> StringTokenizer st = new StringTokenizer(tempFocus, "[");
> if (st.countTokens() == 2) {
> tempFocus = st.nextToken();
> refocus.append(st.nextToken());
> }
> }
> results.append("\r\n");
> results.append(" results.append(" type=\"text/javascript\">\r\n");
> results.append("  \r\n");
> results.append("\r\n");
> }
>
> // Print this value to our output writer
> JspWriter writer = pageContext.getOut();
> try {
> writer.print(results.toString());
> } catch (IOException e) {
> throw new JspException
> (messages.getMessage("common.io", e.toString()));
> }
>
> // Continue processing this page
> return (EVAL_PAGE);
>
> }
>
> ><>
> >
> > -Original Message-
> > From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 25, 2001 7:22 PM
> > To:
> > Cc:   Vaillancourt, Richard
> > Subject:  Re: template taglib example
> >
> >
> > **
> >
> > Note: This e-mail is subject to the disclaimer contained at the bottom
> > of this message.
> >
> > **
> > :
> >
> > Not sure your template look like, but you may try to use flush="true" in
> > your template.
> >
> > There is a broken JSP container in Websphere 3.5 not sure 4.0 fixed it or
> > not.
> >
> > Regards
> > Kelvin
> >
> >
> > :
> > **
> > **
> >
> > The information transmitted in this message and attachments (if any)
> > is intended only for the person or entity to which it is addressed.
> > The message may contain confidential and/or privileged material.
> > Any review, retransmission, dissemination or other use of, or taking
> > of any action in reliance upon this information, by persons or entities
> > other than the intended recipient is prohibited.
> >
> > If you have received this in error, please contact the sender and delete
> > this
> > e-mail and associated material from any computer.
> >
> > The intended recipient of this e-mail may only use, reproduce, disclose or
> > distribute the information contained in this e-mail and any attached
> > files,
> > with the permission of CGU Insurance.
> >
> > This message has been scanned for viruses and cleared by MailMarshal.
> >
> > 
> > :
>
>   
>
>templateExample.txtName: templateExample.txt
> 

RE: template taglib example

2001-09-26 Thread Vaillancourt, Richard

Thanks Kevin.

See enclosed.  Extremely simple template example.

The taglibs seem to work in that the individual .jsps are located and
rendered as html, it's just that the order of execution seems off.  

The individual pieces of html are at the top, and the template is on the
bottom?


Is this it?  

I modified the following code per some instructions, I was having other
issues before I made these changes (couldn't get to linked pages in
strutsexample app)

org.apache.struts.taglib.html.FormTag.doEndTag



thanks

-Rick

 /**
 * Render the end of this form.
 *
 * @exception JspException if a JSP exception has occurred
 */
public int doEndTag() throws JspException {

// Remove the page scope attributes we created
/*  pageContext.removeAttribute(Constants.BEAN_KEY,
PageContext.REQUEST_SCOPE);
COMMENTED OUT
pageContext.removeAttribute(Constants.FORM_KEY,
PageContext.REQUEST_SCOPE);
*/
// Remove the page scope attributes we created
pageContext.removeAttribute(Constants.BEAN_KEY);
pageContext.removeAttribute(Constants.FORM_KEY);


// Render a tag representing the end of our current form
StringBuffer results = new StringBuffer("");

// Render JavaScript to set the input focus if required
if (focus != null) {
String tempFocus = focus;
StringBuffer refocus = new StringBuffer("[");
if (tempFocus.indexOf("[") > 0) {
StringTokenizer st = new StringTokenizer(tempFocus, "[");
if (st.countTokens() == 2) {
tempFocus = st.nextToken();
refocus.append(st.nextToken());
}
}
results.append("\r\n");
results.append("\r\n");
results.append("  \r\n");
results.append("\r\n");
}

// Print this value to our output writer
JspWriter writer = pageContext.getOut();
try {
writer.print(results.toString());
} catch (IOException e) {
throw new JspException
(messages.getMessage("common.io", e.toString()));
}

// Continue processing this page
return (EVAL_PAGE);

}






><> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, September 25, 2001 7:22 PM
> To:
> Cc:   Vaillancourt, Richard
> Subject:  Re: template taglib example
> 
> 
> **
> 
> Note: This e-mail is subject to the disclaimer contained at the bottom
> of this message.
> 
> **
> :
> 
> Not sure your template look like, but you may try to use flush="true" in
> your template.
> 
> There is a broken JSP container in Websphere 3.5 not sure 4.0 fixed it or
> not.
> 
> Regards
> Kelvin
> 
> 
> :
> **
> **
> 
> The information transmitted in this message and attachments (if any)
> is intended only for the person or entity to which it is addressed.  
> The message may contain confidential and/or privileged material.  
> Any review, retransmission, dissemination or other use of, or taking 
> of any action in reliance upon this information, by persons or entities
> other than the intended recipient is prohibited.  
> 
> If you have received this in error, please contact the sender and delete
> this
> e-mail and associated material from any computer.
> 
> The intended recipient of this e-mail may only use, reproduce, disclose or
> distribute the information contained in this e-mail and any attached
> files,
> with the permission of CGU Insurance.
> 
> This message has been scanned for viruses and cleared by MailMarshal.
> 
> 
> :



/
this is the url

http://localhost:8080/strutsexample/index-struts-template.jsp



/
this is /strutsexample/index-struts-template.jsp

<%@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' %>









/
this is the testTemplate.jsp

<%@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' %> 

 







 


//