  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | check if an element exists | check if an element exists 2007-01-17 - By Ernesto Reig
Back What could be the easiest way to check if a certain username exists? I have an xml like this:
<tomcat-users> <role rolename="tomcat"/> <role rolename="role1"/> <role rolename="manager"/> <user username="tomcat" password="tomcat" roles="tomcat"/> <user username="both" password="tomcat" roles="tomcat,role1"/> <user username="role1" password="tomcat" roles="role1"/> </tomcat-users>
When it comes to check if a certain user with a certain username exists, I don know an easy way to do that. Can someone help? Thnx.
What could be the easiest way to check if a certain username exists?<br>I have an xml like this:<br><br><tomcat-users><br> <role rolename ="tomcat"/><br> <role rolename="role1"/> ;<br> <role rolename="manager"/><br> < ;user username="tomcat" password="tomcat" roles="tomcat "/><br> <user username="both" password=" ;tomcat" roles="tomcat,role1"/> <br> <user username="role1" password="tomcat" ; roles="role1"/><br></tomcat-users><br><br>When it comes to check if a certain user with a certain username exists, I don know an easy way to do that. Can someone help? Thnx. <br>
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ To control your jdom-interest membership: http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
|
|
 |