Hi, I want to send some form bean value into generate() method of CustomGenerator class so that i can generate value of ID dynamically. My requirement is from the JSP i have selected the batchId .Now i want to generate the id depending the alue comming from JSP form. Like if selected batchId id B17 then id must be in form of B17-057, Like if selected batchId id B18 then id must be in form of B18-057, Like if selected batchId id B19 then id must be in form of B19-057,
For this i need to access the form bean value in generate() method.So than according to batchId we can generate the next ID. How and when we can send the value from action to generate() method.
Thanks.
|