Two Laptop Bag*
The moose likes Struts and the fly likes form-bean unavailable in javascript !! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "form-bean unavailable in javascript !! " Watch "form-bean unavailable in javascript !! " New topic
Author

form-bean unavailable in javascript !!

Anand Gondhiya
Ranch Hand

Joined: Feb 24, 2004
Posts: 155
Hi,

I use WL 8,Struts 1.1 and Win2000.
NOTE: onloading is equal to "onload" i did this it wasn't letting me post

<body onloading = "AskPrepopulation()">
.
.
.
</body>

function AskPrepopulation()
{
<logic:equal name="candidateForm" property="returningCandidate" value="true">
alert("You are Returning candidate !");
</logic:equal>
}

Now , this "candidateForm" works in the jsp page !!! but gives error in javascript.
When I try to load the page it gives erroneous page saying
"No bean found under attribute key candidateForm"


Any suggestions ?
thanks
-Anand.
 
 
subject: form-bean unavailable in javascript !!
 
Similar Threads
Peculiar problem with js and css file
Issue in populating field in parent window
how to define multiple beans
logic tags in struts
bean value persists on clicking back