File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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 ?
I agree. Here's the link:
subject: bean:write query
It's not a secret anymore!