Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-04-2008, 08:24 AM
freddieMaize's Avatar
Member
 
Join Date: Apr 2008
Posts: 62
freddieMaize is on a distinguished road
<core:forEach var="" begin="+<%=j%>+">???
Hi friends,

I used the below code,

Code:
<% int j = 0; for (int i = 0; i < 25; i++) {%> <core:forEach var="result_list" items="${searched.result_list}" begin="+<%=j%>+" end="+<%=j%>+"> <tr><td align="left" class="fastTitle"><core:out value="${result_list}" escapeXml="false"/> </td></tr> </core:forEach> <% j++;%> <core:forEach var="result_list" items="${searched.result_list}" begin="+<%=j%>+" end="+<%=j%>+"> <tr><td align="left" class="fastTeaser"><core:out value="${result_list}" escapeXml="false"/> </td></tr> </core:forEach> <% j++; }%>
I mean, begin and end are int values like 0,1,2. But for me, I want them to be a dynamic value and thats why I used a for loop.

I got an error saying, "incompatible type found: intrequired:java.lang.object incompatible type found".

Any suggestions/correction??

Regards,
Freddie
__________________
"a place for everything, and everything in its place."
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by freddieMaize : 07-04-2008 at 08:26 AM. Reason: to make it more readable:)
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-27-2008, 02:20 AM
Nicholas Jordan's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Southwest
Posts: 581
Nicholas Jordan is on a distinguished road
Well what I see, though I am exposing myself to counter-claim, is trying to do real application programming in what is supposed to be a server-side include language.

Maybe very do-able, maybe I am wrong ..... but that is what I see.

There is a syntax very close to what you have that will do what you say, but server-side includes,... is that called a variable there?

Probably some fancy name for variable that ......

uh, I better quit here.
__________________
Please provide your feedback on our
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
.
Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Exception in thread &quot;main&quot; java.util.NoSuchElementException thevoice New To Java 5 05-14-2008 02:43 PM
"Jumble" or "Scramble" Program Shadow22202 Java Applets 8 04-30-2008 04:42 AM
failure at Class.forName("oracle.jdbc.driver.OracleDriver"); RonNYC Eclipse 1 03-14-2008 03:51 PM
Hwlp with "Open", "Save", "Save as..." trill New To Java 1 07-31-2007 08:53 AM
Error: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException romina New To Java 1 07-25-2007 11:55 PM


All times are GMT +3. The time now is 02:48 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org