This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes passing HTML DOM in a variable to display it in colorbox, but how to use jstl tags when assigning it Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "passing HTML DOM in a variable to display it in colorbox, but how to use jstl tags when assigning it" Watch "passing HTML DOM in a variable to display it in colorbox, but how to use jstl tags when assigning it" New topic
Author

passing HTML DOM in a variable to display it in colorbox, but how to use jstl tags when assigning it

Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1055

Dear Members,

I have a variable called htmlData to which I am assigning HTML DOM, to display the DOM in a colorbox.everything seems to be working fine but only for one thing.. the values coming from the Controller via database table values is not being displayed in the jsp file.Please advice where I am makint the Syntax error for the line:

<c:forEach var="listItem" items="${ProjectIds}"><option value="${type.PROJECT_ID}" >${type.PROJECT_ID}



http://www.lifesbizzare.blogspot.com || OCJP:81%
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61084
    
  66

I've already advised you about the folly of using this approach. Of course, JSTL and JSP tags aren't going to be evaluated in strings of JavaScript code. JSP must execute on the server long before the page gets sent to the browser.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
wood burning stoves
 
subject: passing HTML DOM in a variable to display it in colorbox, but how to use jstl tags when assigning it