Changing Form Target in Action?

2005-07-11 Thread David Johnson
Hi all I have the following problem: I have a button on my form that uses javascript to change to form target before submitting because I'm exporting an RTF generated in my action to the new browser, as follows Create Graph (Popup) function setFormTarget(newTarget){ document.forms[0].targe

Re: Changing Form Target in Action?

2005-07-11 Thread David Johnson
have to make sure to preserve any relevant > state, since the onload handler will initiate a separate request. > > Can you make that work? > > Joe > > > At 1:49 PM -0400 7/11/05, David Johnson wrote: > >Hi all > > I have the following problem: > > I have a

Re: Changing Form Target in Action?

2005-07-11 Thread David Johnson
essary content in a new target. > > If your new target is a new window, pop-up blockers may foil this, > and of course, you'll have to make sure to preserve any relevant > state, since the onload handler will initiate a separate request. > > Can you make that work? >

Opinions : Need a good Struts & Tiles book

2005-02-11 Thread David Johnson
Hi all I'm in search of a good Struts and Tiles book. I have Struts experience but not tiles. I plan to use tiles though for a project I just started Any thoughts? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Re: Opinions : Need a good Struts & Tiles book

2005-02-11 Thread David Johnson
n the net) is very > good. > > > --- James Holmes <[EMAIL PROTECTED]> wrote: > > > Hey David, > > > > I wrote an article on Tiles for Oracle Magazine that might be helpful to > > you. You can get the link for it at: > > > > http://www.jamesh

Struts In Action - Still up to date?

2005-02-13 Thread David Johnson
Hi all I've looked at Ted Husted's book "Struts in Action" and I think it's what I'm looking for, but it's a bit long in the tooth, publushed in Nov 2004. Does anyone (including Ted) have any idea when a new version is going to come out with authoritative coverage of 1.2? Very much want this bo

Caching Appliction Level Data?

2005-02-14 Thread David Johnson
Hi All I have a need in an app I'm working on to cache data that is valid and shared across users, like standard country codes, region codes, industry codes... stuff like that. What's the best way to do that with my struts 1.2 application? Is there something built in that I'm not aware of that I

Re: Caching Appliction Level Data?

2005-02-14 Thread David Johnson
tegy often. Another option (besides a > ServletContextListener) for loading your application scope attributes is > a Struts PlugIn. > > Erik > > > Wendy Smoak wrote: > > >From: "David Johnson" <[EMAIL PROTECTED]> > > > > > >>I have a

Re: Caching Appliction Level Data?

2005-02-14 Thread David Johnson
> > A PlugIn works nicely as well. I am not sure which is the recommended > Struts practice. > > > --- Wendy Smoak <[EMAIL PROTECTED]> wrote: > > > From: "David Johnson" <[EMAIL PROTECTED]> > > > I have a need in an app I'm worki

Re: Caching Appliction Level Data?

2005-02-14 Thread David Johnson
I see your points. We arent sure yet what version of Weblogic we'll be deploying to, but I'm developing in Tomcat. Sounds like an open question to me. Where would you point me to learn how to do this the ContextListener way? On Mon, 14 Feb 2005 11:10:19 -0800, Craig McClanahan <[EMAIL PROTECTED

Re: Caching Appliction Level Data?

2005-02-14 Thread David Johnson
low the existing one that does the loading up of my application wide data (country codes etc) Discuss P.S., I'm reading furiously in the "professional java server programming" book as I write this ha ha ha 14 Feb 2005 14:16:17 -0500, David Johnson <[EMAIL PROTECTED]> wrot

Re: Caching Appliction Level Data?

2005-02-14 Thread David Johnson
Config(config); > > Again, so long as this data isn't going to change, and it's not a huge > amount of data, that's all there is to it. I don't know if this would be > considered "best practice', but it's certainly "common practive" AFAIK :)

Re: Caching Appliction Level Data?

2005-02-14 Thread David Johnson
f how, when to > flush, what size... all with no or minimal coding. > > Data caching ...in Data Layer. > > .V > > David Johnson wrote: > > >Hi All > > > >I have a need in an app I'm working on to cache data that is valid and > >shared across

Re: Caching Appliction Level Data?

2005-02-14 Thread David Johnson
thing- what about the problem where some of the stuff I'd need in my listener is actually being set up in a struts plug-in (that's the way it is currently) On Mon, 14 Feb 2005 14:34:23 -0500 (EST), Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > On Mon, February 14, 2005 2:26

