aspose file tools*
The moose likes Struts and the fly likes bean:write query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "bean:write query" Watch "bean:write query" New topic
Author

bean:write query

S Bhanu
Greenhorn

Joined: Feb 28, 2005
Posts: 15
I have the following code in the form bean:

private String name = "";

public String getName(String nam) {
if(nam.equals("abc") {
//do something that cannot be done in JSP
return "noname"; //conditional return
}
}

public void setName(String str) {
name = str;
}

and I need to access the name from jsp using bean:write. I am using:

<bean:write name="bean" property="name" />

How can I pass parameter to the bean to check for the condition?
I need to implement this in jsp ONLY.

Thanks,
Bhanu
S Bhanu
Greenhorn

Joined: Feb 28, 2005
Posts: 15
is it possible ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: bean:write query