Re: CSS background images, struts2
I made my CSS files out of JSPs, like so: <%@ page contentType="text/css"%> <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %> body { background-color: #ECEDF1; font-family: 'Lucida Grande',Geneva,Verdana,Arial,sans-serif; background-image: url(); margin-top: 0px; padding: 0; } And then called them like this: " type="text/css"> Who cares if it's ugly or whatever; I don't have broken images in my apps anymore. :) Andy - Original Message From: Andy Law To: user@struts.apache.org Sent: Tuesday, August 4, 2009 5:00:12 PM Subject: Re: CSS background images, struts2 Wes Wannemacher wrote: > > One thing I've done in the past is to treat CSS files as JSPs and use > s:url tags or EL expressions (${contextRoot}/images/image.gif)... > > Oh. That feels s dirty!!! There has to be a cleaner way to do it. Later, Andy -- View this message in context: http://www.nabble.com/CSS-background-images%2C-struts2-tp24811929p24816196.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Jetty / Apache / mod_proxy config with sslext
Hi all, I am using sslext in my Struts application to support http/https, and attempting to get all this to run on a Jetty server behind an Apache 2 web server. The application runs fine, but I am really running into trouble with my configuration, particularly since sslext forwards to the specified http (or https) port. This seems to almost always lead to a redirect loop error. Here is how I have my configuration setup: In my app (I'll call it 'sa' here), I have the http port is set to 80, with https set to 443 (all this is setup in struts-config.xml). In my httpd.conf, I have setup the following, which is the same in httpd-ssl.conf: ProxyPass /sa http://localhost:8080/sa ProxyPassReverse /sa http://localhost:8080/sa Jetty is running on port 8080. With the configuration above, requests going to /sa are routed to Jetty, both for http and https requests. This is where the trouble begins; sslext forwards to port 80, but then that forwards back to 8080 for Jetty, and so on and so on. However, if I set my http/https ports to 8080/8443 in my struts app, then my links are shown as http://server:8443/link.do in my web pages, which then does not utilize port 443 as desired (similarly for 8080). Anybody have any good ideas on how to get around this issue? Thanks, Andy PS: I apologize if this is more a Tomcat/config question, but it seems this issue is caused mainly by sslext. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Displaytag, number formatting, and sorting
Hi all, I am using displaytag, and I would like to have a sortable column of large numbers. I want to format these numbers (they're going to be dollar amounts, like 1,400.00, 6.99, and the like), but it seems that I cannot have the fancy number formatting and have that column sortable all at the same time. I either get a sortable column of numbers that look like this: 1400.00 33938.39 3450984530.83 .99 ...or a non-sortable column of nicely formatted numbers, like this: 1,400.00 33,938.39 3,450,984,530.83 .99 Has anyone been able to get the number formatting and the sorting to work together? If so, please tell me what I'm doing wrong. I've tried bean:write with a formatKey, html-el:rewrite, and whatever else to no avail. Thank you very much! Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Gracefully handling invalid paths
Hi all, I am wondering how I should handle invalid path situations within my Struts application. I want to be able to have a "catch-all" page whenever someone enters an invalid path so that they don't see that ugly Tomcat 404 page. How might I go about doing something like that? Thanks very much. Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Displaying bean values within tiles
Ok, let me get this straight. I'll go down the list and you see if I have each step correct: 1. Put a string in some scope, like the request scope: request.setAttribute("thispagetitle", results.getWhatever()); 2. In my "results" page, I want the title of that page to be the value that I sent back as "thispagetitle", so I will do this: Which will put the value of "thispagetitle" into "pagetitle". 3. Then, in my template file, whatever is put into "pagetitle" will be displayed: Results: ...which should display getWhatever() in step #1. Is that the way this thing works? Thank you for your help! Andy --- Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: Andy Engle [mailto:[EMAIL PROTECTED] > > Sent: Friday, August 13, 2004 12:05 PM > > To: [EMAIL PROTECTED] > > Subject: Displaying bean values within tiles > > > > > > Hi all, > > > > I hate to ask a real, boring, non-OT question on a Friday, but I am > > working with a Struts application in which I am using tiles > > to organize > > my views. What I want to be able to do is pass in a bean > > with a String > > (or, "string beans" for all you farmer types out there) into my > tiles > > setup and have that value displayed in my view. > > > > I have my tiles definitions in tiles-defs.xml, and of course I have > a > > file template.jsp which handles my layout. > > > > I have horsed around with using the tag with > the > > String value, but I can't seem to get that to work -- for the page > I > > want to display it on, it either displays the default value for the > > page as I have it set in tiles-defs.xml, or it doesn't print > anything > > at all. I suppose my question could/should be how and where would > I > > use this useAttribute tag, as it seems to be the solution to my > > problem. > > useAttribute: > Declare a Java variable, and an attribute in the specified scope, > using tile attribute value. > Java variable and attribute will have the name specified by 'id', or > the original name if not specified. > > So I believe for tiles def: > > > > > > > > > In the jsp page: > > > Will allow > > > > And yes, for this example I could have used name="title"/>. :) > > Not sure what you mean by pass in a bean to your tiles setup though. > > > > > > Thanks for your help, and I look forward to receiving your > responses. > > > > > > Best Regards, > > Andy > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Displaying bean values within tiles
Hi all, I hate to ask a real, boring, non-OT question on a Friday, but I am working with a Struts application in which I am using tiles to organize my views. What I want to be able to do is pass in a bean with a String (or, "string beans" for all you farmer types out there) into my tiles setup and have that value displayed in my view. I have my tiles definitions in tiles-defs.xml, and of course I have a file template.jsp which handles my layout. I have horsed around with using the tag with the String value, but I can't seem to get that to work -- for the page I want to display it on, it either displays the default value for the page as I have it set in tiles-defs.xml, or it doesn't print anything at all. I suppose my question could/should be how and where would I use this useAttribute tag, as it seems to be the solution to my problem. Thanks for your help, and I look forward to receiving your responses. Best Regards, Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] FW: Timothy J Theis is out of the office
Robert Taylor <[EMAIL PROTECTED]> wrote: > Should we call Mike, and tell him to tell Tim to unsubscribe when > he is out of the office :) I think we should. How annoying! Or we could have one of the list managers to unsubscribe him for us. Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: a fine example of an example
josh <[EMAIL PROTECTED]> wrote: > Hi, > > I have recently completed my first struts application and I am > beginning to feel comfortable with the framework. What I would like > now is to look at someone else's code for a really good example of > how things should be done. Hi Josh. I always thought a lot of the JPetStore demo found on the iBatis web site (http://www.ibatis.com/jpetstore/jpetstore.html), and then of course Rick Reumann's "Struttin' With Struts" site is pretty stellar as well (http://www.reumann.net/do/struts/main). I have learned a lot from those two sites, and still refer to code I got there from time to time. Also, Ted Husted has good stuff on his site at http://husted.com/struts/index.html, and also the example code and documentation on the Struts web site is also quite useful. Of course, there are many other good sites that have good code on them for your benefit, but these are the ones that seem to have been the most helpful to me. Hopefully they'll be helpful to you as well. Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Charts with struts
René_Zbinden <[EMAIL PROTECTED]> wrote: > Hi everybody > does anybody know a way to dynamically create a chart and display it > in a JSP. I will read the underlying data from a database. I used the stuff from jpowered.com and it works pretty well. I am not to the point yet where I have the licensed version yet, but the demo I got a week or two ago is working out pretty well with my Struts app. Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
MySQL, iBatis, and mysql_insert_id
Hi all, I am working on a Struts app where I will be slapping some stuff into a database table, and from there I will need to get an insert ID back. I am using a MySQL database, my database stuff is handled by iBatis, and I am assuming that I need to use the MySLQ command mysql_insert_id() to get that ID back so I can use it on secondary inserts which will need that ID as a key. Has anyone ever done anything like this before? If not, what sorts of methods did you use in this scenario to accomplish this? Thanks very much for your help, as always. Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: From bean into "for" loop
Hi all, Thanks to all of you who responded to my question. I certainly should be able to solve the problem now. I appreciate your responses! Have a great day. Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
From bean into "for" loop
Hi all, I am trying to do something as simple as writing a FOR loop with some information that I have in a bean, but this is proving to be quite a bit more cumbersome and difficult than I thought it would be. For some reason, everything I try seems to fail. Here is a short example of what I'm trying to do: <% for(int i = 0; i < ${productData.someCount}; i++) { %> // Write my text here <% } %> What am I missing here? If you could help me I'd appreciate it -- enough time wasted on this thing already. Thanks, Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ot] eclipse vs. IDEA
Hi all, I am wondering (for you Mac users out there) if IDEA is less of a resource hog than eclipse? When I fire up eclipse on my Mac it seems like that thing takes a lot o' juice. Is IDEA just as bad, or is it a little lighter? Thanks, Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Jobs
James Mitchell <[EMAIL PROTECTED]> wrote: > I am trying to find 10 descent struts developers to fill open > positions. Might any of those positions be in Chicago? Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Beer
Bill Siggelkow <[EMAIL PROTECTED]> wrote: > I like beer -- I can't get enough of it -- I prefer free beer. Have you been drinking excessive amounts within the last few hours prior to posting this message? Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: when not to use an ActionForm
[EMAIL PROTECTED] wrote: > Richard, > Its not necessary to use ActionForm, but it is always better to use > one(its my philosophy). But yes it will work the way you are doing > it. But i rather prefer a ActionForm which can also help in future > for any validation or in future if decided to add more attributes to > the form.. With this discussion in mind, I am wondering if there is any way I can use an ActionForm in the following scenario: I would like to have a list of fields, dynamically created, with names that have been dynamically created along with those fields. So, for example, I would have a series of input fields like this: The "field_" part of the name value will stay, but the number will change. With these field name values being so dynamic, is there any trick I can use to feed all this into an ActionForm? I don't think there is, unless I am missing something... Thanks, Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Easily printing out session values
Hi all, Is there a way to simply print out session values, such as through the bean:write tag or something like that? If there is, could you please share? It seems like it should be easily done, but I can't find anything that describes how to. Thanks! Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [FRIDAY OT] .net or websphere?
I agree. --- Mike Zatko <[EMAIL PROTECTED]> wrote: > Java is cooler. Use that in your debate. > > [EMAIL PROTECTED] wrote: > > >Hi, our group will have a debate over the superiority of .Net vs > that of > >Websphere.. I have never used .net. > >Can anyone give me any feedback on it? > > > >Any feedback is appreciated.. > >have a nice weekend! > > > > > >Julie > > > > > >= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = > = = > >This transmittal and any attachments may contain confidential, > privileged or sensitive information and is solely for the use of the > intended recipient. If you are not intended recipient, you are hereby > notified that you have received this transmittal and any such > attachments in error and any review, dissemination, distribution or > copying thereof is strictly prohibited. If you have received this > transmittal and any attachments in error please notify the sender and > immediately destroy the message and all its attachments. Any opinions > herein expressed may be those of the author and not necessarily of > Mizuho Corporate Bank, Ltd (the "Bank"). The Bank accepts no > responsibility for the accuracy or completeness of any information > herein contained. > >= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = > = = > > > > > > > > > > > -- > > Michael H. Zatko > WebSphere Developer > Boscov's Information Services > Work: 610-929-7317 > Home: 610-562-2407 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <>- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [FRIDAY] humour
Niiice. I thought this was pretty funny too, featured on google.com yesterday: http://www.google.com/jobs/lunar_job.html Andy --- Adam Hardy <[EMAIL PROTECTED]> wrote: > Since it's Friday and I felt in need of a little light relief, I > looked > through my collection of old humour-spam and found this, which is so > good I thought you listers would appreciate me sharing it here. > > The story behind the letter below is that there is this nutball who > digs things out of his back yard and sends the stuff he finds to the > Smithsonian Institute, labelling them with scientific names, > insisting that they are actual archaeological finds. This guy really > exists and does this in his spare time! This is the actual response > from the Smithsonian Institution. It is a masterful piece of > diplomacy. Bear this in mind next time you are trying to let someone > down gently. > > > > Smithsonian Institute > 207 Pennsylvania Avenue > Washington, DC 20078 > > Dear Sir: > Thank you for your latest submission to the Institute, labelled > "93211-D, layer seven, next to the clothesline post...Hominid > skull." We have given this specimen a careful and detailed > examination, and regret to inform you that we disagree with your > theory that it represents conclusive proof of the presence of Early > Man in Charleston County two million years ago. > > Rather, it appears that what you have found is the head of a Barbie > doll, of the variety one of our staff, who has small children, > believes to be "Malibu Barbie." It is evident that you have given a > great deal of thought to the analysis of this specimen, and you may > be quite certain that those of us who are familiar with your prior > work in the field were loathe to come to contradiction with your > findings. However, we do feel that there are a number of physical > attributes of the specimen which might have tipped you off to its > modern origin: > > 1. The material is moulded plastic. Ancient hominid remains are > typically fossilised bone. 2. The cranial capacity of the specimen > is approximately 9 cubic centimetres, well below the threshold of > even the earliest identified proto-homonids. 3. The dentition > pattern evident on the skull is more consistent with the common > domesticated dog than it is with the ravenous man-eating Pliocene > Clams you speculate roamed the wetlands during that time. This > latter finding is certainly one of the most intriguing hypotheses > you have submitted in your history with this institution, but the > evidence seems to weigh rather heavily against it. Without going > into too much detail, let us say that: > > A. The specimen looks like the head of a Barbie doll that a dog has > chewed on. B. Clams don't have teeth. > > It is with feelings tinged with melancholy that we must deny your > request to have the specimen carbon dated. This is partially due to > the heavy load our lab must bear in its normal operation, and partly > due to carbon dating's notorious inaccuracy in fossils of recent > geologic record. To the best of our knowledge, no Barbie dolls were > produced prior to 1956 AD, and carbon dating is likely to produce > wildly inaccurate results. > > Sadly, we must also deny your request that we approach the National > Science Foundation Phylogeny Department with the concept of > assigning your specimen the scientific name Australopithecus > spiff-arino. Speaking personally, I, for one, fought tenaciously for > the acceptance of your proposed taxonomy, but was ultimately voted > down because the species name you selected was hyphenated, and > didn't really sound like it might be Latin. However, we gladly > accept your generous donation of this fascinating specimen to the > museum. While it is undoubtedly not a Hominid fossil, it is, > nonetheless, yet another riveting example of the great body of work > you seem to accumulate here so effortlessly. You should know that > our Director has reserved a special shelf in his own office for the > display of the specimens you have previously submitted to the > Institution, and the entire staff speculates daily on what you will > happen upon next in your digs at the site you have discovered in > your back yard. > > We eagerly anticipate your trip to our nation's capital that you > proposed in your last letter, and several of us are pressing the > Director to pay for it. We are particularly interested in hearing > you expand on your theories surrounding the trans-positating > fillifitation of ferrous ions in a structural matrix that makes the > excellent juvenile Tyrannosaurus rex femur you recently discovered > take on the deceptive appearance of a rusty 9-mm Sears Craftsman > automotive crescent wrench. > > Yours in Science, > Harvey Rowe > Curator, Antiquities > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -
iBatis caching not working
Hi all, I can't get iBatis caching to work for anything. Worse yet, it seems that I am doing what the error messages tell me to fix, but still nothing. The message I have been getting is: org.jdom.JDOMException: Error on line 9: Attribute "implementation" must be declared for element type "cache-model". But I have "implementation" specified, as follows: Also, I have tried replacing "LRU" with "com.ibatis.db.sqlmap.cache.lru.LruCacheController", but I still get the same problem. Is there some other way I have to "declare" my implementation?! I have ibatis-db.jar and ibatis-sqlmap.jar in my /WEB-INF/lib directory, but that hasn't seemed to matter. What could I be doing wrong? Thanks in advance for your help. Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Handling parameters not in a form bean
Craig Berry <[EMAIL PROTECTED]> wrote: > Easily done; just grab them using getParameter on the request object > that's passed to your execute method. Ahh that sounds easy -- that must've been the one thing I didn't try. I'll give it a whirl. Thanks! Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Handling parameters not in a form bean
Hi all, I am wondering if there is a way that I can access submitted form information in an action that may not be a member of any form bean? Do name/value pairs submitted to an action *have* to be in a form bean? If they don't, how could they be accessed? I have a situation where my application will have a bunch of input fields, with names that begin with "prod_", and end with a number, like "prod_12", "prod_20", and so on. Putting all these "prod_"s in a huge formbean would be a pain, and it would be easier to just grab them directly. But everything I try seems to fail. Any suggestions would be appreciated. Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]