Re: Caching Appliction Level Data?

2005-02-14 Thread David Johnson
2005 14:47:00 -0500, Rick Reumann <[EMAIL PROTECTED]> wrote: > David Johnson wrote the following on 2/14/2005 12:54 PM: > > > I have a need in an app I'm working on to cache data that is valid and > > shared across users, like standard country codes, region codes, > &g

Re: Caching Appliction Level Data?

2005-02-17 Thread David Johnson
tti <[EMAIL PROTECTED]> wrote: > On Mon, February 14, 2005 2:26 pm, David Johnson said: > > Frank > > > > I see what you mean. I was assuming I'd just store the data in a > > hashtable or something in the Application Context > > That's what I thi

a *simple* tiles tutorial

2005-02-21 Thread David Johnson
All I'm searching for (as the title suggests) a simple Tiles tutorial. I have found the one by Cedric D, but I think it's assuming more knowledge than I have (http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf) Can anyone point me? -- -Dave [EMAIL PROTECTED]

Tiles - a reality check (contains many details) - Am I using this thing right?

2005-02-22 Thread David Johnson
Hi all I'm slowly figuring out the basics of Tiles, and I feel like its a good solution for my application. I want to make sure before I get to far that I'm thinking about things the right way. I have 1. a login page with a header, body and footer 2. Application itself which will contain a Hea

Re: Tiles - a reality check (contains many details) - Am I using this thing right?

