|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
hi, I wonder how to pass values from scriplets to any tags - custom or standard:
<%! String customers = "one,two,three"; %> <c:forEach var="customer" items="${customers}"> <c: out value="${customer}"/><br> </c:forEach> doesn't work, ${customers} is null when I access it outside <%%> I am sure there is some simple way... |
|
#2
|
|||
|
|||
|
I got it:
<% String customers = "one,two,three"; pageContext.setAttribute("customers", customers, pageContext.APPLICATION_SCOPE); %> |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > passing values from scriplets to tags |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|