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? >

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

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: ActionError in Struts 1.2.7

2005-05-26 Thread David Johnson
warning" ) ); request.setAttribute("warnings", am); but it FEELS like a workaround thoughts? On 5/26/05, David Johnson <[EMAIL PROTECTED]> wrote: > > tyvm :> > > On 5/26/05, Niall Pemberton <[EMAIL PROTECTED]> wrote: > > > > It was

Re: ActionError in Struts 1.2.7

2005-05-26 Thread David Johnson
> Niall > > ----- Original Message - > From: "David Johnson" <[EMAIL PROTECTED]> > Sent: Friday, May 27, 2005 2:48 AM > > > I notice that ActionError is deprecated in this versio

ActionError in Struts 1.2.7

2005-05-26 Thread David Johnson
Hi all I notice that ActionError is deprecated in this version.. is there some document describing what we should now be doing? [javac] C:\Builds\riskGrid\src\com\company\struts\form\QueryResultsForm.java:101: warning: org.apache.struts.action.ActionError in org.apache.struts.actionhas been d

Re: not catching errors...

2005-05-26 Thread David Johnson
Wendy, Removing tiles from the equation has done the trick. I will emphasize that they should be using the supplied navigation scheme during training Thanks John On 5/26/05, Wendy Smoak <[EMAIL PROTECTED]> wrote: > > From: "David Johnson" <[EMAIL PROTECTED

Re: not catching errors...

2005-05-26 Thread David Johnson
of course defined in tiles-defs with the body part = " errorBody.jsp" Am I making sense? I <> want to use a tiles def here somehow or my **only** page that is all hardcoded will be error.jsp. thoughts? On 5/26/05, David Johnson <[EMAIL PROTECTED]> wrote: > >

Re: not catching errors...

2005-05-26 Thread David Johnson
ack button" I've provided since it cleans appropriate things up, etc... not the back browser button. thoughts? On 5/26/05, David Johnson <[EMAIL PROTECTED]> wrote: > > Thanks Wendy! I'll take a look at it... and likely still be confused :) > > On 5/26/05, Wendy S

Re: not catching errors...

2005-05-26 Thread David Johnson
Doesnt work. I just get the standard IE error page. bah! It's my program (the shock is almost too much) On 5/26/05, Andrew Thorell <[EMAIL PROTECTED]> wrote: > > See if you can pitch a 404 error. If that works, then it's not your > program's problem. > > Andrew > > --

Re: Creating a standard page to handle Error 500

2005-05-26 Thread David Johnson
also... I have a BaseAction all my actions are inherited from might I do whatever you recommend I do... there? :D On 5/26/05, David Johnson <[EMAIL PROTECTED]> wrote: > > Alright, I think I'm thick. > how would I do that? would I override doGet() and doPost()? >

Re: Creating a standard page to handle Error 500

2005-05-26 Thread David Johnson
Alright, I think I'm thick. how would I do that? would I override doGet() and doPost()? help! On 5/26/05, Martin Gainty <[EMAIL PROTECTED]> wrote: > > Andrew- > can intercept your ActionServlet's doGet or doPost method before process > method is invoked > If you want simple follow the instru

Re: not catching errors...

2005-05-26 Thread David Johnson
errors > correctly. However, we have seen issues when request are passed through > Apache. Be sure to test against Tomcat directly. > > > > -----Original Message- > From: David Johnson [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 26, 2005 2:51 PM > To: Struts U

Fwd: not catching errors...

2005-05-26 Thread David Johnson
I'm forwarding this to the Tomcat List as well, I'll forward any helpful responses for archival purposes. Thanks all! On 5/26/05, David Johnson <[EMAIL PROTECTED]> wrote: > > Wow > It's insane to me that this cant be done with Tomcat 4.1.31 > the Struts

Re: not catching errors...

2005-05-26 Thread David Johnson
pgrade to 5 or use the block in > web.xml instead to catch the java.lang.Exception. This is the workaround > you'll have to do if you don't upgrade. > > -Original Message- > *From:* David Johnson [mailto:[EMAIL PROTECTED] > *Sent:* Thursday, May 26, 200

Re: Redisplaying Information

2005-05-26 Thread David Johnson
I believe you can do this by setting the scope of the form bean associated with the form containing your field to "session", which also means you need to reset() it when you're done. like this: On 5/26/05, Andrew Thorell <[EMAIL PROTECTED]> wrote: > > I know has a redisplay option.

not catching errors...

2005-05-26 Thread David Johnson
Hi all I've added the following to my web.xml (thanks for the help) 500 /error.jsp 404 /error.jsp java.lang.Exception /error.jsp and I've added a global forward I invoke from "error.jsp" which points to my tiles def as follows the problem is when I cause an error (like stopping the d

Re: Creating a standard page to handle Error 500

2005-05-26 Thread David Johnson
I'd like to avoid modifying the struts code if I can On 5/26/05, Andrew Thorell <[EMAIL PROTECTED]> wrote: > > Where does one find this to modify the doGet method? I've yet to deal > with actually modifiying the actual servlet... > > Andrew > > On 5/26/05, Martin Gainty <[EMAIL PROTECTED]>

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

[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

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

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] > > > > > -

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]

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

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

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: 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

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 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

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: 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: 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: 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: 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
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: 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
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

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: 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

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
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
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
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

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: 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

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-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
** 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

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: 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

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
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
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
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-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-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:

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: 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

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
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
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
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

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: 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]

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

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: 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

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: [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: 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
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: 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: 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
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

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: [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 > > > >

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: 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 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..

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: 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

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: 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

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-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

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

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: 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

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: 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 > >

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: 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

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
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

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

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

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

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.

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: 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

  1   2   >