Re: using struts taglib how to find the lenght of an parameter

2009-09-17 Thread Nils-Helge Garli Hegvik
A simple way to achieve that is to have a property on the form bean that returns the username appropriate for display. Nils-H On Thu, Sep 17, 2009 at 2:35 PM, swathi reddy wrote: >  Hi all > > I am trying to display a user name through tag but before that > I want to check the lenght of the nam

using struts taglib how to find the lenght of an parameter

2009-09-17 Thread swathi reddy
Hi all I am trying to display a user name through tag but before that I want to check the lenght of the name so that I can trim the name if it exceeds 20 charecters. -- Thanks& Regards Swathi

Re: Struts Taglib + JSP: Best Practices For Complex HTML Attribute Construction

2008-07-29 Thread Laurie Harper
Brian Ferris wrote: I'm not sure what that Struts Taglib "way" to do the following task would look like: I've got a bean on the ValueStack with a "boolean isActive()" getter. When active, I'd like to construct html like: And when in-active, I&#x

Struts Taglib + JSP: Best Practices For Complex HTML Attribute Construction

2008-07-25 Thread Brian Ferris
I'm not sure what that Struts Taglib "way" to do the following task would look like: I've got a bean on the ValueStack with a "boolean isActive()" getter. When active, I'd like to construct html like: And when in-active, I'd like to construct:

Re: [struts] Struts Taglib

2008-05-06 Thread Dale Newfield
Michael Gagnon wrote: I've added a custom taglib in my project I would like to use struts URL tags in this. Ideally my tag handler would generate s:url and s:a tags that could then be processed by struts. I don't see a way to do this though A tag is a Java object. You can always instantiate

Struts Taglib

2008-05-06 Thread Michael Gagnon
I've added a custom taglib in my project. One of these tags does some logic to generate a series of links. Given one target URL, I want to create X links to that URL with one changed parameter. If the given URL has parameters, I want them to all be preserved except for one named 'pageNumber' which

Struts taglib autodiscovery in JSP 2.0 XML?

2007-02-09 Thread Manos Batsis
Hello, Well, the subject says it all, uses of taglibs are outputted as-is by the container. My JSPs are like: http://struts.apache.org/tags-bean"; xmlns:jsp="http://java.sun.com/JSP/Page";> My web.xml's version is 2.4 so i don't declare the taglibs, shouldn't they be auto-discovered (triggered

Re: Struts taglib HTML 4.01 compliance

2007-02-09 Thread Niall Pemberton
AIL PROTECTED]> wrote: I am using Struts taglib version 1.3.5, but I notice for LinkTag, FormTag, ReWriteTag the parameters in the querystring are being appended with the ampersand unencoded - this is leading to a validation error for HTML 4.01 for example : I have href"test.jsp?param1=3¶m2=4&

How to configure Struts taglib

2007-02-08 Thread Liam Brady
I have a strange problem. I am using Struts taglib version 1.3.5, but I notice for LinkTag, FormTag, ReWriteTag the parameters in the querystring are being appended with the ampersand unencoded - this is leading to a validation error for HTML 4.01 for example : I have href"test.jsp?param1=3

Struts taglib HTML 4.01 compliance

2007-02-07 Thread Liam Brady
I am using Struts taglib version 1.3.5, but I notice for LinkTag, FormTag, ReWriteTag the parameters in the querystring are being appended with the ampersand unencoded - this is leading to a validation error for HTML 4.01 for example : I have href"test.jsp?param1=3¶m2=4" Instead I

Cannot find Struts taglib

2007-02-02 Thread Scott Nesbitt
I am getting the following when I try to use the taglib: Servlet failed with Exception java.lang.NullPointerException at org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:56) at org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport.java:51) He

RE: Is there a struts Taglib document?

2006-04-05 Thread Sutar, Suhas
http://struts.apache.org/struts-doc-1.2.8/userGuide/dev_html.html -Original Message- From: red phoenix [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 04, 2006 10:55 PM To: user@struts.apache.org Subject: Is there a struts Taglib document? Is there a struts taglib document about ,,,the

