aspose file tools*
The moose likes Struts and the fly likes Need to find a way without scriptless. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Need to find a way without scriptless. " Watch "Need to find a way without scriptless. " New topic
Author

Need to find a way without scriptless.

Maan Suraj
Ranch Hand

Joined: Dec 20, 2007
Posts: 299



Is there any other way to do without using the above scriptless which i used for appending "AN" and "ASN"
>


Man Suraj
Someone says "Impossible is nothing". The man next him says "Let me see you licking your elbow tip!"
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

I never done this before but Try this,

Remove the scriptlet and redefine "value" attribute of html:radio tag




[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Maan Suraj
Ranch Hand

Joined: Dec 20, 2007
Posts: 299
Thanks, but this gives me below mentioned error


JSPG0227E: Exception caught while translating /jsp/Inquiry/salReset.jsp: /jsp/Inquiry/salReset.jsp(322,24) --> JSPG0123E: Unable to locate tag attribute info for tag attribute AN.
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874

OR


...should work.
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

@Adeel
This was exactly I thought as my second work around
Maan Suraj
Ranch Hand

Joined: Dec 20, 2007
Posts: 299
but still its not working the way i want it..

I call a java script on lclick of a particular radio button



If i use scriptlet tag , then details (the appended string, which is passed as value from the radio button) prints
something like 12,23 ( Where say 12 --- AN and 23 ---ASN) 12 and 23 are some random values i came up with.

(AN, ASN being the property of the form, so the values of it are set up in Action)


however, when i use the way as you said in your post, like value="${AN}" etc.., then i see the output

{AN} (which means value is not getting retrieved as expected.


Hope i am clear enough, please let me know if some clarifications are required
>
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

You've to play around with it

Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Don't play around, be sure what you are doing. Nonetheless, try what Sagar suggested, because it looks like the bean is in some context. Your variables are not in any context.

To make it clear, if your variable is not attached with some context, you can't use that in EL. That is the reason my suggestion didn't work out as expected.

I hope this clears the thing.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need to find a way without scriptless.