Re: Struts Design question

2001-12-07 Thread Ted Husted
ets to > me in the Action. Go to the Action first, populate the ActionForm and then forward to the JSP. The form tags will see the ActionForm, and use it to populate themselves. Then when the form is submitted, it is populated from the request parameters "again", closing the loop.

Re: lost form data when validate returns errors

2001-12-07 Thread Ted Husted
if ("continue".equals(action)) { > >> System.err.println("\n\n\n in continue > >>action \n\n\n"); > >> > >> // validate the username isn't already > >>in use > >> boolean alrea

Re: Struts Design question

2001-12-10 Thread Ted Husted
eason not to nest it. A good candidate for a HTML buffer uses a String or boolean for storage, and can store invalid input before committing it to your model. Generally, most components are designed to do exactly the opposite -- accept or reject input, period. -- Ted Husted, Husted dot Com, Fairport N

Re: How to pass beans this way with Struts?

2001-12-10 Thread Ted Husted
our model needs. The Struts controller is designed to autogenerate and autopopulate the ActionForm beans, but doesn't care if you use them or not. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/

Re: Struts Design question

2001-12-10 Thread Ted Husted
Ted Husted wrote: > If you find something that works better for you, be sure to report back. > We aren't jealous ;-) Adopt and adapt. Or, if you find one I haven't listed here, be sure to let me know. http://husted.com/struts/links.htm#mvc/frameworks -- Ted Husted, Husted d

Re: As there any Expected Date The Next Version of Struts will Come Out?

2001-12-13 Thread Ted Husted
http://jakarta.apache.org/struts/userGuide/kickstart.html#release The best advice to make any strategic plans based on what is available today, period, and treat any new release as a pleasant surprise. Even our roughest estimates have proven to be wildly inaccurate, and so it would be cruel for u

Re: Solved: RE: /do/do/AmIGoingCrazy? Help needed with /do/actionname

2001-12-14 Thread Ted Husted
t do > logon? Things are broken all over, so when one part seems to work, > another part stops. > > THANKS! > > Bill Chmura > Ensign-Bickford Industries, Inc. > Information Technologies Department > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]

Re: Pictures store in a data base

2001-12-18 Thread Ted Husted
Check for dynamic images in the archive. www.mail-archive.com Basically, you can write an action that writes the image as a response, and then just refer to like any image source. "Fischer, Thomas" wrote: > > Hello! > Can anybody help me? > How can I store pictures in a data base with strut

Re: 404 error when placing JSPs beneath WEB-INF

2001-12-18 Thread Ted Husted
olger > > > > Please respond to [EMAIL PROTECTED] > > > > > > > > > __ Eine Klasse für sich - der WEB.DE Club. High End >

Re: AW: PLEASE: Image References in jsp

2001-12-18 Thread Ted Husted
The browser doesn't know *where* your page is, it only knows what URI was requested. The tag corrects relative references. http://jakarta.apache.org/struts/struts-html.html#base -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737

Re: 404 error when placing JSPs beneath WEB-INF

2001-12-18 Thread Ted Husted
Heck, there's no reason for anyone to even know that they are JSPs back there to access ;-) -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROT

Re: on referencing images

2001-12-18 Thread Ted Husted
If the images were under WEB-INF, the browser couldn't access them. The alternative would be use a runtime expression with html:base (or equivalent) that specified a location for the HTML resources. This must be accessible to the browser, since it is the client that fetches them. The base does n

Re: 404 error when placing JSPs beneath WEB-INF

2001-12-18 Thread Ted Husted
At least a forward. That way we can just refer to the logical name in the link tag. It is also a convenient way to pass any parameters, so you can have Saves a lot of slashes, and lets you do things like switch between pages and actions, as needed. -- Ted Husted, Husted

Re: jsp pages under WEB-INF..

