Help coderanch get a
new server
by contributing to the fundraiser

subhasish nag

Ranch Hand
+ Follow
since Apr 25, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by subhasish nag

Hi Ranchers,
I have a problem.
want to call a function to set a jsp field dynamically
the function is
I am unable to call the function as I 'm unable to pass the right argumenty.


Can anybody pl guide how to call the function properly and set the value for the field
Hi David,
the defination in struts-config is given below

<action path="/SecondClass"
type="claim.SecondClass"
name="GenClaimForm"
scope="session" validate="false">
<forward name="success" path="/resources/jsp/roclaim/claim/policy.jsp" contextRelative="true" />
Pl let me know if anything more you need to know.
15 years ago
public class SecondClass extends Action
15 years ago
Can somebody guide in this matter??
15 years ago
yes Reset method is there.But it is not applied for that perticular field. And the field value is taking in 2nd action is from the jsp .
Is the problem is with struts-config?
Is the name of scope has any relation with that?
for ref:
<action path="/OoAction1"
type="claim.OoAction1"
name="GenClaimForm"
scope="session" validate="false">
15 years ago
Hi Ranchers,
I am facing problem with a field (&lt;html:select property="ooCode" name="OoForm" &gt;) .
I am setting the value of ooCode explicitly( by calling SetOoCode()) in OoAction1.And
OoAction1 forwards to OoAction2.But in OoAction2 the value of ooCode set in OoAction1
is lost.It is showing the value of ooCode from jsp.Kindly guide me ,so that 2nd Action can
get the value set in 1st action without doing any modification in second action.
15 years ago
Thanks David.It's working Now.
15 years ago
Hi Ranchers,
I have a problem with checkbox. It is delclared in a childbean and declared as(String ynROChecked="-1";).
and in jsp as <html:checkbox property="ynROChecked" name="rocodelist" value="1" indexed="true" /></td>.
In jsp multiple rows are getting populated and some of them are preselected.When I am going to update
the details based on selected checkbox even when I am deselectiong one of the presected checkboxes
those are treating as value 1(ie. selected). Please guide me,or provide some code ,so that I can solve this.
Thanks,
subhasish
15 years ago
Hi Ranchers,
I have a problem in in setting value of Field (A)in action.Here there is a jsp and two consecutive action. The first action (action1) setting one value of the jsp field and forwards it to another action(action2).But when the second action(action2) is loaded the value of that field(A) set to as per jsp value.(setter method of formbean again called). How can I avoid this situation so that the after setting the field value in first action ,the value of field should not be changed again.
15 years ago
Hi Eric,
I need one more help .


I need to convert the date variable(dateXYZ ) to String (dd/mm/yyyy format) for the second field.Please help me out .
Hi ,
I have a jsp which have 2 text fields for date. If I select first one second one shold be automatically updated as value of first filed + one day.
Can anybody please help.
I am pulling some records from the DB and displaying it on the jsp using <logic:iterate>. Each time the count of the record will be changed. and i am displaying a radio button beside every row. my requirement is i need to update the record where the user checked the radio . my question is how do we access the values for that particular radio button.Please help.
15 years ago
I am facing a problem in radio button,I am using the button in interation

in my jsp page I wrote


branchDtls is the name of ArrayList in main form(BankForm).
and ynSelect is the property used in childbean (details of branchDtls )
Here I am able to select multiple radio button which creates problem.
if I ommit indexed key then value is not getting in form.
So I ma not able to do any action by selecting only perticular radio.
15 years ago
In frontend (jsp)there will be some no of rows displaying datas of one table .I need some functionality so that user can update multiple rows of a jsp page by selecting checkboxes,which will also update the table.
15 years ago