I want to populate one bean when i am clicking the link.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Saturday, February 27, 2010 05:25 AM

Hello, I have one html:link attribute. I want to populate one bean when i am clicking the link. But i dont how to do it. Code: <%= (String) list1.get(0);%> i dont know where to mention the bean name.I want to pouplate this dynamic value to bean attribute called Bathc id Config file: type="com.senthil.form.viewExcelBean"> type="com.senthil.action.viewExcelAction" name="viewExcelBean"> Form bean: public class viewExcelBean extends ActionForm { private String BatchID; public St   More>>

Hello,
I have one html:link attribute. I want to populate one bean when i am clicking the link. But i dont how to do it.

Code:



<%= (String) list1.get(0);%>


i dont know where to
mention the bean name.I want to pouplate this
dynamic value to bean
attribute called Bathc id




Config file:




type="com.senthil.form.viewExcelBean">







type="com.senthil.action.viewExcelAction"
name="viewExcelBean">








Form bean:


public class viewExcelBean extends ActionForm {


private String BatchID;


public String getBatchID() {

return BatchID;

}


public void setBatchID(String BatchID) {

this.BatchID = BatchID;

}

}


I want to populate BatchID attribute when clicking the link.
But i dont know where to specify the BatchId in the html:link tag.


Please any one suggest.

   <<Less

Re: I want to populate one bean when i am clicking the link.

Posted By:   shankar_ganesh  
Posted On:   Monday, March 8, 2010 09:00 AM

just try this out

<%= (String) list1.get(0);%>
About | Sitemap | Contact