2001-12-19 Thread Ted Husted
Use this for an index.jsp <%@ page language="java" %> <%@ taglib uri="/tags/struts-logic" prefix="logic" %> And then put in a foward to whatever you want to handle the welcome action -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Softwa

Re: Personalized content using Struts. Jetspeed?

2001-12-19 Thread Ted Husted
ay Jetspeed lets you plug in portlets. But, if you need a plug-and-play Enterprise Information Portal, and what Jetspeed bundles meets your needs, definately go for it. Though, personally, I would be cautious when it came to actually developing new portlets, since there is still a lot of unprove

Re: jsp pages under WEB-INF..

2001-12-19 Thread Ted Husted
puts control into the Struts application. What your "welcome" action is really should be part of the struts-config rather than the web.xml. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/

Re: jsp pages under WEB-INF..

2001-12-19 Thread Ted Husted
Orginally, it came up in the context of enforcing MVC and preventing JSPs from linking to each other. Another use would be to protected selected JSPs. Though, once you start to discriminate, an actual security scheme might be a better option. -- Ted Husted, Husted dot Com, Fairport NY USA

Re: 1 ActionHandler and 2 ActionForms

2001-12-19 Thread Ted Husted
passed to an Action. It just needs to know which one to expect. You could determine that through reflection, or looking at the type in the mapping, or via the generic parameter property. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463

Re: Multichannel support with Struts

2001-12-20 Thread Ted Husted
classes in the Action Mappings. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ "Salonen, Aki" wrote: > > Hello, > > We have been developing web-application needing a multichannel

Re: Don't understand why?

2001-12-21 Thread Ted Husted
By default, the Struts tag will name the button "submit", which conflicts with the JavaScript function by the same name. If you are using the Javascript submit fuction, it is important to give the submit button another name. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custo

Re: Programming Style, Custom Tags - Opinions?

2001-12-21 Thread Ted Husted
sentation layers later. For example, it's now easy to use Velocity templates with Struts along with JavaServer Pages. Documentation is pending, but here's a sample application showing how the Velocity template thing works: http://husted.com/struts/resources.htm#new -- Ted Husted, Husted

Re: Programming Style, Custom Tags - Opinions?

2001-12-23 Thread Ted Husted
Velocity templates. Since the ContextHelper provides the same utility as the tags, any presentation system that can access a JavaBean can lookup up hyperlinks and localized messages, and other services the framework provides. Moving forward, this will also reduce maintenance, since maintaining the C

Re: JSP / Struts Question

2001-12-28 Thread Ted Husted
JSP is superb, but, IHMO, ancilliary to the actual framework. The core of Struts is the front controller, and the elements defined in the Struts configuration, which lead to calling the JSPs, not the JSP's themselves. So, yes. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software

Re: How do I use nested Collections with iterate tag?

2001-12-31 Thread Ted Husted
You might have a look at Arron's Nested Struts Extension http://www.keyboardmonkey.com/struts/index.html Prem Kumar Ponnuraj wrote: > > Hi, > > I have an ArrayList of ArrayList. > /*** > ArrayList objScreenDetailsContainer = new ArrayList(); > ArrayList objRowDetails = new ArrayList(); > objR

Re: FOP, XSL & Struts

2001-12-31 Thread Ted Husted
The Action has direct access to the HttpResponse, and would do it the same way as any plain servlet. I can't be more specific without spending more time in the FOP documentation. But any example for a plain servlet should work in an Action, just use the provided response instance to obtain the wr

Re: New entities in struts-config?

2001-12-31 Thread Ted Husted
Deft handling of HTTPS is a blind spot in the framework. I do think we need a better all-around solution for this. For now, you could set up alternate struts-config's for each host, and then edit the web.xml when its deployed. But that's really messy. The entity in the DTD is a clever idea but tha

Re: a problem with struts logic:iterate