2005-02-22 Thread David Johnson
rofile Editing page, so I create profileEditBody.jsp and a NEW definition in the tiles-defs file specifying only the TITLE and BODY ..a la Bue heres the question... how do I call this thing from an Action Class?!?!?! Argh On Tue, 22 Feb 2005 15:50:34 -0500, David Johnson <[E

Re: Tiles - a reality check (contains many details) - Am I using this thing right?

2005-02-22 Thread David Johnson
Yes. my template is : \WebRoot\jsp\layouts\siteLayout.jsp which contains a vanilla HTML table with in the proper places for nav, footer, header , and body. On Tue, 22 Feb 2005 13:57:56 -0700, Eric Lemle <[EMAIL PROTECTED]> wrote: > Did you create a template.jsp that inserts the header, footer,

Re: Where is page (now) to subscribe/unsubscribe to this list?

2005-02-22 Thread David Johnson
send an email to [EMAIL PROTECTED] that should do it. On Tue, 22 Feb 2005 16:02:39 -0500, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I have looked everywhere, at at least it seems like it, on the apache > site, but cannot find where I can subscribe to this list from another > email address.

Tiles Tabs Example - Has anyone used this?

2005-02-22 Thread David Johnson
Hi again Yes, I'm obsessed with Tiles. I admit it. Has anyone used the (really slick!) "Tabs" example you can see if you install the tiles exasmples locally by going to http://localhost:8080/tiles-documentation/examples/tabs.jsp By "used" I mean successfully extacted the associated code to run

CSS and Tiles

2005-02-28 Thread David Johnson
Hi all I have the following directory (partial shown) structure in my Struts/Tiles Web-app /webroot /webroot/jsp /webroot/layouts /webroot/styles the styles.css stylesheet is in "styles" and the layout is in ... not surprisingly, "layouts" What is the best way to get a reference for the CSS int

Re: CSS and Tiles

2005-02-28 Thread David Johnson
th the JSTL core library's URL tag > In my JSP: >"/> > > If you need to use a dynamic value for the stylesheets' name you could use > the JSTL's expression language. > > -Henrik > > David Johnson <[EMAIL PROTECTED]> > 02/28/200

Re: CSS and Tiles

2005-02-28 Thread David Johnson
a follow up... what's the corresponding tablib element look like for the c.tld taglib? <%@ taglib uri="http://jakarta.apache.org/struts/tags-html"; prefix="html" %> On Mon, 28 Feb 2005 14:42:40 -0500, David Johnson <[EMAIL PROTECTED]> wrote: > nope, tha

JSTL c:if question

2005-02-28 Thread David Johnson
a little off topic but.. I have a variable (a string named "mode") in request scope and I want to display something conditionally in the JSP. Right now, I have the following, which doesnt work. The error is 2: Illegal scope attribute without var in "c:if" tag. What am I doing wrong? first t

Re: CSS and Tiles

2005-02-28 Thread David Johnson
/jstl/core > It's defined in the c.tld taglib descriptor itself, see the uri sub > element. > > -Henrik > > David Johnson <[EMAIL PROTECTED]> > 02/28/2005 01:53 PM > Please respond to "Struts Users Mailing List" > >To: Struts Users Mailing

AppFuse - Impressions?

2005-03-02 Thread David Johnson
hi all I have been meaning to doeanload AppFuse after reading about it on this list (http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuse) but I havent yet. Has anyone used it? -- -Dave [EMAIL PROTECTED] - To unsubscribe, e-ma

Re: AppFuse - Impressions?

2005-03-02 Thread David Johnson
> > Steven > > -Original Message- >From: David Johnson [mailto:[EMAIL PROTECTED] >Sent: Wed 3/2/2005 10:03 AM >To: Struts Users Mailing List >Cc: >Subject: AppFuse - Impressions? > >hi all > >

Displaying a HashMap as a

2005-03-07 Thread David Johnson
Hi all I have a HashMap in my application context called "codes" that contains a bunch of key,value pairs where the key is an Integer representing the codeID and the value is a string representing the codeName I simply want to create a select box containing all the items in my HashMap (displaying

Re: Displaying a HashMap as a

2005-03-07 Thread David Johnson
...and... My apologies, but I thought it might help reinforce it in my mind if I wrote it all down. Thanks for the help Wendy! On Mon, 07 Mar 2005 09:48:35 -0700, Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "David Johnson" <[EMAIL PROTECTED]> > > I simpl

Tiles Controllers Info?

2005-03-07 Thread David Johnson
Hi all I was reading the thread about "eliminating setup actions" and the tiles controllers look like a good option for me as I'm using tiles everywhere. Has anyone used these and if so ewhere did you do to learn how to? the API is nice and provides good theory as to how they're used, but does a

Re: Eliminate Setup Actions

2005-03-07 Thread David Johnson
I just found this link which gives FAR more detail on Tiles Controllers --> http://www.theserverside.com/articles/article.tss?l=Tiles101 On Sat, 5 Mar 2005 13:15:44 -0600, Corey Probst <[EMAIL PROTECTED]> wrote: > If your app is using tiles, take a look at Tile controllers. > > http://struts.apa

Re: why complicate? was: Eliminate Setup Actions

2005-03-07 Thread David Johnson
I think a simple approach is using tiles Controllers. They're WAY simple. Having said that I might be over SIMPLIFIYING the problem http://www.theserverside.com/articles/article.tss?l=Tiles101 On Mon, 07 Mar 2005 14:23:07 -0500, Rick Reumann <[EMAIL PROTECTED]> wrote: > Ben Taylor wrote the foll

session.invaludate(); not working in LogoffAction

2005-03-07 Thread David Johnson
hi all have a logoff action, and inside it I do the following. // Clean up the session if there is one HttpSession session = request.getSession(); session.invalidate(); When I watch what's happening in the manager application (I'm using Tomcat) the number of sessions does not decrease, and I ca

Re: why complicate? was: Eliminate Setup Actions

2005-03-08 Thread David Johnson
Frank can you send us a link when you have something? I for one am waiting with bated breath :) D On Tue, 8 Mar 2005 01:12:18 -0500, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > In what way? > > -Original Message- >From: "Dakota Jack"<[EMAIL PROTECTED]> >Sent: 3/8/05 12:34:50

Fwd: session.invaludate(); not working in LogoffAction

2005-03-08 Thread David Johnson
oops meant to send this to the list as well. -- Forwarded message -- From: David Johnson <[EMAIL PROTECTED]> Date: Tue, 8 Mar 2005 09:15:52 -0500 Subject: Re: session.invaludate(); not working in LogoffAction To: Max Cooper <[EMAIL PROTECTED]> Well, it's int

Re: Displaying a HashMap as a

2005-03-08 Thread David Johnson
my thought was just to let the DB do the work on the sorting. Is that bad? On Mon, 7 Mar 2005 21:29:08 -0700, Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "James Mitchell" <[EMAIL PROTECTED]> > > I wouldn't use a Map, I would go with a List. Primarily for ordering. > > I use java.util.TreeMap

Error Messages from the Database - Simple method?

2005-04-07 Thread David Johnson
Hi all I have a similar need to a topic entitled "Load Message Resources from DB???" but only for ERROR messages, and quite honestly, I want the simplest approach possible. since my Error Messages and my other test fields currently share "ApplicationResources.properties" I'm a little trapped thou

Re: [resources] was: Re: RESEND: RE: Load message resources fromDB???

2005-04-07 Thread David Johnson
Hi This is sort of what I'm looking for as well. I sent a separate post about it, in fact. My goal is the simple substitution of whatever collection object type struts is using with one of the same type that I have loaded fomr a database table. I ***hate*** to tinker with the struts source code..

Re: Error Messages from the Database - Simple method?

2005-04-07 Thread David Johnson
Oy. I'm assuming that you're talking about the loadLocale() method within... org.apache.struts.util.PropertyMessageResources I see that inheritance wise, 1. PropertyMessageResources extends MessageResources 2. PropertyMessageResourcesFactory extends MessageResourcesFactory Logical. So, I'l

Re: [resources] was: Re: RESEND: RE: Load message resourcesfromDB???

2005-04-07 Thread David Johnson
resourcesfromDB??? > > The problem is that the collection is in a hashmap in the > propertiesMessageResource class. And it is private in there, so the only > real solution is your own custom MessageResource class. > > Al > > -Original Message- > From: David Johnso

Re: [resources] was: Re: RESEND: RE: Load message resourcesfromDB???

2005-04-07 Thread David Johnson
nal Message - > From: "David Johnson" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > Sent: Thursday, April 07, 2005 2:53 PM > Subject: Re: [resources] was: Re: RESEND: RE: Load message > resourcesfromDB??? > > > James > > > >

for an object that extends ArrayList in Application **and** Session

2005-04-13 Thread David Johnson
This may be off topic.,.. but I'll float it out there ... I have an object in memory that I would like to iterate through on my JSP page as follows: The object is in the Session , and it is a PortfolioBeanCollection which extends ArrayList. It contains a bunch of "PortfolioBean" objects, which ha

Re: for an object that extends ArrayList in Application **and** Session

2005-04-13 Thread David Johnson
My First attempt was: it outputs the proper number of tags, but is not preperly displaying the correct PortfolioBeanCollection.PortfolioBean.portfolioName value.. h On 4/13/05, David Johnson <[EMAIL PROTECTED]> wrote: > This may be off topic.,.. but I'll floa

Re: for an object that extends ArrayList in Application **and** Session

2005-04-13 Thread David Johnson
("namefield"))); } so I really just used the PortfolioBeanCollection as if it were a garden variety ArrayList does your comment still apply? On 4/13/05, Dave Newton <[EMAIL PROTECTED]> wrote: > David Johnson wrote: > > > > > > > > > > >it out

