Hi Everyone,

 

               
I am trying to create a java variable in the jsp scriplet and assign it a value 
coming from <s: property> tag

so for example

<%

          int id = <s: property value="userId"/> ; 

%>

 

I know the above is completely incorrect, but essentially, that is what I want 
to accomplish.  Can anyone give me any idea how this can be done?  Thanks.

 

 

My action class looks like:
public class UserAction extends ActionSupport implements SessionAware, 
DataSourceAware, UserAware, Preparable, ModelDriven
{
 

 private User loggedInUser;  

 private Map session;  
 private DataSource dataSource;
 private int userId;


 

 public int getUserId()
 {
  return userId;
 }

 public void setUserId(int userId)
 {
  this.userId = userId;
 }

 

_________________________________________________________________
Hotmail® has ever-growing storage! Don’t worry about storage limits. 
http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009

Reply via email to