Click here to Skip to main content
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 23:04pm
Edited 24-Dec-11 23:05pm
v2

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



Advertise | Privacy | Mobile
Web03 | 2.8.1411022.1 | Last Updated 25 Dec 2011
Copyright © CodeProject, 1999-2014
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