Re: abstract class

2002-12-04 Thread Brian Hickey
LOL!

Yes. 'Tis true. I would suggest a different approach, but it is irrelevant.
I am simply trying to help someone to find an answer. Thanks for the
explanation :o)

Brian


- Original Message -
From: "Andrew Hill" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 04, 2002 7:44 AM
Subject: RE: abstract class


> 
> So your sub
> class (a derivation of your base class) needs to call into its super
class,
> it is done with a super() call. The super() call is (and must be) the
first
> statement in the subclass's overriding method.
> 
>
> Thats just for constructors. Ive got a few places where a subclass
overrides
> a normal method in which it checks something and if a certain condition is
> met it does some special behaviour, but if not makes a call to the
> superclass implementation of the method in order to proceed as normal.
Thats
> using the syntax super.doSomething(), while super() is what you use if
your
> in a constructor - in that case it must be the first statement, but for
> normal methods it can be called anytime.
>
> -Original Message-
> From: Brian Hickey [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 04, 2002 20:26
> To: Struts Users Mailing List
> Subject: Re: abstract class
>
>
> Mohan,
>
> Two different behaviors is what you wish then you need to derive from a
> concrete base class. Abstract classes are more likely to provide
conformance
> to an architecture or signature template.
>
> In Struts, folks usually inherit from the Action class to create certain
> behaviors. If you need to super() to a base class, you are correct, it
> cannot be an abstract class. I would suggest that it shouldn't be in most
> any case, but I don't know your architecture.
>
> It is also early and I am not sure of your terminology. A base class is a
> super class (standard inheritance diagrams display that way) and
subsequent
> derivations are known as subclasses. When you want to use the code in a
> super class from your sub class, you user super() to call it. So your sub
> class (a derivation of your base class) needs to call into its super
class,
> it is done with a super() call. The super() call is (and must be) the
first
> statement in the subclass's overriding method.
>
> All of this seems too easy, so I am sure I have completely missed the
point.
>
> Brian
>
>
> - Original Message -
> From: "Mohan Radhakrishnan" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, December 04, 2002 5:47 AM
> Subject: abstract class
>
>
> > Hi,
> >
> >If an action has two different behaviours then it is advised to use
an
> > abstract method in the base class that the sub-action can override.
> >
> >Our base action's perform method has to pass control to a sub
action's
> > method for the varying behavior. But if we use an abstract method then
the
> > action cannot be instantiated.
> >
> >  How is this usually done?
> > Thanks,
> > mohan
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> >
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: abstract class

2002-12-04 Thread Brian Hickey
Mohan,

Two different behaviors is what you wish then you need to derive from a
concrete base class. Abstract classes are more likely to provide conformance
to an architecture or signature template.

In Struts, folks usually inherit from the Action class to create certain
behaviors. If you need to super() to a base class, you are correct, it
cannot be an abstract class. I would suggest that it shouldn't be in most
any case, but I don't know your architecture.

It is also early and I am not sure of your terminology. A base class is a
super class (standard inheritance diagrams display that way) and subsequent
derivations are known as subclasses. When you want to use the code in a
super class from your sub class, you user super() to call it. So your sub
class (a derivation of your base class) needs to call into its super class,
it is done with a super() call. The super() call is (and must be) the first
statement in the subclass's overriding method.

All of this seems too easy, so I am sure I have completely missed the point.

Brian


- Original Message -
From: "Mohan Radhakrishnan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 04, 2002 5:47 AM
Subject: abstract class


> Hi,
>
>If an action has two different behaviours then it is advised to use an
> abstract method in the base class that the sub-action can override.
>
>Our base action's perform method has to pass control to a sub action's
> method for the varying behavior. But if we use an abstract method then the
> action cannot be instantiated.
>
>  How is this usually done?
> Thanks,
> mohan
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Struts Log

2002-12-03 Thread Brian Hickey
Wilson,

If it is a standard install and seeing as it is 1.0.2, it is most likely
that there is no Struts error log file.

Tomcat has log files for Jasper(the JSP compiler), Servlet (servlet inits),
and any mods like mod_jk that you may have installed with Tomcat. These are
populated on startup and don't normally contain errors and will not contain
runtime errors, so no help there.

There is only sterr and stdout. So, in Windows NT, you may use a command
prompt in a window to start Tomcat and it may start in that window or open
its own. In this case, the window itself is stderr and stdout. So you would
see runtime errors that wrote to stderr/stdout in that window. Not much
help, but if the error is generated and writes somewhere, that is where it
will show.

If you don't see anything there, you may need to do some
System.out.println()'s in your code to trace the execution.

The interesting aspect is that you are NOT getting a stack trace. Let us
know if you can see the error anywhere other than the browser.

Brian

- Original Message -
From: "To, Wilson" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, December 03, 2002 8:15 AM
Subject: RE: Struts Log


> Hi Brian,
>
> Thanks for the response. I'm using version 1.0.2 of Struts and 3.2.1
Tomcat
> under Windows NT.  I'm not actively doing any logging as such so therefore
I
> guess I'm not (knowingly) using Log4J or jakarta-commons etc.
>
> The error that is returned in the actual browser is as I mentioned earier:
>
> Error Found
> A failure occured in the application and the exception was likely handled.
> See Struts log to determine more about the error.
>
> Since the message displayed (some default from Struts?) refers to the
Struts
> log, I'd thought it was something that is written to automatically.
>
> I hope this helps a little.
>
> Wilson
> -Original Message-
> From: Brian Hickey [mailto:[EMAIL PROTECTED]]
> Sent: 03 December 2002 13:50
> To: Struts Users Mailing List
> Subject: Re: Struts Log
>
>
> Wilson,
>
> Logging is dependent on many things. Which version of Struts? What JSP
> container? (i.e. Tomcat 4.1.X), are you using Log4J or jakarta-commons
> logging?
>
> It would also help if you showed the actual error message.
>
> Brian
>
> - Original Message -
> From: "To, Wilson" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, December 03, 2002 7:27 AM
> Subject: Struts Log
>
>
> > I'm sure this is a simple thing but I cannot find any details about this
> > anywhere - apologies for affending anyone if this is too simple and thus
> > clogging up this mailing.
> >
> > I got an error stating "A failure occured in the application and the
> > exception was likely handled. See Struts log to determine more about the
> > error."  This seems to occur if someone tries to access my system after
it
> > has not been accessed for a while (say 1-2 days).  However, the question
> is
> > where is the struts log located and do I need include something in
> > struts-config.xml to enable it?
> >
> > Thanks in advance
> >
> > Wilson
> >
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>






> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Struts Log

2002-12-03 Thread Brian Hickey
Wilson,

Logging is dependent on many things. Which version of Struts? What JSP
container? (i.e. Tomcat 4.1.X), are you using Log4J or jakarta-commons
logging?

It would also help if you showed the actual error message.

Brian

- Original Message -
From: "To, Wilson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 03, 2002 7:27 AM
Subject: Struts Log


> I'm sure this is a simple thing but I cannot find any details about this
> anywhere - apologies for affending anyone if this is too simple and thus
> clogging up this mailing.
>
> I got an error stating "A failure occured in the application and the
> exception was likely handled. See Struts log to determine more about the
> error."  This seems to occur if someone tries to access my system after it
> has not been accessed for a while (say 1-2 days).  However, the question
is
> where is the struts log located and do I need include something in
> struts-config.xml to enable it?
>
> Thanks in advance
>
> Wilson
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Struts: a Graphic Artist blessing or curse?

2002-11-25 Thread Brian Hickey
I don't think management of a development staff was a goal of J2EE :o)

It is separation of process and/or skill sets that Struts/MVC provides for.
Whether this happens or not is up to people, not software... yes?

The method you refer to in your last paragraph is quite common and works
quite well. If someone can do all of the tasks in a large Struts project,
they are highly skilled, very experienced and are probably compensated quite
well.

Struts taglibs, like most all taglibs, are converted in the servlet and HTML
equivalents are "emitted" as the browser only understands HTML. Perhaps this
is the piece that designers/web developers struggle with.

FWIW, graphic design and Java development generally use different parts of
the human brain. It isn't to say they are mutually exclusive, just that it
is difficult to switch back and forth between these skills.

Brian


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 8:49 AM
Subject: Re: Struts: a Graphic Artist blessing or curse?


>
> Haha!
>
> This whole idea of J2EE where we have seperation of roles hasn't quite
happened has it. The idea that there are business process programmers,
database programmers, front end guys etc. In the end it's always the same
person fulfilling all the roles.
>
> On the projects that I have been on in the past Graphic designers have
been comissioned to make up the pages, which are done statically. Then the
programmers have gone through the pains of making these pages dynamic.
>
> Regards
> IV


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Get ServletContext from Action (Struts 1.0.2)

2002-11-22 Thread Brian Hickey
Christophe,

That will work. Also, you may need to explicitly cast the datatype returned.

Brian

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 22, 2002 1:16 PM
Subject: Get ServletContext from Action (Struts 1.0.2)


>
> Hello,
> Can you tell me how to obtain the ServletContext in a Struts 1.0.2 Action.
> Is the getServlet().getServletContext() call on my action the good way to
> do that ?
>
> Thanks.
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tiles newbie

2002-11-21 Thread Brian Hickey
A coworker asked the following question "Can I implement Tiles as a stand
alone?"

I was busy so I said "Not likely and we are only in production with 1.0.2"

A quick search (if there is such a thing) of the archives reveals a lot of
Tiles info, but nothing specific to his question.

Does anyone know if I was too quick with my answer?

I will send pizza :o)

