• Post Reply Bookmark Topic Watch Topic
  • New Topic

syntax error

 
puja dayal
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
getting a syntax error here

<td id="<c:out value="${i}"/>"><c:out value="${e.nextElement()}">
 
Paul Clapham
Sheriff
Posts: 21876
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


This isn't a valid EL expression. You can't call methods in EL, you can only access properties.
 
puja dayal
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
then can i insert a string value in there?i mean a variable which holds a string value..
 
Balaji Vankadaru
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you post your complete requirement or code
 
puja dayal
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i just want to insert a string value which is stored in a variable in jsp, into the table <td>, in the same page ....i hope i am clear now...could you please tell me how i can do this... like for example


String val = "snowhite"

int num =0;


i want to insert the val and num in this way ----> <td id = num >val</td>
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's not enough information to go on. Where are these values coming from?
 
puja dayal
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have explained my requirement very clearly....i dont have to copy paste my entire project code for such a small question....i am sure programmers might have understood my doubt clearly by now..thankyou
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Being rude to those trying to help you is not a winning strategy. I suggest you try a different approach.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!