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 html:submit property=exportFlag onclick=set('export');setFormTarget('_export')

Re: Changing Form Target in Action?

2005-07-11 Thread David Johnson
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 button on my form that uses javascript to change to form target before submitting because I'm exporting an RTF generated in my action

Re: Changing Form Target in Action?

2005-07-11 Thread David Johnson
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? Joe At 1:49 PM -0400 7/11/05, David Johnson wrote: Hi all I have the following

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 get an error 500.

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

error-page not catching errors...

2005-05-26 Thread David Johnson
Hi all I've added the following to my web.xml (thanks for the help) error-page error-code500/error-code location/error.jsp/location /error-page error-page error-code404/error-code location/error.jsp/location /error-page error-page error-codejava.lang.Exception/error-code

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: action path=/SICAction name=sicForm scope=session input=page.portfolio

Re: error-page not catching errors...

2005-05-26 Thread David Johnson
the exception 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, 2005 2:39 PM *To:* Benedict, Paul C *Subject:* Re: error

Fwd: error-page 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 documents tell you to do exactly what I'm

Re: error-page not catching errors...

2005-05-26 Thread David Johnson
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 Users Mailing List Subject: Fwd: error-page not catching errors

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 instructions

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()? help! On 5/26/05, Martin

Re: error-page 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: error-page not catching errors...

2005-05-26 Thread David Johnson
? 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 Smoak [EMAIL PROTECTED] wrote: From: David Johnson [EMAIL PROTECTED] Can you tell me a little more about how you're setting this up

Re: error-page not catching errors...

2005-05-26 Thread David Johnson
or my **only** page that is all hardcoded will be error.jsp. thoughts? On 5/26/05, David Johnson [EMAIL PROTECTED] wrote: Oh, one more thing. what I'm really trying to avoid is the user using the back button, so I've added the following to my pages % response.setHeader(Pragma,no-cache

Re: error-page 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] I really want to use a tiles def

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

Re: ActionError in Struts 1.2.7

2005-05-26 Thread David Johnson
- From: David Johnson [EMAIL PROTECTED] Sent: Friday, May 27, 2005 2:48 AM I notice that ActionError is deprecated in this version.. is there some document describing what we should now be doing? - To unsubscribe, e

Re: ActionError in Struts 1.2.7