Brian


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Page flow diagrams for Struts

2002-11-21 Thread Brian Hickey
Nick,

Aside from the lighthearted ribbing, did you want a UML diagram?

Brian

>
>
>
>   Hi all,
>
>   I was wondering if anyone has a good diagramatic representation of
>   page flow that also captures forms and Action processing from submit
>   buttons and links. I've have my own representation of course, but I was
>   wonder what other people do. I suppose what I'm really after is a good
>   story boarding technique that I can standardise on.
>
>   Cheers
>
>   ..Nick
>
>   --
>   To unsubscribe, e-mail:

>   For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Struts file upload validation problem

2002-11-20 Thread Brian Hickey
Martin is correct :o)

Also be aware that very very large files can exceed the setting of Java temp
space (memory) allocation is some containers and crash them.

One approach that works is to write a simple file upload script in Perl.
This allows you to check content-type, size, etc. and reject the upload
before trouble happens. It is also platform independent to a "reasonable"
degree.

Just another $.02 worth...

Brian



- Original Message -
From: "Martin Cooper" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, November 20, 2002 1:16 PM
Subject: Re: Struts file upload validation problem


>
>
> On Wed, 20 Nov 2002, Poynter, Stephen wrote:
>
> > I have just written a document upload tool for a customer using the
struts
> > upload functionality.  My upload jsp consists of one form that is of
course
> > a multipart/form-data form.  The form consists of the file field along
with
> > other text fields where the user enters various information( owner,
title,
> > etc.) about the file to be uploaded.  The problem I'm having is that
once
> > you submit the form struts immediately starts uploading the file before
any
> > of the other data in the form is validated.  So, in my case, the user
tries
> > to upload a large file but enters invalid information for the other text
> > fields.  Struts then uploads the file before validating the form data.
So
> > when the user corrects their mistake they have to re-upload the file yet
> > again.  Is it possible to have the form data validated before the file
is
> > uploaded?  I would rather not use javascript for error checking.  Any
help
> > is appreciated.  Thanks...
>
> Just to clarify the process, Struts does not upload the file, the browser
> does. The file is part of the same request as the other fields in your
> form - it's one of the -parts- in the -multipart- request, as is each of
> the remaining fields. Struts can't start working on the request until it
> is complete, including the file upload.
>
> If you need to do validation before the file is uploaded, you either need
> to use JavaScript in the browser, or use a separate page for the other
> fields, so that you can validate them server-side before the file is
> uploaded from its own page.
>
> --
> Martin Cooper
>
>
> >
> > Steve
> >
> >
> > --
> > To unsubscribe, e-mail:

> > For additional commands, e-mail:

> >
> >
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How to Redirect ???

2002-11-18 Thread Brian Hickey
Wolfgang,

Redirect outside of an app can be done a number of ways.

One suggestion:

Map your redirect to a class that creates the forwardURL.
Put the forwardURL into request scope.
Create a JSP that does nothing but the redirect. Map to it in struts-config.
use the jsp:usebean and  tag to perform the external
redirect.

The advantage of this method is logging which can be done in the class and
you have no context other than what you specify in the 
tag.


Brian



- Original Message -
From: "Kris Schneider" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, November 18, 2002 11:58 AM
Subject: Re: How to Redirect ???


> That's not what the contextRelative attribute means. Here's the snippet
from
> the 1.1 DTD:
>
> contextRelative  Set this to "true" if, in a modular application, the path
>  attribute starts with a slash "/" and should be
considered
>  relative to the entire web application rather than the
module.
>  Since Struts 1.1.
>  [false]
>
> The redirect attribute only determines if RequestDispatcher.forward or
> HttpServletResponse.sendRedirect is used. In either case, the path
attribute is
> always either module-relative or context-relative.
>
> I think you'll have to use something like HttpServletResponse.sendRedirect
> directly in your Action to redirect outside your app's context.
>
> Quoting "Trieu, Danny" <[EMAIL PROTECTED]>:
>
> > Isn't there is a contextrelative attribute in the  tag where
you
> > can set to 'true'?
> >
> > -Original Message-
> > From: wolfgang [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, November 18, 2002 8:15 AM
> > To: [EMAIL PROTECTED]
> > Subject: How to Redirect ???
> >
> >
> > Hi there,
> >
> > I wanna make users redirect(not forward) to http://www.yahoo.com , but
> > cannot make it...
> >
> > I added the following elements in the struts-config.xml
> >
> > 
> >   http://www.yahoo.com"; redirect="true" />
> > 
> >
> > and the following code in the execute method of the Action class.
> >
> > return mapping.findForward("finish");
> >
> > but It doesn't work.
> > Struts attempts to make users redirect to the
> > "/test_webapp/http://www.yahoo.com"; where /test_webapp is the name of my
> > web
> > application.
> >
> > How can I make it ??
> >
> > Thanks in advance.
> >
> > wolfgang-
> >
> >
> > --
> > wolfgang <[EMAIL PROTECTED]>
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
>
> --
> Kris Schneider 
> D.O.Tech   
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: "deferring" an action

2002-11-14 Thread Brian Hickey
Alayne,

Would a time requirement mess things up? If not, your actions could simply
place the forms into session scope.

Most of our clients don't spend all day at their machines, so 30 minutes or
so is too much of a constraint...

Just a wild thought :o)

Brian

- Original Message -
From: "Alayne Wartell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 14, 2002 12:25 PM
Subject: "deferring" an action


> This is something I haven't seen discussed before. Our web application has
> a large, dynamically built tree in its own frame by which users navigate
to
> input screens. ( They can also click on menu options -- slightly different
> but raises the same issue for us.) Data entry is freeform -- users can
> navigate anywhere at any time. So far, no big deal. The unusual part is,
> when a user finishes entering data on a screen, then clicks to go to
> another screen, we automatically save the screen they're leaving. In a
> sense, we have to defer the page load action to do a save action on the
> prior page. So we're trying to come up with a clean way to fit this into
> Struts.
>
> The sequence is:
> Click link -> save current page  -> respond with reassuring message in
> another frame (i.e. "screen has been saved") -> go to clicked link
>
> We haven't come up with any designs we like yet. One example of something
> we don't like:
>
> 1) user fills out form, call it currentPage
> 1) user clicks to go to somePage.do
> 2) javascript puts "somePage.do" in hidden field on currentPage, and
>then initiates a submit of currentPage
> 3) submit to currentPageSave.do
> 3) action forwards to jsp with hidden form -- 'somePage.do' is the form
> action (also, javascript puts confirmation message in header frame)
> 4) immediately submit that form using javascript
>
> Ideas, anyone? (Sure, we could do away with the auto-save to make our app
> more webbish -- if it weren't a business requirement. Besides, it really
is
> nice for the users.)
>
> Thanks,
> Alayne
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Re: user manually changing local

2002-11-13 Thread Brian Hickey
Marcus,

What datatype does getLocal() return?

I would likely write:

SetLocalForm myForm = (SetLocalForm)form

first and then:

String localString = myForm.getLocal();

or:

String localString = myForm.getLocal().toString();

It may not execute and differently, but it keeps the cast separate and
clear.

HTH

Brian


- Original Message -
From: "Marcus Biel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 13, 2002 6:25 AM
Subject: OT: Re: user manually changing local


> ARG! What the hell is wrong here ???
> import java.util.Locale;
> import java.lang.*;
> import java.sql.*;
> import javax.servlet.http.*;
> import org.apache.struts.action.*;
>
> public class SetLocalAction extends Action {
> public ActionForward perform(ActionMapping mapping,
> ActionForm form, HttpServletRequest request, HttpServletResponse
> response){
>
>   String localString = (SetLocalForm)form.getLocal();
>
>   Locale local = new java.util.Local(localString, localString);
> request.getSession().setAttribute(Action.LOCALE_KEY, local);
> return mapping.findForward("setLocalActionDone");
>}
> }
>
> Got a SetLocalForm.class that has got the method getLocal() so it should
> be working.
>
> But when I try to compile the Action, I get:
>
> SetLocalAction.java:12: cannot resolve symbol
> symbol  : class SetLocalForm
> location: class SetLocalAction
>   String localString = (SetLocalForm)form.getLocal();
> ^
> SetLocalAction.java:12: cannot resolve symbol
> symbol  : method getLocal  ()
> location: class org.apache.struts.action.ActionForm
>   String localString = (SetLocalForm)form.getLocal();
>  ^
> SetLocalAction.java:14: cannot resolve symbol
> symbol  : class Local
> location: package util
>   Locale local = new java.util.Local(localString, localString);
>   ^
> 3 errors
>
>
> Damn! Thats frustrating!
>
> marcus
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Problem with using Vector?

