Scrape tag
Hi All Does anyone know where I can get my hands on the scrape tag?? I've looked on all the jakarta mirror sites and none of them have it. Any help would be aqppreciated. Andy
Can I use MyClass as a attribute
// Tag snippet private hCategories categories=null; /** * Getter/Setter for the attribute name as defined in the tld file * for this tag */ public void setCategories(hCategories value){ categories = value; } public hCategories getCategories(){ return(categories); } JSP call: dl:productView categories=%=categoryData% / Error message that is created: Unable to convert string '%=categoryData%' to class com.harland.datatypes.hCategories for attribute categories: java.lang.IllegalArgumentException: Property Editor not registered with the PropertyEditorManager Using Tomcat 4.1.18 First can I do this? Then if I can how do I pass the hCategories object? Thanks, Jeff Born
RE: Scrape tag
Scrape is listed on the main taglibs page on The Jakarta Project: http://jakarta.apache.org/taglibs/index.html -Original Message- From: Infidel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 8:23 AM To: [EMAIL PROTECTED] Subject: Scrape tag Hi All Does anyone know where I can get my hands on the scrape tag?? I've looked on all the jakarta mirror sites and none of them have it. Any help would be aqppreciated. Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Starting
I have played around with some code examples and am interested in creating my own web sites using JSP, Servlets and JDBC from scratch. I don't wish to be a guru, just someone that could knock together a reasonably simple web app in a day or so. (like an online client database, or online consultant timesheet system which you use forms to enter and search.) Could I learn just tags, struts or Maverick without getting too much into Java code? Regards Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Benefits of using taglibs...
On Wed, 19 Feb 2003, Ciramella, EJ wrote: My company has ~500 jsps - all of which are scriptlet heavy. I want to propose a change to using taglibs (either custom or directly from the taglib project). What can I site as the benefits? I'm hoping to find a web page or document or something that clearly states some sort of performance increase. Currently, it takes a REALLY long time just to load the login page (which has large scriptlets embedded and it's imports also are 90% scriptlet). I'm guessing that if these things were compiled classes in side a taglib, this would shorten load time and lessen the need to precompile the jsp's. Thanks in advance. The benefits of tag libraries are primarily organizational. You're unlikely to notice a performance improvement when switching from scriptlets to tag libraries; your scriptlet code is being compiled into servlets before it's run. -- Shawn Bayern JSTL in Action http://www.manning.com/bayern - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Starting
On Wed, 19 Feb 2003, Scott Taylor wrote: I have played around with some code examples and am interested in creating my own web sites using JSP, Servlets and JDBC from scratch. I don't wish to be a guru, just someone that could knock together a reasonably simple web app in a day or so. (like an online client database, or online consultant timesheet system which you use forms to enter and search.) Could I learn just tags, struts or Maverick without getting too much into Java code? You might find that you can get pretty far with JSTL. In fact, JSTL in Action has lots of information for people in your situation; I had sort of hoped there would be more people like you. :-) -- Shawn Bayern JSTL in Action http://www.manning.com/bayern - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Scrape tag
Yea, I know...but if you go into any of the download locations the folders are empty - Original Message - From: Renick, Garrel [EMAIL PROTECTED] To: Tag Libraries Users List [EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 5:46 PM Subject: RE: Scrape tag Scrape is listed on the main taglibs page on The Jakarta Project: http://jakarta.apache.org/taglibs/index.html -Original Message- From: Infidel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 8:23 AM To: [EMAIL PROTECTED] Subject: Scrape tag Hi All Does anyone know where I can get my hands on the scrape tag?? I've looked on all the jakarta mirror sites and none of them have it. Any help would be aqppreciated. Andy - 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: Benefits of using taglibs...
Right, so if there are no/very little scriptlet code in the jsps and the tags are already classes, wouldn't this speed thing up at all? -Original Message- From: Shawn Bayern [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 11:16 AM To: Tag Libraries Users List Subject: Re: Benefits of using taglibs... On Wed, 19 Feb 2003, Ciramella, EJ wrote: My company has ~500 jsps - all of which are scriptlet heavy. I want to propose a change to using taglibs (either custom or directly from the taglib project). What can I site as the benefits? I'm hoping to find a web page or document or something that clearly states some sort of performance increase. Currently, it takes a REALLY long time just to load the login page (which has large scriptlets embedded and it's imports also are 90% scriptlet). I'm guessing that if these things were compiled classes in side a taglib, this would shorten load time and lessen the need to precompile the jsp's. Thanks in advance. The benefits of tag libraries are primarily organizational. You're unlikely to notice a performance improvement when switching from scriptlets to tag libraries; your scriptlet code is being compiled into servlets before it's run. -- Shawn Bayern JSTL in Action http://www.manning.com/bayern - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Benefits of using taglibs...
On Wed, 19 Feb 2003, Ciramella, EJ wrote: Right, so if there are no/very little scriptlet code in the jsps and the tags are already classes, wouldn't this speed thing up at all? No, not at runtime; by the time your pages are accessed, they've already been compiled. (In other words, they're compiled only when they change.) -- Shawn Bayern JSTL in Action http://www.manning.com/bayern - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Benefits of using taglibs...
ok, I'm not looking to speed up runtime, just compile time. Runtime is fine, compile time is WAY too long. -Original Message- From: Shawn Bayern [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 11:26 AM To: Tag Libraries Users List Subject: RE: Benefits of using taglibs... On Wed, 19 Feb 2003, Ciramella, EJ wrote: Right, so if there are no/very little scriptlet code in the jsps and the tags are already classes, wouldn't this speed thing up at all? No, not at runtime; by the time your pages are accessed, they've already been compiled. (In other words, they're compiled only when they change.) -- Shawn Bayern JSTL in Action http://www.manning.com/bayern - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Benefits of using taglibs...
-Original Message- From: Shawn Bayern [mailto:[EMAIL PROTECTED]] On Wed, 19 Feb 2003, Ciramella, EJ wrote: My company has ~500 jsps - all of which are scriptlet heavy. I want to propose a change to using taglibs (either custom or directly from the taglib project). What can I site as the benefits? I'm hoping to find a web page or document or something that clearly states some sort of performance increase. Currently, it takes a REALLY long time just to load the login page (which has large scriptlets embedded and it's imports also are 90% scriptlet). I'm guessing that if these things were compiled classes in side a taglib, this would shorten load time and lessen the need to precompile the jsp's. Thanks in advance. The benefits of tag libraries are primarily organizational. You're unlikely to notice a performance improvement when switching from scriptlets to tag libraries; your scriptlet code is being compiled into servlets before it's run. You may notice a speed up relating to page compilation, but Shawn is right when he states that tag libraries don't necessarily mean improved performance. I'd imagine that your performance issues might be a product of a larger architectural issue. If your application consists solely of JSP w/ scriptlets, you might not be taking advantage of pooled JDBC connections, caching, etc.. I'd recommend an evolutionary approach, the first step involves taglibs. 1. JSP w/ Scriptlets *Uck!* 2. JSP w/ Custom Taglibs and JSTL 3. JSP w/ Custom Taglibs and JSTL - accessing a shared persistence layer ( see OJB, Hibernate, etc.. ) 4. JSP w/ Custom Taglibs and JSTL + Struts for MVC - both interfacing with shared persistence layer The benefits of the jump between #1 and #2 are mostly maintainability and reuse. Performance gains will start to manifest themselves when you make the jump between #2 and #3. -- Shawn Bayern JSTL in Action http://www.manning.com/bayern - 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: Benefits of using taglibs...
Thanks a TON - like I initially said, I'm just the release engineer here laden with the task of precompiling this mess. The runtime is quick, the compile time is S-L-O-W. I think it's really do to the amount of scriptlets and scriptlets in file that are included. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 11:38 AM To: 'Tag Libraries Users List' Subject: RE: Benefits of using taglibs... -Original Message- From: Shawn Bayern [mailto:[EMAIL PROTECTED]] On Wed, 19 Feb 2003, Ciramella, EJ wrote: My company has ~500 jsps - all of which are scriptlet heavy. I want to propose a change to using taglibs (either custom or directly from the taglib project). What can I site as the benefits? I'm hoping to find a web page or document or something that clearly states some sort of performance increase. Currently, it takes a REALLY long time just to load the login page (which has large scriptlets embedded and it's imports also are 90% scriptlet). I'm guessing that if these things were compiled classes in side a taglib, this would shorten load time and lessen the need to precompile the jsp's. Thanks in advance. The benefits of tag libraries are primarily organizational. You're unlikely to notice a performance improvement when switching from scriptlets to tag libraries; your scriptlet code is being compiled into servlets before it's run. You may notice a speed up relating to page compilation, but Shawn is right when he states that tag libraries don't necessarily mean improved performance. I'd imagine that your performance issues might be a product of a larger architectural issue. If your application consists solely of JSP w/ scriptlets, you might not be taking advantage of pooled JDBC connections, caching, etc.. I'd recommend an evolutionary approach, the first step involves taglibs. 1. JSP w/ Scriptlets *Uck!* 2. JSP w/ Custom Taglibs and JSTL 3. JSP w/ Custom Taglibs and JSTL - accessing a shared persistence layer ( see OJB, Hibernate, etc.. ) 4. JSP w/ Custom Taglibs and JSTL + Struts for MVC - both interfacing with shared persistence layer The benefits of the jump between #1 and #2 are mostly maintainability and reuse. Performance gains will start to manifest themselves when you make the jump between #2 and #3. -- Shawn Bayern JSTL in Action http://www.manning.com/bayern - 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: Scrape tag
Fixed now. Infidel wrote: Yea, I know...but if you go into any of the download locations the folders are empty - Original Message - From: Renick, Garrel [EMAIL PROTECTED] To: Tag Libraries Users List [EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 5:46 PM Subject: RE: Scrape tag Scrape is listed on the main taglibs page on The Jakarta Project: http://jakarta.apache.org/taglibs/index.html -Original Message- From: Infidel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 8:23 AM To: [EMAIL PROTECTED] Subject: Scrape tag Hi All Does anyone know where I can get my hands on the scrape tag?? I've looked on all the jakarta mirror sites and none of them have it. Any help would be aqppreciated. Andy - 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] -- -- Glenn Nielsen [EMAIL PROTECTED] | /* Spelin donut madder| MOREnet System Programming | * if iz ina coment. | Missouri Research and Education Network | */ | -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Attributes with Spaces in Their Names
One of the applications I am working on has application scope attributes that have spaces in their names, such as: theCollection PacificRim. When accessing from JSTL's forEach tag, I get this: 'forEach' / attribute = 'items': An error occurred while parsing custom action attribute items with value ${applicationScope.theRestaurantCollectionPacific Rim.collection}: Encountered Rim ... Not that surprised... Is there any way to access an attribute with a space in the name? Thanks, Hunter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Attributes with Spaces in Their Names
Hunter Hillegas wrote: One of the applications I am working on has application scope attributes that have spaces in their names, such as: theCollection PacificRim. When accessing from JSTL's forEach tag, I get this: 'forEach' / attribute = 'items': An error occurred while parsing custom action attribute items with value ${applicationScope.theRestaurantCollectionPacific Rim.collection}: Encountered Rim ... Not that surprised... Is there any way to access an attribute with a space in the name? Yes, ${applicationScope['theRestaurantCollectionPacific Rim'].collection} Hans -- Hans Bergsten[EMAIL PROTECTED] Gefion Software http://www.gefionsoftware.com/ Author of O'Reilly's JavaServer Pages, covering JSP 1.2 and JSTL 1.0 Details athttp://TheJSPBook.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Attributes with Spaces in Their Names
I very much doubt it. Have you tried something like this? % pageContext.setAttribute(theCollectionPacificRim, pageContext.findAttribute(theCollection PacificRim)); % c:forEach items=${theCollectionPacificRim} But ideally I'd say rename all of your attributes so they have no spaces. -Original Message- From: Hunter Hillegas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 3:35 PM To: Taglibs Subject: Attributes with Spaces in Their Names One of the applications I am working on has application scope attributes that have spaces in their names, such as: theCollection PacificRim. When accessing from JSTL's forEach tag, I get this: 'forEach' / attribute = 'items': An error occurred while parsing custom action attribute items with value ${applicationScope.theRestaurantCollectionPacific Rim.collection}: Encountered Rim ... Not that surprised... Is there any way to access an attribute with a space in the name? Thanks, Hunter - 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: Starting
Do you have useful working examples in the book? Because I have found with other things like PHP/MySQL examples that it is easier to play around with a complete example than read several chapters of theory? Scott - Original Message - From: Shawn Bayern [EMAIL PROTECTED] To: Tag Libraries Users List [EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 4:17 PM Subject: Re: Starting On Wed, 19 Feb 2003, Scott Taylor wrote: I have played around with some code examples and am interested in creating my own web sites using JSP, Servlets and JDBC from scratch. I don't wish to be a guru, just someone that could knock together a reasonably simple web app in a day or so. (like an online client database, or online consultant timesheet system which you use forms to enter and search.) Could I learn just tags, struts or Maverick without getting too much into Java code? You might find that you can get pretty far with JSTL. In fact, JSTL in Action has lots of information for people in your situation; I had sort of hoped there would be more people like you. :-) -- Shawn Bayern JSTL in Action http://www.manning.com/bayern - 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: Starting
On Wed, 19 Feb 2003, Scott Taylor wrote: Do you have useful working examples in the book? Because I have found with other things like PHP/MySQL examples that it is easier to play around with a complete example than read several chapters of theory? Yeah, the major examples focus on your situation. I don't describe how to set up the database or its drivers, but there are a couple chapters with nothing but complete-application examples that use JSTL alone (not Java) to produce moderately complex web applications, like a message board, a survey application, and a web portal. They stretch JSTL as far as it can go in this respect; any larger applications would probably require Java. -- Shawn Bayern JSTL in Action http://www.manning.com/bayern - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can I use MyClass as a attribute
I'm not getting much of a response to my question. Is this because I didn't provide enough information? Is it just not possible and no one wants to hurt my feelings? Can I have an object as an attribute? Or can it only be a string? In my case I would want the attribute to be of class hCategories. NOTE: hCategories is not a java bean. Thanks, Jeff Born -Original Message- From: Jeff Born Sent: Wed 2/19/2003 10:08 AM To: [EMAIL PROTECTED] Cc: Subject: Can I use MyClass as a attribute // Tag snippet private hCategories categories=null; /** * Getter/Setter for the attribute name as defined in the tld file * for this tag */ public void setCategories(hCategories value){ categories = value; } public hCategories getCategories(){ return(categories); } JSP call: dl:productView categories=%=categoryData% / Error message that is created: Unable to convert string '%=categoryData%' to class com.harland.datatypes.hCategories for attribute categories: java.lang.IllegalArgumentException: Property Editor not registered with the PropertyEditorManager Using Tomcat 4.1.18 First can I do this? Then if I can how do I pass the hCategories object? Thanks, Jeff Born
Re: Can I use MyClass as a attribute
Jeff Born wrote: I'm not getting much of a response to my question. Is this because I didn't provide enough information? Is it just not possible and no one wants to hurt my feelings? Can I have an object as an attribute? Or can it only be a string? In my case I would want the attribute to be of class hCategories. NOTE: hCategories is not a java bean. What you want to do works (if I understand you correctly). The main problem seems to be that you have not declared the attribute to accept a request-time attribute value, i.e. an expression like %=categoryData%, so the JSP container treats it as a static string value instead of evaluating the expression and setting the attribute to the resulting value. Add attribute ... rtexprvaluetrue/rtexprvalue /attribute for the tag in the TLD to declare that the attribute accepts request- time attribute values. Hans -Original Message- From: Jeff Born Sent: Wed 2/19/2003 10:08 AM To: [EMAIL PROTECTED] Cc: Subject: Can I use MyClass as a attribute // Tag snippet private hCategories categories=null; /** * Getter/Setter for the attribute name as defined in the tld file * for this tag */ public void setCategories(hCategories value){ categories = value; } public hCategories getCategories(){ return(categories); } JSP call: dl:productView categories=%=categoryData% / Error message that is created: Unable to convert string '%=categoryData%' to class com.harland.datatypes.hCategories for attribute categories: java.lang.IllegalArgumentException: Property Editor not registered with the PropertyEditorManager Using Tomcat 4.1.18 First can I do this? Then if I can how do I pass the hCategories object? Thanks, Jeff Born -- Hans Bergsten[EMAIL PROTECTED] Gefion Software http://www.gefionsoftware.com/ Author of O'Reilly's JavaServer Pages, covering JSP 1.2 and JSTL 1.0 Details athttp://TheJSPBook.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]