2005-05-26 Thread David Johnson
that I can do this: ActionMessages am = new ActionMessages(); am.add( ActionMessages.GLOBAL_MESSAGE, new ActionMessage( msg.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

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

2005-05-20 Thread David Johnson
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 contain help information. The link opening the window looks like this so far html:link action=help.do http://help.do http://help.do target=_helpHelp

Re: JSTL and Struts together

2005-05-20 Thread David Johnson
you can use the html-el:text value=${param.x}html-el:text control to accomplish just that I'm doing that in a bunch of places. On 5/20/05, Shey Rab Pawo [EMAIL PROTECTED] wrote: html-el:form etc. On 5/19/05, Suresh Khatri [EMAIL PROTECTED] wrote: %@ taglib

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

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
. http://www.edgetechservices.net/ 678.910.8017 AIM: jmitchtx Yahoo: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: David Johnson [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Friday, May 20, 2005 10:36 AM Subject: Template Library? What

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

2005-05-20 Thread David Johnson
-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 I have? Is there a file in the struts.jar I can check? -- -Dave [EMAIL PROTECTED] -- -Dave [EMAIL

[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 +pattern);

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 html:link action=help.do http://help.do target=_helpHelp/html:link What I'd like to do is specify the following options

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 user

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

2005-05-12 Thread David Johnson
, 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 an action Hey all is it possible to forme my struts app to open up a second

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
://www.omnytex.com On Thu, May 12, 2005 10:47 am, David Johnson said: hmm I dont think I understand. so instead of redirecting to an action mapping, just add the HTML myself, like you would if you were writing a servlet (no jsp) application? interesting. you're right, I dont need a nice tiles

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

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

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 form-property name=departments

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

2005-05-12 Thread David Johnson
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. Frank David Johnson wrote: Okay, I've got it opening

html-el:img 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: html-el:img question

2005-05-11 Thread David Johnson
Interesting twist, when I add in html:base/ it gets translated into this: base href=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 PROTECTED

Re: html-el:img question

2005-05-11 Thread David Johnson
Any thoughts on this? I tried html-el:img src=../../jsp/images/portGraph.gif but that is an illegal argument :( On 5/11/05, David Johnson [EMAIL PROTECTED] wrote: Interesting twist, when I add in html:base/ it gets translated into this: base href=http://localhost:8080/myApp/jsp

Re: html-el:img question

2005-05-11 Thread David Johnson
: From: David Johnson [EMAIL PROTECTED] Any thoughts on this? I tried html-el:img src=../../jsp/images/portGraph.gif but that is an illegal argument :( What is the URL in the browser window when it's trying to load the image? Images are requested separately by the browser after the page

Re: Losing request attributes after validate()

2005-05-08 Thread David Johnson
, 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: Hmm I'm now officially confused (and on a Friday no less). I've

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

Re: Losing request attributes after validate()

2005-05-06 Thread David Johnson
not be done for input fields html:text name=form property=property / !-- do not include a hidden field for this property -- -Ben -Original Message- From: David Johnson [mailto:[EMAIL PROTECTED] Sent: Friday, May 06, 2005 12:02 PM To: Struts Users Mailing List Subject: Losing request

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 weird thing is

Re: Losing request attributes after validate()

2005-05-06 Thread David Johnson
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 Mapping? On 5/6/05, Michael Jouravlev [EMAIL PROTECTED

Re: Dispatch Action Strangeness

2005-04-18 Thread David Johnson
my Action 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 html:hidden property=dispatch value=error/ in my struts config

Re: Dispatch Action Strangeness

2005-04-18 Thread David Johnson
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 Johnson [EMAIL PROTECTED] wrote: Any further insights on this? It seems I'm missing something simple here... I dont want

Re: Dispatch Action Strangeness

2005-04-18 Thread David Johnson
=page.invalidSession redirect=true/ forward name=combineFailed path=page.portfolio.summary redirect=true/ forward name=noDispatch path=page.portfolio.summary redirect=true/!-- FIXME go to real error page-- /action On 4/18/05, Dave Newton [EMAIL PROTECTED] wrote: David Johnson wrote: yes, exactly

Re: Dispatch Action Strangeness

2005-04-18 Thread David Johnson
PROTECTED] wrote: You've confirm that you've changed the action-mapping so that it is now using your new dispatch action? If that's correct, then I'd say you need to break at DispatchAction.execute() and step through it to see what's going on. Dennis David Johnson [EMAIL PROTECTED] 04

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

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

Re: a Form with different actions actions

2005-04-15 Thread David Johnson
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 that the user clicks. For example, I have on this page 0. a list of items

Re: a Form with different actions actions

2005-04-15 Thread David Johnson
(with the same signature as the execute() method arent being called, for example: my report submit button html is now html:submit property=runReportFlag onclick=set('report');Run Report/html:submit but the report method isnt being called what did I miss? Ted? On 4/15/05, David Johnson [EMAIL

html:multibox nested within a c:forEach 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: c:forEach var=portfolio items=${userPortfolios} html:multibox value= c:out value='${portfolio.portfolioName}'/ property=userPortfolio / c:out

Re: html:multibox nested within a c:forEach Help!

2005-04-15 Thread David Johnson
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 Users Mailing List user@struts.apache.org cc: (bcc: Glenn Deschenes/NAT/CMHC-SCHL/CA

Re: html:multibox nested within a c:forEach Help!

2005-04-15 Thread David Johnson
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 Please respond to Struts Users Mailing List To: Struts

Re: html:multibox nested within a c:forEach 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 looks like exactly what

Re: html:multibox nested within a c:forEach 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 assume

Re: html:multibox nested within a c:forEach Help!

2005-04-15 Thread David Johnson
OH MY GOD IT WORKS For Future Reference: OLD: c:forEach var=refPortfolio items=${refPortfolios} html:multibox value= c:out value='${portfolio.portfolioName}'/ property=userPortfolio / /c:forEach NEW: c:forEach var=refPortfolio items=${refPortfolios} html:multibox

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) html:submit

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

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: Fogleson, Allen [EMAIL

c:forEach 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 has

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

2005-04-13 Thread David Johnson
My First attempt was: c:forEach var=portfolio items=${userPortfolios} c:out value=${portfolioName}/br /c:forEach it outputs the proper number of br tags, but is not preperly displaying the correct PortfolioBeanCollection.PortfolioBean.portfolioName value.. h On 4/13/05, David

Re: c:forEach 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: c:forEach var=portfolio items=${userPortfolios} c:out value=${portfolioName}/br

Re: c:forEach 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 Johnson [EMAIL PROTECTED

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

2005-04-13 Thread David Johnson
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 really have a name, I just looped through my result set doing PortfolioBeanCollection PBC=new

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: c:forEach items=${sessionScope['userPortfolios']} var=p c:out value=${p.portfolioName} / /c:forEach -Abdullah -Original Message- From: David Johnson [mailto:[EMAIL PROTECTED] Sent

Re: [OT: JSTL] Re: c:forEach 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 straightforward things, but what

Re: [OT: JSTL] Re: c:forEach 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 confused about is that my

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

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

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,

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

2005-04-07 Thread David Johnson
in there, so the only real solution is your own custom MessageResource class. Al -Original Message- From: David Johnson [mailto:[EMAIL PROTECTED] Sent: Thursday, April 07, 2005 1:21 PM To: Struts Users Mailing List Subject: Re: [resources] was: Re: RESEND: RE: Load message resourcesfromDB

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

2005-04-07 Thread David Johnson
: David Johnson [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Thursday, April 07, 2005 2:53 PM Subject: Re: [resources] was: Re: RESEND: RE: Load message resourcesfromDB??? James I have a separate thread going on this, I apologize for that, but I'll summarize

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 AM

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 interesting actually. What

Displaying a HashMap as a select

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 select

2005-03-07 Thread David Johnson
:35 -0700, Wendy Smoak [EMAIL PROTECTED] wrote: From: David Johnson [EMAIL PROTECTED] I simply want to create a select box containing all the items in my HashMap (displaying the codeName but passing the codeID) What's the easiest way to do this? Can I do this wil just a vanilla HashMap

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

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.

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

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

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,

Re: AppFuse - Impressions?

2005-03-02 Thread David Johnson
: David Johnson [mailto:[EMAIL PROTECTED] Sent: Wed 3/2/2005 10:03 AM To: Struts Users Mailing List Cc: Subject: AppFuse - Impressions? hi all I have been meaning to doeanload AppFuse after reading about it on this list (http

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 into

Re: CSS and Tiles

2005-02-28 Thread David Johnson
expression language. -Henrik David Johnson [EMAIL PROTECTED] 02/28/2005 01:03 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List user@struts.apache.org cc: Subject:CSS and Tiles Hi all I have the following directory (partial

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, that's PERFECT. Thanks. I was planning to use

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? c:if

Re: CSS and Tiles

2005-02-28 Thread David Johnson
://java.sun.com/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 List user@struts.apache.org cc: Subject

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

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

2005-02-22 Thread David Johnson
... how do I call this thing from an Action Class?!?!?! Argh On Tue, 22 Feb 2005 15:50:34 -0500, David Johnson [EMAIL PROTECTED] wrote: 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

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

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 in

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]

Re: Caching Appliction Level Data?

2005-02-17 Thread David Johnson
, 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 think Wendy suggested, and it's probably a better idea than what I do frankly :) I have stupid question...where is your AppConfig

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
(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 need in an app I'm working on to cache data that is valid and shared across users, like standard country

Re: Caching Appliction Level Data?

2005-02-14 Thread David Johnson
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 working on to cache data that is valid and shared across users, like standard country codes

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

  1   2   >