2001-12-31 Thread Ted Husted
Using the iterate tag to create the HTML for table is no different than creating any type of HTML. You might take a look a the struts-exercise-taglib example in the distribution. This tests iterating over a String array and an ArrayList. You could try placing this page in your application, subst

Re: Resetting Application Scope Data Once A Day

2001-12-31 Thread Ted Husted
You might consider setting up an administrative action that would refresh the application attributes on demand. The URL for the admin action could be called as part of the batch job, possibly using Cactus or some other utility designed to submit a HTTP request. So you would simply have something

Re: Nested templates...

2001-12-31 Thread Ted Husted
You might want to try Cedric's Tiles library, which is more powerful than the original template library. http://www.lifl.fr/~dumoulin/tiles/ This is also in the contrib folder for the nightly build, though I believe Cedric will be submitting it to Jakarta Taglibs soon, since it can be also used

Re: action classes aren't dinamically loaded (with BroadVision)

2001-12-31 Thread Ted Husted
It's been my experience that different containers vary in their ability to sense changes to Action classes and even JavaServer Pages. Resin is quite good at this. Tomcat on Linux is also good at this. (Though Tomcat on NT does not seem to be quite as good.) This is really up to the container, and

Re: force a reset of value

2001-12-31 Thread Ted Husted
Struts 1.0 does not call reset if the ActionForm is being instantiated by the html:form tag. This behaviour has been changed in the nighty build. The best all-around solution is to route control through an Action first, and then forward to the page. This lets the controller call reset, and keeps

Re: reload button

2001-12-31 Thread Ted Husted
See http://jguru.com/forums/view.jsp?EID=480547 Crisalyn Ramos wrote: > > Hi, all. > > How do I disable the resubmission of a data when the reload button is > clicked? > > thanks, > Cris > > -- > To unsubscribe, e-mail: > For additional commands, e-mail:

Re: false call

2001-12-31 Thread Ted Husted
s ActionServlet, and scan the incoming requests at that level. This ensures the request is authorized before it ever gets to an Action. -- Ted Husted, Husted dot Com, Fairport NY USA. -- "Building web applications with Struts." -- Tel 585 737-3463. -- http://www.husted.com/struts/ Himans

Re: Removing obsolete form beans from request?

2001-12-31 Thread Ted Husted
It's not necessary. Craig describes it as "defensive programming", but its not something I do in my own applications. Hai-Bang Pham wrote: > > I've noticed in the struts examples that the form beans are removed even if the > scope is set to "request". > > Is this really necessary? This hap

Re: Resin 2.0.0 & Struts 1.0 & JDK1.4.0-beta3 BUG?

2001-12-31 Thread Ted Husted
It looks like there are some mis-matched JARs. Try replacing the ones in the WEB-INF/lib with fresh copies from the struts-example application (assuming that one works for you). Lenharcik Juraj wrote: > > Hi, > > I have tried to run a simple struts web-app with this configuration (above). > I

Re: html:link tag bug???, Really need help!

2001-12-31 Thread Ted Husted
You may have to put the anchor link in by hand THe linkTHe link I agree that it should produce both. You might submit this as an enhancement request to Bugzilla. http://nagoya.apache.org/bugzilla/ "Struts Newsgroup (@Basebeans.com)" wrote: > > Subject: html:link tag bug???, Really need hel

Re: Wrox Professional Site Design Book

2002-01-02 Thread Ted Husted
I honestly haven't read it yet myself ;-) But like Steve said, it has Struts all through it. Steve, still thinking about doing your example from Pro JSP in JBoss (or maybe Expresso)? -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +

[Fwd: [ANN] Struts + Velocity + Tools +...]

2002-01-03 Thread Ted Husted
for convenience. These features depend on the current 1.3-dev jar, which is included. Struts == This is a package that contains the stuff needed to connect Struts and Velocity, and the overwhelming majority of the hard work was done by Gabriel Sidler and Ted Husted (from Struts-land). It has

Re: why have another xml file?

