version confusion

2004-05-26 Thread Barnett, Brian W.
I'm a recent convert to java (from micro$oft... sh) and i'm still trying to understand which versions of which products work together. I just got Tomcat 5.x, which implements Servlet 2.4 and JSP 2.0. Does it matter if I use Struts 1.0, 1.1 or 1.2 with this? Why? How does the version of the

RE: Best way to connect to Database in struts

2004-05-27 Thread Barnett, Brian W.
Use iBATIS SqlMaps and Dao framework. www.ibatis.com -Original Message- From: Axel Seinsche [mailto:[EMAIL PROTECTED] Sent: Thursday, May 27, 2004 11:43 AM To: Struts Users Mailing List Subject: Re: Best way to connect to Database in struts Zaid wrote: >Dear Friends, > >I am new to str

standard tags vs. struts specific tags

2004-05-27 Thread Barnett, Brian W.
Found this on the Struts site: "The Struts team encourages the use of the standard tags over the Struts specific tags when possible" Does this mean I should use jstl from Sun or are the standard tags (c, fmt, sql, etc) that come with struts 1.1 just fine? If from Sun, is there some way to

RE: standard tags vs. struts specific tags

2004-05-27 Thread Barnett, Brian W.
Thanks Rick. -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Thursday, May 27, 2004 1:00 PM To: Struts Users Mailing List Subject: Re: standard tags vs. struts specific tags Barnett, Brian W. wrote: > Does this mean I should use jstl from Sun or are the stand

Struts 1.1 with commons-lang-2.jar

2004-05-27 Thread Barnett, Brian W.
Struts 1.1 ships with some 1.x version of commons-lang.jar. Is it okay to use a 2.x version of commons-lang.jar with Struts 1.1?

how to check if html:errors will display anything

2004-06-07 Thread Barnett, Brian W.
How can I check if the html:errors tag will display anything down inside my jsp page? I have the html:errors tag inside a table tag and I don't want the table generated at all if there aren't any errors to display. Thanks, Brian Barnett

RE: using java.util.Map

2004-06-15 Thread Barnett, Brian W.
Here is an example that we have used and it works: -Original Message- From: Henrique VIECILI [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 15, 2004 12:00 PM To: Struts Users Mailing List Subject: using java.util.Map Does anyone know howto use the tag with the values and lab

RE: using java.util.Map

2004-06-15 Thread Barnett, Brian W.
uot;,"Rio Grande do Sul"); states.put("SC","Santa Catarina"); states.put("PR","ParanĂ¡"); and i want to render something like this on my html Rio Grande do Sul Santa Catarina ParanĂ¡ I guess that is it, Henrique Viecili - Original Me

[OT] jasper.runtime.BodyContentImpl problem

2004-06-16 Thread Barnett, Brian W.
I must have done something to mess up my dev environment. My jsp pages will not render now. This is what displays in the browser now: [ServletException in:/WEB-INF/jsp/AgentList.jsp] org.apache.jasper.runtime.BodyContentImpl.clearBody()V' I upgraded Tomcat (5.0.16 to 5.0.25), Eclipse (M4 to

RE: a fine example of an example

2004-06-21 Thread Barnett, Brian W.
JPetStore 4 at www.ibatis.com -Original Message- From: josh [mailto:[EMAIL PROTECTED] Sent: Monday, June 21, 2004 11:01 AM To: [EMAIL PROTECTED] Subject: a fine example of an example Hi, I have recently completed my first struts application and I am beginning to feel comfortable with th

RE: when delete a record

2004-06-23 Thread Barnett, Brian W.
There are numerous ways it could be done. It's really up to you on the workflow you would like. One simple way is to just use the edit page as your delete page as well. We use one jsp page for add/edit/delete and have a flag on our form bean indicating whether we are adding/editing/deleting. We se

RE: Trying to learn Struts, need help understanding design proces s

2004-06-25 Thread Barnett, Brian W.
A nice combination of tools/libraries we use is the display tag library to display tabular data in a jsp page and iBATIS SQL Maps for data access. Both are widely used as far as I know. The iBATIS site also has a JPetStore demo based on Struts which provides a great example (source code included)

RE: onsubmit form ERROR

2004-07-14 Thread Barnett, Brian W.
Try document.MonitorForm.submit() -Original Message- From: Isaac Mosquera [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 1:47 PM To: [EMAIL PROTECTED] Subject: onsubmit form ERROR i have the following piece of HTML/JavaScript and this problem happens quite frequently but i don

RE [OT]: onsubmit form ERROR

2004-07-14 Thread Barnett, Brian W.
Hmm. I've never seen that syntax, but that doesn't mean much. Here are the syntaxes I've seen: document.MonitorForm.submit() document.forms[0].submit() document.forms["MonitorForm"].submit() I've seen something as simple as a semi-colon at the end of javascript work wonders too :) -Origina

[OT] RTF & PDF export options

2004-07-19 Thread Barnett, Brian W.
Any suggestions for converting html to RTF and PDF inside an action class and then sending the RTF or PDF back to the client? Open source tools, code snippets, tips & tricks, etc. ?? Thanks a bunch. Brian Barnett

RE: [OT] RTF & PDF export options

2004-07-20 Thread Barnett, Brian W.
Forgive my naivety, Wendy, but what are the benefits of redirecting to a Servlet? -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Monday, July 19, 2004 4:46 PM To: Struts Users Mailing List Subject: Re: [OT] RTF & PDF export options From: "Barnett, Brian W.

RE: [OT] RTF & PDF export options

2004-07-20 Thread Barnett, Brian W.
TF & PDF export options Did you have a look at JasperReports ( http://jasperreports.sourceforge.net/index.html) ? Jimmy > -Original Message- > From: Barnett, Brian W. [mailto:[EMAIL PROTECTED] > Sent: 19 July 2004 23:22 > To: '[EMAIL PROTECTED]' > Subj

[OT] "hidden" submit button

2004-08-11 Thread Barnett, Brian W.
Does anyone know how to create a hidden submit button? We're using images for the buttons, but still want the "enter" key to submit the form. Is there a better way to handle this? We tried a few things with css but it didn't seem to work. (visibility:hidden and display:none will hide the button, bu

RE: [OT]1,2,3,4 I declare a pun war!

2004-08-18 Thread Barnett, Brian W.
That was a b-d one. -Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 3:56 PM To: Struts Users Mailing List Subject: RE: [OT]1,2,3,4 I declare a pun war! > -Original Message- > From: David Durham [mailto:[EMAIL PROTECTED] > Sent

[OT] File IO

2004-08-26 Thread Barnett, Brian W.
Hello, Can someone point me to, or show me some sample java code, that opens, reads, writes files using the relative path of the web application? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

RE: [OT] "Enter" key listener for form submittal

2004-09-01 Thread Barnett, Brian W.
Out of curiosity, why is an enter key listener necessary in order to submit a form? -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 9:18 AM To: Struts Users Mailing List Subject: Re: [OT] "Enter" key listener for form submittal David Du

RE: [OT] "Enter" key listener for form submittal

2004-09-01 Thread Barnett, Brian W.
or form submittal It is necessary in my case because it is a requirement specified by the client. On very simple forms, it often won't require any programming. But if you have multiple submit buttons, it becomes a problem. Erik Barnett, Brian W. wrote: >Out of curiosity, why is an en

[OT] synchronous form submit in a popup so parent refreshes prope rly

2004-09-10 Thread Barnett, Brian W.
I have a popup with a save button that works like this: onclick="document.forms[0].Dispatch.value='Save';document.forms[0].submit(); window.opener.location.reload(true);window.close();" The problem is that the parent window gets refreshed before the submit finishes what it needs to finish,

RE: [OT] synchronous form submit in a popup so parent ref reshes p rope rly

2004-09-10 Thread Barnett, Brian W.
You'd want to define the forward for this action to be the refresh action you want your parent to perform. Paul > -Original Message----- > From: Barnett, Brian W. [mailto:[EMAIL PROTECTED] > Sent: Friday, September 10, 2004 5:19 PM > To: '[EMAIL PROTECTED]' > S

Validation problem - form still submits after client-side validat ion fails.

2004-09-20 Thread Barnett, Brian W.
Both the client-side and the server-side validation are executing instead of just the client-side. I know it has something to do with the way I've coded the save button. The underlying problem is that I want to use images and roll-over images for the save button but I also want the "enter" key to s

RE: [SOLVED] Validation problem - form still submits after client -side validat ion fails.

2004-09-20 Thread Barnett, Brian W.
s)". You *do* have that, right? I don't know how to do what you're trying to do with image buttons, though. For that, you'll probably want Mike McGrady's opinion since he works with image buttons a lot. Do you have to call submit() explicitly? Hubert On Mon, 20 Sep 2004

Struts and Quartz Scheduler

2004-09-29 Thread Barnett, Brian W.
Has anyone here integrated Quartz with Struts? I'm having a hard time finding examples on this combination. I'm using the latest version of Quartz, 1.4.2, and I'm initializing it in web.xml like this: QuartzInitializer

RE: html error handling

2004-09-30 Thread Barnett, Brian W.
Can you show us your jsp code? -Original Message- From: Shahin Hadjikuliev [mailto:[EMAIL PROTECTED] Sent: Thursday, September 30, 2004 6:32 AM To: [EMAIL PROTECTED] Subject: html error handling Hi, I have jsp with tag, if an error accures its displaying only error message , I want to

RE: Struts and Quartz Scheduler

2004-09-30 Thread Barnett, Brian W.
Thanks Wiebe. I saw your name on a post or two in the Quartz forum and was hoping you'd respond to this here. I really appreciate it! Brian Barnett -Original Message- From: Wiebe de Jong [mailto:[EMAIL PROTECTED] Sent: Thursday, September 30, 2004 12:28 PM To: 'Struts Users Mailing List'

RE: Inicialiazing a LookupDispachAction

2004-10-01 Thread Barnett, Brian W.
Turn off validation in struts-config by setting validate="false". Then you call validate manually in your save method, which is typically where you would want validation code. -struts-config snippet- -save method in acti

RE: Scheduling Actions

2004-10-01 Thread Barnett, Brian W.
Try Quartz. I posted yesterday regarding Quartz and Struts. Weibe de Jong replied with some excellent ideas on how to use the Quartz scheduler with Struts and included some nice code to get you started. -Original Message- From: Ciaran Hanley [mailto:[EMAIL PROTECTED] Sent: Friday, October

Best Practice for Struts app to .NET Web Service

2004-10-06 Thread Barnett, Brian W.
I have a Struts app that needs to communicate with a .Net web service via SOAP. What is "best practice" for this? Can someone point me to some relevant info? Thanks, Brian Barnett

RE: [validator] How to submit only when ther are no eror

2004-10-07 Thread Barnett, Brian W.
One way to accomplish this is with client side validation. This is dependent on scripting being enabled on the browser however. ... -Original Message- From: yacout dadoun [mailto:[EMAIL PROTECTED] Sent: Thursday, October 07, 2004 9:49 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sub

RE: [validator] How to submit only when ther are no eror

2004-10-07 Thread Barnett, Brian W.
tags ? >From: "Barnett, Brian W." <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> >Subject: RE: [validator] How to submit only when ther are no eror &g

dealing with nullable db columns

2004-04-15 Thread Barnett, Brian W.
Wondering if anybody has a slick way of dealing with nullable database columns. We have a data transfer object that has member variables, one for each database column, and of course all the getters and setters. For View layer purposes, we have a class which extends Struts' ValidatorForm. This F

RE: Struts, Business Logic, DAOs

2004-04-15 Thread Barnett, Brian W.
One option is to use "service" objects that sit between the DAOs and the Actions. Following your example, one service class might look something like this: public class WidgetService { public void delete(int id) { WidgetDAO w = new WidgetDAO(); try {

session scoped action form question

2004-04-19 Thread Barnett, Brian W.
Can someone enlighten me as to why when I instantiate a new ActionForm, the old data seems to hang around? Here is the information: I have a session scoped action form defined in struts config: etc, etc, My dispatch method looks something like this: public ActionForw

jsp and message resource file

2004-04-19 Thread Barnett, Brian W.
What do you have to do to make a message resource file available to jsp pages. I've seen examples of but I think I have to do something else in order for that to work. Thanks, Brian Barnett

RE: jsp and message resource file

2004-04-19 Thread Barnett, Brian W.
One way is to put this in your jsp file: The reference it like this: -Original Message- From: Barnett, Brian W. [mailto:[EMAIL PROTECTED] Sent: Monday, April 19, 2004 2:44 PM To: '[EMAIL PROTECTED]' Subject: jsp and message resource file What do you have to do to make

Double posting problem

2005-06-03 Thread Barnett, Brian W.
We've spent the last couple of weeks enhancing our web app and now every get/post to Tomcat from our web app is coming in twice. I can't figure out what was changed. I have a breakpoint in the execute() method of our LookupDispatchAction derived base class and all incoming requests come in twice no

RE: Double posting problem

2005-06-03 Thread Barnett, Brian W.
Not using any Filters. -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Friday, June 03, 2005 11:24 AM To: Struts Users Mailing List Subject: Re: Double posting problem From: "Barnett, Brian W." <[EMAIL PROTECTED]> > We've spent the last c

RE: Double posting problem

2005-06-03 Thread Barnett, Brian W.
und this simply by returning false for the event like this: this way, only your javascript function will be the one submitting. just something to watch out for. woodchuck --- Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "Barnett, Brian W." <[EMAIL PROTECTED]> >

RE: Double posting problem [SOLVED]

2005-06-03 Thread Barnett, Brian W.
rvlet. Whew! Glad to have found that one... -Original Message- From: Barnett, Brian W. Sent: Friday, June 03, 2005 11:49 AM To: 'Struts Users Mailing List' Subject: RE: Double posting problem Thanks woodchuck, but the behavior is happening with any request, not just a form submit

RE: Eclipse plug-in for Struts

2005-06-22 Thread Barnett, Brian W.
http://www.sysdeo.com/sysdeo/eclipse/tomcatplugin -Original Message- From: Tony Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 22, 2005 10:59 AM To: Struts Users Mailing List Subject: Eclipse plug-in for Struts Is there an Eclipse plug-in for Struts or Tomcat so that I can develo

RE: [OT] find out web app path / Quartz Scheduler?

2005-06-24 Thread Barnett, Brian W.
Pass it into the job using the JobDetail object. JobDetail jobDetail = sched.getJobDetail("FooJob", "FooGroup"); String fooPath = servlet.getServletContext().getRealPath("foo"); jobDetail.getJobDataMap().put("fooPath", fooPath); -Original Message- From: Brian McGovern [mailto:[EMAIL PRO

RE: anyone else pass their ActionForm off to another layer

2005-07-12 Thread Barnett, Brian W.
Page 34 in Core J2EE Patterns 2nd Ed. talks about the problems related to exposing presentation-tier data structures to the business tier. The main problem this poses is that it increases the coupling between the tiers and reduces the reusability of the underlying services. Pages 80-83 discuss some

RE: Need guidance in the presentation layer

2005-02-11 Thread Barnett, Brian W.
Have you looked at struts-menu. (http://struts-menu.sourceforge.net) -Original Message- From: Vijaya S [mailto:[EMAIL PROTECTED] Sent: Friday, February 11, 2005 7:48 AM To: Struts User mailing List Subject: Need guidance in the presentation layer Hi, I am having the problem of designin

RE: Design pattern for struts.

2005-02-15 Thread Barnett, Brian W.
Struts itself is an example of the Service to Worker Pattern, which is a macro pattern using a combination of a controller and dispatcher with views and helpers. -Original Message- From: Sandip Khetle [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 12:25 AM To: user@struts.apac

[OT] RE: automatic periodic execution of code

2005-02-16 Thread Barnett, Brian W.
Are you trying to configure Quartz in web.xml as a servlet or in struts-config.xml as a struts plug-in? We're using Tomcat, not WebSphere, but it seems like we ran into a few issues trying to run it as a servlet. I don't remember what the issues were, sorry. We ended up running it as a struts pl

RE: Model

2005-03-31 Thread Barnett, Brian W.
Here's a UML class diagram using iBATIS for db access. It might give you a general idea on how to implement your model layer. http://www.whitesandsolutions.com/wssBase-Framework%20Architecture.htm (You have to view it with Internet Explorer if you want to be able to zoom in and out on the image.)

RE: Popup Windows with Struts Actions

2005-04-05 Thread Barnett, Brian W.
Sorry, I'm a javascript beginner. Can you provide a sample javascript onclick event? Thanks... -Original Message- From: Wiebe de Jong [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 05, 2005 11:54 AM To: 'Struts Users Mailing List' Subject: RE: Popup Windows with Struts Actions Like th

[OT] Looking for a tree control tag library

2005-04-29 Thread Barnett, Brian W.
If you know of a good, configurable tree control tag library for use in jsp pages, please advise. Thanks, Brian Barnett This email may contain confidential material. If you were not an intended recipient, Please notif

RE: [OT] Survey - Tell me what you think about Struts.

2005-05-02 Thread Barnett, Brian W.
I addressed the "stuffing up of any useful CVS functionality" by using Jalopy source code formatter. http://jalopy.sourceforge.net. The key is for someone to specify the source code formatting rules, usually the defaults are close enough for most. Jalopy provides "export" functionality, so all you

RE: Losing request attributes after validate()

2005-05-06 Thread Barnett, Brian W.
To the action mapping -Original Message- From: David Johnson [mailto:[EMAIL PROTECTED] Sent: Friday, May 06, 2005 1:52 PM To: Michael Jouravlev; Struts Users Mailing List Subject: Re: Losing request attributes after validate() a I see. Soam I adding scrope="session" to the Form Bean

RE: tree structure with struts

2005-05-16 Thread Barnett, Brian W.
Here are some links to tree controls: http://pragmaticobjects.com/demo.html http://www.common-controls.com/en/resources/taglib/tags/ctrl_tree.html http://struts.application-servers.com/ (Struts Layout) http://www.softcomplex.com/products/tigra_tree_menu/ And then of course, you have Java Server F

[OT] Open a new browser window when submitting a form

2005-05-24 Thread Barnett, Brian W.
Is it possible to open a new browser window to display the results, i.e., the response, of a form being submitted? If you've done this, would you please provide an example? TIA, Brian Barnett This email may contain conf

RE: [OT] Open a new browser window when submitting a form

2005-05-24 Thread Barnett, Brian W.
Architect Omnytex Technologies http://www.omnytex.com On Tue, May 24, 2005 11:27 am, Barnett, Brian W. said: > Is it possible to open a new browser window to display the results, > i.e., the response, of a form being submitted? If you've done this, > would you please

RE: [OT] Business Layer Ideas

2005-05-27 Thread Barnett, Brian W.
http://www.whitesandsolutions.com/wssBase-Framework%20Architecture.htm http://www.whitesandsolutions.com/wssBase-Patterns.htm (Two images here. Use navigation in left frame.) View the above links with Microsoft Internet Explorer so you can use the pan and zoom features. -Original Message

RE: Session invalidation problem

2004-11-08 Thread Barnett, Brian W.
Session.getAttribute(sessionAlive") will throw an IllegalStateException if it is called against a session that is invalidated. Try something like this: try { Session.getAttribute(sessionAlive"); } catch (IllegalStateException e) { request.setAttribute("message", "Your session timed out. Plea

RE: Session invalidation problem

2004-11-08 Thread Barnett, Brian W.
You are not guaranteed to have a valid session at this point of your code. It depends on how you retrieved the session variable. If you called request.getSession() or request.getSession(true), then a session will be created for you if the request does not have a valid session. If you call request.g

RE: Session invalidation problem

2004-11-08 Thread Barnett, Brian W.
invalidation problem Yep, I am aware of that. I in fact call it with just request.getSession(). I should have been clearer... at this point in my code, **based on what I do in the code prior to it**, I am guaranteed to have a session. Barnett, Brian W. wrote: > You are not guaranteed to have a va

RE: Session invalidation problem

2004-11-08 Thread Barnett, Brian W.
e an IllegalStateException (I could see getting one BEFORE that point, but if it gets that far, as near as I can tell, it shouldn't be possible). Spot anything Brian? Thanks for your effort! -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.

RE: How to disable Enter=Submit on struts form?

2004-11-08 Thread Barnett, Brian W.
What do you want the Enter key to do? Do you want it to move to the next control, i.e., act like the Tab key? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 08, 2004 4:54 PM To: Struts Users Mailing List Subject: How to disable Enter=Submit on

RE: [OT - Friday]Corporate Stupidity

2004-12-10 Thread Barnett, Brian W.
Probably when my CEO tried for week to get me to stay at the company instead of taking another opportunity. I spent about 2 hours a day for week in his office as he explained why I should stay, comparing the opportunities, my future, my pay, benefits, etc. After additional research and a lot of th

RE: [OT] Request an app test (free beer!)

2004-12-20 Thread Barnett, Brian W.
On TI-99: Out of memory -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Monday, December 20, 2004 3:26 PM To: Commons User; Struts User; Tomcat User Subject: [OT] Request an app test (free beer!) I was informed last OT post I made that the subject should alway

ActionMessages problem

2004-12-27 Thread Barnett, Brian W.
Hello, I'm sure it's something simple, but I can't get my ActionMessage to display in my JSP page. Action class code: ActionMessages messages = new ActionMessages(); messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("errors.includedAmountGreaterThanAmountSpecified")); saveMessages(requ

RE: ActionMessages problem

2004-12-27 Thread Barnett, Brian W.
Yes, I have the necessary tag libraries imported. -Original Message- From: Kishore Senji To: Struts Users Mailing List Sent: 12/27/2004 6:40 PM Subject: Re: ActionMessages problem Make sure that you have imported the "html" tag library On Mon, 27 Dec 2004 12:53:27 -0600, Barn

Security question

2005-01-04 Thread Barnett, Brian W.
I'm using LookupDispatchAction and role-based security. I want to allow certain roles to access certain dispatches of an action. I'm not sure what the best way to handle this is. Should I create separate Action classes? Is there a slick way to specify "dispatch level" security in web.xml? Can som

RE: Security question

2005-01-04 Thread Barnett, Brian W.
: Struts Users Mailing List Subject: RE: Security question > -Original Message- > From: Barnett, Brian W. [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 04, 2005 11:04 AM > To: 'Struts Users Mailing List' > Subject: Security question > > > I'm using

RE: Displaytag, number formatting, and sorting

2005-01-06 Thread Barnett, Brian W.
Use a column decorator. And create your decorator class something like this: public class MoneyDecorator implements ColumnDecorator { public MoneyDecorator() { super(); } public String decorate(Object value) { String decoratedVal

How to determine machine name in a plug-in

2005-01-25 Thread Barnett, Brian W.
Can someone tell me how to determine the machine name of the server from inside the init() method of a plug-in? It looks like I have an ActionServlet object and a ModuleConfig object at my disposal. Thank you, Brian Barnett - To

RE: Parse XML Files

2005-01-27 Thread Barnett, Brian W.
JDOM is a nice open-source XML manipulation library. http://www.jdom.org/ -Original Message- From: Nelson [mailto:[EMAIL PROTECTED] Sent: Thursday, January 27, 2005 10:24 AM To: user@struts.apache.org Subject: Parse XML Files Hi Guys, I'm new to struts and JSP and need to parse and com

RE: Another ODBC OT Question

2005-01-27 Thread Barnett, Brian W.
What rdbms are you using? -Original Message- From: Brandon Mercer [mailto:[EMAIL PROTECTED] Sent: Thursday, January 27, 2005 10:56 AM To: Struts Users Mailing List Subject: Another ODBC OT Question Hello, Ok, I've got another off topic question :-P. That's two in a day! Three strikes

RE: [OT] Re: Another ODBC OT Question

2005-01-27 Thread Barnett, Brian W.
torj.h tml It was too easy, so it's probably the wrong thing. Brandon Mercer <[EMAIL PROTECTED]> 01/27/2005 01:17 PM Please respond to "Struts Users Mailing List" To Struts Users Mailing List cc Subject Re: Another ODBC OT Question Barnett, Brian W. wrote: >Wh

RE: Want to know abt patterns in Struts.

2005-02-04 Thread Barnett, Brian W.
Struts itself is an example of the Service to Worker Pattern, which is a macro pattern using a combination of a controller and dispatcher with views and helpers. -Original Message- From: Akshay Pandit [mailto:[EMAIL PROTECTED] Sent: Friday, February 04, 2005 12:45 AM To: user@struts.apach

Suggestions for providing online help in a struts web app

2005-02-07 Thread Barnett, Brian W.
I've written a couple of Struts web apps where the only online help was a help icon next to some strategically chosen fields which when hovered over, produced some rollover help text. One problem I found with this approach was that if I wanted to provide help on a bunch of controls, the page got cl

[OT] HttpSessionListener question - How to get to request object?

2005-09-22 Thread Barnett, Brian W.
Is there a way to get to the request object in an HttpSessionListener.sessionCreated() method? Specifically, I want to call request.getRemoteUser() so I know who just created the session. TIA, Brian Barnett This email m

RE: Change the query parm before forward

2005-09-23 Thread Barnett, Brian W.
You could try using a Filter. I'm sure there are many tutorials and examples out there. Here is an example: Web.xml MyFilter com.wss.util.MyFilter Some description. MyFilter

RE: Change the query parm before forward

2005-09-23 Thread Barnett, Brian W.
Struts has built in token functionality to prevent the "submit button pressed twice" problem. In action class add(), edit(), and delete() methods, or any method that is preparing to send user to a form for subsequent submittal, add this: saveToken(request). It's a member of Action. In jsp

RE: Change the query parm before forward

2005-09-23 Thread Barnett, Brian W.
Actually, you don't need to do anything in the jsp pages, my bad. See here: http://forum.java.sun.com/thread.jspa?threadID=656481&messageID=3858400#3858 400 Or just google for "savetoken struts" for more info. -Original Message----- From: Barnett, Brian W. Sent: Friday,

RE: database design

2005-10-03 Thread Barnett, Brian W.
Adam, Does Visio work with MySQL? -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Monday, October 03, 2005 1:31 PM To: Struts Users Mailing List Subject: Re: database design Rafael Taboada on 03/10/05 18:22, wrote: > Hi folks. When u design a database... What soft do

How to minimize security related code in Action classes

2005-10-07 Thread Barnett, Brian W.
Can someone point me to some articles or provide some examples on how to minimize security related code (authorization) in my Action classes? I am currently using container-managed, form-based security (Tomcat) for authentication and and elements in web.xml. The problem is that I'm not sure how