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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "bean:write query" Watch "bean:write query" New topic

bean:write query

S Bhanu

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.

S Bhanu

Joined: Feb 28, 2005
Posts: 15
is it possible ?
Consider Paul's rocket mass heater.
subject: bean:write query