2002-01-05 Thread Ted Husted
JSPs. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Pete Carapetyan wrote: > > This question bordelines on flame bait. > > It is like asking, "Why use a database, w

Re: index.do as welcome file?

2002-01-05 Thread Ted Husted
Using an Action as a welcome doesn't work, but you can use an index.jsp to forward to a welcome Action. <%@ page language="java" %> <%@ taglib uri="/tags/struts-logic" prefix="logic" %> -- Ted Husted, Husted dot Com, Fairport NY USA. -- Buildi

Re: Questions on Actions

2002-01-05 Thread Ted Husted
indicate where that control should pass to another Action or a presentation page. ActionForwards can be local to the Action, global to the config file, or created dynamically in the Action. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585

Re: Nesting tags in JSP

2002-01-05 Thread Ted Husted
You may want to say " -Ted. Jack wrote: > > What would be the syntax needed to cause the output of a tag to > be written into the value property of an tag? I tried the > following, but it never made it past the compiler: > > property="userId"/>" /> > > TIA. > > Jack -- To unsubscribe

Re: General design question

2002-01-05 Thread Ted Husted
Assuming you mean "page" where the message says "site", you might want to take a look at this: http://husted.com/struts/resources/struts-simple.zip -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 7

Re: Javascript tag libs

2002-01-05 Thread Ted Husted
David's validator generates Javascript. http://home.earthlink.net/~dwinterfeldt/ This is also in the contrib folder, though David is in the process of contributing it to the Commons instead. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -

Re: problem using the tag

2002-01-05 Thread Ted Husted
You may want to say -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ "To, Wilson" wrote: > > Hi Struters, > > I have a problem using the tag. > > I h

Re: button tag

2002-01-05 Thread Ted Husted
It should work the way you describe. You might try changing the method to get, and see what shows up in the query string. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ "Kuntz

Re: Where can I find ?

2002-01-05 Thread Ted Husted
The html:message tag was added to the nightly build. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Peter Pilgrim wrote: > > I want to customise the errors messages for invali

Re: Dynamic properties in ActionForms with custom tag

2002-01-05 Thread Ted Husted
>default name used in the select-tag in pageContext. It looks at the Action specified by the enclosing html:form, and uses whatever ActionForm is specified by that Action. Alternatively, you can specify the name of the bean yourself. > I'm really at a loss and I hope you can help me wi

Re: Dynamic properties in ActionForms with custom tag

2002-01-05 Thread Ted Husted
Mapped properties are supported in the nightly build. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Freek Segers wrote: > > Hello again, > > I've partially sol

Re: html:link and do

2002-01-05 Thread Ted Husted
With html:link, you have to include it yourself, since the tag has no idea of whether you are referring to an Action. If you use forwards throughout, this puts everything in the Struts config, so you do not have to embed these sorts of details in your page. -- Ted Husted, Husted dot Com

Re: Link Edit/Delete

2002-01-05 Thread Ted Husted
th the retrieved user detail? If the ActionForm is specified in the ActionMapping in the Struts config, then the ActionSerlvet will create it, and pass it along to the Action. The Action can the populate it, and forward control to a JSP. The JSP can then write the values from the form bean stored in t

Re: Struts-config.xml

2002-01-06 Thread Ted Husted
. Also in the contrib folder of the nightly build, there is a package called "scaffold" with another standard Action, org.apache.scaffold.http.FindForwardAction (my personal favorite). -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. --

Re: Creating reports in PDF format

2002-01-06 Thread Ted Husted
Ajay Chitre wrote: > I know this is probably going to sound stupid, but I have to ask - Is there > a platform independent product that will allow me to create a report in > Excel format? Once the report is created on the server I can let the user > download it via browser. Has anybody done anyth

Re: "Back" button

2002-01-08 Thread Ted Husted
The client stores the history list, and so you need to use a client-side technique to do anything like this. Struts is not really involved. There's often been talk about keeping your own history list in the user's session, but I don't remember ever seeing an implementation p

