RE: Memory consumption of tags

2002-03-01 Thread MARK NICHOLS

Maybe posting it under a subject that matches the topic would help

/\/\ark


___
- mark h. nichols
- dhsv022 at dhs dot state dot il dot us 

"Ooo. They've got the Internet on computers now." - Homer Simpson 

>>> [EMAIL PROTECTED] 02/28/02 03:20PM >>>
This is posted a couple of times, hope someone can help me out:


> What I need to do is this:  I would like to display an error message to
the
> user in a little more customized way, such as, if some special characters
> are not allowed in a field, if they entered any of this special character
> set, (say @#$), I would like to display that "@#$ is not allowed in this
> field".  Also I would like to change the fields where erroneous data exist
> into red, possbly change the font of the erroneous data into a different
> font color.  When the user correct the error,  I want the background of
that
> field to be original color and font back to original color too.  I would
> also like to focus my cursor in the first erroneous field, if erroneous
data
> exists, I would like to select that erroneous data.   Can I do that?  How
do
> I do that?  It seems like Javascript is not welcomed here, so I am looking
> for a solution in Struts.  Hopefully there is a nice way to do this.
> 
> Really appreciate all your time and help,

Yanhui



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Memory consumption of tags

2002-02-28 Thread Wayne Fuller

There is a patch for just this on IBM's site, but only if you are running
Websphere on a NT box.  If you need the URL, I can get it tomorrow at work.

Wayne

-Original Message-
From: Dave J Dandeneau [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 08:16
To: Struts Users Mailing List
Subject: RE: Memory consumption of tags


We actually opened a support issue with WebSphere because our JSPs were
generating "Branch too large" exceptions in Websphere but in no other
servers. They told us that there was an optimization in the works that a
client is testing but it is not public yet.

Here is what the jsp compiler generates for each message tag on Websphere
4.0.1:

MessageTag messagetag = new MessageTag();
messagetag.setPageContext(pagecontext);
messagetag.setParent(htmltag);
JspRuntimeLibrary.introspecthelper(messagetag, "key",
"Loginlogout.login.title", null, null, false);
try
{
  int k = messagetag.doStartTag();
  if(k == 2)
throw new JspTagException("Since tag handler class
org.apache.struts.taglib.bean.MessageTag does not implement BodyTag, it
can't return BodyTag.EVAL_BODY_TAG");

  if(k == 0);

  if(messagetag.doEndTag() == 5)
  {
return;
  }
} finally {
  messagetag.release();
}
((JspWriter) (obj3)).print(_jspx_html_data[6]);

It doesn't look like too many objects are created, but it seems like there
may be some way to optimize it further.

Thanks,
dave dandeneau

-Original Message-
From: Patrick Logé [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 8:20 AM
To: Struts Users Mailing List
Subject: RE: Memory consumption of tags


We plan to do so using WS 3.5.4, and we should
have some load...

you'r frighten me <:(



Has anyone running Struts on Websphere noticed these
oddities as well or maybe explain the reason for this?

/Johannes

_
Hitta snörapporter...
från 500 olika skidorter i Europa
på http://se.snow.yahoo.com

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


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


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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.325 / Virus Database: 182 - Release Date: 02/19/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.330 / Virus Database: 184 - Release Date: 02/28/2002


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




RE: Memory consumption of tags

2002-02-28 Thread Yu, Yanhui

This is posted a couple of times, hope someone can help me out:


> What I need to do is this:  I would like to display an error message to
the
> user in a little more customized way, such as, if some special characters
> are not allowed in a field, if they entered any of this special character
> set, (say @#$), I would like to display that "@#$ is not allowed in this
> field".  Also I would like to change the fields where erroneous data exist
> into red, possbly change the font of the erroneous data into a different
> font color.  When the user correct the error,  I want the background of
that
> field to be original color and font back to original color too.  I would
> also like to focus my cursor in the first erroneous field, if erroneous
data
> exists, I would like to select that erroneous data.   Can I do that?  How
do
> I do that?  It seems like Javascript is not welcomed here, so I am looking
> for a solution in Struts.  Hopefully there is a nice way to do this.
> 
> Really appreciate all your time and help,

Yanhui



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Memory consumption of tags

2002-02-22 Thread Johannes Carlén

Well, actually, look at the code Tomcat generated:

org.apache.struts.taglib.bean.WriteTag writeTag = new
org.apache.struts.taglib.bean.WriteTag();
writeTag.setPageContext(pageContext);
writeTag.setParent(_jspx_th_html_html_0);
writeTag.setName("testBean");
writeTag.setProperty("value");
try {
int result = writeTag.doStartTag();
if (result ==
javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_BUFFERED)
throw new JspTagException("Since tag handler class
org.apache.struts.taglib.bean.WriteTag does not
implement BodyTag, it can't return
BodyTag.EVAL_BODY_TAG");
if (result != javax.servlet.jsp.tagext.Tag.SKIP_BODY)
{
do {
// end
// begin
[file="/testWrite.jsp";from=(16,0);to=(16,46)]
} while (writeTag.doAfterBody() ==
javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
}
if (writeTag.doEndTag() ==
javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return;
} finally {
writeTag.release();
}

It doesn't make any calls to the introspecthelper
method at all. It sets the attributes on the tag
directly. So websphere does some extra work here...
Could this be recognized as a bug? Or is it just an
"old" way of handling tags?

/Johannes


 --- Dave J Dandeneau <[EMAIL PROTECTED]>
wrote:
> We actually opened a support issue with WebSphere
> because our JSPs were generating "Branch too large"
> exceptions in Websphere but in no other servers.
> They told us that there was an optimization in the
> works that a client is testing but it is not public
> yet. 
> 
> Here is what the jsp compiler generates for each
> message tag on Websphere 4.0.1:
> 
> MessageTag messagetag = new MessageTag();
> messagetag.setPageContext(pagecontext);
> messagetag.setParent(htmltag);
> JspRuntimeLibrary.introspecthelper(messagetag,
> "key", "Loginlogout.login.title", null, null,
> false);
> try
> {
>   int k = messagetag.doStartTag();
>   if(k == 2)
> throw new JspTagException("Since tag handler
> class org.apache.struts.taglib.bean.MessageTag does
> not implement BodyTag, it can't return
> BodyTag.EVAL_BODY_TAG");
>  
>   if(k == 0);
>   
>   if(messagetag.doEndTag() == 5)
>   {
> return;
>   }
> } finally {
>   messagetag.release();
> }
> ((JspWriter) (obj3)).print(_jspx_html_data[6]);
> 
> It doesn't look like too many objects are created,
> but it seems like there may be some way to optimize
> it further.
> 
> Thanks,
> dave dandeneau
> 
> -Original Message-
> From: Patrick Logé [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 22, 2002 8:20 AM
> To: Struts Users Mailing List
> Subject: RE: Memory consumption of tags
> 
> 
> We plan to do so using WS 3.5.4, and we should
> have some load...
> 
> you'r frighten me <:(
> 
> 
> 
> Has anyone running Struts on Websphere noticed these
> oddities as well or maybe explain the reason for
> this?
> 
> /Johannes
> 
>
_
> Hitta snörapporter... 
> från 500 olika skidorter i Europa
> på http://se.snow.yahoo.com
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>  

_
Hitta snörapporter... 
från 500 olika skidorter i Europa
på http://se.snow.yahoo.com

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




RE: Memory consumption of tags

2002-02-22 Thread Johannes Carlén

Well, as I understand, it is further down, in the call
to the JspRuntimeLibrary.introspecthelper() method
that the objectc get created...

/Johannes

 --- Dave J Dandeneau <[EMAIL PROTECTED]>
wrote:
> We actually opened a support issue with WebSphere
> because our JSPs were generating "Branch too large"
> exceptions in Websphere but in no other servers.
> They told us that there was an optimization in the
> works that a client is testing but it is not public
> yet. 
> 
> Here is what the jsp compiler generates for each
> message tag on Websphere 4.0.1:
> 
> MessageTag messagetag = new MessageTag();
> messagetag.setPageContext(pagecontext);
> messagetag.setParent(htmltag);
> JspRuntimeLibrary.introspecthelper(messagetag,
> "key", "Loginlogout.login.title", null, null,
> false);
> try
> {
>   int k = messagetag.doStartTag();
>   if(k == 2)
> throw new JspTagException("Since tag handler
> class org.apache.struts.taglib.bean.MessageTag does
> not implement BodyTag, it can't return
> BodyTag.EVAL_BODY_TAG");
>  
>   if(k == 0);
>   
>   if(messagetag.doEndTag() == 5)
>   {
> return;
>   }
> } finally {
>   messagetag.release();
> }
> ((JspWriter) (obj3)).print(_jspx_html_data[6]);
> 
> It doesn't look like too many objects are created,
> but it seems like there may be some way to optimize
> it further.
> 
> Thanks,
> dave dandeneau
> 
> -----Original Message-
> From: Patrick Logé [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 22, 2002 8:20 AM
> To: Struts Users Mailing List
> Subject: RE: Memory consumption of tags
> 
> 
> We plan to do so using WS 3.5.4, and we should
> have some load...
> 
> you'r frighten me <:(
> 
> 
> 
> Has anyone running Struts on Websphere noticed these
> oddities as well or maybe explain the reason for
> this?
> 
> /Johannes
> 
>
_
> Hitta snörapporter... 
> från 500 olika skidorter i Europa
> på http://se.snow.yahoo.com
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>  

_
Hitta snörapporter... 
från 500 olika skidorter i Europa
på http://se.snow.yahoo.com

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




RE: Memory consumption of tags

2002-02-22 Thread Dave J Dandeneau

We actually opened a support issue with WebSphere because our JSPs were generating 
"Branch too large" exceptions in Websphere but in no other servers. They told us that 
there was an optimization in the works that a client is testing but it is not public 
yet. 

Here is what the jsp compiler generates for each message tag on Websphere 4.0.1:

MessageTag messagetag = new MessageTag();
messagetag.setPageContext(pagecontext);
messagetag.setParent(htmltag);
JspRuntimeLibrary.introspecthelper(messagetag, "key", "Loginlogout.login.title", null, 
null, false);
try
{
  int k = messagetag.doStartTag();
  if(k == 2)
throw new JspTagException("Since tag handler class 
org.apache.struts.taglib.bean.MessageTag does not implement BodyTag, it can't return 
BodyTag.EVAL_BODY_TAG");
 
  if(k == 0);
  
  if(messagetag.doEndTag() == 5)
  {
return;
  }
} finally {
  messagetag.release();
}
((JspWriter) (obj3)).print(_jspx_html_data[6]);

It doesn't look like too many objects are created, but it seems like there may be some 
way to optimize it further.

Thanks,
dave dandeneau

-Original Message-
From: Patrick Logé [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 8:20 AM
To: Struts Users Mailing List
Subject: RE: Memory consumption of tags


We plan to do so using WS 3.5.4, and we should
have some load...

you'r frighten me <:(



Has anyone running Struts on Websphere noticed these
oddities as well or maybe explain the reason for this?

/Johannes

_
Hitta snörapporter... 
från 500 olika skidorter i Europa
på http://se.snow.yahoo.com

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


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


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




RE: Memory consumption of tags

2002-02-22 Thread Patrick Logé

We plan to do so using WS 3.5.4, and we should
have some load...

you'r frighten me <:(



Has anyone running Struts on Websphere noticed these
oddities as well or maybe explain the reason for this?

/Johannes

_
Hitta snörapporter... 
från 500 olika skidorter i Europa
på http://se.snow.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: