RE: How fast is bean:message?

2003-03-04 Thread Jerome Jacobsen
Yes, Jakarta's JSTL implementation makes use of MessageFormat for both the EL and RT tag flavors. See org.apache.taglibs.standard.tag.common.fmt.MessageSupport. -Original Message- From: Vic Cekvenich [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 10:39 AM To: [EMAIL

RE: jstl and collection sizes

2003-02-27 Thread Jerome Jacobsen
. But still not on other java.util.Collection types :( -Original Message- From: Jerome Jacobsen [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 4:21 PM To: Struts Users Mailing List Subject: RE: jstl and collection sizes That only works

RE: websites that use Struts..

2003-02-26 Thread Jerome Jacobsen
I get the same thing with IE 6.0 with 128 bit encryption. -Original Message- From: Raible, Matt [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:29 PM To: 'Struts Users Mailing List' Subject: RE: websites that use Struts.. Baahhh, they don't like modern browsers

RE: jstl and collection sizes

2003-02-26 Thread Jerome Jacobsen
You can't AFAIK. Some people do this: c_rt:set var=colsize value=%= myCol.size() %/ Or this: bean:size id=colsize name=myCol/ If you want to set a scoped variable to the size of the collection I'd recommend the bean:size approach. -Original Message- From: John Thorhauer

RE: jstl and collection sizes

2003-02-26 Thread Jerome Jacobsen
That only works if the Collection is a List. If it isn't a List you can do ${myCollection[empty]}. Not allowing ${empty myCollection} for non-Lists is odd, but that's what the spec says. There's a thread about this oddity in taglibs-user. http://shorl.com/dapofrypragragu -Original

RE: jstl and collection sizes

2003-02-26 Thread Jerome Jacobsen
Woops. In addition to java.util.List it works on java.util.Map and arrays and java.lang.String. But still not on other java.util.Collection types :( -Original Message- From: Jerome Jacobsen [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 4:21 PM To: Struts Users Mailing

[OT] convert printf formatted strings to MessageFormat?

2003-02-24 Thread Jerome Jacobsen
Is there a utility that will take strings formatted according to printf and convert them to MessageFormat in a Locale friendly way? If not, is there a good website with guidelines on converting printf formatted strings to MessageFormat strings? TIA Jerome

RE: [TILES] Foxy Tiles Problem

2003-02-24 Thread Jerome Jacobsen
Not sure if this will help, but here goes. I have Form based JSPs that can be used across multiple actions. Therefore these JSPs have dynamic form action attributes. I didn't want to set the form action in the Action class. Instead I define it in struts-config.xml on a per action mapping

RE: ActionMapping enhancement?

2003-02-24 Thread Jerome Jacobsen
Hi Brandon, I just posted something on a different topic that may solve your problem. Basically it is like your Solution #2, except it doesn't use a comma delimited value getter/setter. Not sure why you need that. Anyway, here's the posting URL. http://shorl.com/dutydapedroho -Jerome

RE: Dynamic Forwards Offsite

2003-02-20 Thread Jerome Jacobsen
The javadoc for ActionForward state you can use an absolute URI for the path parameter. I've never tried it though. -Original Message- From: Micael [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 3:47 PM To: [EMAIL PROTECTED] Subject: Dynamic Forwards Offsite How

RE: How stable is struts 1.1 beta 3

2003-02-19 Thread Jerome Jacobsen
I'm using it in production. Also JDeveloper 9i ships with Struts 1.1b2. From reviewing the struts-dev list it appears that 1.1-b3 will be the release candidate. -Original Message- From: Stillwell, Chris [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 9:30 AM To: 'Struts

RE: Application Flow with Transaction Tokens?

2003-02-19 Thread Jerome Jacobsen
I just checked the book. His approach is to just throw a servlet exception when a sensitive form is resubmitted. I believe what Greg wants is a way to display the results just as if the second submition did not occur. -Original Message- From: DUBCHAK, JOHN (SBCSI) [mailto:[EMAIL

RE: Application Flow with Transaction Tokens?

2003-02-18 Thread Jerome Jacobsen
I posted an idea on how to handle this a while back. http://marc.theaimsgroup.com/?l=struts-userm=104404655411300w=2 Like I said in that post, I've never tried it. If you can restrict clients to have Javascript enabled then I think John's solution is the easiest. Since I have the luxury of

RE: [OT] Struts and Design Patterns

2003-02-17 Thread Jerome Jacobsen
This has already been done by Ted in his book, I think. At least in the downloadable draft version there is a Patterns chapter. Actually it is Appendix D. -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 11:57 AM To: [EMAIL PROTECTED]

RE: [OT] Struts and Design Patterns

2003-02-17 Thread Jerome Jacobsen
It appears I was wrong. You can only download the Tiles and Validator chapters (these are the final versions). http://www.manning.com/getpage.html?project=hustedfilename=chapters.html Ted had sent me the draft of the entire book at one point but it looks like you can't download these chapters

RE: [OT] Struts and Design Patterns

2003-02-17 Thread Jerome Jacobsen
PROTECTED] Subject: Re: [OT] Struts and Design Patterns Figures... I own the book and left it at work. Anyone care to save me a trip into the office to verify this? Thanks, Matt --- In [EMAIL PROTECTED], Jerome Jacobsen [EMAIL PROTECTED] wrote: This has already been done by Ted

RE: Highlighting fields that failed in validation

2003-02-14 Thread Jerome Jacobsen
Here's something from the archives you might find useful. - Since this is essentially error text you are talking about, I think the easiest way to handle this is through Struts's error tags: html:text property=username ... / html:errors property=username/ Where

RE: Using the html:message tag

2003-02-14 Thread Jerome Jacobsen
Try this: html:messages id=success message=true / If you omit message=true then the tag only looks for error messages under Action.ERROR_KEY. With the message=true it will look for messages under Action.MESSAGE_KEY. -Original Message- From: Sloan Seaman [mailto:[EMAIL PROTECTED]]

RE: Using the html:message tag

2003-02-14 Thread Jerome Jacobsen
- From: Jerome Jacobsen [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, February 14, 2003 1:47 PM Subject: RE: Using the html:message tag Try this: html:messages id=success message=true / If you omit message=true then the tag only looks for error

RE: logic:iterate does not iterate more than once, although collection definitely contains more elements

2003-02-13 Thread Jerome Jacobsen
My guess is that you aren't really using the logic:iterate tag because you forgot the taglib directive at the top of your JSP. If you do a view source from your browser I'm guessing you'll still see the logic:iterate tags in the output HTML. -Original Message- From: mech [mailto:[EMAIL

RE: Best tag to display table

2003-02-13 Thread Jerome Jacobsen
AFAIK the display tag is the best choice. With JSTL you'd have to build in the paging and sorting yourself. If you can wait until the next release of display taglib (now at sourceforge) I would strongly recommend that. There are some key bug fixes in the next release. -Original

Server detection of Javascript enabled?

2003-02-13 Thread Jerome Jacobsen
Without using Javascript on the client, can the server detect if the client has Javascript enabled? Is there something in the HTTP request header that indicates this? [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL

RE: [OT] Generating microsoft word documents

2003-02-12 Thread Jerome Jacobsen
Have you looked at OpenOffice (http://www.openoffice.org/)? They may have Java APIs for doing this sort of thing. -Original Message- From: John Cavacas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 12, 2003 10:29 AM To: 'Struts Users Mailing List' Subject: [OT] Generating

RE: still wondering Re: Where to repopulate dynamic lists ?

2003-02-12 Thread Jerome Jacobsen
I'd like to hear Craig and/or Ted respond to this topic. I think the solutions presented this far are interesting, but would like to hear what the Struts masters say. I haven't seen anything about this very common problem in the two Struts books I have or in the online docs. Come on Craig or

RE: [JSTL] How can I use c:if to check the size of a list?

2003-02-12 Thread Jerome Jacobsen
If you are iterating with c:forEach then use the iteration status which has a count property. See this example: c:forEach var=customer items=${customers} varStatus=status tr tdc:out value=${status.index}//td tdc:out value=${status.count}//td tdc:out

RE: [OT] Tell VM to use a different java.security file other than the one in default location

2003-02-12 Thread Jerome Jacobsen
java -Djava.security.manager -Djava.security.policy=%APP_HOME%\java.security -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 12, 2003 8:05 AM To: [EMAIL PROTECTED] Subject: [OT] Tell VM to use a different java.security file other than the

RE: [OT] concurrent updates

2003-02-05 Thread Jerome Jacobsen
Very good question on a very difficult topic. This is one of the hardest things in a transactional application. The a-d choices you listed are all possibilities and the one you select depends on your situation/requirements. What does the customer want to happen in this case? This topic is

RE: hashmaps and hash tables in JSPs

2003-02-03 Thread Jerome Jacobsen
logic:notEmpty name=session property=permissionsHashMap(Manage Countries) ... User has the Manage Countries permission /logic:notEmpty Or with JSTL c:if test=${permissionsHashMap['Manage Countries']} ... User has the Manage Countries permission /c:if -Original Message- From: Jordan

RE: hashmaps and hash tables in JSPs

2003-02-03 Thread Jerome Jacobsen
Countries) ... User has the Manage Countries permission /logic:notEmpty -Original Message- From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]] Sent: Monday, February 03, 2003 9:19 AM To: Struts Users Mailing List Subject: RE: hashmaps and hash tables in JSPs logic:notEmpty name=session

RE: Override DispatchAction but keep the existing funcationallity

2003-02-03 Thread Jerome Jacobsen
Your CommonCode solution is the way I went (I called mine BaseActionHelper). Your subclass of DispatchAction would look something like this below. public abstract class MyDispatchAction extends DispatchAction { public ActionForward execute(ActionMapping mapping, ActionForm

RE: Override DispatchAction but keep the existing funcationallity

2003-02-03 Thread Jerome Jacobsen
Correction. Your MyDispatchAction would not be abstract. -Original Message- From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]] Sent: Monday, February 03, 2003 11:29 AM To: Struts Users Mailing List Subject: RE: Override DispatchAction but keep the existing funcationallity Your

RE: proper use of back button -- design patterns

2003-02-02 Thread Jerome Jacobsen
The framework could be extended to support this on a per-action basis. In struts-config.xml we could have an additional element or attribute of the 'action' attribute to indicate the desired ActionForm populate/validate behavior on invalid token. -Original Message- From: Craig R.

RE: set-property in the struts-config file

2003-01-31 Thread Jerome Jacobsen
It applies to the ActionMapping, not the Action. Subclass org.apache.struts.action.ActionMapping. Define your property in the subclass. The in struts-config.xml add the className attribute to your action elements like this: action className=com.blah.MyActionMapping ... set-property name=foo

RE: proper use of back button -- design patterns

2003-01-31 Thread Jerome Jacobsen
Seems to me you could save a TransactionStatus token in the Session. Check for this token in the Action that starts the Transaction. There are two double-submit cases. Case 1: Transaction Complete (with or without error). If the Action determines that it is a double-submit and the

RE: Passing parameter in a pop up window

2003-01-30 Thread Jerome Jacobsen
Not sure, but maybe this: bean:define id=popUpURLhtml:rewrite page=AgreementList.do paramName=customerDetails paramProperty=customerId//bean:define a href= onClick=MM_openBrWindow('%= popUpURL %','popup','scrollbars=yes,widt h=1000,height=500,left=10,top=100')Click Me/a

RE: [OT] Display Tag Library - Sorting Dates

2003-01-30 Thread Jerome Jacobsen
Couldn't you subclass Date and override toString? -Original Message- From: Raible, Matt [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 11:41 AM To: '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]' Subject: [OT] Display Tag Library - Sorting Dates Since there seems to be a

RE: tokens and set-property

2003-01-30 Thread Jerome Jacobsen
The set-property applies to the ActionMapping, not the Action. You can subclass ActionMapping and add a useToken property to it. Then the action entity will need the className attribute set to your ActionMapping subclass. action className=com.blah.MyActionMapping path=blah... set-property

RE: Struts and JSTL fmt:setBundle

2003-01-27 Thread Jerome Jacobsen
Perhaps an Adapter could be created to do this (e.g. MessageResourcesLocaleContext or StrutsLocaleContext). You could set it up to be your default LocaleContext in the web.xml or via a Struts PlugIn. I haven't actually looked to see if a Struts MessageResources could be adapted to a JSTL

RE: [OT] Re: Struts officially supported by Fred

2003-01-24 Thread Jerome Jacobsen
My friend Fred officially supports Struts. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: [OT] JSF JSTL EL [WAS: RE: DynaBeans, Struts, OR mapping tools and code generators]

2003-01-24 Thread Jerome Jacobsen
JSTL-EL source code is under Jakarta Taglibs. See class org.apache.taglibs.standard.lang.support.ExpressionEvaluator. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 1:10 AM To: Struts Users Mailing List Subject: [OT] JSF JSTL EL

RE: The display:* tag library

2003-01-24 Thread Jerome Jacobsen
to keep it, as we use it heavily Dave -- Dave Hodson MessageCast, inc. Email: [EMAIL PROTECTED] http://www.messagecast.net -Original Message- From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 8:07 AM To: Struts Users Mailing List Subject

RE: The display:* tag library

2003-01-24 Thread Jerome Jacobsen
. David From: Jerome Jacobsen [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: The display:* tag library Date: Fri, 24 Jan 2003 15:50:01 -0500 To be clear I was just outlining what I thought would be an improved display-like

RE: The display:* tag library

2003-01-23 Thread Jerome Jacobsen
I think a complete rewrite is needed AND a new API (same tags but different tag attributes). Thus I would say an entirely new tag library. I'll call the new version display2 and the current one display1 for clarity below. - Follow JSTL conventions for attribute names and support JSTL-EL.

RE: The display:* tag library

2003-01-23 Thread Jerome Jacobsen
Good idea. Makes sense to me. -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 11:50 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: The display:* tag library What do you think of two tag libs: pager:* table:*

RE: Tag to print value of a parameter?

2003-01-22 Thread Jerome Jacobsen
If you have a JSP 1.2 container then you can use JSTL like this: c:out value='${param[name]}'/ param is an implicit object in JSTL (it is a Map). -Original Message- From: Ben Starr [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 9:17 PM To: [EMAIL PROTECTED] Subject: Tag

RE: To check if user is logged in

2003-01-22 Thread Jerome Jacobsen
3. Have an abstract BaseAction class for your webapp. All of your concrete Actions subclass your BaseAction. Perform the login check in the BaseAction's execute method. Make the BaseAction's execute method final. BaseAction defines an abstract method called executeAction which the subclasses

RE: XML to PDF

2003-01-21 Thread Jerome Jacobsen
I think you can name your action with a .pdf extension, something like http://localhost/xmltopdf.do.pdf. Not sure what you'd have to do with the action mappings to allow this to work. Some versions of IE seem to use the URL 'document' extension and the client systems extension to application

RE: Value Object Size

2003-01-20 Thread Jerome Jacobsen
You could Serialize it to a byte array and then output the size of the byte array. Or Serialize it to a file and look at the file size. -Original Message- From: Justin Ashworth [mailto:[EMAIL PROTECTED]] Sent: Monday, January 20, 2003 11:30 AM To: Struts Users Mailing List Subject:

RE: logic:equal and EdHill Display taglib

2003-01-20 Thread Jerome Jacobsen
If you're trying to conditionally hyperlink the contents of a certain column of the current row then you'll have to use a Decorator. The current row of the list is not exposed in a scripting variable or scoped variable. For the reason why see

RE: [OT][JavaScript][i18n] How to get a date with a user?

2003-01-09 Thread Jerome Jacobsen
One pickup line I've heard is Excuse me, do you have the time?, but I've never used it myself as I make it a policy not to date my users. Seriously, another option is to have user Preferences that are supplied at registration time and can be edited later. Then they don't have to keep supplying

RE: QUESTIONS: Ed Hill's Display Custom Tag Library

2003-01-09 Thread Jerome Jacobsen
I sent Ed an email yesterday asking him the status too. No reply yet. Instead of adding it to Struts I was hoping he'd add it to Jakarta Taglibs. He used the packaging names of Jakarta Taglibs for his classes so I am hopeful. I would like to see the JSTL-EL ability added to it as well. It is a

RE: Passing parameters with requestURI of display:table tag

2003-01-09 Thread Jerome Jacobsen
See Struts html:rewrite tag. It should make your life easier. Something like this: bean:define id='pagingRequestURI' html:rewrite page='/myAction.do' paramName='myField'/ /bean:define display:table requestURI='%= pagingRequestURI %' ... However in the rewrite you'll need myField to be a

RE: Passing parameters with requestURI of display:table tag

2003-01-09 Thread Jerome Jacobsen
Correction: need the paramId attribute too: html:rewrite page='/myAction.do' paramId='myField' paramName='myFieldBean'/ -Original Message- From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 3:30 PM To: Struts Users Mailing List Subject: RE: Passing

RE: cannot find bean error

2002-12-22 Thread Jerome Jacobsen
Hi Tobias, What you are doing looks OK to me. You are correct in that you do NOT need to do the following in your action: I added this line: request.setAttribute(mitarbeiterAuswahlForm,mitarbeiterAuswahlForm); The bean is already stored in the session by the framework before your action

RE: [Book Review] Struts Kick Start

2002-12-20 Thread Jerome Jacobsen
-Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] What's not so good? Just one niggle, and it's more of a programming style issue, but in their example code they have references to their business objects. They explain that it is important to separate out

RE: Where does the servlet.log(String) output go?

2002-12-17 Thread Jerome Jacobsen
This is true for Tomcat, but not necessarily for other servlet containers. Check your servlet container documentation. -Original Message- From: Robert J. Lebowitz [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 6:20 PM To: Struts Users Mailing List Subject: Re: Where does

RE: Move to TilesRequestProcessor results in forwarding exception.

2002-12-15 Thread Jerome Jacobsen
: Jerome Jacobsen [mailto:[EMAIL PROTECTED]] Sent: Friday, December 13, 2002 5:26 PM To: Struts Users Mailing List Subject: RE: Move to TilesRequestProcessor results in forwarding exception. With just the controller processorClass=org.apache.struts.tiles.TilesRequestProcessor/ I get the following

RE: Move to TilesRequestProcessor results in forwarding exception.

2002-12-13 Thread Jerome Jacobsen
s properties of TilesRequestProcessor don't work anymore: they are replaced by a common logging mechanism. You should see some messages from the TilesPlugin, indicating what happens. Cedric Jerome Jacobsen wrote: OK. I added the following to my struts-config: controller

RE: Move to TilesRequestProcessor results in forwarding exception.

2002-12-13 Thread Jerome Jacobsen
logging mechanism. You should see some messages from the TilesPlugin, indicating what happens. Cedric Jerome Jacobsen wrote: OK. I added the following to my struts-config: controller processorClass=org.apache.struts.tiles.TilesRequestProcessor debug=9/ plug-in className

Move to TilesRequestProcessor results in forwarding exception.

2002-12-12 Thread Jerome Jacobsen
I just added the following to my *non-tiles* Struts 1.1b2 app configuration file: plug-in className=org.apache.struts.tiles.TilesPlugin/ As I understand it this should replace the RequestProcessor with the TilesRequestProcessor. Well something changed because now I get an exception when my

RE: Move to TilesRequestProcessor results in forwarding exception.

2002-12-12 Thread Jerome Jacobsen
Interesting. With the plug-in tag removed I added the following: controller processorClass=org.apache.struts.tiles.TilesRequestProcessor/ Now it works! So what was wrong with the plug-in usage? Was I supposed to add some required set-property tags? -Original Message- From: Jerome

RE: Move to TilesRequestProcessor results in forwarding exception.

2002-12-12 Thread Jerome Jacobsen
Message- From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 12, 2002 2:53 PM To: Struts User Subject: Move to TilesRequestProcessor results in forwarding exception. I just added the following to my *non-tiles* Struts 1.1b2 app configuration file: plug-in className

RE: Move to TilesRequestProcessor results in forwarding exception.

2002-12-12 Thread Jerome Jacobsen
files with the tiles plugin. I suppose that the tiles factory has failed to initialize, and so something goes wrong with the RequestProcessor. Can you check the tomcat log file for tiles messages (maybe you need to enable the tiles logging) ? Cedric Jerome Jacobsen wrote: Interesting

RE: [Way-OT] Struts and Swing

2002-12-12 Thread Jerome Jacobsen
If you aren't required to use Struts as the web framework you might consider one of the open-source frameworks that are Swing-like. There's Echo: http://www.nextapp.com/products/echo/ And Millstone: http://millstone.org/ -Original Message- From: Eddie Bush [mailto:[EMAIL PROTECTED]]

Can DynaActionForm contain DynaActionForm?

2002-12-10 Thread Jerome Jacobsen
All of the DynaActionForm examples I've seen contain simple Java types or regular JavaBeans. Can a DynaActionForm contain another DynaActionForm? Something like this: form-beans form-bean name=com.blah.LocaleForm type=org.apache.struts.action.DynaActionForm dynamic=true form-property

DynaActionForm problem - IllegalArgumentException: No bean specified

2002-12-10 Thread Jerome Jacobsen
Oh Struts masters, I get an exception when Struts populates my DynaActionForm from request parameters. With DEBUG logging on I see the following: INFO org.apache.struts.action.RequestProcessor - Processing a 'POST' for path '/changeLocale' DEBUG org.apache.struts.util.RequestUtils - Looking

Struts 1.1b2 tags yielding 'Cannot find message resources...'

2002-11-06 Thread Jerome Jacobsen
Hi, I've used Struts 1.0 tags in my non-struts web applications with no problems. I simply never used the message resources related properties of any of the tags. Now with Struts 1.1b2 I get the following exception for a simple bean:write name='mybean'/. javax.servlet.jsp.JspException: Cannot

Robustly handle double-submit?

2002-10-09 Thread Jerome Jacobsen
Hi, I've seen the Struts 1.1b2 example's use of the Token for transaction control technique. This is in EditRegistrationAction and SaveRegistrationAction. However, I'd like to know if there is a more robost solution to this problem. I'd like the ability to ignore the second posting and still

RE: where can caching help performance

2002-07-12 Thread Jerome Jacobsen
If you use the typical singleton pattern (private static member of the class) then they won't go away until the JVM terminates. Another alternative is to place them into application scope. There are many ways of doing this. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: Wow

2002-07-02 Thread Jerome Jacobsen
Can you give us some details on the nice display tag library? Is it something you came up with, found and modified, or just found? What does it do for you? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 10:45 AM To: [EMAIL PROTECTED]

RE: Collection for ResultSet

2002-06-26 Thread Jerome Jacobsen
In a Data Access Object (DAO). Keep your business object as persistence agnostic as possible. http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/ -Jerome -Original Message- From: Dan Cancro [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 26, 2002 2:01 PM To:

RE: Reporting Solutions

2002-06-14 Thread Jerome Jacobsen
If the piece that is slowing you down is writing the parsing (in Perl), you may want to look at xconvert. http://www.unidex.com/xflat.htm Maybe you could use it to do the text to XHTML conversion. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, June

RE: Please help clarify or confirm -- HttpSession

2002-06-13 Thread Jerome Jacobsen
Huh? JBoss is FREE. -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 2:41 PM To: 'Struts Users Mailing List' Subject: RE: Please help clarify or confirm -- HttpSession Kevin, I actually thought about the EJB solution, but we are trying

RE: Disbaling Back Button of Browser

2002-06-12 Thread Jerome Jacobsen
You can't truly disable back and forward. You can open your site without the buttons, but there are still ways for the user to issue back and forward (ALT+LEFT ALT+RIGHT). Thus, you have to resort to javascript tricks. Do a google search in comp.lang.javascript. There are tons of postings

RE: Value of using one action per use-case?

2002-06-12 Thread Jerome Jacobsen
Use cases are highly variable between authors, projects, companies, etc. : My use case is not your use case.. Some are high-level, some medium-level, and some low-level. So the answer really depends on the level and domain of the use case. Some use cases will likely match Actions, others a

RE: 2 forms on a single JSP

2002-06-07 Thread Jerome Jacobsen
I believe your workaround is the recommended approach. That is, use one form bean for both forms. The form bean could implement two different Form interfaces (one per html:form) to make the seperation more obvious. -Original Message- From: Tim Sawyer [mailto:[EMAIL PROTECTED]] Sent:

RE: Back button skip a page?

2002-06-07 Thread Jerome Jacobsen
in the browser's history. Something like: (Javascript) window.history.go(-2) but I'm not exactly sure how to detect the event that the user clicks the back button. Jerome Jacobsen [EMAIL PROTECTED] wrote: This may not be possible, but I hope it is.  I have a Your request is being

RE: (newbie) WAR files and JDeveloper 3.2.3

2002-06-06 Thread Jerome Jacobsen
The JDev 3.2.3 servlet container (Web-To-Go) does not recognize WAR files. You'll have to exctract the WAR files, however the web.xml file will be ignored. Any settings from web.xml will have to be added via the Web Object Manager Wizard and/or the webtogo.ora file and/or wtgapp.xml file. The

RE: struts and excel

2002-06-06 Thread Jerome Jacobsen
Try adding out.clear() right before changing content type. Like this: % out.clear(); response.setContentType(application/vnd.ms-excel); % -Original Message- From: yanming lu [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 06, 2002 11:45 AM To: [EMAIL PROTECTED] Subject: Re: struts and

Back button skip a page?

2002-06-06 Thread Jerome Jacobsen
This may not be possible, but I hope it is. I have a Your request is being processed, please wait.. page. Once the user gets to the results page and hit their browser's Back button I want to skip that Wait page. Here is the page flow: Form Page - Wait Page - Results Page -- To unsubscribe,

RE: BeanUtils

2002-05-30 Thread Jerome Jacobsen
BeanUtils.populate(), so that in Struts indexed multiselects not work Jerome Jacobsen [EMAIL PROTECTED] on 05/30/2002 01:55:54 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc:(bcc: Kevin Bedell/Systems/USHO

BeanUtils.populate() throws IllegalArgumentException for indexed String properties.

2002-05-29 Thread Jerome Jacobsen
Got no answer on this one from commons-dev mailing list. Can someone here can help? --- Maybe I'm misunderstanding BeanUtils.populate, but shouldn't this work! The exception says IllegalArgumentException: type mismatch Tried this with both BeanUtils

RE: Design Advice - Relational Databases Java Objects

2002-05-29 Thread Jerome Jacobsen
Have you looked at these opensource projects? JBoss http://www.jboss.org/ OpenEJB http://www.openejb.org/ Castor JDO http://castor.exolab.org/ ObjectRelationalBridge http://objectbridge.sourceforge.net/ As for (1) I would have the business objects throw exceptions. I would have the Struts

RE: Use of custom convertors

2002-05-28 Thread Jerome Jacobsen
The best practice for form beans is that all properties be Strings. Your Action can do the conversion both ways. For the request it converts the String to the type expected by the business object. For the response it converts the business object's type to the String to be set on the form bean.

RE: Templates and i18n problem in struts

2002-05-16 Thread Jerome Jacobsen
You can't use a JSP tag as the value of another JSP tag's attribute. You'd have to use a JSP expression instead. I'm not sure if a utility exists to get the message in the same way as the bean:message tag does. Let's assume there is one called msgUtil.getMessage. Then you would do this:

RE: Generation and display of charts/graphs

2002-05-06 Thread Jerome Jacobsen
http://chart2d.sourceforge.net/ http://gvf.sourceforge.net/ http://jcharts.sourceforge.net/ http://www.object-refinery.com/jfreechart/ http://openjgraph.sourceforge.net/ http://technet.oracle.com/tech/java/servlets/content.html I've only used the last one (Oracle Chart Builder). Haven't

RE: XMLC Article on the Serverside

2002-05-02 Thread Jerome Jacobsen
The Wafer project on SourceForge is a project to compare 19 open source Java web frameworks (including Struts, of course). It is in it's alpha stage. http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/wafer/www/feature- matrix2.html?rev=1.10 http://sourceforge.net/projects/wafer/

RE: html:link with Map parameters generating amp; instead of

2002-04-25 Thread Jerome Jacobsen
the following: public String getParameter(HttpServletRequest request, String paramName) { String paramValue = request.getParameter(paramName); if (paramValue == null) return request.getParameter(amp; + paramName); else return paramValue; } -Original Message- From: Jerome Jacobsen [mailto

html:link with Map parameters generating amp; instead of

2002-04-24 Thread Jerome Jacobsen
Hi, I've tried this with Struts 1.0.1 and Struts 1.0.2 and both do the same thing. % HashMap summaryLinkParms = ... pageContext.setAttribute(summaryLinkParms, summaryLinkParms); % html:link href=index.jsp name=summaryLinkParms inventory summary /html:link The above

RE: html:link with Map parameters generating amp; instead of

2002-04-24 Thread Jerome Jacobsen
== null) return request.getParameter(amp; + paramName); else return paramValue; } -Original Message- From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]] Sent: 24 April 2002 18:44 To: Struts User Subject: html:link with Map parameters generating amp; instead of Hi, I've tried this with Struts

RE: Tab Libraries? Bah!

2002-04-24 Thread Jerome Jacobsen
IMHO JSP and technologies like it are fundamentally flawed. However, I have not tried out other Java dynamic web presentation frameworks/technologies. Enhydra's (http://www.enhydra.org/) architecture sounds promising. As I understand it the HTML designer writes HTML. The Java web developer

Best practices for implementing menuing?

2001-12-06 Thread Jerome Jacobsen
I need to create a website that has menus in the header and sidebar. I see the following challenges in implementing menuing: 1) Maintaining correct menu state when user hits Back, Forward, or jumps in History. 2) Keeping the JSPs menu ignorant. Any best practices on menuing which solve the

bean:define for replacement

2001-07-16 Thread Jerome Jacobsen
The docs on bean:define say that it will unconditionally create or replace the bean with specified id. However I get an error if I want to replace. For example: jsp:useBean id=b1 class=MyClass ... init stuff /jsp:useBean jsp:useBean id=b2 class=MyClass ... init stuff

Trouble submitting html:form without ActionServlet

2001-07-09 Thread Jerome Jacobsen
How can I get html:form name=myform action=index.jsp to produce form name=myform action=index.jsp instead of form name=myform action=/index.jsp ??? I'm starting to use Struts in my project which has its own controller. All of my JSPs use relative URLs to this controller. I do not want

bean:define for replacement

2001-07-06 Thread Jerome Jacobsen
The docs on bean:define say that it will unconditionally create or replace the bean with specified id. However I get an error if I want to replace. For example: jsp:useBean id=b1 class=MyClass ... init stuff /jsp:useBean jsp:useBean id=b2 class=MyClass ... init stuff

session form beans

2001-07-06 Thread Jerome Jacobsen
Hi, In what cases does the Struts framework remove a Session Form bean from the Session? Is this supposed to be done explicitly by the JSP or Action object writer? Thanks, -Jerome