Re: Is there a struts Taglib document?

2006-04-04 Thread Frank W. Zammetti
http://struts.apache.org/struts-taglib/index.html red phoenix wrote: Is there a struts taglib document about ,,,the chm file form is better. If you have it,please give it to me. Thanks! -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM

Is there a struts Taglib document?

2006-04-04 Thread red phoenix
Is there a struts taglib document about ,,,the chm file form is better. If you have it,please give it to me. Thanks!

RE: Struts Taglib Question

2004-09-17 Thread ravi.vedala
lto:[EMAIL PROTECTED] Sent: Friday, September 17, 2004 7:27 PM To: '[EMAIL PROTECTED]' Subject: Struts Taglib Question Hello, Is there some sort of Struts tag that I can use to set the property of a bean? I have a small fragment that I want to look like this: <%-- Set the event.da

RE: Struts Taglib Question

2004-09-17 Thread Asleson, Ryan
Fixed. It needs to use the ${ } notation in c:set like shown below: Thanks to everybody for their help. -Original Message- From: Asleson, Ryan Sent: Friday, September 17, 2004 10:05 AM To: 'Struts Users Mailing List' Subject: RE: Struts Taglib Question I tried the

RE: Struts Taglib Question

2004-09-17 Thread Asleson, Ryan
I tried the following: and got this exception: [ServletException in:/jsp/registration/register.jsp] Invalid property in : "event.date"' javax.servlet.jsp.JspTagException: Invalid property in : "event.date" at org.apache.taglibs.standard.tag.common.core.SetSupport.doEndTag(SetSupport.j ava

RE: Struts Taglib Question

2004-09-17 Thread Slattery, Tim - BLS
> By dot notation I just mean the dot notation for properties, > like event.date really means getEvent().getDate(). Of course JSTL honors that convention. -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL P

RE: Struts Taglib Question

2004-09-17 Thread Asleson, Ryan
iling List' Subject: RE: Struts Taglib Question > I was hoping for something like this. Does JSTL understand > the dot notation like Struts tags do? Not quite sure what you mean. Certainly JSTL's EL (expression language) is the same as that used by the Struts-el tags. -

RE: Struts Taglib Question

2004-09-17 Thread Slattery, Tim - BLS
> I was hoping for something like this. Does JSTL understand > the dot notation like Struts tags do? Not quite sure what you mean. Certainly JSTL's EL (expression language) is the same as that used by the Struts-el tags. -- Tim Slattery [EMAIL PROTECTED]

RE: Struts Taglib Question

2004-09-17 Thread Asleson, Ryan
I was hoping for something like this. Does JSTL understand the dot notation like Struts tags do? == == Try JSTL: Note: this code has not been tested -- Tim Slattery [EMAIL PROTECTED] -

RE: Struts Taglib Question

2004-09-17 Thread Slattery, Tim - BLS
> Is there some sort of Struts tag that I can use to set the > property of a bean? > > I have a small fragment that I want to look like this: > > > <%-- Set the event.date property on formBean to a default > value --%> property="event.date"> Try JSTL: Note: this code has no

Re: Struts Taglib Question

2004-09-17 Thread Nicolas De Loof
JSTL : Nico. > > Hello, > > Is there some sort of Struts tag that I can use to set the property of a > bean? > > I have a small fragment that I want to look like this: > > > <%-- Set the event.date property on formBean to a default value --%> > > > > > > It says that "if the event

RE: Struts Taglib Question

2004-09-17 Thread Paul McCulloch
Is there a reason you can't do this in the action which precedes your jsp? Anyway, from JSTL does this for you. Paul > -Original Message- > From: Asleson, Ryan [mailto:[EMAIL PROTECTED] > Sent: Friday, September 17, 2004 2:57 PM > To: '[EMAIL PROTECTED]

Struts Taglib Question

