Re: drop down links.
On 5/19/06, Abhimanyu Koul [EMAIL PROTECTED] wrote: Hi! I am using drop down menus using javascript im my application. i want to know how can we use html:link in those cases for the individual entry of the drop down menu. since it doesn't use any a href You'd be better off having an actual link for spiders and users w/o JavaScript, and assigning drop-down behaviors via JS at page load for everyone else. IMHO! -- Hassan Schroeder [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Validation Problem
Hi, I am trying to check one of my forms for valid data. To do so, I check the fields with a validation-main.xml Everything seems to work as expected. Until I added this field . field property=laufleistung depends=required,double,doubleRange,validwhen arg key=label.laufleistung/ msg key=error.laufleistung.format name=double/ msg key=error.laufleistung.logik name=validwhen/ arg name=doubleRange key=${var:min} resource=false/ arg name=doubleRange key=${var:max} resource=false/ varvar-namemin/var-namevar-value0/var-value/var varvar-namemax/var-namevar-value999/var-value/var var var-nametest/var-name var-value(((selectedTyp == 1) and (*this* 300)) or ((selectedTyp 1) and (*this* 0)))/var-value /var /field If fails, because the test line for validwhen is not wellformed, because of this comparation (*this* 300) It works fine with a check for greaterThan, but it fails with the above lowerThan... Any Idea how I could change it to make it work ?? Rgds Albi PS: I'm using commons-validator-1.2.jar, That's why I use 'arg' instead of 'arg0,arg1,arg2' - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Validation Problem
If fails, because the test line for validwhen is not wellformed, because of this comparation (*this* 300) It works fine with a check for greaterThan, but it fails with the above lowerThan... Any Idea how I could change it to make it work ?? Rgds Albi I changed this (*this* 300) To (*this* lt; 300) And it seems to work ;) Live can be so easy ;) Thanks anyway Rgds albi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Validation Problem
Remember that your validation rules are written in XML, so you must follow XML rules: escape less-than signs, greater-than, and ampersand. If you don't like this, you can always wrap them in CDATA sections: var-value ![CDATA[ (((selectedTyp == 1) and (*this* 300)) or ((selectedTyp 1) and (*this* 0))) ]] /var-value --- Albrecht Leiprecht [EMAIL PROTECTED] wrote: If fails, because the test line for validwhen is not wellformed, because of this comparation (*this* 300) It works fine with a check for greaterThan, but it fails with the above lowerThan... Any Idea how I could change it to make it work ?? Rgds Albi I changed this (*this* 300) To (*this* lt; 300) And it seems to work ;) Live can be so easy ;) Thanks anyway Rgds albi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSP TAG Issue - can't find bean in JSP!
Hello, I am trying to compare 2 values within a JSP using a logic:match tag as illustrated below: % String menuRole = null; % % menuRole=SUPER % logic:match name=%=menuRole% value=% =LookupConstants.SUPER% /logic:match //note that LookupConstants.SUPER returns SUPER. However, I get the following error whenever accessing the JSP: 2006-05-21 14:44:17,700 [HttpRequestHandler-1635615] ERROR org.apache.struts.taglib.tiles.InsertTag.doEndTag - ServletExcept ion in '/WEB-INF/pages/menu.jsp': Cannot find bean: SUPER in any scope. Can you please let me know what I'm doing wrong? How can I use the menuRole variable in a compare tag? - Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better.
Re: HELP:I've got a new problem when I tried to use struts-menu in my Tiles using display-tag.
Greg Ludington,you've got the point. I tested many times to find it is the CSS file that made the strange rim.The CSS files apply to all the pages using display-tag.I do NOT know how to limit the scope of the CSS files' application areas. I am trying eXtremeComponents following *David G. Friedman's *advice*. *And,David G. Friedman,I've got another question for you: How can you limit the scope of the CSS files ?Any table(including the table which is not the display-tag table) will be applied to the same CSS if I use display-tag's CSS file as following: .. /head link rel=stylesheet type=text/css href=css/maven-base.css link rel=stylesheet type=text/css href=css/maven-theme.css link rel=stylesheet type=text/css href=css/site.css link rel=stylesheet type=text/css href=css/screen.css body **... Thanks a lot.
Re: JSP TAG Issue - can't find bean in JSP!
Straight from the doc- The logic:match ... tag perform a pattern matching operation on the variable specified in the tag where value would be some hardcoded string or you can compare to a property I am not familiar with the implementation of a bean (attribute) in the value clause Anyone else? Martin- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: J Gotsch [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Sunday, May 21, 2006 6:40 PM Subject: JSP TAG Issue - can't find bean in JSP! Hello, I am trying to compare 2 values within a JSP using a logic:match tag as illustrated below: % String menuRole = null; % % menuRole=SUPER % logic:match name=%=menuRole% value=% =LookupConstants.SUPER% /logic:match //note that LookupConstants.SUPER returns SUPER. However, I get the following error whenever accessing the JSP: 2006-05-21 14:44:17,700 [HttpRequestHandler-1635615] ERROR org.apache.struts.taglib.tiles.InsertTag.doEndTag - ServletExcept ion in '/WEB-INF/pages/menu.jsp': Cannot find bean: SUPER in any scope. Can you please let me know what I'm doing wrong? How can I use the menuRole variable in a compare tag? - Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP TAG Issue - can't find bean in JSP!
I think the issue is the name attribute. Martin Gainty [EMAIL PROTECTED] wrote: Straight from the doc- The tag perform a pattern matching operation on the variable specified in the tag where value would be some hardcoded string or you can compare to a property I am not familiar with the implementation of a bean (attribute) in the value clause Anyone else? Martin- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: J Gotsch To: Struts Users Mailing List Sent: Sunday, May 21, 2006 6:40 PM Subject: JSP TAG Issue - can't find bean in JSP! Hello, I am trying to compare 2 values within a JSP using a logic:match tag as illustrated below: name= value= //note that LookupConstants.SUPER returns SUPER. However, I get the following error whenever accessing the JSP: 2006-05-21 14:44:17,700 [HttpRequestHandler-1635615] ERROR org.apache.struts.taglib.tiles.InsertTag.doEndTag - ServletExcept ion in '/WEB-INF/pages/menu.jsp': Cannot find bean: SUPER in any scope. Can you please let me know what I'm doing wrong? How can I use the menuRole variable in a compare tag? - Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Be a chatter box. Enjoy free PC-to-PC calls with Yahoo! Messenger with Voice.
Re: HELP:I've got a new problem when I tried to use struts-menu in my Tiles using display-tag.
You are not going to adjust the scope of a css file, but you will have to change your HTML to give the browser some means of telling your two tables apart, and then adjust your css accordingly. Most often, this is done by putting a class on the html, e.g. td class=menuClass. Then, your css could be: td.menuClass {this style would only be applied to the menu td} td.displayTagClass {this style would only be applied to the display tag td} I have not used either Struts-Menu or DisplayTag, so I do not know if you can specify css classes to use in the HTML they generate. I am guessing that you can, but, even if you cannot, you can still apply css to precise areas by containing them in other elements, and writing your css accordingly. Here is a quick example: html head style table { font-family:arial,helvetica} #foo table { color:red} #bar table { color:green} /style /head body div id=foo table trtdI am red arial/td/tr /table /div div id=bar table trtdI am green arial/td/tr /table /div /body /html In this page, all tables are arial,hevetica, but only tables inside the foo element are red, and only tables inside the bar element are green. You have to alter your HTML to give css knoweldge of where to apply rules, and then change your css in ways like these so that they only apply to the areas of the page that you need. There are other methods, as well, but a full discussion of css inheritance is beyond the scope of this list, and probably my abilities as well :) Here is a good link as a starting point: http://www.simplebits.com/notebook/2003/04/15/css_inheritance.html hth, Greg On 5/21/06, M.Liang Liu [EMAIL PROTECTED] wrote: Greg Ludington,you've got the point. I tested many times to find it is the CSS file that made the strange rim.The CSS files apply to all the pages using display-tag.I do NOT know how to limit the scope of the CSS files' application areas. I am trying eXtremeComponents following *David G. Friedman's *advice*. *And,David G. Friedman,I've got another question for you: How can you limit the scope of the CSS files ?Any table(including the table which is not the display-tag table) will be applied to the same CSS if I use display-tag's CSS file as following: .. /head link rel=stylesheet type=text/css href=css/maven-base.css link rel=stylesheet type=text/css href=css/maven-theme.css link rel=stylesheet type=text/css href=css/site.css link rel=stylesheet type=text/css href=css/screen.css body **... Thanks a lot. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Team development with Eclipse and CVS
Hi, Here is one of the good links for using CVs with Eclipse https://eclipse-tutorial.dev.java.net/eclipse-tutorial/part2.html Try this out and help others to make life easy. Kind regards, Rakesh Bhat
Re: HELP:I've got a new problem when I tried to use struts-menu in my Tiles using display-tag.
*Greg Ludington* ,thanks for your particular advice. I continue to discuss this topic because the deadline of my little project is coming to hand in to my tutor. You way seems to be awesome .However,the display-tag uses css file (*.css) and I should import those four css files into my page for displaytag:table .../ And these css files would apply to the whole site which is NOT I would like. I include the struts menu page namelly menu.jsp and the usingdisplaytag.jsp to my Tiles page definition. I write a post in display-tag userlist to find no replay for two days. If i change the css files,the displaytag table's style would be changed.Andit would be the same as the struts menu as the css file I import in the usingdisplaytag.jsp page would apply to the whole site,no only that page! The problem is that I can NOT override it as I tried to name a different style for my struts menu. Strange,isn't it? Thanks for reading,sir. On 5/22/06, Greg Ludington [EMAIL PROTECTED] wrote: You are not going to adjust the scope of a css file, but you will have to change your HTML to give the browser some means of telling your two tables apart, and then adjust your css accordingly. Most often, this is done by putting a class on the html, e.g. td class=menuClass. Then, your css could be: td.menuClass {this style would only be applied to the menu td} td.displayTagClass {this style would only be applied to the display tag td} I have not used either Struts-Menu or DisplayTag, so I do not know if you can specify css classes to use in the HTML they generate. I am guessing that you can, but, even if you cannot, you can still apply css to precise areas by containing them in other elements, and writing your css accordingly. Here is a quick example: html head style table { font-family:arial,helvetica} #foo table { color:red} #bar table { color:green} /style /head body div id=foo table trtdI am red arial/td/tr /table /div div id=bar table trtdI am green arial/td/tr /table /div /body /html In this page, all tables are arial,hevetica, but only tables inside the foo element are red, and only tables inside the bar element are green. You have to alter your HTML to give css knoweldge of where to apply rules, and then change your css in ways like these so that they only apply to the areas of the page that you need. There are other methods, as well, but a full discussion of css inheritance is beyond the scope of this list, and probably my abilities as well :) Here is a good link as a starting point: http://www.simplebits.com/notebook/2003/04/15/css_inheritance.html hth, Greg On 5/21/06, M.Liang Liu [EMAIL PROTECTED] wrote: Greg Ludington,you've got the point. I tested many times to find it is the CSS file that made the strange rim.The CSS files apply to all the pages using display-tag.I do NOT know how to limit the scope of the CSS files' application areas. I am trying eXtremeComponents following *David G. Friedman's *advice*. *And,David G. Friedman,I've got another question for you: How can you limit the scope of the CSS files ?Any table(including the table which is not the display-tag table) will be applied to the same CSS if I use display-tag's CSS file as following: .. /head link rel=stylesheet type=text/css href=css/maven-base.css link rel=stylesheet type=text/css href=css/maven-theme.css link rel=stylesheet type=text/css href=css/site.css link rel=stylesheet type=text/css href=css/screen.css body **... Thanks a lot. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://blog.csdn.net/patriotlml Drink Drank Drunk http://my.donews.com/patriotlml/
Re: JSP TAG Issue - can't find bean in JSP!
Can Anyone tell me If I can compare my hardcoded value to a variable as I'm doing here. J Gotsch [EMAIL PROTECTED] wrote: Hello, I am trying to compare 2 values within a JSP using a logic:match tag as illustrated below: name= value= //note that LookupConstants.SUPER returns SUPER. However, I get the following error whenever accessing the JSP: 2006-05-21 14:44:17,700 [HttpRequestHandler-1635615] ERROR org.apache.struts.taglib.tiles.InsertTag.doEndTag - ServletExcept ion in '/WEB-INF/pages/menu.jsp': Cannot find bean: SUPER in any scope. Can you please let me know what I'm doing wrong? How can I use the menuRole variable in a compare tag? - Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better. - Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone. Get Yahoo! Messenger with Voice