2002-11-13 Thread Brian Hickey
Jana,

I think I see part of the problem. Here is some further info:



-- When you use type="com.ViewListingBean"... do you have a class named
ViewListingBean that has a 'package com' directive at the top? If so - good.
If not - that needs to be corrected.

-- The "id" in the usebean tag refers to the exact name of the bean your
action class placed into request/session scope.

-- The logic:iterate should look like..


-- Then you can use tags nested in the iterate as:



You are correct - JSP/Struts will not allow redefinition of beans with the
same name in the same page/template/tile.

HTH

Brian



- Original Message -
From: "Jana Navaneethan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, November 13, 2002 1:20 PM
Subject: Re: Problem with  using Vector?


> Hi Brian,
>Thanks for your help I appreciate it. Actually I have a
> ViewListingBean which represents the Object in the listingsSummary Vector.
> In my JSP, I have already defined bean like this
> 
>
> When I try to use same id "viewListing" in my iterate tag it complains
about
> the id been already defined?
> I need to use the "viewListing" bean id for displaying some other
properties
> in my JSP page. Now how do I define my id in iterate tag? which
reperesents
> the same bean.
>
> Actual error message is
> No bean found under attribute key viewListingBean
>
> Thanks,
> Jana.
>
> - Original Message -
> From: "Brian Hickey" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, November 13, 2002 12:45 PM
> Subject: Re: Problem with  using Vector?
>
>
> > Jana,
> >
> > It would help to see the actual error.
> >
> > More below...
> > > Hi,
> > >I have a Vector in my form bean which contains multiple
Objects,
> I
> > > want to loop through the contents of this Vector in my JSP page, I
have
> a
> > > getListingsSummary() method in my form bean which is viewListingForm,
> But
> > > for some reason when I call my JSP it throws some exception like
> > > No bean found under attribute key viewListingBean
> > >
> > > Here is my iterate tag
> > >  > > property="listingsSummary">
> >
> > This says you have a bean named "ViewListingForm" that has some scope
> > (request/session) in your JSP. Also that you will refer to that items in
> the
> > property collection in "listingsSummary" by the scripting variable
> > "ViewListingBean". The property accesses the collection (List/Vector)
you
> > want by calling the form getter for "listingsSummary".
> >
> > To be thorough, you will need to include the "type" attribute to
identify
> > the object type that will be found in the collection "listingsSummary".
It
> > looks like type="java.util.Vector".
> >
> > >
> > > Here is my form Bean
> > >
> > >public Vector getListingsSummary()
> > >{
> > >   return(this.listingsSummary);
> > >}
> > >
> > > public void setListingsSummary(Vector listingsSummary)
> > >{
> > >   this.listingsSummary = listingsSummary;
> > >}
> > >
> >
> > The getter will be called by the iterate tag for "listingsSummary" and
you
> > have the case correct.
> >
> > >
> > > My Action class sets the form bean before forwarding to the JSP page..
> > >
> > > ViewListingForm listingform = (ViewListingForm) form;
> > > listingform.setListingsSummary(listingsSummary);
> > >
> > >
> > > BTW what is this id means in the iterate tag? Any help would be
greatly
> > > appreciated!
> >
> > Always check the Javadoc (start at: http://jakarta.apache.org/struts/ ).
> The
> > "id" attribute names the scripting variable you will use within the
> iterate
> > tag. In other words, each object contained in the Vector
"listingsSummary"
> > will be referred to as "ViewListingBean".
> >
> > So you can now use ViewListingBean to access the individual properties
of
> > the objects in your listingsSummary. For example  > name="ViewListingBean" property="someProperty"/>
> >
> > >
> > > Thanks in advance,
> > > Jana.
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> > > For additional commands, e-mail:
> > <mailto:struts-user-help@;jakarta.apache.org>
> > >
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> > For additional commands, e-mail:
> <mailto:struts-user-help@;jakarta.apache.org>
> >
> >
>
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




Re: Problem with using Vector?

2002-11-13 Thread Brian Hickey
Jana,

It would help to see the actual error.

More below...
> Hi,
>I have a Vector in my form bean which contains multiple Objects, I
> want to loop through the contents of this Vector in my JSP page, I have a
> getListingsSummary() method in my form bean which is viewListingForm, But
> for some reason when I call my JSP it throws some exception like
> No bean found under attribute key viewListingBean
>
> Here is my iterate tag
>  property="listingsSummary">

This says you have a bean named "ViewListingForm" that has some scope
(request/session) in your JSP. Also that you will refer to that items in the
property collection in "listingsSummary" by the scripting variable
"ViewListingBean". The property accesses the collection (List/Vector) you
want by calling the form getter for "listingsSummary".

To be thorough, you will need to include the "type" attribute to identify
the object type that will be found in the collection "listingsSummary". It
looks like type="java.util.Vector".

>
> Here is my form Bean
>
>public Vector getListingsSummary()
>{
>   return(this.listingsSummary);
>}
>
> public void setListingsSummary(Vector listingsSummary)
>{
>   this.listingsSummary = listingsSummary;
>}
>

The getter will be called by the iterate tag for "listingsSummary" and you
have the case correct.

>
> My Action class sets the form bean before forwarding to the JSP page..
>
> ViewListingForm listingform = (ViewListingForm) form;
> listingform.setListingsSummary(listingsSummary);
>
>
> BTW what is this id means in the iterate tag? Any help would be greatly
> appreciated!

Always check the Javadoc (start at: http://jakarta.apache.org/struts/ ). The
"id" attribute names the scripting variable you will use within the iterate
tag. In other words, each object contained in the Vector "listingsSummary"
will be referred to as "ViewListingBean".

So you can now use ViewListingBean to access the individual properties of
the objects in your listingsSummary. For example 

>
> Thanks in advance,
> Jana.
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: html:link question

2002-11-11 Thread Brian Hickey
Mike,

The HTML comment isn't applied until the page is rendered. Use the Java
comment to prevent processing.

Brian

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 11, 2002 1:37 PM
Subject: RE: html:link question


> Hue,
>
> I think I found the problem.  In my welcome.jsp, I have the followin g
line
> (which is commented out):
>
> 
>
> If I take that line out, the error goes away.  So, Tomcat will process
> commented out tags?  Doesn't sound right, but I'll keep it in mind.
>
> Thanks for your help, Mike
>
> -Original Message-
> From: Hue Holleran [mailto:hueh@;softwareskills.net]
> Sent: Monday, November 11, 2002 10:57 AM
> To: 'Struts Users Mailing List'
> Subject: RE: html:link question
>
>
> Hi Mike,
>
> Sorry for the delay in getting back to you - do you still have an issue
with
> this?
>
> OK, personally - I've never seen this exact error before and I've not been
> successful in attempting to reproduce: "Exception forwarding for name
> welcome:" and attempts to reproduce this error were not successful!
>
> The error seems to come from:
>
> ...
> at org.apache.jsp.index_jsp._jspService(index_jsp.java:60)
> ...
>
> i.e. index.jsp
>
> When I reproduced your actions and forwards, I used an index.jsp, as
> follows:
>
> <%@page contentType="text/html"%>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> Administrative Functions
>
> ... and this worked fine.
>
> >> I've been trying different things and now I'm getting it on welcome ...
> it's
> going from bad to worse. <<
>
> OK - what's your current state of play - i.e. would it helped if I sent
you
> the play app (as a .war) I was using to test the code you posted - as it
> does seem to work for me?
>
> H.
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:mike.witt@;honeywell.com]
> Sent: 08 November 2002 20:20
> To: [EMAIL PROTECTED]
> Subject: RE: html:link question
>
>
> Hi Hue,
>
> You're a glutton for punishment, but here is the whole thing:
>
> org.apache.jasper.JasperException: Exception forwarding for name welcome:
> org.apache.jasper.JasperException: Cannot create rewrite URL:
> java.net.MalformedURLException: Cannot retrive ActionForward named admin
> at
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
> 48)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:260)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:191)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
> at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
> )
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
> at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> java:170)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:641)
> at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
> )
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:641)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :174)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
> org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
> at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
> ction(Htt

Re: html:link question

2002-11-08 Thread Brian Hickey
Mike,

Everyone's implementation is a bit different, but my paths all point to
JSP's. The .do is the action mapped in the  tag.

Brian

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 08, 2002 8:49 AM
Subject: html:link question


> Hello,
>
> I'm having a problem with html:link which gives me the Cannot "retrive
> ActionForward named /admin" message.  My struts config has:
>
>   
> 
> 
>   
>
>
>   
>  type="org.apache.struts.actions.ForwardAction"
> parameter="/WEB-INF/pages/welcome.jsp"/>
>
>  type="org.apache.struts.actions.ForwardAction"
> parameter="/WEB-INF/pages/admin-menu.jsp"/>
>   
>
> My jsp has:
>
> Administrative Functions
>
> This gives me the error message.  However, if I replace "adminMenu" with
> "welcome" it works just fine.  Also, if I use the page attribute it works
> for welcome.do and not for adminMenu.do.  Any help is appreciated!
>
> Mike
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Dates & validation

2002-11-05 Thread Brian Hickey
Wendy

One vote for three pre-populated boxes. Saves on validation that way :)