2004-09-17 Thread Asleson, Ryan
Hello, Is there some sort of Struts tag that I can use to set the property of a bean? I have a small fragment that I want to look like this: <%-- Set the event.date property on formBean to a default value --%> It says that "if the event.date property on formBean is an empty String

R: R: Struts Taglib recommendations

2004-05-18 Thread Andrea M.
You can find them at http://www.displaytag.org and http://cewolf.sourceforge.net/ -Messaggio originale- Da: Dean A. Hoover [mailto:[EMAIL PROTECTED] Inviato: martedì 18 maggio 2004 15.05 A: Struts Users Mailing List Oggetto: Re: R: Struts Taglib recommendations Andrea M. wrote: >Ot

Re: R: Struts Taglib recommendations

2004-05-18 Thread Dean A. Hoover
Andrea M. wrote: Other taglibs that might be of interest for you are Displaytag for automatic generation of html tables, with paging and sorting CeWolf: for charts generation Jakarta String: for string manipulation etc There are many more to be used.. those are the ones I've been using most so far

R: Struts Taglib recommendations

2004-05-18 Thread Andrea M.
Why that? I use currently Struts + JSTL Actually the only struts taglib I use is html or html-el What have "using the mvc" and "build 3 tier" to do with using struts taglib vs JSTL??? -Messaggio originale- Da: Rosenberg, Leon [mailto:[EMAIL PROTECTED] Inviato: ma

AW: Struts Taglib recommendations

2004-05-18 Thread Rosenberg, Leon
TECTED] > Gesendet: Dienstag, 18. Mai 2004 11:08 > An: [EMAIL PROTECTED] > Betreff: Struts Taglib recommendations > > Has anyone made a comparison of the various taglibs out there that can be > used with struts ? I'm about to start working on a project and have been > aske

R: Struts Taglib recommendations

2004-05-18 Thread Andrea M.
I've been using most so far -Messaggio originale- Da: news [mailto:[EMAIL PROTECTED] Per conto di Linus Nikander Inviato: martedì 18 maggio 2004 12.34 A: [EMAIL PROTECTED] Oggetto: Re: Struts Taglib recommendations Point taken ;) >From what I know right now we'll be using ta

RE: Struts Taglib recommendations

2004-05-18 Thread Daniel Perry
r non java programmers (eg web designers, other tech ppl) find jstl easier to use than struts tags, and much easier than scriptlets :) Daniel. -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Linus Nikander Sent: 18 May 2004 11:34 To: [EMAIL PROTECTED] Subject: Re: Struts

Re: Struts Taglib recommendations

2004-05-18 Thread Linus Nikander
think you'll find people here writing you a comprehensive list of all of the taglibs existent :) Andrea -Messaggio originale- Da: news [mailto:[EMAIL PROTECTED] Per conto di Linus Nikander Inviato: martedì 18 maggio 2004 11.08 A: [EMAIL PROTECTED] Oggetto: Struts Taglib recommendations Ha

RE: Struts Taglib recommendations

2004-05-18 Thread Daniel Perry
: Andrea M. [mailto:[EMAIL PROTECTED] Sent: 18 May 2004 10:28 To: 'Struts Users Mailing List' Subject: R: Struts Taglib recommendations That's a pretty vague question There's plenty of taglib out there Please specify what you are looking for, cause I don't think you'll

R: Struts Taglib recommendations

2004-05-18 Thread Andrea M.
EMAIL PROTECTED] Per conto di Linus Nikander Inviato: martedì 18 maggio 2004 11.08 A: [EMAIL PROTECTED] Oggetto: Struts Taglib recommendations Has anyone made a comparison of the various taglibs out there that can be used with struts ? I'm about to start working on a project and have been aske

Struts Taglib recommendations

2004-05-18 Thread Linus Nikander
Has anyone made a comparison of the various taglibs out there that can be used with struts ? I'm about to start working on a project and have been asked to evaluate our options. Which taglib (or combinations of different taglibs) do you use when developing ? What are the advantages of one over anot