This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
    Bookmark Topic Watch Topic
  • New Topic

please help me to pass form bean values to the script function  RSS feed

suresh sai
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi All.,

I need to pass the form bean (struts) String array values to the script function.I have tried all the ways which I know.But I didnt get the solution.Here I am showing the scenario in short.

private String records[]; and their getters and setters.

function toDoList(records)
return true;
<body onloadfunction="return toDoList(records)">
<html:hidden property="records">
for this one I am getting java script error---- records undefined.
and also
<body onloadfunction="return toDoList(<%= session.getAttirbute("records")%> ">
for this one I am getting java script error---- ] expected at <body>
but the values are setting in to the bean in both ways
and in another one I am getting null like that.
Please help me to solve the problem.
Thanks in advance.
Ulf Dittmer
Posts: 42970
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!