Brian

- Original Message -
From: "Wendy Smoak" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, November 05, 2002 3:18 PM
Subject: Dates & validation


>
> Do most people allow users to type in a complete free-form text date?  Or
do
> you give them three boxes where they must put in month day and year
> separately?
>
> I'm trying to come to terms with validation.  I can't turn on the
automatic
> validation  because the users are allowed to
> leave the form before it's complete and come back to it.  Will I still be
> able to use the plug-in Validator?  (All the actions in the
struts-validator
> example have 'validate' this turned on. :(
>
> I have the DAO layer that takes an internal format date (# of days since
> 1960-something) to my Value Object which now has a java.sql.Date:
> contactVO.setActualDate( java.sql.Date.valueOf( uSession.oconv(
> udArray.extract( 16 ), "D4-YMD" ).toString() ) );
>
> But here's where I get lost.  In order to copy the properties back and
forth
> from Value Object to ActionForm, the types have to match.  (Don't they?)
But
> if I put a java.sql.Date into my ActionForm, then it will blow up when the
> user types 7/13/1985 rather than 1985-07-13 and submits the form.
>
> So, I need a String property in the ActionForm, and ... some special
> something that turns it into a java.sql.Date but will not blow up if the
> input is wrong?
>
> I'm going in circles.  Any advice is appreciated!  (Should I not be using
> java.sql.date?)  I did search for 'struts date validation' with Google,
but
> didn't find an answer.
>
> --
> Wendy Smoak
> Applications Systems Analyst, Sr.
> Arizona State University PA Information Resources Management
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Problem with multipart/mixed and file Tag

2002-11-05 Thread Brian Hickey
Yann,

Apologies if this is lame, but do you have an 
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, November 05, 2002 12:12 PM
Subject: Re: Problem with multipart/mixed and file Tag


> When I try multipart/form-data I have a "java.util.NoSuchElementException"
> in my Action Class.
> It is due to an empty reference: List fileItems =
> upload.parseRequest(request);
>
> Does anyone can help me please?
>
> - Original Message -
> From: "Yann Verlynde" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, November 05, 2002 5:42 PM
> Subject: Re: Problem with multipart/mixed and file Tag
>
>
> > Thanks, but I tried and it doesn't work...
> > - Original Message -
> > From: "Sukhenko, Mikhail (Contr)" <[EMAIL PROTECTED]>
> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > Sent: Tuesday, November 05, 2002 5:28 PM
> > Subject: RE: Problem with multipart/mixed and file Tag
> >
> >
> > > should not you use enctype="multipart/form-data"
> > > instead of enctype="multipart/mixed"?
> > >
> > >
> > > -Original Message-
> > > From: Yann Verlynde [mailto:yverlynde@;oxade.com]
> > > Sent: Tuesday, November 05, 2002 3:46 AM
> > > To: Struts
> > > Subject: Problem with multipart/mixed and file Tag
> > >
> > >
> > > Hello,
> > >
> > > I have a problem with this code (a form with content multipart/mixed
and
> > an
> > > form class).
> > >
> > > This is my form:
> > >
> > >   
> > > Please select the file that you would like to upload:
> > > 
> > >
> > > If you checked the box to write to a file, please specify the file
> > path
> > > here:
> > > 
> > >
> > > 
> > >   
> > >
> > > My form class:
> > >
> > > public class UploadForm extends ActionForm
> > > {
> > > public static final String ERROR_PROPERTY_MAX_LENGTH_EXCEEDED =
> > > "org.apache.struts.webapp.upload.MaxLengthExceeded";
> > >
> > > protected FormFile theFile;
> > >
> > > protected String filePath;
> > >
> > > public FormFile getTheFile() {
> > > return theFile;
> > > }
> > >
> > > public void setTheFile(FormFile theFile) {
> > > this.theFile = theFile;
> > > }
> > >
> > > public void setFilePath(String filePath) {
> > > this.filePath = filePath;
> > > }
> > >
> > > public String getFilePath() {
> > > return filePath;
> > > }
> > >
> > > public void reset() {}
> > >
> > > public ActionErrors validate(ActionMapping mapping,
> HttpServletRequest
> > > request)
> > > {
> > > ActionErrors errors = null;
> > > //has the maximum length been exceeded?
> > > Boolean maxLengthExceeded = (Boolean)
> > >
> > >
> >
>
request.getAttribute(MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED);
> > > if ((maxLengthExceeded != null) &&
> > > (maxLengthExceeded.booleanValue()))
> > > {
> > > errors = new ActionErrors();
> > > errors.add(ERROR_PROPERTY_MAX_LENGTH_EXCEEDED, new
> > > ActionError("maxLengthExceeded"));
> > > }
> > > return errors;
> > > }
> > > }
> > >
> > > This is the exception:
> > > javax.servlet.ServletException: BeanUtils.populate
> > > at
> > > org.apache.struts.util.RequestUtils.populate(RequestUtils.java:980)
> > > at
> > >
> >
>
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
> > > ava:779)
> > > at
> > >
> >
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:246)
> > > at
> > >
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
> > > at
> > > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at
> > >
> >
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> > > FilterChain.java:247)
> > > at
> > >
> >
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> > > ain.java:193)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> > > va:243)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> > > 66)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> > > at
> > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> > > va:190)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> > > 66)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> > > at
> > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > > at
> > >
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
> > > at
> > >
> >
>
org.apache.ca

Re: [OT] Serialization issue - stream has problems flushing?

2002-10-25 Thread Brian Hickey
Eddie,

HEH :) The only things I have been able to "geek up" were serialized objects
in J2EE. One time was a classpath problem and the other was some goofy
versioning thing that insisted on calling every method except the one I
wanted ...

Darn computers. Don't they know what we want to do?

Brian


- Original Message -
From: "Eddie Bush" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, October 25, 2002 12:45 PM
Subject: Re: [OT] Serialization issue - stream has problems flushing?


> That is exactly what I suggested to him, but he suggests he is doing
> this.  I do recall him having asked me about the flush because close is
> supposed to flush, but he assured me he *is* calling flush before close.
>  So far as I was aware, that was the one thing you had to be careful of
> - but beyond that I'm not aware of any potential "hangups".  I fail to
> see where serialization would be anywhere near so widely used if it
> "didn't work" though.
>
> He's got roughly 1000 or so objects out there so far which were
> serialized with the standard approach.  There's like 1 out of that 1000
> that is geeked up - HEH.  No good.  I'll reiterate to him the importance
> of doing this and ask for him to be absopositively certain he is doing
> as you (and I) suggest.
>
> Thanks, Brian.
>
> Brian Hickey wrote:
>
> >Eddie
> >
> >If he is writing his own wrappers then the class should take the basic
form
> >of this:
> >
> >import java.io.*;
> >public class ser {
> > public static void main(String args[]) throws IOException
> > {
> >  FileOutputStream f = null;
> >  Integer i = new Integer(1);
> >  f = new FileOutputStream("tmp");
> >  ObjectOutput s = new ObjectOutputStream(f);
> >  s.writeObject(i);
> >  s.flush();
> >  f.close();
> > }
> >}
> >
> >Forgetting to use the flush() method will cause what he observes.
> >
> >Can it be that simple?
> >
> >Brian
> >
>
> --
> Eddie Bush
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




Re: [OT] Serialization issue - stream has problems flushing?

2002-10-25 Thread Brian Hickey
Eddie

If he is writing his own wrappers then the class should take the basic form
of this:

import java.io.*;
public class ser {
 public static void main(String args[]) throws IOException
 {
  FileOutputStream f = null;
  Integer i = new Integer(1);
  f = new FileOutputStream("tmp");
  ObjectOutput s = new ObjectOutputStream(f);
  s.writeObject(i);
  s.flush();
  f.close();
 }
}

Forgetting to use the flush() method will cause what he observes.

Can it be that simple?

Brian



- Original Message -
From: "Eddie Bush" <[EMAIL PROTECTED]>
To: "Struts Users List" <[EMAIL PROTECTED]>
Sent: Friday, October 25, 2002 12:00 PM
Subject: [OT] Serialization issue - stream has problems flushing?


