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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets 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 ?
Don't get me started about those stupid light bulbs.
subject: bean:write query
Similar Threads
Result sets in struts
bean:write property
Accessing complex beans in struts
Display Check Boxes & Dropdowns in Struts with search results
bean:write property