Re: Struts Question of select and options tag

2002-01-08 Thread Ted Husted
Have you looked at using the options tag with the select tag? http://jakarta.apache.org/struts/struts-html.html#options And then use the logic:present/logic:notPresent tags to check for the null instance. See also http://jguru.com/faq/view.jsp?EID=549097 -- Ted Husted, Husted dot Com

Re: Questions regarding action and form interaction

2002-01-08 Thread Ted Husted
so that any dependant objects are created. > Thanks in advance for any help you can give, > > Mike Witt > > _________ > Chat with friends online, try MSN Messenger: http://messenger.msn.com > > -- > To unsubscri

Re: Forwarding a Bean as a Request Attribute

2002-01-08 Thread Ted Husted
ive is to store the bean(s) in the session where they won't vanish. But that could expose memory constraints. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Jack wrote: > >

Re: Some newbie questions

2002-01-08 Thread Ted Husted
I believe the answer is yes. > > hope this doesn't sound too confused to answer :) > > k. > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- Ted Husted, Husted dot Com, Fairport NY U

Re: Proposal: Add "nameValue" and "checkedProperty" to "radio" (and "checkbox"?)

2002-01-08 Thread Ted Husted
"David M. Karr" wrote: > > I asked about this on the "dev" list, but I'd like to see what the regular > users think (and because I didn't get any response from the "dev" list). Sorry about that. We just get a little busy sometimes. Things posted to Bugzilla will have to be dealt with eventua

Re: Browser timed-out while action still going on

2002-01-08 Thread Ted Husted
for your time and response. > > Thinh > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- T

Re: Example of using Jmeter with Struts

2002-01-08 Thread Ted Husted
; > Alex > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www

Re: Struts under ATG Dynamo

2002-01-08 Thread Ted Husted
e of anyone > using? > > Thanks > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 7

Re: Generic JSP

2002-01-08 Thread Ted Husted
Can we move this over to the User list? Taylor Cowan wrote: > > You're going about this the hard way. The solution involves XML and XSLT. > The XML can be produced on the fly, while the XSLT doc is static. > > Taylor > > -Original Message- > From: Sidhartha Jain [mailto:[EMAIL PROTECT

ActionMapping Prefix - Use Case?

2002-01-08 Thread Ted Husted
s one, and was curious if anyone is using these properties in practice. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>

Re: Action Forwarding with /do style url

2002-01-08 Thread Ted Husted
used there. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Phase Communcations wrote: > > I think this is a simple question. I have been developing an app using the > /do command li

Re: Newby - Looking for more idiot-proof documentation

2002-01-08 Thread Ted Husted
yet.) And this looks especially neat: http://webAppWriter.com/ -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Pete Carapetyan wrote: > > I am going to start attracting flames

Re: What is the best way to display pictures from a database usin g Struts

2002-01-09 Thread Ted Husted
+1 How about a nice little package that also documented the standard mime types as static finals, grabbed the mimeType and content from request attributes, as as Jin, says "Bob's your Uncle". Anyone else interested in contributing this to the Actions package before I do it myself :) -Ted. Ji

Re: What is the best way to display pictures from a database using Struts

2002-01-09 Thread Ted Husted
See the source code for org.apache.struts.actions.ReloadAction It writes "OK" when it's done. Makes for a good "hello world" example. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web htt

Re: Best way to store configuration data

2002-01-09 Thread Ted Husted
in the > WEB-INF dir so I can access the values from my servlets. Should I use > the context-param tag in the web.xml file for tomcat? or is there > a better way? > > Cheers > > Antony > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For add

Re: Commons Logging Lib??

2002-01-09 Thread Ted Husted
For now, the package is at http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/ Michael Clay wrote: > > Anybody knows where I can find/download the lib where this > class->org.apache.commons.logging.LogSource belongs in ?? > > Many thanks mc -- Ted Husted, Husted dot Co

