Click here to Skip to main content
11,709,536 members (49,024 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Java struts
Hello everyone
I have a problem but i don't know how to solve it. Could anyone help me, please?
I have a "dtails.jsp" page. It'll be linked by an action from another page. So i want to take a property that name "photo" that contain the image path and render it like this. To render a textfield, i can do it easy like this
<tr>
	<td><s:textfield key="label.firstname" value="firstname" /></td>
</tr>

But to render an image, i can't
<tr>
  <td><img src="value='photo'" /></td>
</tr>

Thanks for any commnet
ck

PS: I'm working in struts2
Posted 24-Dec-11 22:04pm
Edited 24-Dec-11 22:05pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 525
1 OriginalGriff 250
2 Peter Leow 219
3 Maciej Los 185
4 Mika Wendelius 160
0 OriginalGriff 9,428
1 Sergey Alexandrovich Kryukov 9,037
2 CPallini 5,189
3 Maciej Los 4,991
4 Mika Wendelius 3,856


Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 25 Dec 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100