Re: URL for String TagLib source code
On 7/15/05, Robert Taylor [EMAIL PROTECTED] wrote: It seems I'm having difficulty finding the source code for the String Taglib. I go here: http://jakarta.apache.org/taglibs/index.html#Downloads Click on the link labeled as http://jakarta.apache.org/site/sourceindex.html.;. You would choose the *last* source link in that section. ;-) Both of the previous source links will get you the source code, for Taglibs and Taglibs Sandbox. Alternatively, you can retrieve the sources directly from Subversion at: http://svn.apache.org/repos/asf/jakarta/taglibs/ -- Martin Cooper Which directs me to http://jakarta.apache.org/site/downloads/index.html. I click on Taglibs and am taken here: http://jakarta.apache.org/site/downloads/downloads_taglibs.html I click on String Taglib and am taken here: http://jakarta.apache.org/site/downloads/downloads_taglibs-string.cgi But do not see a source code distribution. Any ideas? /robert - 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: URL for String TagLib source code
Thanks Martin, but at the risk of sounding ignorant. The last source link is labeled archives... (not very intuitive) I clicked on it and then downloaded the file: jakarta-taglibs-string-current.zip This appears to be a binary distribution. /robert Martin Cooper wrote: On 7/15/05, Robert Taylor [EMAIL PROTECTED] wrote: It seems I'm having difficulty finding the source code for the String Taglib. I go here: http://jakarta.apache.org/taglibs/index.html#Downloads Click on the link labeled as http://jakarta.apache.org/site/sourceindex.html.;. You would choose the *last* source link in that section. ;-) Both of the previous source links will get you the source code, for Taglibs and Taglibs Sandbox. Alternatively, you can retrieve the sources directly from Subversion at: http://svn.apache.org/repos/asf/jakarta/taglibs/ -- Martin Cooper Which directs me to http://jakarta.apache.org/site/downloads/index.html. I click on Taglibs and am taken here: http://jakarta.apache.org/site/downloads/downloads_taglibs.html I click on String Taglib and am taken here: http://jakarta.apache.org/site/downloads/downloads_taglibs-string.cgi But do not see a source code distribution. Any ideas? /robert - 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: URL for String TagLib source code
On 7/15/05, Robert Taylor [EMAIL PROTECTED] wrote: Thanks Martin, but at the risk of sounding ignorant. The last source link is labeled archives... (not very intuitive) I clicked on it and then downloaded the file: jakarta-taglibs-string-current.zip This appears to be a binary distribution. Yeah, I can't find a source distribution for any of the taglibs I randomly clicked on, either in archives or on the main mirrors. Seems bad. Hen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URL for String TagLib source code
Henri Yandell [EMAIL PROTECTED] wrote on 07/15/2005 01:29:09 PM: On 7/15/05, Robert Taylor [EMAIL PROTECTED] wrote: Thanks Martin, but at the risk of sounding ignorant. The last source link is labeled archives... (not very intuitive) I clicked on it and then downloaded the file: jakarta-taglibs-string-current.zip This appears to be a binary distribution. Yeah, I can't find a source distribution for any of the taglibs I randomly clicked on, either in archives or on the main mirrors. Seems bad. In the mean time, current sources have always been available and linked via [ http://jakarta.apache.org/taglibs/#Downloads ], by clicking on the appropriate Source links, for supported or sandbox taglibs distributions. The sources, AFAIK, were always available as supported or sandbox bundles (rather than individual taglib sources), primarily because the top level build script fires the individual taglib builds (i.e. you'd be at a loss to build without having the bits one level up). Once you have those, however, you can use your discretion to build the taglibs that interest you. Links from the download section mentioned above lead to (Robert, you'll find the String taglib sources by following the first link below): Supported [ http://cvs.apache.org/builds/jakarta-taglibs/nightly/src/ ] Sandbox [ http://cvs.apache.org/builds/jakarta-taglibs-sandbox/nightly/src/ ] -Rahul Hen
Re: URL for String TagLib source code
Yep. I found these, but am using a binary build that is not a nightly drop. Not a big deal, unless your trying to locate something in a stack trace which points to a line of code which does not correspond to the source you have. Luckily, that's not what I'm doing. Thanks Rahul, Martin, and Henry. Rahul P Akolkar wrote: Henri Yandell [EMAIL PROTECTED] wrote on 07/15/2005 01:29:09 PM: On 7/15/05, Robert Taylor [EMAIL PROTECTED] wrote: Thanks Martin, but at the risk of sounding ignorant. The last source link is labeled archives... (not very intuitive) I clicked on it and then downloaded the file: jakarta-taglibs-string-current.zip This appears to be a binary distribution. Yeah, I can't find a source distribution for any of the taglibs I randomly clicked on, either in archives or on the main mirrors. Seems bad. In the mean time, current sources have always been available and linked via [ http://jakarta.apache.org/taglibs/#Downloads ], by clicking on the appropriate Source links, for supported or sandbox taglibs distributions. The sources, AFAIK, were always available as supported or sandbox bundles (rather than individual taglib sources), primarily because the top level build script fires the individual taglib builds (i.e. you'd be at a loss to build without having the bits one level up). Once you have those, however, you can use your discretion to build the taglibs that interest you. Links from the download section mentioned above lead to (Robert, you'll find the String taglib sources by following the first link below): Supported [ http://cvs.apache.org/builds/jakarta-taglibs/nightly/src/ ] Sandbox [ http://cvs.apache.org/builds/jakarta-taglibs-sandbox/nightly/src/ ] -Rahul Hen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URL for String TagLib source code
On 7/15/05, Martin Cooper [EMAIL PROTECTED] wrote: On 7/15/05, Robert Taylor [EMAIL PROTECTED] wrote: Thanks Martin, but at the risk of sounding ignorant. The last source link is labeled archives... (not very intuitive) I clicked on it and then downloaded the file: jakarta-taglibs-string-current.zip Sorry, I hadn't realised that what I wrote could be parsed differently from how I was thinking about it. ;-) I was trying to say oh, you _would_ have to go and choose the _last_ link, wouldn't you??, meaning that, of the three links with Source in them in the Downloads section, the last one is the only one that does _not_ work! The other two do work, as Rahul has mentioned rather more clearly than I did. While I'm on a slightly different topic: * we really don't release source when we release code? Hen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URL for String TagLib source code
Henri Yandell [EMAIL PROTECTED] wrote on 07/15/2005 01:53:07 PM: snip/ While I'm on a slightly different topic: * we really don't release source when we release code? AFAICT. Which is why I had to prepend my earlier post with In the mean time, ... Do we have tags for all past releases? I think this is becoming more appropriate for the dev list. -Rahul P.S.- Robert, thanks for bringing this up! Hen
Re: c:import and context attribute
Dylan MacDonald [EMAIL PROTECTED] wrote on 07/13/2005 05:41:46 PM: Can someone explain the context attribute in the c:import tag? snip/ It is used in cross-context imports and is the name of the context you're importing from. Most containers need to be configured to enable cross-context access. I'm working in a development environment that differs from the production environment in that the root of the server isn't /, it's /www (the production root is obviously /). snap/ I'm not sure I got this (I thought for a bit you were implying the difference between deploying, say, ROOT.war and mywebapp.war on Tomcat). In any case, relative urls like the one in the first c:import below should work if you are migrating all the contents of the context from the production to the dev environment. Portable code will prepend the context path obtained from the request at JSP invocation to any urls that need it. I don't think there is a cross-context angle to your problem, in reference to your earlier question about the context attribute. -Rahul Needless to say this makes it difficult to code anything with root-relative (e.g. /images/logo.gif) links. I can probably work around some of this but I thought I might be able to solve some of my issues with my jsp includes using the context attribute. But I cannot get it to work. I assumed I would change my c:import tag from this c:import url=includes/footer.jsp / to this: c:import url=/includes/footer.jsp context=/www / but that doesn't work. Any ideas? Thanks, Dylan MacDonald
RE: Newbie to Datagrid Taglib
Hi Kumar The datagrid tag works with the JSTL expression language. The items and var attributes works very much like the c:for / tag. In the items attribute you pass the Collection or Iterator or Array[] that you want to use in the datagrid. To do this you must put your object in the request, page, application or session context of you page. After that you access your object with the expression language ${name}. I'll give you an example: % ArrayList list; request.setAttribute (myList, list); % ui:dataGrid items=${myList} ... So now that you have set your List you use the var attribute to tell the datagrid the name of the variable that it will use to store each object in the List in each iteration. ui:dataGrid items=${myList} var=myObject Now you define your columns and define what you want to see in each column with the item / element. You have to use the JSTL expression language to access attributes, or key-values from your object. For example if myObject has a firstName attribute you can use it like this: ui:dataGrid items=${myList} var=myObject columns column item value=${myObject.firstName}/ /column /columns /ui:dataGrid You can use the JSTL Expression Language to define concatenation or arithmetic operations: ui:dataGrid items=${myList} var=myObject columns column item value=${myObject.firstName + ' ' + myObject.lastName}/ /column /columns /ui:dataGrid In the case where your values are Numbers or Dates you can format them. ui:dataGrid items=${myList} var=myObject columns column item value=${myObject.birthDate} format=dd/MM/yy/ /column /columns /ui:dataGrid You can use the header/, footer/ elements to define headers and footers for your datagrid. Hope this helps. -Mensaje original- De: Kumar Thirunavukarasu [mailto:[EMAIL PROTECTED] Enviado el: Friday, July 15, 2005 6:31 PM Para: [EMAIL PROTECTED] Asunto: RE: Newbie to Datagrid Taglib Mr.Nestor, I got past this error but I need some documentation around how you are mapping the bean object to datagrid tag. It is not very clear in the docs provided. What is var attribute is doing in datagrid. How the item element works. How to use the value attribute in Item element. Any help in some kind of documentation will be helpful. Right now my page is building blank table and producing no data. [EMAIL PROTECTED] import=java.util.ArrayList % [EMAIL PROTECTED] import=com.freddiemac.pvs.ui.web.form.ParameterViewForm % %@ page import=com.freddiemac.pvs.ui.web.form.Payup % %@ page info=BasicTemplate % %@ taglib uri=/WEB-INF/taglib/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/taglib/struts-logic.tld prefix=logic % %@ taglib uri=/WEB-INF/taglib/struts-tiles.tld prefix=tiles % %@ taglib uri=/WEB-INF/taglib/taglibs-datagrid.tld prefix=ui % html:html head html:base/ /head body html:errors/ html:form action=/SystemParameterView %! ArrayList payupList = new ArrayList();% % payupList.add(new Payup(LLB,LLB PVS,Yes)); payupList.add(new Payup(LLB1,LLB PVS1,No)); request.setAttribute (payupList, payupList); % style th a:link { text-decoration: none; color: black } th a:visited { text-decoration: none; color: black } .header1 { border: 1px solid black; border-right: none; background-color: #EFEBDE; font-family: arial; font-size: 10pt; font-weight: normal } .header2 { border: 1px solid black; background-color: #EFEBDE; font-family: arial; font-size: 10pt; font-weight: normal } .footer1 { border: 1px solid black; border-right: none; background-color: #EFEBDE; font-family: arial; font-size: 10pt } .footer2 { border: 1px solid black; background-color: #EFEBDE; font-family: arial; font-size: 10pt } .item1 { border: 1px solid #EFEBDE; border-right: none; border-bottom: none; background-color: white; font-family: arial; font-size: 9pt } .item2 { border: 1px solid #EFEBDE; border-bottom: none; background-color: white; font-family: arial; font-size: 9pt } /style % out.println(TEST); % ui:dataGrid items=${payupList} var=payup name=PayupView cellPadding=1 cellSpacing=0 columns column width=100 order=true header value=Code hAlign=center styleClass=header1/ item value=${code} hAlign=left styleClass=item1/ footer value=Total ${total} hAlign=left styleClass=footer1/ /column column width=200 order=true header value=Description hAlign=center styleClass=header1/ item value=${desc} hAlign=left pattern=$#,##0.00 styleClass=item1/ /column column width=200 order=true header value=Active Flag hAlign=center styleClass=header2/ item value=${activeFlag} hAlign=left pattern=$#,##0.00 styleClass=item2/ /column /columns footer show=true/ order imgAsc=/images/up.gif imgDesc=/images/down.gif/ /ui:dataGrid /html:form /body /html:html