c:set var=checkDate value= /
c:forEach var=row items=${result.rows}
fmt:parseDate value=${row.date} var=parsedDate
pattern=-MM-dd/
tr
td align=left
c:if test=${checkDate != parseDate}
fmt:formatDate value=${parsedDate} pattern=E'., 'MMM d/
CORRECTED TYPO:
c:set var=checkDate value= /
c:forEach var=row items=${result.rows}
fmt:parseDate value=${row.date} var=parsedDate
pattern=-MM-dd/
tr
td align=left
c:if test=${checkDate != parsedDate}
fmt:formatDate value=${parsedDate} pattern=E'., 'MMM
If you're using the c:out tag, set the escapeXml attribute to false.
Example: c:out value=${myBean.html} escapeXml=false /
-Original Message-
From: Barnett, Brian W. [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 18, 2004 12:35 PM
To: '[EMAIL PROTECTED]'
Subject: outputting html as
I would have expected the space. Do the different versions behave
differently with respect to this?
-Original Message-
From: Andreas Schildbach [mailto:[EMAIL PROTECTED]
Sent: Monday, May 03, 2004 10:22 AM
To: [EMAIL PROTECTED]
Subject: whitespace inside c:choose but outside c:when
]
Sent: Monday, May 03, 2004 10:58 AM
To: [EMAIL PROTECTED]
Subject: Re: whitespace inside c:choose but outside
c:when inserted in to output
Morrow, Steve D. wrote:
I would have expected the space.
I thought there is no sense in putting any text between
c:choose and
c:when. When
c:out value=${newsItem.news}/ escapeXml=false
-Original Message-
From: Frank Burns [mailto:[EMAIL PROTECTED]
Sent: Monday, March 29, 2004 10:39 AM
To: [EMAIL PROTECTED]
Subject: Help: How to generate unescaped HTML output
Hi,
Can someone help please. I have an urgent problem
Sorry - misplaced cut'n'paste... :o)
c:out value=${newsItem.news} escapeXml=false/
-Original Message-
From: Morrow, Steve D. [mailto:[EMAIL PROTECTED]
Sent: Monday, March 29, 2004 10:41 AM
To: 'Tag Libraries Users List'
Subject: RE: Help: How to generate unescaped HTML output
There a several different ways to calculate days, based on the definition of
day; e.g. should 23:59 - 00:01 count as a day? Nevertheless, once you
decide on those rules, you can write your own custom tag (I don't believe
JSTL has such a function).
my:days start=%= startDate % end=%= endDate % /
The standard tag library offers that functionality. Make sure the c.tld is
in your web-inf directory...
!-- as an example, with locations as a jav.util.Collection of Location
objects with getters... --
select name=location
option value=Select a Station ID/option
c:forEach var=location
If you put the standard.jar and jstl.jar files in your /WEB-INF/lib
directory of your webapp, and the corresponding TLD files in /WEB-INF, you
can use %@ taglib prefix=c uri=/WEB-INF/c.tld%, for example. No
connectivity problems... :o)
-Original Message-
From: Caoilte O'Connor
On Thursday 20 November 2003 14:35, Morrow, Steve D. wrote:
If you put the standard.jar and jstl.jar files in your /WEB-INF/lib
directory of your webapp, and the corresponding TLD files
in /WEB-INF,
you can use %@ taglib prefix=c uri=/WEB-INF/c.tld%,
for example.
No connectivity
SQL tags are great for doing quick-n-dirty test stuff, but data access in a
production environment is probably best left out of the View layer (i.e.,
the *.jsp) of a Model-View-Controller setup. Send the request to a servlet,
have the servlet call a data access method to populate a data bean, and
P.S. Actions are helper classes in the Struts framework, generally used to
extend controller (servlet) functionality.
-Original Message-
From: Morrow, Steve D. [mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2003 9:33 AM
To: 'Tag Libraries Users List'
Subject: RE: embedding
It looks like there's no closing /td tag after your input tags. That may
be causing some of the HTML rendering problems...
At what point does the HTML *stop*?
Peter Choe
Assuming then, that the ApplicationResources.properties file is not in a
*.jar, you may try making sure that the file is in the
/WEB-INF/classes/org.j2e_translate directory with the settings you currently
have...
-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent:
Typo: directory = /WEB-INF/classes/org/j2e_translate
-Original Message-
From: Morrow, Steve D. [mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2003 11:22 AM
To: 'Tag Libraries Users List'
Subject: RE: Jstl i18n not working
Assuming
Try the full classpath for the ApplicationResources.properties file at the
top of your JSP...
fmt:bundle basename=org.j2e_translate.ApplicationResources /
Then, you can use fmt:message key=j2emain.title /...
Good luck! :o)
-Original Message-
From: Yansheng Lin [mailto:[EMAIL
Quite different - in a test environment with integrated TC (IDEA, for
example), it's often quicker *and* easier just to restart. At least, that's
been my experience... :o)
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2003 11:56 AM
To:
Morrow, Steve
D. To: 'Tag
I have a session-scoped bean structured (in part) as follows:
public class Customer {
public Integer id;
public String name;
public Integer getId() {
return id;
}
public String getName() {
return name;
}
}
In the JSP, c:out value=${customer.name} /
No love. I double- (triple-) checked that the jars and tlds were from the
same family and got the same results. This isn't a Struts app - I'm only
using the taglibs. The environment is WSDC, with a WASE5 test server
(Servlet 2.3, JSP 1.2). I'm open to other suggestions... :o)
I actually ran into
++) {
System.out.println(props[i].getName());
}
Quoting Morrow, Steve D. [EMAIL PROTECTED]:
I have a session-scoped bean structured (in part) as follows:
public class Customer {
public Integer id;
public String name;
public Integer getId() {
return id
());
}
Quoting Morrow, Steve D. [EMAIL PROTECTED]:
I have a session-scoped bean structured (in part) as follows:
public class Customer {
public Integer id;
public String name;
public Integer getId() {
return id;
}
public String getName
and blow away the app's work
area (complied JSP files, etc), then restart. Yup,
shotgunning at this point...
Quoting Morrow, Steve D. [EMAIL PROTECTED]:
Oh yeah... %= customer.getId() % works, of course.
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent
: jsp:getProperty name=customer property=id/
Gives:
Id: 42
Name: Foo Bar
Id: 42
Morrow, Steve D. wrote:
jsp:getProperty name=customer property=id/
...gives me...
Cannot find a method to read property 'id' in a bean of type
'ebus.common.Customer'
...mind you
25 matches
Mail list logo