It's not legal to mix string literals and scripting expressions in the value
of a single attribute. The value must be one or the other.
Paraphrasing your example a bit, to simplify, you have something like this:
which mixes the two, so you need to convert it entirely to a scripting
expression l
Hello,
I am having a problem replacing data dynamically in a string.
\" class=\"more\">More
"><%=childGroup.getDescription()%>
None of the scriptlets are evaluated.
Throwing this error:
/tiles/productCategory_content.jsp(120,14) jsp.error.unterminated.tag'
Here is the tld
Also look at
http://asktom.oracle.com/pls/ask/f?p=4950:61:6135004253755051307P61_ID:2
64715428643
David Schwartz
-Original Message-
From: Keith [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 15, 2004 4:09 PM
To: Tag Libraries Users List
Subject: RE: Conditional Loop
Hmm... I think
Method 1 can be used in a JSP 2.0 container, or a JSP 1.2 container with
JSTL 1.0. Method 2 can only be used in a JSP 2.0 container. In a JSP
2.0 container, the results will be the same (except for the "[" and "]"
in method 2).
> -Original Message-
> From: [EMAIL PROTECTED]
>
> Can som
Hmm... I think I get what you did now. Didn't click before. I'll try it out tomorrow.
Thanks! :)
-- Original Message ---
From: David Schwartz <[EMAIL PROTECTED]>
To: "'Tag Libraries Users List'" <[EMAIL PROTECTED]>
Sent: Thu, 15 Apr 2004 16:11:09 -0400
Subject: RE: Conditional L
Can someone explain the difference between these two methods?
Method 1:
Method 2:
[${str}]
The query I sent will do exactly that!
The sub-select with Count(Name) gives you the total number of product names
- that will correspond to your RowSpan amount.
Since you want to display the Tech Type & Requirements beneath/within a
given Product name just add an Order By clause to the sql...
Or
One way could be to store the current row's product in a variable. THen on the next
row if that row's product equals the product stored in the variable, don't print it
out. If they are different, print it out and put the new product in the variable.
${productname}
Thank you! That may have what I was looking for. This will be my first venture outside
of
the standard tag library.
Even if it doesn't, it's a nice tool that will make my tables look much nicer! :)
Keith
-- Original Message ---
From: "Francois Beausoleil" <[EMAIL PROTECTED]>
To
Yes, it already is a lot of coding, so any working shortcut I can find is good. ;)
But,
some of the different columns in the DB are being combined into one column in the
resulting HTML table (ex. a complete address), so the output is more compact in the
end.
It's an Oracle 9i R2 database.
Her
Keith, take a look at the Display Tag library http://displaytag.sf.net
It provides a grouping function where a column's value is not repeated if
it is the same as the value in the row above.
Hope that helps !
François
On Thu, 15 Apr 2004 15:07:20 -0400, "David Schwartz" <[EMAIL PROTECTED]>
said:
>> Isn't there any way to do this via JSTL and not in the DB query?
Maybe, but I'm not sure why you would want to. Seems like the functionality
you describe is a feature of the DB.
Also, with JSTL & 30+ columns could be a lot of coding.
Do you have more specific example? What db?
David Schwartz
Isn't there any way to do this via JSTL and not in the DB query? My example was rather
simplistic for what I'm really doing, but still is a good example of the raw data. I'm
using the resulting number in colspans and rowspans to build a nicer table layout
(displaying data only once that's repeat
That query will return the name & total counts but not the individual name
rows with primary key col (since you have a "Group By" clause).
David Schwartz
-Original Message-
From: Jon Archer [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 15, 2004 2:03 PM
To: Tag Libraries Users List
Subje
Assuming your column with the names in is called NAME did you try this?
SELECT NAME, COUNT(NAME) FROM MY_TABLE GROUP BY NAME
Make sure you have an index on the NAME column.
Jon
On Thu, 2004-04-15 at 11:45, Keith wrote:
> Here's a generic scenario similar to my situation:
>
> A database with t
Try a sub select that returns the count...
SELECT
t.Primary_Key,
h.Name,
(Select Count(tt.Name) as Count_Name
FROM myTable tt
where tt.Name = t.Name
)
FROM myTable tt
It's fast & returns all nesc data from the db.
David Schwartz
-Original Message-
From: Keith [mailto:[EMAIL PROTECTED]
Here's a generic scenario similar to my situation:
A database with two columns, one being an auto-sequence number for the primary key,
the
other listing names.
1 Bob
2 Bob
3 Jim
4 John
5 Jim
6 Bob
7 John
8 John
9 Jim
10 Bob
Ok, I query the database to return both columns, si
David,
Thanks, that's what I was looking for.
Derek
--- David Schwartz <[EMAIL PROTECTED]> wrote:
> Try...
>
> <%String test = "Happy Days";
> request.setAttribute( "test", test );
> %>
> test: ${test}
>
> David Schwartz
>
> -Original Message-
> From: Derek [mailto:[EMAIL PROTECT
Try...
<% String test = "Happy Days";
request.setAttribute( "test", test );
%>
test: ${test}
David Schwartz
-Original Message-
From: Derek [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 15, 2004 11:23 AM
To: [EMAIL PROTECTED]
Subject: Referencing scriptlet variable in expression la
If you read the JSTL specification, you would have learned that the EL
doesn't reference scriptlet variables.
> -Original Message-
> From: Derek [mailto:[EMAIL PROTECTED]
>
> This has got to be a really trivial thing, but this
> doesn't work for me:
>
> <% String test = "Happy Days"; %>
This has got to be a really trivial thing, but this
doesn't work for me:
<% String test = "Happy Days"; %>
test: ${test}
I was expecting:
test: Happy Days
However, it just prints out blank. I can make it work
by doing this:
<% String test = "Happy Days"; %>
test: ${test}
How do I reference
Without seeing any of your JSP page or the code for your custom tag, it's a
little hard for us to help you out... ;-)
If you could provide more information, we might be able to help.
--
Martin Cooper
"shanmugampl" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi All,
>
>I ha
Hi All,
I have a custom tag, which iterates through a data and provides a url
to be included during every iteration. When i display the url as a
string, everything works fine. But when i try to include it through the
tag i am getting the following error.
java.io.IOException: Stream closed
23 matches
Mail list logo