Re: Thanks! -> Advice needed on Stuts versus Struts/Expresso

2002-01-09 Thread Ted Husted
t an idiot > and I hate to admit it.) > > - Cody Thanks for volunteering. http://jakarta.apache.org/site/getinvolved.html -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ -- To un

Re: why have another xml file?

2002-01-09 Thread Ted Husted
, without touching a single Java class. Personally, I perceive that as a Good Thing, but your mileage may vary. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Jeff Canna wrote: > &

Re: How to set Dynamic hyper link using

2002-01-09 Thread Ted Husted
Another way to go would be writing your own menuForward tag, that knew about your menu object, so you could write the whole thing in a fell swoop. For menuing, this is an interesting package: http://husted.com/struts/resources/struts-menu.zip -- Ted Husted, Husted dot Com, Fairport NY USA

Re: Struts design advice requested please.

2002-01-10 Thread Ted Husted
etter MVC to some folk. It's really a six-of-one half-a-dozen of the other issue, and may be best left up to whomever has to maintain the presentation pages. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web h

Re: Struts design advice requested please.

2002-01-10 Thread Ted Husted
exposed to the Web tier, where anything can happen. (: And usually does :) In practice, the ActionForms themselves are often just wrapper objects, with the real intelligence residing in classes in the business layer. The less done with an ActionForm, the better. -- Ted Husted, Husted dot Com, Fairport

Re: Digester Examples

2002-01-13 Thread Ted Husted
The Digester is now a Commons component. http://jakarta.apache.org/commons/digester.html Phase Communcations wrote: > > Does anyone know of some good concise digester examples and tutorials. I > have been reading the docs but am unsure of several aspects of it. > > Brandon Goodin > Phase Web

Re: Validation frameworks

2002-01-14 Thread Ted Husted
does not provide client-side Javascript validation the way the Validator does. I believe some people use both. Emmanuel's contribution is relatively recent, and is similar to David's. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. --

Re: Session size management with Struts

2002-01-14 Thread Ted Husted
stored under the name specified in the struts-config.xml, and can be removed like any other attribute. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Olivier Dinocourt wrote: > > Hell

Re: struts' approaches

2002-01-14 Thread Ted Husted
But for situations where this type of workflow is not needed, neither are the ActionForms. A new addition to the view-end of the framework is Arron Bates' nested taglib extension, which should be added to the nightly build soon. http://www.keyboardmonkey.com/struts/index.html -- Ted Hus

Re: struts' approaches

2002-01-14 Thread Ted Husted
can use a Map to store the properties of an ActionForm. On the ActionForm, define these methods to access your map: public void setProperty(String key, Object value) public Object getProperty(String key) then you can use this notation in the JavaServer Pages and HTH -- Ted Husted, Huste

Re: struts' approaches

2002-01-15 Thread Ted Husted
JavaBean, the form bean specified by the mapping is simply a default. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: Subclassing ActionMapping

2002-01-15 Thread Ted Husted
subclass, you can use the Digester syntax: to avoid touching the struts-config syntax. HTH. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Frank Lawlor wrote: > > Struts ma

Re: ActionForm and JSP

2002-01-17 Thread Ted Husted
html#form_beans -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Antoine Gibson wrote: > > Dear all, > > I would like to know how my jsp page knows what ActionForm bean to use? >

Re: Forwarding from a FormAction with parameters...

2002-01-17 Thread Ted Husted
uts, and most other Jakarta products, is here: http://www.mail-archive.com/ -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Alex Paransky wrote: > > I understand what you are

Re: Things that use Struts

2002-01-18 Thread Ted Husted
Dan Washusen wrote: > There is even some talk of Lucene being used. Lucene is an excellent package. Use it if you can. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Dan Washu

Re: Grid