> I've got a friend asking me questions I don't have the answers to.  I
> was in hopes one of you may.
>
> My buddy uses serialization (ie. ObjectOutput/InputStream wrapping
> FileOutput/InputStream for writing/reading objects to/from disk) as per
> a suggestion I made when asked for a non-database approach ("they" [the
> powers that be] were very adimate about not wanting to use the DB).  He
> doesn't have any libs laying around to facilitate using XML
> serialization - and he didn't want to have to get them and get their
> installation approved.  Right now, I'm regretting I didn't advise him to
> go through that hassle though.  It seems some of the objects he's
> serializing ... aren't!  He has one instance where a file containing an
> object is like 10 bytes - and it should be more like 300-ish.  His
> cohorts suggested that there were known issues with streams not flushing
> - but I'm not aware of them.  Is this a fact?  Is there a way to
> serialize without using streams?  (I have to think someone is full of
> beans wrt the streams not flushing, but he's convinced that is what's
> happening and is looking to me for advice on how to rectify the
situation).
>
> So ... any suggestions?  Is there a way to do serialization in the
> traditional sense that does not involve the use of streams?  Even the
> XML serialization techniques involve streams, do they not?
>
> Thanks!
>
> --
> Eddie Bush
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [OT]

2002-10-24 Thread Brian Hickey
She's not a newt or wood. She is a parrot and she's pinin' for the fjords..

:)

B


- Original Message -
From: "Robert Taylor" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, October 24, 2002 8:18 AM
Subject: RE: [OT] 


> ummmvery small rocks?
>
> robert
>
> > -Original Message-
> > From: ruben [mailto:ruben.carvalho@;inesc.pt]
> > Sent: Thursday, October 24, 2002 8:11 AM
> > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > Subject: Re: [OT] 
> >
> >
> > But, what else floats in the water?
> >
> > King Arthur's turn
> >
> > RĂºben
> > - Original Message -
> > From: "Andrew Hill" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Thursday, October 24, 2002 12:54 PM
> > Subject: RE: [OT] 
> >
> >
> > > We burn witches so witches must be made of wood. So if shes made of
wood
> > > then shes a witch!
> > >
> > > -Original Message-
> > > From: Galbreath, Mark [mailto:Galbreath@;tessco.com]
> > > Sent: Thursday, October 24, 2002 19:50
> > > To: 'Struts Users Mailing List'
> > > Subject: RE: [OT] 
> > >
> > >
> > > Now, how can we tell if she's really a witch?
> > >
> > > -Original Message-
> > > From: Andrew Hill [mailto:andrew.david.hill@;gridnode.com]
> > > Sent: Thursday, October 24, 2002 7:46 AM
> > >
> > > Burn her anyway!
> > >
> > > -Original Message-
> > > From: Galbreath, Mark [mailto:Galbreath@;tessco.com]
> > > Sent: Thursday, October 24, 2002 19:46
> > >
> > > I got betta
> > >
> > > -Original Message-
> > > From: Andrew Hill [mailto:andrew.david.hill@;gridnode.com]
> > > Sent: Thursday, October 24, 2002 7:39 AM
> > >
> > > a newt?
> > >
> > > -Original Message-
> > > From: Galbreath, Mark [mailto:Galbreath@;tessco.com]
> > > Sent: Thursday, October 24, 2002 19:33
> > >
> > > She turned me into a newt!
> > >
> > > -Original Message-
> > > From: Andrew Hill [mailto:andrew.david.hill@;gridnode.com]
> > > Sent: Thursday, October 24, 2002 7:12 AM
> > >
> > > >>"..ng() values witch is not very us.."
> > >
> > > A witch!
> > > burn her!
> > > burn her!
> > >
> > > -Original Message-
> > > From: Roland Carlsson [mailto:roland.c@;swetravel.se]
> > > Sent: Thursday, October 24, 2002 19:05
> > >
> > > Hello!
> > > I'm trying to use  but the only thing I get get into
the
> > list
> > > are Object.toString() values witch is not very useful for the user.
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> > > 
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> > > 
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> > > 
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> > > 
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> > > 
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > 
> > > For additional commands, e-mail:
> > 
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat/Apache and .do

2002-10-22 Thread Brian Hickey
Marc,

The simple answer is:
Struts uses the action mapping, not Tomcat/Any other web server.

The action mappings are defined in struts-config.xml.

Tomcat also uses (by default) port 8080. Do you have Apache installed
w/Tomcat/whatever?

Brian


- Original Message -
From: "Marc AMIR-TAHMASSEB" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 22, 2002 10:49 AM
Subject: Tomcat/Apache and .do


> Hi,
>
> i have a login page and every thing works well when i use the 8080 port :
> http://server:8080/test/index.jsp
> the login.do isasked and the action is realised.
>
> But when i use http://server/test/index.jsp and that i submit the form,
> then the following url is displayed wue a "not found page"
> http://server/test/Login.do
>
> why ?
>
> thank's
>
> Marc
>
> --
> Marc AMIR-TAHMASSEB
> [EMAIL PROTECTED]
> +33.3.90.40.00.00 | +33.6.16.99.27.85
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Last for words with forwarding can someone please help me out here

2002-10-21 Thread Brian Hickey
Much information missing here. Which version of Struts? What does the code
look like?

Scoping manipulates what the page sees, not what the form bean contains.
That makes it interesting that you can change form bean contents by managing
scope.

If you have time, please give more info.

Thanks.

B


- Original Message -
From: "Smith, Johnathan M." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 21, 2002 8:46 AM
Subject: Last for words with forwarding can someone please help me out here


> I have a action that changes some values in the form bean and then
forwards
> to a action.
>
> 1) If my first action is set to request scope and my 2nd action is also
set
> to request scope the 2nd action does not see the form bean changes
>
> 2)  If my first action is set to session scope and my 2nd action is also
set
> yo session scope the 2nd action does not see the form bean changes
>
> 3)  If my first action is set to request scope and my 2nd action is set to
> session scope the 2nd action does WILL see the form bean changes
>
> 4)  If my first action is set to any scope and I forward to a JSP page it
> works great.
>
> Can someone please give me a clue on the above issues???
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Am I the only one using java.util.Date?

2002-10-16 Thread Brian Hickey

Rick,

You are on the right track. A suggestion would be to break the month, day
and year out on your forms (makes nice-nice with html:select) and provide
the code to populate them in your form instance. The conversion is actually
quite simple:

public GregorianCalendar getStartDate()
{
  return new GregorianCalendar( this.getStartYear(), this.getStartMonth()-1,
this.getStartDay() );
}

This getter (exists in the same form instance) will hand off the startDate
as a java.util.Date to your (dyn)Action.

HTH

Brian

- Original Message -
From: "Rick Reumann" <[EMAIL PROTECTED]>
To: "Struts List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 16, 2002 12:22 PM
Subject: Am I the only one using java.util.Date?


> My business layer bean has a field as java.util.Date (example:
> birthDate). My form bean uses the String for this date (in this
> example.. String birthDate). The problem is I can't seem to use
> BeanUtils to copy the properties since it appears BeanUtils will only
> convert a java.sql.Date by default (get
> java.lang.IllegalArgumentException: argument type mismatch when using
> java.util.Date) . I tried dealing with registering a custom Coverter I
> wrote and registering it with ConvertUtils and below is a copy of the
> message I posted concerning this problem.
>
> I'm posting this question, though, because I'm curious how others have
> dealt with this situation? Maybe using the BeanUtils or PropertyUtils
> is not that common of a practice or most use a java.sql.Date as
> opposed to java.util.Date? Having dates in form fields is common so
> I'm curious how others transfer their form field dates to their
> business model (as java.util.Date?).
>
> Thanks for any info.
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: alt tags error?

2002-10-15 Thread Brian Hickey

Sean,

The ALT tag views are a function of the browser, not the page. I often
forget and try to view them in NS. If you are in IE and they don't show -
post a snippet.

B

- Original Message -
From: "Cohan, Sean" <[EMAIL PROTECTED]>
To: "Struts (E-mail)" <[EMAIL PROTECTED]>
Sent: Tuesday, October 15, 2002 9:14 AM
Subject: alt tags error?


> Could there a problem with the alt tag for  or  
tags?
> We see nothing when we hover over them.  Thanks.
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [OT] Online Tutorial?

2002-10-11 Thread Brian Hickey

LOL!

No no no. EMACS (nee TECO) rules.. :o)

B

- Original Message -
From: "Galbreath, Mark" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, October 11, 2002 9:10 AM
Subject: RE: [OT] Online Tutorial?


> I feel your pain.  Linux rulez!  Long live Star Office!  Give me vi or
give
> me death!



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: xml, jsp, DOM

2002-10-09 Thread Brian Hickey

Frederic,

I can give you the business case for Struts. Read on if you dare...

Struts allows the separation of layers (the Model/View/Controller) in any
application.

This provides many things including assignment of skills to specific areas.
Database developers get to do database development. Java developers get to
develop Java. HTML developers get to do HTML with (hopefully) a minimum of
Struts/JSP tags. Managers of software teams like this. It is easy and
efficient.

