Hi,
Can someone tell me why I get an unbalanced error when I try to optionally
use a form tag?
org.apache.jasper.JasperException: /pages/common/layouts/layout.jsp(56,1)
The end tag /c:when is unbalanced
tiles:useAttribute name=action/
tiles:useAttribute name=focus/
Mailing List'
Subject: using html:form with el logic tags
Hi,
Can someone tell me why I get an unbalanced error when I try to optionally
use a form tag?
org.apache.jasper.JasperException: /pages/common/layouts/layout.jsp(56,1)
The end tag /c:when is unbalanced
tiles:useAttribute name
Hello,
We are facing problem of jsp file size exceeding to more than 5 MB at
runtime. The jsp file is full of struts tag with lot many logic:equal,
notEqual in the code. The compiled html when generated takes a lot of
time for browser rendering because of the file size. Looking at the html
It's the newline between % and % that is causing you problems (not
to mention the design of your page, but that's a different matter). If
you do things like:
... %ns:tagname stuff=value
%%ns:nothertag morestuff=morevalue
%%...
Then you will reduce the newlines in your output. This gets
On 02/25/2004 03:04 PM Pranay Parsatwar wrote:
We are facing problem of jsp file size exceeding to more than 5 MB at
runtime. The jsp file is full of struts tag with lot many logic:equal,
notEqual in the code. The compiled html when generated takes a lot of
time for browser rendering because of
Use Apache and mod_deflate and mod_gzip. There are also Filters available to
remove whitespace, but all of them have the problem where they'll modify code
within a lt;pregt; tag or style.
Rick DeBay
On Wed, 25 Feb 2004 06:19 , Karr, David [EMAIL PROTECTED] sent:
It's the newline between % and
Hello,
I asked this before -
Is it possible to have more than one condition using struts logic
tags...like
If A B C then {
do something...
}
how to achieve this in the jsp using logic tags?
Please help
sure - just nest them.
On Wednesday, October 29, 2003, at 09:38 AM, [EMAIL PROTECTED]
wrote:
Hello,
I asked this before -
Is it possible to have more than one condition using struts logic
tags...like
If A B C then {
do something...
}
how to achieve this in the jsp using logic tags
asked this before -
Is it possible to have more than one condition using struts logic
tags...like
If A B C then {
do something...
}
how to achieve this in the jsp using logic tags?
Please help
--- [EMAIL PROTECTED] wrote:
Hello,
I asked this before -
Is it possible to have more than one condition using struts logic
tags...like
If A B C then {
do something...
}
The JSTL provides this capability:
c:if test=${A B C}
do something
/c:if
http://java.sun.com
Thanks all...
David Graham [EMAIL PROTECTED]
10/29/2003 10:06 AM
Please respond to Struts Users Mailing List
To: Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:Re: more than one condition using logic tags...
--- [EMAIL PROTECTED] wrote
Hello,
I have a little query -
How can I check for more that one condition using struts logic tags? like
if (A B C) {
do something.
}
how do I achieve the same using struts logic tags?
[EMAIL PROTECTED] wrote:
Hello,
I have a little query -
How can I check for more that one condition using struts logic tags? like
if (A B C) {
do something.
}
how do I achieve the same using struts logic tags?
You can do an and test by nesting logic:xxx tags inside each other
Hi,
I have a hash table, I want to iterate through keys of the hashtable and
display key value pair on the jsp page, how can i do this using logic tags in struts
tag library.
I need to show keys as well as values on the jsp page.
Regards,
Tarun
DISCLAIMER:
This message contains
/
/logic:iterate
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 12:29 PM
To: [EMAIL PROTECTED]
Subject: iterating through hashmap using logic tags
Hi,
I have a hash table, I want to iterate through keys of the hashtable
I've got a JSP that is display a list of information coming from two
different collections and having trouble finding the cleanest way to do it
with the struts tags.
The line I'm struggling with is the bean:define where I'm constructing the
name of the property using a scriptlet and the index
Does anyone knows how to compare two beans (or beans properties) using
logic:equal or logic:greaterThan tags ?In the docs it is said that the
value attribute should be a constant value ...
Thanks
Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial
bean:define id=prop1 name=bean1 property=someProperty /
logic:equals name=bean2 property=anotherProperty value=%= prop1
%
...
/logic:equals
Nico.
Does anyone knows how to compare two beans (or beans properties)
using
logic:equal or logic:greaterThan tags ?In the docs it is said that
the
Thanks for the prompt reply Richard. I'll check out JSTL
- Original Message -
From: Richard Yee [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, November 12, 2002 10:22 PM
Subject: Re: How to to a OR with logic tags
Charles,
I'd suggest checking out
Hi I'm still quite new with Struts. I want to do a OR comparison using the
html:logic tags. Does anyone has any idea how this can be done?
--
To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Charles,
I'd suggest checking out the conditional tags in the JSTL to do the OR
operation rather than using the Struts logic tag. You will find that the
JSTL expression capability and if, choose, when, and otherwise tags make it
easier to do complex logic than the struts conditional tags do.
Greetings:
I am almost exclusively using nested tags.
Every now and then I run into a problem and have to switch over the
corresponding logic or bean version.
Can anyony tell me if this is a bug? I am using 1.1b2
I tried this with nested:equal but got a NullPointerException (listed
Just a hunch-- have you tried specifying a 'name' for the nested:iterate
tag?
-Original Message-
From: [EMAIL PROTECTED] [mailto:Jeff_Mychasiw;nlgroup.ca]
Sent: Monday, October 28, 2002 8:03 AM
To: [EMAIL PROTECTED]
Subject: [Nested Tags] Nested vs logic tags..
Greetings:
I am
:
Subject:RE: [Nested Tags] Nested vs logic tags..
Just a hunch-- have you tried specifying a 'name' for the nested:iterate
tag?
-Original Message-
From: [EMAIL PROTECTED] [mailto:Jeff_Mychasiw;nlgroup.ca]
Sent: Monday, October 28, 2002 8:03 AM
To: [EMAIL PROTECTED]
Subject: [Nested Tags
Just a hunch-- have you tried specifying a 'name' for the nested:iterate
tag?
The nested tags don't need it, and if it's provided they will ignore it.
Why?... because all the tags are working off the same bean structure,
and this is defined for us by the form tag. The nested tags will fetch
are trying to work out why I am designing new
HTML elements)
chanoch
- Original Message -
From: Eddie Bush [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, October 15, 2002 11:26 PM
Subject: Re: using OR condition with logic tags
logic:equal name=foo value=1
Oh --- OR --- I was thinking ELSE. Sorry.
JSTL solution:
c:if test=${(foo == 1) || (foo == 2)}
!-- relevant code --
/c:if
The Struts-based solution would be the same as I mentioned before, I
believe. Sorry - I somehow understood you wanted an ELSE!
chanoch wrote:
however, this is
Hey, guys!
Do any of you know how to set up an OR condition with logic:equal tags?
i.e. :
logic:equal name=foo value=1 OR logic:equal name=foo value=2
Thanks
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
On Wed, 16 Oct 2002, chanoch wrote:
Date: Wed, 16 Oct 2002 20:10:47 +0100
From: chanoch [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: using OR condition with logic tags
however, this is quite ugly
Hey, guys!
Do any of you know how to set up an OR condition with logic:equal tags?
i.e. :
logic:equal name=foo value=1 OR logic:equal name=foo value=2
Thanks
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
logic:equal name=foo value=1
!-- Stuff for when foo == 1 --
/logic:equal
logic:equal name=foo value=2
!-- Stuff for when foo == 2 --
/logic:equal
-- OR -- JSTL Approach 1
c:choose
c:when test=${foo == 1}
!-- Stuff for when foo == 1 --
/c:when
c:when test=${foo == 2}
Mailing List [EMAIL PROTECTED]
Subject: Re: [OT] Re: Avoid Heavy Use of Logic Tags ???
Date: Wed, 9 Oct 2002 20:56:35 -0700 (PDT)
On Wed, 9 Oct 2002, David Graham wrote:
Date: Wed, 09 Oct 2002 18:27:02 -0600
From: David Graham [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL
On Thu, 10 Oct 2002, David Graham wrote:
Date: Thu, 10 Oct 2002 07:48:58 -0600
From: David Graham [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [OT] Re: Avoid Heavy Use of Logic Tags ???
Would it hurt for struts to follow
PROTECTED]
Subject: Re: [OT] Re: Avoid Heavy Use of Logic Tags ???
Would it hurt for struts to follow the 2.3 .jar layout? People using 2.3
could benefit from reduced deployment hassles while others could continue
using the old way.
Do you mean the META-INF/tlds directory? That depends
On Thu, 10 Oct 2002, Kris Schneider wrote:
Date: Thu, 10 Oct 2002 12:39:08 -0400
From: Kris Schneider [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: [OT] Re: Avoid Heavy Use of Logic Tags ???
Doesn't
Hi, I read Designing Enterprise Applications, Second
Edition Singh et al. Section 4.2.6.6 has the header
Avoid Heavy Use of Logic Tags and also writes Using
custom tags for logic provides little benefit, and
violates separation of logic and presentation. and
states that JSP-pages written in XML
: Avoid Heavy Use of Logic Tags ???
Hi, I read Designing Enterprise Applications, Second
Edition Singh et al. Section 4.2.6.6 has the header
Avoid Heavy Use of Logic Tags and also writes Using
custom tags for logic provides little benefit, and
violates separation of logic and presentation
:-).
David
From: Johannes Carlén [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Avoid Heavy Use of Logic Tags ???
Date: Wed, 9 Oct 2002 12:41:34 +0200 (CEST)
Hi, I read Designing Enterprise Applications, Second
Edition Singh et al. Section 4.2.6.6
]
Subject: Avoid Heavy Use of Logic Tags ???
Hi, I read Designing Enterprise Applications, Second
Edition Singh et al. Section 4.2.6.6 has the header
Avoid Heavy Use of Logic Tags and also writes Using
custom tags for logic provides little benefit, and
violates separation of logic and presentation
... and now that we have the JSTL you can have your tags optimized into
actual code. It's my understanding, for example, that a forEach tag
would be translated into an actual while (or was it for ... anyway, you
get the point). So, you're bypassing the tag-usage overhead some.
Hopefully
Users Mailing List [EMAIL PROTECTED]
Subject: Re: Avoid Heavy Use of Logic Tags ???
Date: Wed, 09 Oct 2002 12:25:08 -0500
... and now that we have the JSTL you can have your tags optimized into
actual code. It's my understanding, for example, that a forEach tag would
be translated into an actual
On Wed, 9 Oct 2002, David Graham wrote:
Date: Wed, 09 Oct 2002 13:54:32 -0600
From: David Graham [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [OT] Re: Avoid Heavy Use of Logic Tags ???
I read somewhere that you should use http
Users Mailing List [EMAIL PROTECTED]
Subject: Re: [OT] Re: Avoid Heavy Use of Logic Tags ???
Date: Wed, 9 Oct 2002 15:02:00 -0700 (PDT)
On Wed, 9 Oct 2002, David Graham wrote:
Date: Wed, 09 Oct 2002 13:54:32 -0600
From: David Graham [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL
Sure, as in:
%@ taglib prefix=bean
uri=http://jakarta.apache.org/struts/tags-bean-1.0.2; %
%@ taglib prefix=html
uri=http://jakarta.apache.org/struts/tags-html-1.0.2; %
David Graham wrote:
Thanks for the info Craig. I didn't know you didn't have to list them in
the web.xml file and put the
On Wed, 9 Oct 2002, David Graham wrote:
Date: Wed, 09 Oct 2002 18:27:02 -0600
From: David Graham [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [OT] Re: Avoid Heavy Use of Logic Tags ???
Thanks for the info Craig. I didn't
I've been using the struts logic tags to determine whether or not an img
tag should be placed.
I have the following
logic:equal name=foo property=bar value=val
img src=images/foo.jpg
/logic:equal
The page source shows the following
img src=images/foo.jpg
However my log files say
I have the following
logic:equal name=foo property=bar value=val
img src=images/foo.jpg
/logic:equal
The page source shows the following
img src=images/foo.jpg
However my log files say the following is being requested.
/context/do/images/foo.jpg
As a result the images
To: 'Struts Users Mailing List'
Subject: RE: Nesting Beans/Iterators/Logic tags whatever else...
Spent about 25 hours attempting to get it to work. Kept
getting the no
getter method found error, even though I must have compared
my code to the
examples 60-70 times. Sorry.
John
What is the best way to write the following scriptlet code using Logic Tags.
I tried to do it with present and notEmpty but couldn't get it to work.
% if(session.getAttribute(KEY) != null){ %
if(session.getAttribute(KEY).equals(True))
{
// Some HTML goes here
tags.
What is the best way to write the following scriptlet code using
Logic Tags.
I tried to do it with present and notEmpty but couldn't get it to work.
% if(session.getAttribute(KEY) != null){ %
if(session.getAttribute(KEY).equals(True))
{
// Some HTML
-Original Message-
From: VEDRE, RANAPRATAP REDDY [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 9:48 AM
To: '[EMAIL PROTECTED]'
Subject: Help using Struts Logic tags.
What is the best way to write the following scriptlet code using
Logic Tags.
I tried to do
Klaasen (TeleRelay) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 6:54 AM
To: Struts Users Mailing List
Subject: RE: Nesting Beans/Iterators/Logic tags whatever else...
After 25 hours, you're entitled to send more information for us to try
to give help on ;-)
Full stacktrace, jsp
There are many applications for the tags use -- even out side the iterate process
Hell yes! :)
I suppose some people will just see it as a way past their nested iteration problems,
but it brings so much more. Among other things, it will clean your JSP's because the
markup's reduced for those
-Original Message-
From: Arron Bates [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 11 januari 2002 3:01
To: Struts Users Mailing List
Subject: Nesting Beans/Iterators/Logic tags whatever else...
[...]
If you have used the extension and found it useful, can you
please reply
68106
voice: 402-926-5236
fax: 402-996-9736
email: [EMAIL PROTECTED]
-Original Message-
From: Tom Klaasen (TeleRelay) [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 14, 2002 4:23 AM
To: Struts Users Mailing List
Subject: RE: Nesting Beans/Iterators/Logic tags whatever else
14, 2002 4:23 AM
To: Struts Users Mailing List
Subject: RE: Nesting Beans/Iterators/Logic tags whatever else...
-Original Message-
From: Arron Bates [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 11 januari 2002 3:01
To: Struts Users Mailing List
Subject: Nesting Beans/Iterators/Logic tags
.
I am pretty new to STRUTS, so I am not sure what was going on.
-AP_
-Original Message-
From: Arron Bates [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 14, 2002 2:37 PM
To: Struts Users Mailing List
Subject: Re: Nesting Beans/Iterators/Logic tags whatever else...
I'm willing to help
Arron,
I use it and I like it :)
Andrej
-Original Message-
From: Arron Bates [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 10, 2002 9:01 PM
To: Struts Users Mailing List
Subject: Nesting Beans/Iterators/Logic tags whatever else...
Some people on this list have been
together any tag which uses a property property to
bring them to the nesting context. Logic tags, Form tags, and a few
bean tags. There are other options in the extension which capitalise on
the nesting context.
To help out with all this, I've built a more extensive resources page (
http
Is it possible to set a default bean for logic tags like it is for form tags
so that they don't have to be named in each logic tag?
If I don't specify the name in an html:text tag, the name from the
parent form and its corresponding action tag will be used. For example, in
the below html:text
I believe that the name attribute can take a request-time expression that
you could
use for this purpose.
-Original Message-
From: Mike Hoeffner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 2:49 PM
To: [EMAIL PROTECTED]
Subject: setting a default bean for logic tags
Sorry if this has already been asked/answered here - the mail archive doesn't
let me search for AND OR.
Is there a way to have multiple conditional logic with the Struts logic taglib?
For example, IF (user is present) OR (visitor equals true).
TIA,
Eric
--
Eric Rizzo, Software
-
From: Eric Rizzo [mailto:[EMAIL PROTECTED]]
Sent: 01 October 2001 17:06
To: [EMAIL PROTECTED]
Subject: AND/OR with logic tags
Sorry if this has already been asked/answered here - the mail
archive doesn't
let me search for AND OR.
Is there a way to have multiple conditional logic
Hi,
I know i can use logic:equals name=thebean property=id
value=constant to compare a bean's property to a constant, but how do
i compare two beans property for equality using tags?
Thanks
Andre Paradis
to propose his Taglibs over there, for wider
distribution. We'll probably be moving our own logic tags there too
eventually.
An important point generally is that Struts is not meant to be an
omnibus platform for Web development. We do not want to include
everything any developer might ever want to use
2 . U can use bean:define tag
-Original Message-
From: Marcel Andres [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 5:25 PM
To: struts-user
Subject: use of logic-tags
Hi all,
Two general questions:
1. Has someone an idea how to implement an ELSE with the logic-tags
[SMTP:[EMAIL PROTECTED]]
Date: jeudi 23 aout 2001 13:55
A: struts-user
Objet: use of logic-tags
Hi all,
Two general questions:
1. Has someone an idea how to implement an ELSE with the logic-tags? Till
now, I always made something like this (example):
logic:equal .
/logic:equal
PM
To: '[EMAIL PROTECTED]'
Subject: RE: use of logic-tags
I think that you could implements rapidly somethink like :
tag:if condition=???Boolean expression???
tag:thenHere it's evaluate only if condition is truetag:then/
tag:elseHere it's evaluate only if condition is falsetag:else/
tag:if
Hi All,
I just want to know wether Nials extra logic tags will ever be put into the
Struts build?
Thanx
Regards,
Dudley Butt
Software Analyst/Developer
Phone: +27 (0)21 936 7517
Mobile: +27 (0)83 327 5709
E-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED
I have been looking at the documentation and I am
still not comfortable with understanding what certain attributes represent in
the Bean Logic tags. I am particularly confused
with nested tagsand these attributes:
id=
name=
property=
Could one of you kind gentlemen help with a concise
Hello Jonathan,
Friday, June 29, 2001, 4:09:04 PM, you wrote:
JA I have been looking at the documentation and I am still not
JA comfortable with understanding what certain attributes represent
JA in the Bean Logic tags. I am particularly confused with nested
JA tags
JA and these attributes
as to use bean:define to open the size up to page scope and
then using the assigned id for it as the property in the logic tags, but I
can't make that work either.
Can anyone help me out?
Thanks in advance
Dave
The information
Equal
logic:lessThan name="itemsSize" value="1"
...
...other stuff
...
/logic:lessThan
Jean-Noel
- Original Message -
From: Firmin David [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 18, 2001 11:17 AM
Subject: Using a collection as a bean with th
73 matches
Mail list logo