Re: Bizarre sporadic problem with streaming a stylesheet. [Solved?]

2010-09-21 Thread Dave Belfer-Shevett
So this got weird. I tried everything. Rewrote the method, changed the responses, put debugging all over - nada. I could reproduce the problem by rapid-firing ^R at the browser, and the home would render with the stylesheet about half the time. It was interesting seeing it flip back and for

RE: Bizarre sporadic problem with streaming a stylesheet.

2010-09-21 Thread Dave Belfer-Shevett
e to source the stylesheet (in the final version, hte stylesheet will be assembled). The short version is the stylesheet is not static - it's being generated programmatically, and being fed back into the HttpServletResponse directly. -d -- ---.----.-----

Re: Bizarre sporadic problem with streaming a stylesheet.

2010-09-21 Thread Dave Belfer-Shevett
On Tue, 21 Sep 2010, Dale Newfield wrote: On 9/21/10 12:36 AM, Dave Belfer-Shevett wrote: It shouldn't matter, but the browser might be deciding something wonky based on the fact that that url doesn't end .css...you could either add css as an action extension or maybe use url

Re: Bizarre sporadic problem with streaming a stylesheet.

2010-09-21 Thread Dave Belfer-Shevett
On Tue, 21 Sep 2010, Rahul Mohan wrote: Did you take a look at this request through Firebug? It might show some useful info. I haven't, but I'm not sure where this would pin it down. For example, if I use curl to pull the stylesheet rapid fire: curl http://localhost:8080/congo/public/getCon

Bizarre sporadic problem with streaming a stylesheet.

2010-09-20 Thread Dave Belfer-Shevett
Help me obi-wan struts-geeks. This one is puzzling me. I need to 'stream' a stylesheet out to the browser. Due to the app, that stylesheet is sort of generated on the fly from the database, so I can't just point the browser at a static file. In the document, I have: type="text/cs

Session variables in buttons - preselection and formatting?

2009-09-02 Thread Dave Belfer-Shevett
I have a twofold question. The first is I have a session variable called 'sendto' which contains a string ('registrant','none', or 'everyone'). When the page with the radio buttons is rendered, I want to preselect based on whatever the value in the session hash for 'sendto' is set to. Code:

Re: Simple redirect, OFF-site.

2009-02-16 Thread Dave Belfer-Shevett
thanks. -d -- ---..-------. Dave Belfer-Shevett \ KB1FWR \ JID: d...@jabber.stonekeep.com \ blog:planet-geek.com >'---. d...@homeport.org/ I intend to

Simple redirect, OFF-site.

2009-02-16 Thread Dave Belfer-Shevett
and have my Redirect.jsp have a ${target} in it How to do this? In short, how do I have a struts action redirect the users browser to an arbitrary (off-site) URL? -dbs -- -------..---. Dave Belfer-She

Tons of Could not find property messages - log4j is not helping?

2008-10-02 Thread Dave Belfer-Shevett
ncantation to turn this one off. Currently I'm using: but that is doing nothing (i've tried various incantaions on the name line, none have any effect). Help please? -- ---..-------. Dave Belfer-Shevett \ KB1FWR \ J

Re: 'include' struts.xml stuff is broken?

2008-07-16 Thread Dave Belfer-Shevett
On Wed, 16 Jul 2008, Dave Newton wrote: --- On Tue, 7/15/08, Dave Belfer-Shevett <[EMAIL PROTECTED]> wrote: [...] the documentation page for this, naturally, provides no examples of what the include file should look like. "Naturally?" Sniping aside: the "include" do

'include' struts.xml stuff is broken?

2008-07-15 Thread Dave Belfer-Shevett
tonekeep.com/4957 Note that says "no grammar found". Adding the DTD says "you need a package name in your struts block" - etc etc etc. It never really resolves. Can someone show me an setup that actually works? -- ---..---.

Re: Referring to Properties object via OGNL?

2008-07-14 Thread Dave Belfer-Shevett
On Monday 14 July 2008 00:30:19 Jeromy Evans wrote: > Dave Belfer-Shevett wrote: > > In my JSP, I have: > > Preferred cid is > > This expression reads "evaluate perferredcid, then get the value of > #attr.properties[evalresult]". > > I expect you

Re: Referring to Properties object via OGNL?

2008-07-13 Thread Dave Belfer-Shevett
.. help? -d -- ---..-------. Dave Belfer-Shevett \ KB1FWR \ JID: [EMAIL PROTECTED] \ blog:planet-geek.com >'---. [EMAIL PROTECTED]/ Windows98 Err#021 - Error Parsing Error\ ---<L

RE: Referring to Properties object via OGNL?

2008-07-13 Thread Dave Belfer-Shevett
On Sun, 13 Jul 2008, Martin Gainty wrote: access it with <% ValueStack stack = getStack(); stack.findValue("#attr.someKey"); %> http://www.docjar.com/docs/api/java/util/Stack.html where you put the value.. HashSet,HashMap or Property is up to you.. Doesn't this violate the 'scriptlets are bad'

Referring to Properties object via OGNL?

2008-07-13 Thread Dave Belfer-Shevett
t to it via #attr - what's the proper syntax? Java-wise, it's Property p = new Properties; String value = p.getProperty("somekey") but naturally I don't want to do this in a scriptlet. Help? -- -------..---. Dave B

Re: Wildcard mappings with subdirectories / folders?

2008-06-18 Thread Dave Belfer-Shevett
On Wed, 18 Jun 2008, Dave Belfer-Shevett wrote: Hi folks - I'm trying to divide up my struts app into subdirectories (the application has a 'public' interface, and an 'administrative' interface called 'coconut'. Don't ask). And here I am answering my o

Wildcard mappings with subdirectories / folders?

2008-06-18 Thread Dave Belfer-Shevett
Hi folks - I'm trying to divide up my struts app into subdirectories (the application has a 'public' interface, and an 'administrative' interface called 'coconut'. Don't ask). I'd like to have 2 wildcard actions that pull JSPs from different subdirectories. (coconut and public) Here's my conf

Re: ApplicationAware not triggering setApplication? Or, how best to reference a Connection pool?

2008-06-11 Thread Dave Belfer-Shevett
Lukasz Lenart wrote: My understanding is that the webwork API for ApplicationAware means that the interceptor will have it's setApplication(Map applicationData); triggered when the interceptor is run, thereby giving me access to the applicationcontext. ApplicationAware should be used with Actio

ApplicationAware not triggering setApplication? Or, how best to reference a Connection pool?

2008-06-11 Thread Dave Belfer-Shevett
Hi folks - i'm trying to write an interceptor in struts2 that has access to the ApplicationMap in the application context. My understanding is that the webwork API for ApplicationAware means that the interceptor will have it's setApplication(Map applicationData); triggered when the interceptor

Noob question(s). Interceptor breaking forms, and Connection handling?

2008-04-07 Thread Dave Belfer-Shevett
Hi folks, I have two questions, and I apologize for the n00b approach. I'm just teaching myself struts2, coming from a PHP background (but I've done plenty of JEE and Java Swing programming, so the language isn't completely alien :) Question 1... I have a Logon form that works fine without an