2002-01-18 Thread Ted Husted
onza/bean-factory/api/org/apache/struts/util/Pager.html > top: < http://www.sura.ru/~gonza/bean-factory/ > And the tried and true JSPTags pager < http://jsptags.com/tags/ > -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 58

Re: Grid

2002-01-18 Thread Ted Husted
15 NETCOURRIER (0,15 E TTC/min - 1,00 F TTC/min) > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Te

Re: Grid

2002-01-18 Thread Ted Husted
Ted Husted wrote: > Struts provides a front controller, and a nifty JSP taglib to help you > access the controller's "model". And Velocity can access the Struts controller too :) http://cvs.apache.org/viewcvs/jakarta-velocity-tools/ -- Ted Husted, Husted dot Com, Fairpor

Velocity-Tools / Struts

2002-01-18 Thread Ted Husted
documentation for this, and other contributions like the Commons-Validator and Tiles to the Struts User Guide. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ -- To unsubscribe, e-mail:

Re: struts-config 'set-property' element

2002-01-18 Thread Ted Husted
It's for use when you extend a standard class with additional properties. You can use set-property without messing about with the DTD. You can plug in extended classes for ActionForms, ActionForwards, and ActionMappings in the web.xml. See also the JavaDoc for ActionServlet. -- Ted H

Re: WebLogic 6.1 SP1 and the /do/* uri-pattern

2002-01-18 Thread Ted Husted
ot; property of the relevant ActionMapping here. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Eric Ma wrote: > > I have read articles by Ted Husted and Vic Cekvenich saying t

Re: Grid => solution

2002-01-18 Thread Ted Husted
! thank you again...thanks also to Ted & Tom...;o) > > Gaetan -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: bean:replace ?

2002-01-20 Thread Ted Husted
Oops, let me retract (A)-(C). Reusing an id on the same JSP page is disallowed by the JSP 1.1 specification. -Ted. Ted Husted wrote: > > bean:define calls PageContext.setAttribute(), which does return an error > if the attribute already exists. > > >http://java.sun.com/j2e

Re: Beginner questions

2002-01-20 Thread Ted Husted
(org.apache.struts.Action) before forwarding control the presentation page. The page should just be outputing data, and shouldn't to do any additional processing. That's the Action's job :) -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. --

Re: Suggestion

2002-01-20 Thread Ted Husted
orm'); } // --> This opens a remote window that displays a related record, based on the item key (passed as "aRecord). The doRecord script can be called like this: -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-34

Re: Question about forwarding back.

2002-01-20 Thread Ted Husted
whether to later return to A and B. If permitted, this is also a place where session attributes can be useful to store information between requests, but hidden properties work nearly as well. They require the assistance of the page designer, but consume fewer server resoruces. -- Ted Husted, Husted

Re: html:errors error?

2002-01-20 Thread Ted Husted
Did you switch over to the messages tag? The orignal errors tag requires a errors.header and errors.footer in the properties files, to provide markup, but these are optional with the messages tag. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts

Re: RequestUtils - bug? design limitation?

2002-01-20 Thread Ted Husted
t; retrieve the attribute from? > > Any help/comments greatly appreciated. Thanks, > > Scott Esbrook > Software Developer > Compuware Corporation > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTE

Re: response.sendRedirect as a POST?

2002-01-20 Thread Ted Husted
A good place to post a question like this is the jGuru Servlet forum. http://jguru.com/forums/Servlets Asad Bukhari wrote: > > Hi, > General servlet-api Qs: > I'm using HttpServletResponse.sendRedirect for > directing to a new URL and I normally add parameters > as a query-string to that URL

Re: No action instance for path-only with sub-sub-class of Action

2002-01-20 Thread Ted Husted
-- I do this sort of thing all the time. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Kelly Davis wrote: > > I have created a class called DefaultAction which extends Acti

<    3   4   5   6   7   8   9   10   11   12   >