Re: for an object that extends ArrayList in Application **and** Session

2005-04-13 Thread David Johnson
Oh, and to answer the other question, I stored the PortfolioBeanCollection on the session under the key "userPortfolios" like this: PortfolioBeanCollection myPortfolios= loadUserPortfolios(userID); session.setAttribute("userPortfolios",myPortfolios); On 4/13/05, David Johns

Re: [OT: JSTL] Re: for an object that extends ArrayList in Application **and** Session

2005-04-13 Thread David Johnson
y example has another later. I might be babbling. Does that make sense? On 4/13/05, Dave Newton <[EMAIL PROTECTED]> wrote: > David Johnson wrote: > > >that makes sense, but the individual portfolios (the members of the > >PortfolioBeanCollection) dont

Re: forEach> for an object that extends ArrayList in Application **and** Session

2005-04-13 Thread David Johnson
bingo, that was it. Thank you! On 4/13/05, Abdullah Jibaly <[EMAIL PROTECTED]> wrote: > try: > > > > > > -Abdullah > > -----Original Message- > From: David Johnson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 13, 2005 2:46 PM > T

Re: [OT: JSTL] Re: for an object that extends ArrayList in Application **and** Session

2005-04-13 Thread David Johnson
Bingo, that was it. The link you sent dealt with exatly what I was talking about. Thank you sir. :) On 4/13/05, David Johnson <[EMAIL PROTECTED]> wrote: > Hey > > That totally makes sense, and I definitely see hot to iterate through > a collection of Strings or other stra