If a company is honest, they should admit that the value of their
application is in the data (Model) and the business logic (Controller).
Although pretty, the presentation layer (View) is what I call a "throwaway".
If they don't use good architecture, they end up chained to the presentation
layer and they spend large amounts of money on any changes to it. Struts
helps avoid this (still need good design and code) by making the
presentation layer "expendable" and "expandable".

A well designed Struts application can support web browsers, cell phones,
PDAs, and anything that may be invented for the forseeable future. All done
with a change or addition of simple presentation layer. Almost painless.

By use of sound techniques, all of your application is derived from the base
Struts classes and you can easily create additional convenience classes that
you can derive from or reuse. This makes each subsequent iteration of the
application easier and easier, not to mention taking less time. This equates
to dollars (or lire) saved.

Now the decision a company has to make is twofold:

1. Is Open Source a solid enough foundation to develop on?
2. Is it worth the time to adopt the OO techniques and Struts knowledge now
to the development team to save money later?

You may guess that every company may have different answers and you would be
correct.

In my humble opinion, Struts is based on best practices and solid OO Design.
That matters to me because I will always choose to be proactive over being
reactive in application development.

HTH

Brian

- Original Message -
From: "Frederic Barozzi" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 09, 2002 11:47 AM
Subject: Re: xml, jsp, DOM


> You're rigth.
> but , in an other hand all my software users want:
> - a garantee of standar.
> - a complete source code.
> - and all reasons that explain lib uses and architecture choices.
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [42] So you wanna be a REAL programmer, huh?

2002-09-20 Thread Brian Hickey

Wow! Someone who remebers IMS/DS/DC. So... could it be that you ever used
SQL/DS?

Brian

(B.S.N.E.)

- Original Message -
From: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, September 20, 2002 11:03 AM
Subject: RE: [42] So you wanna be a REAL programmer, huh?


