I am working on a struts 1.1 environment and I want to integrate smart client on it. I am now trying to use the RPCManager in my action to get the DSRequest and DSResponse. In my code I have
My data source is defined in my JSP:
Then i use "clmListingForm.submitForm()" to submit the data to my action.
In my action I have the following in my execute method
When this line is reached I get an exception
When this line is reached I get an exception
I tried with
in my JSP but still gets the same exception.
I cannot figure out why the RPCManager does not see this as an RPC request in struts action class? Am I missing a step or am I doing something wrong.
My data source is defined in my JSP:
Code:
isc.defineClass("Box", "Label").addProperties({
align:"center",
})
isc.HLayout.create({
width:"100%", height:"100%", membersMargin:20,
members:[
isc.HLayout.create({
showEdges:false,
height:150, membersMargin:30, layoutMargin:10,
members:[
isc.Box.create({width:300, contents:""}),
DynamicForm.create({
ID: "clmListingForm",
autoDraw: false,
showEdges:false,
width:"*",
numCols:2,
colWidths: [60, "*"],
validationURL: "/rvqueryclm/Validation.do",
action: "/rvqueryclm/generateReportVQueryClm.do",
submitParamsOnly: true,
fields : [
{ type:"header", defaultValue:"CLM LISTING", align:"center"},
{ name:"railcars", title: "RailCar(s)",
type: "textArea", length: 30, colSpan: 2},
{ name:"fromEventDate", title: "Event Date From",align:"left",wrapTitle: false,
type: "text", length: 200, type: "date", length: 60, useTextField:"true", colSpan: 2},
{ name:"toEventDate", title: "Event Date To",wrapTitle: false,
type: "text", length: 200, type: "date", length: 60, useTextField:"true", colSpan: 2},
{ name:"systemDateTimeFrom", title: "System Date Time From", type: "date", length: 60,wrapTitle: false,
useTextField:"true", colSpan: 2},
{ name:"systemDateTimeTo", title: "System Date Time To",wrapTitle: false,wrapTitle: false,
type: "text", length: 200, type: "date", length: 60, useTextField:"true", colSpan: 2},
{ name:"carrier", title: "Carrier",wrapTitle: false,
type: "text", length: 200, colSpan: 2},
{ name:"trainId", title: "Train ID",wrapTitle: false,
type: "text", length: 20, colSpan: 2},
{ name:"eventCode", title: "Event Code",wrapTitle: false,
type: "text", length: 20, colSpan: 2},
{ name:"resultsPerPage", title: "# of results per page",wrapTitle: false,
type: "text", length: 60, colSpan: 2},
{ name:"sightingCode", title: "Sighting Code",wrapTitle: false,
type: "text", length: 25, colSpan: 2},
{ name:"destination", title: "Destination",wrapTitle: false,
type: "text", length: 20, colSpan: 2},
{ name:"eventLocation", title: "Event Location",wrapTitle: false,
type: "text", length: 20, colSpan: 2},
{name: "search", title: "Search", type: "button",colSpan: 2,width: 50, align:"center",click: "clmListingForm.submitForm()"},
]
}),
isc.Box.create({width:"30%", contents:""})
]
})
]
})
Then i use "clmListingForm.submitForm()" to submit the data to my action.
In my action I have the following in my execute method
Code:
RPCManager manager = new RPCManager(request, response);
When this line is reached I get an exception
Code:
RPCManager manager = new RPCManager(request, response);
Code:
java.lang.Exception: Non-RPC request ignored.
I tried with
Code:
RPCManager.addProperties({ actionURL: "/rvqueryclm/generateReportVQueryClm.do"});
I cannot figure out why the RPCManager does not see this as an RPC request in struts action class? Am I missing a step or am I doing something wrong.
Comment