Re: [OT: JSTL] Re: for an object that extends ArrayList in Application **and** Session

2005-04-13 Thread David Johnson
makes total sense. thanks a lot :) On 4/13/05, Dave Newton <[EMAIL PROTECTED]> wrote: > David Johnson wrote: > > >That totally makes sense, and I definitely see hot to iterate through > >a collection of Strings or other straightforward things, but what I'm

Re: Error Messages from the Database - Simple method?

2005-04-14 Thread David Johnson
Thank you. This is something I havent gotten to yet (trying to talk the client ouf ot if given the time contraints, of course) but thank you. I will no doubt make use of it!! On 4/14/05, David Johnson <[EMAIL PROTECTED]> wrote: > -- Forwarded message -- > From: Fog

a Form with different actions actions

2005-04-15 Thread David Johnson
All I have a large page with a form on it that I need to submit to diffferent actions depending on that the user clicks. For example, I have on this page 0. a list of items the user can select 1-->n of (using checkboxes) 1. a list of graph types, with a "graph chosen now" button (user chooses th

Re: a Form with different actions actions

2005-04-15 Thread David Johnson
s a possibility to use > LookupDispatchAction class. Don't forget to map the keys. > > On 4/15/05, David Johnson <[EMAIL PROTECTED]> wrote: > > All > > > > I have a large page with a form on it that I need to submit to > > diffferent actions depending on

Re: a Form with different actions actions

2005-04-15 Thread David Johnson
the methods I've created (with the same signature as the execute() method arent being called, for example: my "report" submit button html is now Run Report but the "report" method isnt being called what did I miss? Ted? On 4/15/05, David Johnson <[EMAIL PROTECTED]

nested within a Help!

2005-04-15 Thread David Johnson
Hi all I have the following, with the goal being to allow the user to select multiple portfolios, which I can then access in the action class. JSP: this prints out a checkbox, then thename of the current portfolio from the "userPortfolios" collection. The problem is that in the render

Re: nested within a Help!

2005-04-15 Thread David Johnson
have not looked into how to use them in the current environment > (WebSphere Studio Application Developer). > > - Glenn > > David Johnson <[EMAIL PROTECTED]> > 15/04/2005 12:42 PM > Please respond to "Struts Users Mailing List" > >To: Struts

Re: nested within a Help!

2005-04-15 Thread David Johnson
AIL PROTECTED]> wrote: > Here is what I know: > http://struts.apache.org/faqs/struts-el.html > http://struts.apache.org/userGuide/building_view.html section 3.4.6. > > HTH, > Glenn > > David Johnson <[EMAIL PROTECTED]> > 15/04/2005 12:52 PM > Pl

Re: nested within a Help!

2005-04-15 Thread David Johnson
Also if I'm using the Struts-EL version of the tags do I simply REMOVE the references to the old struts tags, or is it proper for them to coexist? I assume they ca coexist since not all of them have been ported. -D On 4/15/05, David Johnson <[EMAIL PROTECTED]> wrote: > This look

Re: nested within a Help!

2005-04-15 Thread David Johnson
Where do you get all the struts-el stuff? dos it come bundles with Struts 1.2.4? On 4/15/05, Slattery, Tim - BLS <[EMAIL PROTECTED]> wrote: > > if I'm using the Struts-EL version of the tags do I simply > > REMOVE the references to the old struts tags, or is it proper > > for them to coexist? I as

Re: nested within a Help!

2005-04-15 Thread David Johnson
OH MY GOD IT WORKS For Future Reference: OLD: NEW: I have to admit... I'm actually stunned as hell that this worked ;) I am now mixing JSTL, Struts-EL and Struts (garden variety) tags. Does this eem strange or like S.O.P? /cheer On 4/15/05, Slattery, Tim - BLS <[EMA

Dispatch Action Strangeness