>
>
> Wow! Someone with almost the same history as me.
> Except I wrote disk and device I/O for the IBM 3630. Other long-forgotten
> exotics in my past:
> - PL/S (let you mix 360 Assembler code and macros with PL/1) available on
360
> and Series1 (remember him?)
> - IBM A/S (A supposed 4GL) I still have not met anyone who knows this. Ran
on
> 370 and used either IMS, VSAM, DB2 data.
> -The venerable IDMS environment and IDMS ADSO (this probably doesn't quite
> qualify as an exotic, but I think a little more than ADABAS)
> - Snobol
>
> And, of course, I'll never forget my time at IBM in the 80s writing code
and
> macro-generation programs for IMS using.SGML! I became a fanatic about
it
> and used to tell everyone how much better is was than sliced toast. No one
> listened :-{ back then.
>
> Those were the days.
>
>
>
>
>
> "Jerry Jalenak" <[EMAIL PROTECTED]> on 09/20/2002 09:19:03 AM
>
> Please respond to "Struts Users Mailing List"
<[EMAIL PROTECTED]>
>
> To:   "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> cc:(bcc: Joseph Sadove/DKBDS USA/DKB)
>
> Subject:  RE: [42] So you wanna be a REAL programmer, huh?
>
>
> Mark - I hadn't seen this tome in some years.  After reading it, I got to
> thinking about the past 20 years of my career, and all of the programming
> languaes etc. that I've been through.  This will probably date me, but
here
> goes
>
> My first programming language exposure was in high school using Basic on a
> time-shared HP mid-range - not sure what the OS was.  In college it was on
> to IBM Assembler, Fortran, COBOL, and PL/1 - my first 'structured'
language.
> Even picked up some of the quiche-eaters Pascal.  In college I worked at a
> small company writing 8080/8085 assembler programs and burning our own
> 'PROMS' - talk about low-level programming!  It was kinda cool writing our
> own disk I/O drivers (until you screwed up the timings!)  On to the real
> world, writing (yes it's true) accounting programs in Fortran for an
> aircraft manufacturer (this was before the day of buying a 'real'
accounting
> package!)  Went from an applications group to a technical support group
> maintaining an MVS/SP (successor to OS/370 for those of you who don't
know).
> Spent the next 15 years down in the bowels of MVS/XA/ESA, VM/XA, VSE/SP,
> CICS, etc. etc. writing exits to the OS in assembler, as well as doing
> installation, maintainance, etc.  Finally got tried of the late night
phone
> calls and got into a business support role writing SAS programs.  Managed
to
> get a job (this one) where I'm finally catching up with all of you in Java
> land!!
>
> TGIF!!!
>
> > -Original Message-
> > From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, September 20, 2002 6:20 AM
> > To: Struts (E-mail)
> > Subject: [42] So you wanna be a REAL programmer, huh?
> >
> >
> >
> > Real Programmers Don't Use Pascal
> >
> >
> > Back in the good old days-- the "Golden Era" of computers--
> > it was easy to
> > separate the men from the boys (sometimes called "Real Men"
> > and "Quiche
> > Eaters" in the literature). During this period, the Real Men
> > were the ones
> > who understood computer programming, and the Quiche Eaters
> > were the ones who
> > didn't. A real computer programmer said things like "DO 10 I=1,10" and
> > "ABEND" (they actually talked in capital letters, you
> > understand), and the
> > rest of the world said things like "computers are too
> > complicated for me"
> > and "I can't relate to computers-- they're so impersonal". (A
> > previous work
> > [1] points out that Real Men don't "relate" to anything, and
> > aren't afraid
> > of being impersonal.)
> >
> >
> > But, as usual, times change. We are faced today with a world
> > in which little
> > old ladies can get computers in their microwave ovens, 12
> > year old kids can
> > blow Real Men out of the water playing Asteroids and Pac-Man,
> > and anyone can
> > buy and even understand their very own personal Computer. The Real
> > Programmer is in danger of becoming extinct, of being replaced by high
> > school students with TRASH-80s.
> >
> >
> > There is a clear need to point out the differences between
> > the typical high
> > school junior Pac-Man player and a Real Programmer. If this
> > difference is
> > made clear, it will give these kids something to aspire to--
> > a role model, a
> > Father Figure. It will also help explain to the employers of Real
> > Programmers why it would be a mistake to replace the Real
> > Programmers on
> > their staff with 12 year old Pac-Man players (at a considerable salary
> > savings).
> >
> >
> > The easiest way to tell a Real Programmer from the crowd is by the
>

Re: SQL Query Builder [Off Topic]

2002-09-17 Thread Brian Hickey

Suggestion - simplify

Layout a JSP page using radio buttons (Or's) and CheckBoxes (AND's) that
coincide with the fields/values/whatever. If you can layout the page and
make it simple, logical and functional, then you can write the qualifier
class(es) to build your WHERE clauses. Swing is likely overkill.

Only a suggestion based on the K-I-S-S principle.

:o)

B



- Original Message -
From: "Howard Miller" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 17, 2002 12:57 PM
Subject: RE: SQL Query Builder [Off Topic]


> Mmm... I actually just need to build the "where" clause part. But I
> need to give my users only the possible fields and values that are
> available, yet let them have the opportunity in construction fairly
> complex filters with multiple AND and OR and parenthesis.
>
> A general expression builder might do it with some modification.
>
> Howard
>
>
> On 17 Sep 2002 at 12:29, Galbreath, Mark wrote:
>
> > yep - but I'd be willing to bet someone has written a Swing query
engine.
> >
> > -Original Message-
> > From: James Mitchell [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 17, 2002 12:10 PM
> > To: Struts Users Mailing List
> > Subject: RE: SQL Query Builder [Off Topic]
> >
> >
> > Isn't that only for Oracle?
> >
> > I was hoping to find an Open Source Swing alternative myself.
> >
> >
> >
> > James Mitchell
> > Software Engineer\Struts Evangelist
> > Struts-Atlanta, the "Open Minded Developer Network"
> > http://www.open-tools.org/struts-atlanta
> >
> >
> >
> >
> > > -Original Message-
> > > From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, September 17, 2002 12:01 PM
> > > To: 'Struts Users Mailing List'
> > > Subject: RE: SQL Query Builder [Off Topic]
> > >
> > >
> > > I use PL/SQL Developer 5.0.
> > >
> > > -Original Message-
> > > From: James Mitchell [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, September 17, 2002 12:00 PM
> > > To: Struts Users Mailing List
> > > Subject: RE: SQL Query Builder [Off Topic]
> > >
> > >
> > > Well, I'm pretty proficient in sql.  But for extremely complex
> > > queries that
> > > require multiple outer joins (like more than 8 tables), I rely on
> > > the visual
> > > query building capabilities of Visual Interdev (ya ya ya M$ sucks).
> > >
> > > I'd love to hear about any open source project that can do what
Interdev
> > > does:
> > >
> > > It gives you 4 panes.
> > > 1. Tables
> > > 2. Fields selected
> > > 3. Sql used
> > > 4. Results of query (if you run it)
> > >
> > > Truly wysiwyg, drop a new table in the table pane, and all panes are
> > > updated.  Modify the sql pane and all the other panes are updated as
well.
> > >
> > > When you connect to an ODBC source (yes, this requires ODBC, but the
sql
> > > generated works regardless) you can just drag in all the tables you
want.
> > > Add filter params and order by, do grouping, sum, count, whatever.
> > >
> > > This also requires that you know your database relationships (to a
certain
> > > extent).  Interdev will read the metadata off the connection and do a
best
> > > guess based on
> > >
> > > The reason I use Interdev is that it creates the vendor specific
> > > sql syntax,
> > > which can be different for Oracle vs. DB2 vs. MySql
> > >
> > > Then I just copy from the sql pane into my application (be it a
resource
> > > file or into the code) and I'm done.
> > >
> > >
> > >
> > > James Mitchell
> > > Software Engineer\Struts Evangelist
> > > Struts-Atlanta, the "Open Minded Developer Network"
> > > http://www.open-tools.org/struts-atlanta
> > >
> > >
> > >
> > >
> > > > -Original Message-
> > > > From: Howard Miller [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, September 17, 2002 11:15 AM
> > > > To: '[EMAIL PROTECTED]'
> > > > Subject: SQL Query Builder [Off Topic]
> > > >
> > > >
> > > > Hi,
> > > >
> > > > This is completely off-topic, and I'm sorry in advance, but
> > > this is where
> > > > all the usefull people live!!!
> > > >
> > > > Has anybody come accross a SQL query builder, or even
query-by-example
> > > > builder in java. That is something to visually put together a query
for
> > > > non-sql-savy users. Its to live in a Struts application, so must be
> > > > Servlet/JSP/Applet based.
> > > >
> > > > Trying to save myself some work!!
> > > >
> > > > Howard Miller
> > > >
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > > 
> > > > For additional commands, e-mail:
> > > > 
> > > >
> > > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> > > 
> > >
> > > --
> > > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
>

Re: [OT][ALT-TECH] Apple Web Objects

2002-09-11 Thread Brian Hickey

Agreed.

The fact that you recognize these traits in others speaks well of your
skills.

:o)

- Original Message -
From: "Kevin A. Smith" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 11, 2002 9:18 AM
Subject: RE: [OT][ALT-TECH] Apple Web Objects


I wasn't implying that Lisp skills neatly translate into OO skills. I think
its more that mastery of SmallTalk or Lisp can be indicative of a strong
developer regardless of language.

--Kevin

-----Original Message-
From: Brian Hickey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 9:09 AM
To: Struts Users Mailing List
Subject: Re: [OT][ALT-TECH] Apple Web Objects


And so do I... LISP isn't OO


- Original Message -
From: "Kevin A. Smith" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 11, 2002 8:51 AM
Subject: RE: [OT][ALT-TECH] Apple Web Objects


Smalltalk, eh? I think that more than a few of the top Java names (Steele,
Gosling) have a Lispish background, too.

-Original Message-
From: Brian Hickey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 8:51 AM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: [OT][ALT-TECH] Apple Web Objects


More fodder...

The Amiga was the first machine and OS to use "flat" memory addressing. It
had the best graphics of its time.

As for WebObjects, it is one of the two branches of history that the top
(IMHO) Java developers come from. The other is Smalltalk.



- Original Message -
From: "Andrew Hill" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 11, 2002 8:20 AM
Subject: RE: [OT][ALT-TECH] Apple Web Objects


> ohhh now your asking for it!
>
> Meet the guru a few too many times did we? hehe
>
> Actually the OS was not too bad for the time. Pre-emtive multitasking,
gui,
> etc... (bit touchy though as it didnt have anything in the way of memory
> protection to stop different processes playing with memory that didnt
belong
> to them). And of course much of the magic of the Amiga was in its hardware
> which was marvellous for the time, and at the cost made it very much the
> premier games machine. (Also found a lot of use in TV production ,
> especially after the video toaster came out)
>
> And hey! I remember typing up some essays on my Amiga once so nyah! Wasnt
> used entirely for games. I must have spent at least five of the thousands
of
> hours I used it for serious stuff and anyway it had the best games so its
> little wonder gamers loved it :-P
>
> Useability of the Amiga was better than many systems (such as the ancient
> DOS boxes) , though certainly not to the same level as the MAC. Have to
> agree that one button is all you need. A second one can be useful at times
> (ie: paint software / cad / games etc...) but whoever came up with the
idea
> of context menus deserves a good flogging.
>
> -Original Message-
> From: Mark Kaye [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 11, 2002 20:00
> To: Struts Users Mailing List
> Subject: RE: [OT][ALT-TECH] Apple Web Objects
>
>
> > -Original Message-
> > From: Andrew Hill [mailto:[EMAIL PROTECTED]]
> >
> > Ah
> > the good ol Amiga. A far more worthy home for the Motorola
> > 68000...
>
> Lol, just don't mention the OS or any kind of usability for the Amiga.
> Because it was dreadful.  Also, don't mention that 95% of them were used
> as games machines and nothing more ;)
>
> Macs only have one mouse button because that's all you need.  If you
> find you need more then you're using a clunky interface :)
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>




--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: [OT][ALT-TECH] Apple Web Objects

2002-09-11 Thread Brian Hickey

And so do I... LISP isn't OO


- Original Message -
From: "Kevin A. Smith" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 11, 2002 8:51 AM
Subject: RE: [OT][ALT-TECH] Apple Web Objects


Smalltalk, eh? I think that more than a few of the top Java names (Steele,
Gosling) have a Lispish background, too.

-----Original Message-
From: Brian Hickey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 8:51 AM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: [OT][ALT-TECH] Apple Web Objects


More fodder...

The Amiga was the first machine and OS to use "flat" memory addressing. It
had the best graphics of its time.

As for WebObjects, it is one of the two branches of history that the top
(IMHO) Java developers come from. The other is Smalltalk.



- Original Message -
From: "Andrew Hill" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 11, 2002 8:20 AM
Subject: RE: [OT][ALT-TECH] Apple Web Objects


> ohhh now your asking for it!
>
> Meet the guru a few too many times did we? hehe
>
> Actually the OS was not too bad for the time. Pre-emtive multitasking,
gui,
> etc... (bit touchy though as it didnt have anything in the way of memory
> protection to stop different processes playing with memory that didnt
belong
> to them). And of course much of the magic of the Amiga was in its hardware
> which was marvellous for the time, and at the cost made it very much the
> premier games machine. (Also found a lot of use in TV production ,
> especially after the video toaster came out)
>
> And hey! I remember typing up some essays on my Amiga once so nyah! Wasnt
> used entirely for games. I must have spent at least five of the thousands
of
> hours I used it for serious stuff and anyway it had the best games so its
> little wonder gamers loved it :-P
>
> Useability of the Amiga was better than many systems (such as the ancient
> DOS boxes) , though certainly not to the same level as the MAC. Have to
> agree that one button is all you need. A second one can be useful at times
> (ie: paint software / cad / games etc...) but whoever came up with the
idea
> of context menus deserves a good flogging.
>
> -Original Message-
> From: Mark Kaye [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 11, 2002 20:00
> To: Struts Users Mailing List
> Subject: RE: [OT][ALT-TECH] Apple Web Objects
>
>
> > -Original Message-
> > From: Andrew Hill [mailto:[EMAIL PROTECTED]]
> >
> > Ah
> > the good ol Amiga. A far more worthy home for the Motorola
> > 68000...
>
> Lol, just don't mention the OS or any kind of usability for the Amiga.
> Because it was dreadful.  Also, don't mention that 95% of them were used
> as games machines and nothing more ;)
>
> Macs only have one mouse button because that's all you need.  If you
> find you need more then you're using a clunky interface :)
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: [OT][ALT-TECH] Apple Web Objects

2002-09-11 Thread Brian Hickey

More fodder...

The Amiga was the first machine and OS to use "flat" memory addressing. It
had the best graphics of its time.

As for WebObjects, it is one of the two branches of history that the top
(IMHO) Java developers come from. The other is Smalltalk.



- Original Message -
From: "Andrew Hill" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 11, 2002 8:20 AM
Subject: RE: [OT][ALT-TECH] Apple Web Objects


> ohhh now your asking for it!
>
> Meet the guru a few too many times did we? hehe
>
> Actually the OS was not too bad for the time. Pre-emtive multitasking,
gui,
> etc... (bit touchy though as it didnt have anything in the way of memory
> protection to stop different processes playing with memory that didnt
belong
> to them). And of course much of the magic of the Amiga was in its hardware
> which was marvellous for the time, and at the cost made it very much the
> premier games machine. (Also found a lot of use in TV production ,
> especially after the video toaster came out)
>
> And hey! I remember typing up some essays on my Amiga once so nyah! Wasnt
> used entirely for games. I must have spent at least five of the thousands
of
> hours I used it for serious stuff and anyway it had the best games so its
> little wonder gamers loved it :-P
>
> Useability of the Amiga was better than many systems (such as the ancient
> DOS boxes) , though certainly not to the same level as the MAC. Have to
> agree that one button is all you need. A second one can be useful at times
> (ie: paint software / cad / games etc...) but whoever came up with the
idea
> of context menus deserves a good flogging.
>
> -Original Message-
> From: Mark Kaye [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 11, 2002 20:00
> To: Struts Users Mailing List
> Subject: RE: [OT][ALT-TECH] Apple Web Objects
>
>
> > -Original Message-
> > From: Andrew Hill [mailto:[EMAIL PROTECTED]]
> >
> > Ah
> > the good ol Amiga. A far more worthy home for the Motorola
> > 68000...
>
> Lol, just don't mention the OS or any kind of usability for the Amiga.
> Because it was dreadful.  Also, don't mention that 95% of them were used
> as games machines and nothing more ;)
>
> Macs only have one mouse button because that's all you need.  If you
> find you need more then you're using a clunky interface :)
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: DB hit from ActionForm Validate method

2002-09-06 Thread Brian Hickey

Sean,

 --  My question is whether it is acceptable or common practice to
> access the DB from the validate method or should DB access only be done in
> the LogonAction class (which means I'd move the perform functionality to
the
> LogonAction class)?
-- 

IMHO, the answer is: logins are DB functions. Your role as a Struts
developer is to simply request the login and read the results of the
request. Understand that when you drag DB functionality into your Struts
app, you risk complexification (how about that word?) of your app and your
code. You may make maintenance a nightmare down the road.

Any DB worth a hoot has the capability of locking out users after X number
of attempts. It's a DBA thing as to how many and then how to reset.

Just a suggestion, but don't go there. You request the Login and wait for
the response. If it's bad news, report it to the user. Struts is all about
separation of Model - View - and Controller.

B


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: struts & complicated forms

2002-09-03 Thread Brian Hickey

Bram,

I am sure if you think in terms of a list or an array, you will see that
what you wish is not only possible, but normal.

Use the html:radio tag and assign the property attribute to the form
property. The length of the array/list will tell you how many groups the
page was populated with and each item will provide you with the choice.

Brian

- Original Message -
From: "Bram Smeets" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 03, 2002 8:53 AM
Subject: struts & complicated forms


I'm fairly new to struts, but I've encountered a problem.
I want to present the user with a list of radio button groups, each
consisting of a fixed number of radio buttons (=4).
The number of groups (ie. the length of the list) is dynamicly determined.
Therefore I'm unable to create an (Dyna)ActionForm class to capture the data
on submit.

My question is: how can I capture an undefined number of radio button groups
into one action form?

I am using struts 1.1

Thanks in advance,
Bram Smeets
[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [Buttons] How do i code this in struts

2002-08-30 Thread Brian Hickey

You might also try dropping the single quotes around your scriptlet tag...

B

- Original Message -
From: "Susmita Pati" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, August 30, 2002 2:53 PM
Subject: RE: [Buttons] How do i code this in struts


> I had used
>   onclick="MyWindow=window.open('<%=
>
proc.getBigBrotherReport()%>','MyWindow','toolbar=yes,location=yes,directori
>
es=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=750,height=
> 580');MyWindow.focus();
> return false;"/>
>
> The method does return me a string. I am getting the following error:
>
> The request sent by the client was syntactically incorrect
> (/<%=%20proc.getBigBrotherReport()%>).
>
> Susmita
>
> -Original Message-
> From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 30, 2002 2:48 PM
> To: Struts Users Mailing List
> Subject: RE: [Buttons] How do i code this in struts
>
>
> What do you mean Struts-compliant?  Struts is not involved here since you
> are using a standard html tag.  Make sure that the getBigBrotherReport()
> method returns a string representation of a URL.
>
> Sri
>
> > -Original Message-
> > From: Susmita Pati [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, August 30, 2002 2:33 PM
> > To: 'Struts Users Mailing List'
> > Subject: RE: [Buttons] How do i code this in struts
> >
> >
> > Hi All
> >
> > I have the following in my jsp
> >  > class="MenuButton" onClick="MyWindow=window.open('<%=
> > proc.getBigBrotherReport()%>','MyWindow','toolbar=yes,location
> > =yes,directori
> > es=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,wid
> > th=750,height=
> > 580');MyWindow.focus();
> > return false;"
> >   />
> >
> >
> >  How do i change <%= proc.getBigBrotherReport()%> to be
> > struts complaint as its giving me an error out there
> >
> > TIA
> > Susmita
> >
> > --
> > To unsubscribe, e-mail:
> >  [EMAIL PROTECTED]>
> > For
> > additional commands,
> > e-mail: 
> >
> >
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: text input and style sheets

2002-08-30 Thread Brian Hickey

Mark,

Check the doc first, but I think you will find the following should work:




this assumes you have a form bean with the get/set property named startDate
and containing a default value of "01/01/2000". If you don't want to access
the bean for a default, simply use the value= attribute to designate the
default.

Using a form bean has a benefit. You code the reset() and validate() methods
yourself. You control what the user sees on error.

Brian

- Original Message -
From: "Mark Silva" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, August 30, 2002 2:15 PM
Subject: text input and style sheets


Our HTML/design person has created our text input boxes with the following
code



I am trying to figure out a couple things...
1. How do I implement the class attribute within a stuts tag.  I am assuming
this is a CSS thing, since I haven't used it before.  anyone know?

2.  How do I set a default value for the input field?  if I said it
explicitly like so:



then the associated form does not repopulate the form field if there is an
error.  is the only way to do this, to make it an initial value in the form
object?


thanks,
mark silva

--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [LISTEN UP] Mailing List Usage

2002-08-30 Thread Brian Hickey

Craig,

Thank heaven there are humans out there :o)

I do what you describe - here is the snippet:























Then, in the Application class I call:

  public void initDatabase() {
  // try to get a db handle
  DataSource ds = null;
  Connection dbConn = null;

  try {
  ds = super.findDataSource(null);
   dbConn = ds.getConnection();
  } catch (Exception e) {
   return;
  }

In the end, the log shows GenericDataSource properties being overwritten
when the second datasource is processed. The end result is that the
erstwhile "default" connection is always pointing to the second datasource
and fails to load any data from the first datasource.

Perplexing, eh?

Thanks for any thought and effort !!

Brian


- Original Message -
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, August 30, 2002 1:25 PM
Subject: Re: [LISTEN UP] Mailing List Usage


>
>
> On Fri, 30 Aug 2002, Brian Hickey wrote:
>
> >
> > To wit: "Do/did all versions of Struts support multiple datasources?"
> >
> > "If so, why can I not get ActionServlet.addDataSource to do
anything
> > other than overwrite the existing GenericDataSource properties?"
> >
>
> You have to specify the "key" property on the  element to
> define what servlet context attribute key is used to store the additional
> data sources.  Otherwise, they just override the default one.
>
> Craig
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: [LISTEN UP] Mailing List Usage

2002-08-30 Thread Brian Hickey

Maybe I should bracket [NTTL] for New To This List. I have no idea of
"Subject" protocol and posted a question about multiple data sources
earlier. Either I posted something entirely lame or I posted something folks
have to think about - alot.

If this were an EJB list I would post an in depth question on determining
isolation levels, but it isn't. So, I will rephrase the original question in
hopes that I can gain some insight.

To wit: "Do/did all versions of Struts support multiple datasources?"

"If so, why can I not get ActionServlet.addDataSource to do anything
other than overwrite the existing GenericDataSource properties?"

As for OT posts, I am neutral. If I can both give and receive assistance
with Struts - it is working fine.

Thanks

Brian


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Muliple Data Sources

2002-08-30 Thread Brian Hickey

Anyone done this successfully?

I have the December 2001 release of Struts (I think this is 1.0) and I am
developing a webapp that has a need for two datasources. I modified the
struts-config and, leaving the default data-source without a key, added the
new data-source (same Oracle database - diff user/pwd).

...

   
   
   
   
   
   
   
   
   

...

The Application class calls:

 public void initDatabase() {
  // try to get a db handle
  DataSource ds = null;
  Connection dbConn = null;

  try {
  ds = super.findDataSource(null);
   dbConn = ds.getConnection();
  } catch (Exception e) {
   return;
  }
.

I gen the .war file and deploy it. Tomcat starts and you see the first
data-source load and:

org.apache.struts.util.GenericDataSource
properties are set to the default (null key). Then you see the second
data-source load and the GenericDataSource properties are set to the second
data-source.

Now - when the inits run, he runs the queries against the second data-source
even though I am using the null value for DATA_SOURCE_KEY. ARGGH!

I stumbled through the Digester code and the format of data-source seems
correct.

Can anyone assist? I am pulling what little hair I have left out :o)

Thanks in advance.

Brian

BTW - I also tried naming the default data-source with a key = "default" -
no go. He loads, but the behavior is the same.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: