public class User { private String name; private Vector messages;
// Simple implementation of a set of users - // only for illustration purposes. Normally users // would have to be maintained and managed in a database private static User[] hardCodedUsers = { new User("Joe"), new User("Jane"), new User("Tony"), new User("Tina") };
public static User[] getHardCodedUsers() { return User.hardCodedUsers; }
public User(String name) { this.name = name; messages = new Vector(); }
public String getName() { return this.name; }
public Vector getMessages() { return messages; }
public void addMessage(Message message) { messages.addElement(message); }
// Return a User object based on user name or a null if a user // by that name does not exist
public static User getUser(String username) { User[] allUsers = User.getHardCodedUsers(); for (int i = 0 ; i < allUsers.length ; i++) if (allUsers[i].getName().compareTo(username) == 0) return hardCodedUsers[i]; return null; }
What version of JSP and JSTL are you using? From your JSTL URI I am aasuming JSP 1.x and JSTL 1.0?
Post by:Me Fdo
,
Ranch Hand
jsp version is 1.1
I do not see <rtexprvalue> in my web.xml ?
Should it be any where else?
Post by:Me Fdo
,
Ranch Hand
rtexprvalue> is in .tld file. But I cannot find the tld file in my workspace.
I am on Rational software architect 6.0.
Post by:Bear Bibeault
,
Marshal
staff
The tld in question is probably embedded in your JSTL implementation. You may want to try the 'rt' version of the URI. If I recall correctly, this syntax is:
but you should look it up in the docs (or the embedded tld) that came with your JSTL implementation to be sure.
Post by:Ben Souther
,
Sheriff
staff
Should have read your code. I saw "custom tag" in your subject and assumed you were writing custom tags. I didn't notice the JSTL tags in your code.
Disregard my previous post.
Post by:autobot
I suggest huckleberry pie. But the only thing on the gluten free menu is this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database