2005-04-15 Thread David Johnson
Hi there I thought I'd break this into its own thread. I'm trying to implement a DispatchAction as discussed by Ted Husted here --> http://husted.com/struts/tips/002.html I have done the following 1. changed the html:submit to the following (along with the necassary javascript) Run Graph 2. Cr

Re: Dispatch Action Strangeness

2005-04-15 Thread David Johnson
I saw that after I sent it. I have changed it to inherit from org.apache.struts.actions.DispatchAction (actually my BaseAction inherits from DispatchAction) but the methods still arent being called. strange right? On 4/15/05, Dave Newton <[EMAIL PROTECTED]> wrote: > David Johnson wrote:

Re: Dispatch Action Strangeness

2005-04-15 Thread David Johnson
in my HTML I have in my struts config (for the appropriate action) I have parameter="dispatch" Is there something else I need? On 4/15/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > David Johnson wrote the following on 4/15/2005 3:21 PM: > > I saw that after I sent

Re: Dispatch Action Strangeness

2005-04-18 Thread David Johnson
on inherit from org.apache.struts.actions.DispatchAction (actually my BaseAction inherits from it... that wouldnt make a diffference though correct? On 4/15/05, David Johnson <[EMAIL PROTECTED]> wrote: > in my HTML I have > > > > in my struts config (for the appropriate action) I have >

Re: Dispatch Action Strangeness

2005-04-18 Thread David Johnson
ote: > IIRC you wanted the "graph" method to be called because you had > "set('graph')" in an onclick handler. What does the "set('graph')" > method do? Does it modify the "dispatch" form field? > > On 4/18/05, David Johns

Re: Dispatch Action Strangeness

2005-04-18 Thread David Johnson
yeah. this is my Action mapping On 4/18/05, Dave Newton <[EMAIL PROTECTED]> wrote: > David Johnson wrote: > > >yes, exactly. If changed the value of the hidden field to "graph" > > > >That part is working too. If I do a log.debug > >("di

Re: Dispatch Action Strangeness

2005-04-18 Thread David Johnson
o. If I do a log.debug > > ("dispatch="+theForm.getDispatch()); > > > > it puts out the right value (graph or whatever I clicked in the form) > > > > On 4/18/05, Hubert Rabago <[EMAIL PROTECTED]> wrote: > > > IIRC you wanted the "graph&q

Re: Dispatch Action Strangeness

2005-04-18 Thread David Johnson
which part to you need to see? I'm s thankful for any help :) On 4/18/05, Dave Newton <[EMAIL PROTECTED]> wrote: > > Hubert Rabago wrote: > > >Does it have an execute() method? If so, what does the execute method do? > > > > > Yeah--what you gave isn't enough. In order to diagnose we must s

Losing request attributes after validate()

2005-05-06 Thread David Johnson
Hi all I apprear to be losing my request parameters after a form submit that fails in the Validate() of my Form. Has anyone seen this before? It works fine in all the other areas of the application, it's just this one page. the result is when I come back t the page all the data is blank as if I

Re: Losing request attributes after validate()

2005-05-06 Thread David Johnson
** populated On 5/6/05, Liu, Benson <[EMAIL PROTECTED]> wrote: > > You need to include hidden files for any static text properties. > > Typically I have /> > > NOTE: this should not be done for input fields > > > > -Ben > > -Original M

Re: Losing request attributes after validate()

2005-05-06 Thread David Johnson
a I see. Soam I adding scrope="session" to the Form Bean or the Action Mapping? On 5/6/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > > I do have redirect="true" set on the actionMapping that brings me to > this > > page, and tthe browser should be caching field values. > > > > the

Re: Losing request attributes after validate()

2005-05-06 Thread David Johnson
the request to provide all the same data the original page was provided with but I'm seeing that's not the case. :( On 5/6/05, David Johnson <[EMAIL PROTECTED]> wrote: > > a I see. Soam I adding scrope="session" to the Form Bean or the Action > M

Re: Losing request attributes after validate()

2005-05-08 Thread David Johnson
t;/> pulls value from portfolioName, you need to > check where this object is stored, in what scope. You are right, if > this object has request or page scope, then it will be wiped out after > redirect. > > Michael. > > On 5/6/05, David Johnson <[EMAIL PROTECTED]> wrote

question

2005-05-11 Thread David Johnson
Hey all I've got the followiong directory structure for my web-app C:\Builds\riskGrid\WebRoot\jsp (all JSP's are here) C:\Builds\riskGrid\WebRoot\jsp\images (all images) This is the image code (in a JSP in the jsp directory) that results in the image not being found. What am I missing?? I cant

Re: question

2005-05-11 Thread David Johnson
Interesting twist, when I add in it gets translated into this: http://localhost:8080/myApp/jsp/layouts/siteLayout.jsp";> So, does that mean the base location is the "layouts" dir? Obviously I'm using Tiles in this app. Thoughts? On 5/11/05, David Johnson <[EMAIL P

Re: question

2005-05-11 Thread David Johnson
So, does that mean the base location is the "layouts" dir? Obviously I'm > using Tiles in this app. > > Thoughts? > > On 5/11/05, David Johnson <[EMAIL PROTECTED]> wrote: > > > > Hey all > > > > I've got the followiong directory

Re: question

2005-05-11 Thread David Johnson
ow can I embed the above el stuff in a notmal img tag, and also within a JS call? On 5/11/05, Wendy Smoak <[EMAIL PROTECTED]> wrote: > > From: "David Johnson" <[EMAIL PROTECTED]> > > Any thoughts on this? I tried > > > but that is an illegal argument

Re: question

2005-05-11 Thread David Johnson
another tidbit, the following link displays the gif file properly http://localhost:8080/myApp/jsp/images/portGraph.gif On 5/11/05, David Johnson <[EMAIL PROTECTED]> wrote: > > The full img tag includes some el tags which werent coming out properly > with a normal img tag :( I t

Re: question

2005-05-11 Thread David Johnson
');javascript:setPortName('');document.forms[0].submit();"/>  works like a charm. so no more html-el:img for me. On 5/11/05, Wendy Smoak <[EMAIL PROTECTED]> wrote: > > From: "David Johnson" <[EMAIL PROTECTED]> > > the URL

Opening a NEW browser for a 2nd content type from an action

2005-05-12 Thread David Johnson
Hey all is it possible to forme my struts app to open up a second browser window for the purpose of streaming a different content type (like a pdf file) into it while maintaining the page in the original browser? Essentially, I have a nicely rendered HTML report in browser "a" and when the use

Re: Opening a NEW browser for a 2nd content type from an action

2005-05-12 Thread David Johnson
Script doesn't run automatically. > > Thanks, > Paul > > -Original Message- > From: David Johnson [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 12, 2005 10:31 AM > To: Struts Users Mailing List; CCNY > Subject: Opening a NEW browser for a 2nd content type from

Re: Best practice for redirecting on session timeout?

2005-05-12 Thread David Johnson
I have a method in my BaseAction called "boolean checkAuth(request)". then in every Action I write I code this at the top // Check if session is active, if not redirect to login page if( !checkAuth( request )){ log.info("*** Session has timed out ***"); errors.add( ActionErrors.GLOBAL_ERROR, new

Re: Opening a NEW browser for a 2nd content type from an action

2005-05-12 Thread David Johnson
our either going to be (a) doing a real export of an > HTML file if it does exist or (b) re-running the report and generating the > appropriate output type. > > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technologies > http://www.omnytex.c

Re: Opening a NEW browser for a 2nd content type from an action

2005-05-12 Thread David Johnson
whoa that's simple. I'm trying that first Thanks One things though, I'll have to set the "target" conditionally, only when the user clicks "PDF" or "EXCEL" since I dont **always** want it opening a new window... function setTarget(target) { document.forms[0].target=target; } On 5/12/05, A

Re: Opening a NEW browser for a 2nd content type from an action

2005-05-12 Thread David Johnson
Cool. Thank you all. I'll post a wrap up to this thread summarizing what I've done when it's working. Thank you all!!! On 5/12/05, David Johnson <[EMAIL PROTECTED]> wrote: > > Cool. Thank you all. I'll post a wrap up to this thread summarizing what > I&#x

Re: Best practice for redirecting on session timeout?[Scanned]

2005-05-12 Thread David Johnson
So, how what would you all say about my method? does this seem to be a valid method for controlling this? On 5/12/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > > Good point Aladin... > > However, I would take this a step further... > > in pre-1.3 Struts, you might not want to implement yo

Re: how to validate when the form-property is of type="java.lang.String[]"

2005-05-12 Thread David Johnson
What exactly is the problem you're having? Normally I'd say you'd loop through the array of values passed in thru the form bean On 5/12/05, m Komma <[EMAIL PROTECTED]> wrote: > > Hi, > I have a problem using validatorplugin for multiselection box. > my filed is of type type="java.lang.String[]"

Re: Opening a NEW browser for a 2nd content type from an action

2005-05-12 Thread David Johnson
do? On 5/12/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > > Ugh, I always forget the simple target attribute! Absolutely agreed, > that's probably the best approach. > > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technologies >

Re: Opening a NEW browser for a 2nd content type from an action

2005-05-12 Thread David Johnson
et.write(out); // I get my PDF through thtis socket do I need to close() it explicitly? On 5/12/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > > Return null. That's it (seriously!) Null effectively means "do not > forward to anything, the response is completely formed&qu

Opening a Form in a New Window - Help!

2005-05-19 Thread David Johnson
Hi there I'm trying to open up a new window from my struts application which will contain "help" information. The link opening the window looks like this so far http://help.do>" target="_help">Help What I'd like to do is specify the following options window.height=400; window.width=300; windo

Re: Opening a Form in a New Window - Help!

2005-05-19 Thread David Johnson
I got it. My link is as follows: Help which calls the following: function openHelpWindow(){ var helpWindow = window.open("","_help", "height=300,width=450,status=yes,toolbar=no,menubar=no,location=no"); helpWindow.location = "./help.action"; } On

Re: Opening a Form in a New Window - Help!

2005-05-20 Thread David Johnson
to said window... > can you explain that a different way because I'm not sure what your > trying to accomplish from that. > > Frank > > David Johnson wrote: > > Hi there > > I'm trying to open up a new window from my struts application which will > > c

Re: JSTL and Struts together

2005-05-20 Thread David Johnson
you can use the control to accomplish just that I'm doing that in a bunch of places. On 5/20/05, Shey Rab Pawo <[EMAIL PROTECTED]> wrote: > > etc. > > On 5/19/05, Suresh Khatri <[EMAIL PROTECTED]> wrote: > > <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c"/> > > <%@ taglib uri="/ta

Template Library? What is it??

2005-05-20 Thread David Johnson
Hi there all Please forgive the stupid question, but I'm working with a client who is telling me that I am not using the "template library" in my struts application. The application uses struts and tiles, with all the page definitions stored in a tiles-defs.xml file I thought the Template Li

How to I check what version of struts I have?

2005-05-20 Thread David Johnson
Is there a file in the struts.jar I can check? -- -Dave [EMAIL PROTECTED]

Re: Template Library? What is it??

2005-05-20 Thread David Johnson
t; > -- > James Mitchell > Software Engineer / Open Source Evangelist > Consulting / Mentoring / Freelance > EdgeTech, Inc. > http://www.edgetechservices.net/ > 678.910.8017 > AIM: jmitchtx > Yahoo: jmitchtx > MSN: [EMAIL PROTECTED] > > > > > -

Re: How to I check what version of struts I have?

2005-05-20 Thread David Johnson
on-Vendor: Apache Software Foundation > Specification-Vendor: Apache Software Foundation > > -ni3 > -Original Message- > From: David Johnson [mailto:[EMAIL PROTECTED] > Sent: 20 May 2005 15:38 > To: Struts Users Mailing List > Subject: How to I check what version of struts

[OT] Help with REgular Expressions in Validate()

2005-05-20 Thread David Johnson
Hi all I markled this OT because it's not a Struts question strictly speaking. what I'm trying to do is disallow names that contain spaces or special characters in the validate() method of my ActionForm Code: String pattern = "\\W+"; log.debug("Testing validity of name "+name+ " against "+patter

Creating a standard page to handle Error 500

2005-05-26 Thread David Johnson
Hey all I recently added the following to my JSP pages to force them not to be cached: <% response.setHeader("Pragma","no-cache");%> <% response.setHeader("Cache-Control","no-store");%> <% response.setDateHeader("Expires",-1);%> the result is that if the user hits "back" then "reload" they g

  1   2   >