RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Michael Lee
There are a couple of you can't do it posts. We did it with a jsp tag. One 
of my co-workers found one on the web. Look around. There is a freeware/open 
source one out there he found. He may have modified it some. It is very 
possible. We did it. Sorry I can't be more help but I don't know the URL.
Mike

From: Justin Ashworth <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
Subject: RE: Rendering alternate rows of a table in Struts
Date: Fri, 07 Feb 2003 09:50:36 -0500

You can do it quite easily with JSTL...



   
   
  
   

   Data


> -Original Message-
> From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 07, 2003 9:35 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Rendering alternate rows of a table in Struts
>
>
> No.  You have to use a scriptlet.  But remember -
> philosophical purity should always yield to pragmatism.
>
> Mark
>
> -Original Message-
> From: Ritesh Singhal [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 07, 2003 9:19 AM
>
> I am using logic iterate tag to iterate over a collection and
> display the contents of the collection in the form of a
> table. I want to render the alternate rows with different
> background colours. I don't want to use scriptlet for finding
> the row number and set the colour. Is there any Struts tag
> where I can specify such functionality.
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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



Re: Rendering alternate rows of a table in Struts

2003-02-07 Thread Michael Lee
I responded earlier saying we got it to work with some tag out there but 
couldn't remember the URL. This is what we used. Sorry, just got up to this 
email.
Mike


From: "David Graham" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: Rendering alternate rows of a table in Struts
Date: Fri, 07 Feb 2003 08:00:12 -0700

http://jakarta.apache.org/struts/resources/taglibs.html

At the bottom of the page is RowTag.

David



Hi All,
I am using logic iterate tag to iterate over a collection
and display the contents of the collection in the
form of a table.
I want to render the alternate rows with different background colours.
I don't want to use scriptlet for finding the row number and set the
colour.
Is there any Struts tag where I can specify such functionality.

Regards,
Ritesh.



_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail


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

_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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



Re: xslt in jsp

2003-03-09 Thread Michael Lee
Here's what we do and it's a VERY easy process.
http://jakarta.apache.org/taglibs/doc/xsl-doc/xsl-1.0/index.html#apply
This is deprecated so I'm going to change it to JSTL. Very similar. But its 
part of J2EE spec so it's going to be around a while.
http://www.manning.com/bayern/appendixA.pdf

Another good option is the supported jakarta taglib XTags.
http://jakarta.apache.org/taglibs/doc/xtags-doc/index.html#style
We still haven't moved away from the deprecated tags for the simple reason 
that it works. Also, the JSTL is horrifically documented.

I saw someone earlier mention letting the browser perform the translation 
for you. I don't know if I recommend this because you never know what your 
getting. You can get inconsistent results per browser. You do it on your 
side and you get the same results. How the browser now displays that html is 
a different discussion! Another reason to let the server do it is you may 
want to just change the xsl and allow a different format (pdf, csv, 
whatever).
Michael Lee







From: Tom Ziemer <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: xslt in jsp
Date: Sun, 09 Mar 2003 13:09:25 +0100
Hi,

what I'm doing is this: I've got a custom tag in my JSP page, that uses a 
transformer to process the xml input. So my page looks like this:
...

		title="index.title"
		heading="index.heading">





Hope this helps,

Tom

On Sat, 8 Mar 2003, Jörg Maurer wrote:

} definitly give JSTL a try! Myself not applied it, but read book by Bayer
} Shawn - devoted taglibs to xml and xml transformation for usage in jsp.
}
} -Original Message-
} From: bobd [mailto:[EMAIL PROTECTED]
} Sent: Samstag, 08. März 2003 20:02
} To: [EMAIL PROTECTED]
} Subject: xslt in jsp
}
}
} I have a jsp that needs to retrieve XML from a bean
} (stored in the session) and then execute a
} transformation.
}
} what is the easiest way to do this?  Having difficulty
} using , as well as locating documentation
} on this.
}
} thanks,
} -b
}
} __
} Do you Yahoo!?
} Yahoo! Tax Center - forms, calculators, tips, more
} http://taxes.yahoo.com/
}
} -
} To unsubscribe, e-mail: [EMAIL PROTECTED]
} For additional commands, e-mail: [EMAIL PROTECTED]
}
}
} -
} To unsubscribe, e-mail: [EMAIL PROTECTED]
} For additional commands, e-mail: [EMAIL PROTECTED]
}
}

Guido Garcia Bernardo
[EMAIL PROTECTED]
[EMAIL PROTECTED]
"stat rosa pristina
nomine, nomina nuda tenemus."

http://members.ud.com/services/teams/team.htm?id=D8624419-BFB6-4772-A01A-0045631F979F
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


Sending a file

2002-11-20 Thread Michael Lee
Is there a way in struts, that, if a user is validated, send them a local file? This 
is so if someone paid for a piece of software they would be given access to a screen 
to download it?
thanks,
Mike


Re: InputStream from FormFile - OK now

2002-11-21 Thread Michael Lee
Hey! Dont post a question, then find a solution without sharing! If you
figure it out, share the love!

- Original Message -
From: "Huynh Ngoc Huy" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, November 20, 2002 11:18 PM
Subject: Re: InputStream from FormFile - OK now


>   It is al right now!
>   Huy
>
> --- Huynh Ngoc Huy <[EMAIL PROTECTED]> wrote:
> >   Hi all,
> >   How can we store InputStream from FormFile into
> > another InputStream to use later?
> >   Thanks in advance,
> >   Huy
> >
> >
> > __
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> > now.
> > http://mailplus.yahoo.com
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
>
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




request to struts action not being routed to J2EE container security

2002-11-26 Thread Michael Lee
I have an action that, upon successful completion, calls another struts action.
IE: /a.do
success mapping to
/consumer/b.do

In the web.xml I lock the /consumer/ directory off to authorised users using J2EE form 
based container security (Weblogic RDBMS).

Problem is a.do is calling b.do and no redirect to the login page defined by the form 
based security in the web.xml takes place!

I was thinking about calling weblogic specific 
weblogic.servlet.security.ServletAuthentication class to explicitly load the user into 
the container security upon successful completion of a.do but I would prefer a 
non-container specific implementation.

Thanks,
Mike


Re: request to struts action not being routed to J2EE container security

2002-11-26 Thread Michael Lee
That worked like a champ. I did not know that forwards were not redirected
through the user.
Here is the code;

if(user == null) // no user was found in the session or
authenticated request.getUserPrincipal()
{
response.sendRedirect("/webapp/consumer/b.do");
}

Thank you very much Eddie Bush!
Mike

- Original Message -
From: "Eddie Bush" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 6:49 PM
Subject: Re: request to struts action not being routed to J2EE container
security


> Are you forwarding to /consumer/b.do?  If so it won't make the user
> authenticate - you need to redirect.  Your application is able to send
> the user anywhere - CMA only protects you from direct-access by the user
> (which is the situation you get by doing a redirect).
>
> If you're doing a redirect and this doesn't work, I'd say your server is
> broker.
>
> Michael Lee wrote:
>
> >I have an action that, upon successful completion, calls another struts
action.
> >IE: /a.do
> >success mapping to
> >/consumer/b.do
> >
> >In the web.xml I lock the /consumer/ directory off to authorised users
using J2EE form based container security (Weblogic RDBMS).
> >
> >Problem is a.do is calling b.do and no redirect to the login page defined
by the form based security in the web.xml takes place!
> >
> >I was thinking about calling weblogic specific
weblogic.servlet.security.ServletAuthentication class to explicitly load the
user into the container security upon successful completion of a.do but I
would prefer a non-container specific implementation.
> >
> >Thanks,
> >Mike
> >
> >
>
> --
> Eddie Bush
>
>
>
>
>
> --
> 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: request to struts action not being routed to J2EE container security

2002-11-26 Thread Michael Lee
This worked too! No redirect code except in the struts-config.xml forward!
thanks everyone,
Mike

- Original Message -
From: "Eddie Bush" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 7:13 PM
Subject: Re: request to struts action not being routed to J2EE container
security


> What he said :-)  You are most welcome, sir ;-)
>
> David Graham wrote:
>
> > Instead of using the sendRedirect method you should just define the
> > forward element in struts-config with redirect="true".  That way you
> > can still use the logical names and not code b.do in your action.
> > Struts will redirect for you when it sees that attribute set to true.
> >
> > David
>
>
> --
> Eddie Bush
>
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




bean:define for value in properties file

2002-12-02 Thread Michael Lee
I have a value in my ApplicationResources.properties called
page.title=Customer Information
I want to have this value available in the page context. I would like to use a struts 
tag to do so. If not, I have to use a scriptlet (which I try to avoid).
here is what I'd like to do

any ideas?
thanks,
Mike


Re: bean:define for value in properties file

2002-12-02 Thread Michael Lee
Not view it, set it to a pageContext variable.
thanks though,
Mike

- Original Message -
From: "Andrew B Forman" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, December 02, 2002 5:03 PM
Subject: RE: bean:define for value in properties file


> 
>
http://jakarta.apache.org/struts/api/org/apache/struts/taglib/bean/MessageTa
> g.html
>
> a
>
> > -Original Message-
> > From: Michael Lee [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, December 02, 2002 3:52 PM
> > To: Struts Users Mailing List
> > Subject: bean:define for value in properties file
> >
> >
> > I have a value in my ApplicationResources.properties called
> > page.title=Customer Information
> > I want to have this value available in the page context. I would
> > like to use a struts tag to do so. If not, I have to use a
> > scriptlet (which I try to avoid).
> > here is what I'd like to do
> > 
> > any ideas?
> > thanks,
> > Mike
>
>
> --
> 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: bean:define for value in properties file

2002-12-03 Thread Michael Lee
Is there a way in 1.0.2?
thanks,
Mike

- Original Message -
From: "Joe Germuska" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, December 02, 2002 5:33 PM
Subject: Re: bean:define for value in properties file


> At 5:08 PM -0500 2002/12/02, Michael Lee wrote:
> >Not view it, set it to a pageContext variable.
> >thanks though,
>
> 
>
> 
>
> Since Struts 1.1 (I think) bean:define can use its body content to
> define a literal String bean.
>
> Joe
>
>
>
> >Mike
> >
> >- Original Message -
> >From: "Andrew B Forman" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Sent: Monday, December 02, 2002 5:03 PM
> >Subject: RE: bean:define for value in properties file
> >
> >
> >>  
> >>
>
>http://jakarta.apache.org/struts/api/org/apache/struts/taglib/bean/MessageT
a
> >>  g.html
> >>
> >>  a
> >>
> >>  > -Original Message-
> >>  > From: Michael Lee [mailto:[EMAIL PROTECTED]]
> >>  > Sent: Monday, December 02, 2002 3:52 PM
> >>  > To: Struts Users Mailing List
> >>  > Subject: bean:define for value in properties file
> >>  >
> >>  >
> >>  > I have a value in my ApplicationResources.properties called
> >>  > page.title=Customer Information
> >>  > I want to have this value available in the page context. I would
> >>  > like to use a struts tag to do so. If not, I have to use a
> >>  > scriptlet (which I try to avoid).
> >>  > here is what I'd like to do
> >>  > 
> >>  > any ideas?
> >>  > thanks,
> >>  > Mike
> >>
> >>
> >>  --
> >>  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]>
>
>
> --
> --
> * Joe Germuska{ [EMAIL PROTECTED] }
> "It's pitiful, sometimes, if they've got it bad. Their eyes get
> glazed, they go white, their hands tremble As I watch them I
> often feel that a dope peddler is a gentleman compared with the man
> who sells records."
> --Sam Goody, 1956
>
> --
> 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: A single error page when using Struts 1.0.2 templates: Is this possible?

2002-12-03 Thread Michael Lee
We set up a global forward for errors...
  
  
  
and when we catch exceptions beyond the normal we do a
mapping.findForward("systemError");

- Original Message -
From: "Davide Bruzzone" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, December 03, 2002 12:29 PM
Subject: A single error page when using Struts 1.0.2 templates: Is this
possible?


> Greetings all...
>
> I've been puuling my hair out on this one for a while now, and I'm
beginning
> to wonder whether or not I should be spending any more time on it. Is it
> even possible?
>
> i.e. When using templates (We're still using Struts 1.0.2), is it possible
> to have exceptions within the JSPs be redirected to a single error page
> (i.e. An error page that takes up the whole window in the browser). I keep
> having problems related to part of the page being rendered, then the error
> occurring.
>
> Any help would be GREATLY appreciated...
>
> Cheers...
>
> Dave
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




Re: Security roles with Struts

2002-12-03 Thread Michael Lee
for container managed roles struts actions act just like all http request
that the container can intercept.
in the web.xml
  
Secure Something

  Admin Resources
  /admin/*


  Admin


  Secure all data
  NONE

  

What this does is lock down all requests to the /admin/ directory to users
of Admin role.
You can do the same with actions by putting in the url pattern using
wildcards or the action itself.
for example;
  /admin/addUser.do

- Original Message -
From: "Elena Neroslavskaya" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 03, 2002 11:05 AM
Subject: Security roles with Struts


> Hello all,
> I have succeeded to configure DB security realm for JBoss container it
works
> for simple JSP solution,
>
> Bu I have problems to make it work with Struts !
>
> Could anybody please be so kind and post here an example
> how to configure Struts to use Container Managed Roles.
>
> And post here your web.xml ans struts-config.xml ?
>
> Thank you very much
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




Request losing data after container security check

2002-12-04 Thread Michael Lee
I have a screen a.jsp that calls a.do which then forwards to b.jsp
I have a form called AForm.java. I have a field called email in AForm.java.
In a.jsp a user can set email, call a.do and then forward to b.jsp which does a 
. This works just fine and outputs the 
email.
Problem is, if the session times out (15 mins) then the user is required to log back 
in. If the data is entered on a.jsp and the session times out and the user clicks 
submit, then when it gets to b.jsp it doesn't have any data? In the struts config a.do 
is of scope="request". I would think that a request would keep that data unlike 
scope="session".
I want to keep the data upon submit, even if the container wants to validate the user.
thanks,
Mike


Re: Request losing data after container security check

2002-12-04 Thread Michael Lee
?This doesnt sound right.
Its just an http request. It shouldn't lose anything except session data.
The container should route the http request and all the request items from
the form.
thanks,
Mike

- Original Message -
From: "David Graham" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 04, 2002 3:03 PM
Subject: Re: Request losing data after container security check


> If the session times out then you probably want the user to go back to the
> start page anyways.  Request data is only stored by the container long
> enough to complete a request for one page so it won't be around after that
> request.
>
> David
>
>
>
>
>
>
> >From: "Michael Lee" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: Request losing data after container security check
> >Date: Wed, 4 Dec 2002 14:27:16 -0500
> >
> >I have a screen a.jsp that calls a.do which then forwards to b.jsp
> >I have a form called AForm.java. I have a field called email in
AForm.java.
> >In a.jsp a user can set email, call a.do and then forward to b.jsp which
> >does a . This works just fine
> >and outputs the email.
> >Problem is, if the session times out (15 mins) then the user is required
to
> >log back in. If the data is entered on a.jsp and the session times out
and
> >the user clicks submit, then when it gets to b.jsp it doesn't have any
> >data? In the struts config a.do is of scope="request". I would think that
a
> >request would keep that data unlike scope="session".
> >I want to keep the data upon submit, even if the container wants to
> >validate the user.
> >thanks,
> >Mike
>
>
> _
> The new MSN 8: advanced junk mail protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> --
> 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: Request losing data after container security check

2002-12-04 Thread Michael Lee
i know.
a.jsp calls a.do which forwards to b.jsp
user enters data in a.jsp
user leaves
session times out
user clicks submit on a.jsp
a.do action is of scope request
when we get to b.jsp, it should display the data entered on a.jsp (verify
screen)
it does not if the session times out and the user has to log in again
thanks,
Mike

- Original Message -
From: "David Graham" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 04, 2002 4:09 PM
Subject: Re: Request losing data after container security check


> The session only times out if it's idle; it won't timeout in mid request.
> You lose session data when it times out.  You lose request data after the
> response has been sent for a particular request.
>
> David
>
>
>
>
>
>
> >From: "Michael Lee" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: Re: Request losing data after container security check
> >Date: Wed, 4 Dec 2002 15:48:15 -0500
> >
> >?This doesnt sound right.
> >Its just an http request. It shouldn't lose anything except session data.
> >The container should route the http request and all the request items
from
> >the form.
> >thanks,
> >Mike
> >
> >- Original Message -
> >From: "David Graham" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Wednesday, December 04, 2002 3:03 PM
> >Subject: Re: Request losing data after container security check
> >
> >
> > > If the session times out then you probably want the user to go back to
> >the
> > > start page anyways.  Request data is only stored by the container long
> > > enough to complete a request for one page so it won't be around after
> >that
> > > request.
> > >
> > > David
> > >
> > >
> > >
> > >
> > >
> > >
> > > >From: "Michael Lee" <[EMAIL PROTECTED]>
> > > >Reply-To: "Struts Users Mailing List"
<[EMAIL PROTECTED]>
> > > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > >Subject: Request losing data after container security check
> > > >Date: Wed, 4 Dec 2002 14:27:16 -0500
> > > >
> > > >I have a screen a.jsp that calls a.do which then forwards to b.jsp
> > > >I have a form called AForm.java. I have a field called email in
> >AForm.java.
> > > >In a.jsp a user can set email, call a.do and then forward to b.jsp
> >which
> > > >does a . This works just
> >fine
> > > >and outputs the email.
> > > >Problem is, if the session times out (15 mins) then the user is
> >required
> >to
> > > >log back in. If the data is entered on a.jsp and the session times
out
> >and
> > > >the user clicks submit, then when it gets to b.jsp it doesn't have
any
> > > >data? In the struts config a.do is of scope="request". I would think
> >that
> >a
> > > >request would keep that data unlike scope="session".
> > > >I want to keep the data upon submit, even if the container wants to
> > > >validate the user.
> > > >thanks,
> > > >Mike
> > >
> > >
> > > _
> > > The new MSN 8: advanced junk mail protection and 2 months FREE*
> > > http://join.msn.com/?page=features/junkmail
> > >
> > >
> > > --
> > > 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]>
>
>
> _
> Add photos to your e-mail with MSN 8. Get 2 months FREE*.
> http://join.msn.com/?page=features/featuredemail
>
>
> --
> 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: Request losing data after container security check

2002-12-05 Thread Michael Lee
Its an http request. It should't matter if the session times out or not.
a.jsp is posting data to a.do through an http request. If we have container
managed security it should just forward the data.

"When the container times out the session it doesn't touch the browser. When
the user clicks on a field to create an action the request is still
available to the container. "
Ya, that's why I'm so perplexed? The user typed in the info, leaves to make
a sandwich, comes back and clicks submit. Regardless of session timeout, if
this is an http request it should alway work the same except maybe with a
login before it shows the results.
thanks,
Mike

- Original Message -
From: "edgar" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, December 04, 2002 7:22 PM
Subject: RE: Request losing data after container security check


> If you care enough about this situation you can satisfy most of it with
> an authentication filter and a custom logon action.
>
> When the container times out the session it doesn't touch the browser.
> When the user clicks on a field to create an action the request is still
> available to the container.  If you write your own authentication
> filter, you can take what you need from the request and stick it
> someplace until the user establishes a valid session.  When the user has
> established the session then you grab it and put him back where he was.
>
> Edgar
>
> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 04, 2002 4:59 PM
> To: '[EMAIL PROTECTED]'
> Subject: Re: Request losing data after container security check
>
>
> That's the way session time outs are supposed to work.  This is a
> security
> feature when people leave in the middle of something.  The user must
> complete the transaction in one sitting.
>
> If you don't want that to happen then set your session timeout to an
> incredibly large number of minutes or (I think) entering 0 disables it
> on
> some containers.
>
> David
>
>
>
>
>
>
> >From: "Michael Lee" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: Re: Request losing data after container security check
> >Date: Wed, 4 Dec 2002 16:50:40 -0500
> >
> >i know.
> >a.jsp calls a.do which forwards to b.jsp
> >user enters data in a.jsp
> >user leaves
> >session times out
> >user clicks submit on a.jsp
> >a.do action is of scope request
> >when we get to b.jsp, it should display the data entered on a.jsp
> >(verify
> >screen)
> >it does not if the session times out and the user has to log in again
> >thanks,
> >Mike
> >
> >- Original Message -
> >From: "David Graham" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Wednesday, December 04, 2002 4:09 PM
> >Subject: Re: Request losing data after container security check
> >
> >
> > > The session only times out if it's idle; it won't timeout in mid
> >request.
> > > You lose session data when it times out.  You lose request data
> > > after
> >the
> > > response has been sent for a particular request.
> > >
> > > David
> > >
> > >
> > >
> > >
> > >
> > >
> > > >From: "Michael Lee" <[EMAIL PROTECTED]>
> > > >Reply-To: "Struts Users Mailing List"
> > > ><[EMAIL PROTECTED]>
> > > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > >Subject: Re: Request losing data after container security check
> > > >Date: Wed, 4 Dec 2002 15:48:15 -0500
> > > >
> > > >?This doesnt sound right.
> > > >Its just an http request. It shouldn't lose anything except session
> >data.
> > > >The container should route the http request and all the request
> > > >items
> >from
> > > >the form.
> > > >thanks,
> > > >Mike
> > > >
> > > >- Original Message -
> > > >From: "David Graham" <[EMAIL PROTECTED]>
> > > >To: <[EMAIL PROTECTED]>
> > > >Sent: Wednesday, December 04, 2002 3:03 PM
> > > >Subject: Re: Request losing data after container security check
> > > >
> > > >
> > > > > If the session times out then you prob

Re: Request losing data after container security check

2002-12-06 Thread Michael Lee
Hey david, thanks again! I appreciate all your input on this.

I have a filter we use for other purposes but we use container managed
security. We have a lot tied into this.
Also, these requests use struts forms. We use post requests throughout the
system so url encoding is out of the question, at least until the next
version.
I noticed this behavior in all my struts actions. This seems like a bug to
me. Don't know if its with j_security_check wiping out the http request form
data or struts not sending it properly.
thanks again,
Mike

- Original Message -
From: "David Graham" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 05, 2002 11:34 AM
Subject: Re: Request losing data after container security check


> Your authentication filter could do this:
> 1. Is user logged in, yes forward to resource, no go to 2.
> 2. Forward to login page with the url the user wants to go to.
> 3. User logs in and login action sends them to url stored in step 2.
>
> This handles not only form submission but clicking links as well.  You'll
> probably have to set your form's method to "get" so the parameters are in
> the url's query string for the login action to see.
>
> David
>
> >From: "Michael Lee" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: Re: Request losing data after container security check
> >Date: Thu, 5 Dec 2002 10:59:36 -0500
> >
> >Its an http request. It should't matter if the session times out or not.
> >a.jsp is posting data to a.do through an http request. If we have
container
> >managed security it should just forward the data.
> >
> >"When the container times out the session it doesn't touch the browser.
> >When
> >the user clicks on a field to create an action the request is still
> >available to the container. "
> >Ya, that's why I'm so perplexed? The user typed in the info, leaves to
make
> >a sandwich, comes back and clicks submit. Regardless of session timeout,
if
> >this is an http request it should alway work the same except maybe with a
> >login before it shows the results.
> >thanks,
> >Mike
> >
> >- Original Message -
> >From: "edgar" <[EMAIL PROTECTED]>
> >To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> >Sent: Wednesday, December 04, 2002 7:22 PM
> >Subject: RE: Request losing data after container security check
> >
> >
> > > If you care enough about this situation you can satisfy most of it
with
> > > an authentication filter and a custom logon action.
> > >
> > > When the container times out the session it doesn't touch the browser.
> > > When the user clicks on a field to create an action the request is
still
> > > available to the container.  If you write your own authentication
> > > filter, you can take what you need from the request and stick it
> > > someplace until the user establishes a valid session.  When the user
has
> > > established the session then you grab it and put him back where he
was.
> > >
> > > Edgar
> > >
> > > -Original Message-
> > > From: David Graham [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, December 04, 2002 4:59 PM
> > > To: '[EMAIL PROTECTED]'
> > > Subject: Re: Request losing data after container security check
> > >
> > >
> > > That's the way session time outs are supposed to work.  This is a
> > > security
> > > feature when people leave in the middle of something.  The user must
> > > complete the transaction in one sitting.
> > >
> > > If you don't want that to happen then set your session timeout to an
> > > incredibly large number of minutes or (I think) entering 0 disables it
> > > on
> > > some containers.
> > >
> > > David
> > >
> > >
> > >
> > >
> > >
> > >
> > > >From: "Michael Lee" <[EMAIL PROTECTED]>
> > > >Reply-To: "Struts Users Mailing List"
<[EMAIL PROTECTED]>
> > > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > >Subject: Re: Request losing data after container security check
> > > >Date: Wed, 4 Dec 2002 16:50:40 -0500
> > > >
> > > >i know.
> > > >a.jsp calls a.do which forwards to b.jsp
> > > >user ente

Re: Request losing data after container security check

2002-12-06 Thread Michael Lee
:(
Thanks.

- Original Message -
From: "Edgar Dollin" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, December 06, 2002 10:47 AM
Subject: RE: Request losing data after container security check


> This is the way CMS works, there is actually an interim request for the
> login so your original request doesn't exist anymore.  That is why I
> suggested using a filter for authentication since you can better control
the
> authentication cycle.  If you think it is a bug then you would have to get
> the CMS specification changed.
>
> Edgar
>
> -Original Message-
> From: Michael Lee [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 06, 2002 10:19 AM
> To: 'Struts Users Mailing List'
> Subject: Re: Request losing data after container security check
>
>
> Hey david, thanks again! I appreciate all your input on this.
>
> I have a filter we use for other purposes but we use container managed
> security. We have a lot tied into this.
> Also, these requests use struts forms. We use post requests throughout the
> system so url encoding is out of the question, at least until the next
> version.
> I noticed this behavior in all my struts actions. This seems like a bug to
> me. Don't know if its with j_security_check wiping out the http request
form
> data or struts not sending it properly.
> thanks again,
> Mike
>
> - Original Message -
> From: "David Graham" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, December 05, 2002 11:34 AM
> Subject: Re: Request losing data after container security check
>
>
> > Your authentication filter could do this:
> > 1. Is user logged in, yes forward to resource, no go to 2.
> > 2. Forward to login page with the url the user wants to go to.
> > 3. User logs in and login action sends them to url stored in step 2.
> >
> > This handles not only form submission but clicking links as well.
You'll
> > probably have to set your form's method to "get" so the parameters are
in
> > the url's query string for the login action to see.
> >
> > David
> >
> > >From: "Michael Lee" <[EMAIL PROTECTED]>
> > >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > >Subject: Re: Request losing data after container security check
> > >Date: Thu, 5 Dec 2002 10:59:36 -0500
> > >
> > >Its an http request. It should't matter if the session times out or
not.
> > >a.jsp is posting data to a.do through an http request. If we have
> container
> > >managed security it should just forward the data.
> > >
> > >"When the container times out the session it doesn't touch the browser.
> > >When
> > >the user clicks on a field to create an action the request is still
> > >available to the container. "
> > >Ya, that's why I'm so perplexed? The user typed in the info, leaves to
> make
> > >a sandwich, comes back and clicks submit. Regardless of session
timeout,
> if
> > >this is an http request it should alway work the same except maybe with
a
> > >login before it shows the results.
> > >thanks,
> > >Mike
> > >
> > >- Original Message -
> > >From: "edgar" <[EMAIL PROTECTED]>
> > >To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > >Sent: Wednesday, December 04, 2002 7:22 PM
> > >Subject: RE: Request losing data after container security check
> > >
> > >
> > > > If you care enough about this situation you can satisfy most of it
> with
> > > > an authentication filter and a custom logon action.
> > > >
> > > > When the container times out the session it doesn't touch the
browser.
> > > > When the user clicks on a field to create an action the request is
> still
> > > > available to the container.  If you write your own authentication
> > > > filter, you can take what you need from the request and stick it
> > > > someplace until the user establishes a valid session.  When the user
> has
> > > > established the session then you grab it and put him back where he
> was.
> > > >
> > > > Edgar
> > > >
> > > > -Original Message-
> > > > From: David Graham [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, December 04, 2002 4:

Re: EJB's and Collections of Objects

2002-12-09 Thread Michael Lee
There's a pattern called value objects (or view objects) you may want to
check out.
Mike Lee

- Original Message -
From: "Gemes Tibor" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, December 09, 2002 7:13 AM
Subject: Re: EJB's and Collections of Objects


2002. december 9. 12:52 dátummal Jordan Thomas ezt írtad:

> Is there a "standard" or better way to get my objects out into my struts
> application?

I think that it is rather straightforward and clean. Is it working for you?
Is
it fast enough? Does it suit your needs? If yes, there is no problem.  Btw
this is how I do as well.

Hth,

Tib

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




struts 1.0.2 hanging?

2003-01-03 Thread Michael Lee
If you declare duplicate actions in your struts-config.xml would this cause struts to 
hang? We did this by accident and have been trying to track down this hang.

Also, is there a way to have some additional actions defined in another 
struts-config.xml file? So basically have 2 struts configs (not with duplicate actions 
in either)
thanks,
Mike


Re: Advanced JSP page help.

2003-01-08 Thread Michael Lee

Please put large attachments on YOUR OWN SERVER where we can CHOOSE to 
download it if we wish. Some of us are using free and limited email servers 
that have storage limits. Simple code examples or similar text would be fine 
but a 300K BMP? Come on!

From: Heligon Sandra <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: Advanced JSP page help.
Date: Wed, 8 Jan 2003 11:48:31 +0100



	I seek to create a page JSP with the tags Struts/Tiles and others.
The page which was 	specified is a little complex for somebody like me
which has little experiment with HTML
	 this is why I am searching concrete examples in order to facilitate
this development.
	The page 	that I must carry 	out contains a table with
five columns, four string 	columns and one column with check box type.I
attached in file joined an image of this list.
	A button add in the page allows the user to add new element to the
list.
	So the number of record  varies and a scroll bar must appear if the
number of records
	is superior to four elements. Is it easy to display scrollbar with
HTML?
	Is it another solution if one wishes all to display on a page ?
	The view must be customizable and the user can sort the elements of
the table
	by clicking on the header of the column, is it possible ?
	I hope that somebody already made a similar 	interface and will
be able to 	send code.
	Thanks a lot in advance.
	Sandra
	. <>



<< list.bmp >>
--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


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



Re: Problem with Weblogic 6.1 sp2 and Struts 1.1 Beta 3

2003-01-08 Thread Michael Lee
We had em running under WLS 6.1 sp3. We just recently installed sp4 (just 
because sp4 recently came out :)).
Mike

From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: Problem with Weblogic 6.1 sp2 and Struts 1.1 Beta 3
Date: Tue, 7 Jan 2003 22:32:58 -0800 (PST)



On Wed, 8 Jan 2003, Amit Keshav Kulkarni wrote:

> Date: Wed, 8 Jan 2003 11:57:20 +0530
> From: Amit Keshav Kulkarni <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Problem with Weblogic 6.1 sp2 and Struts 1.1 Beta 3
>
> Hi All,
>
> I tried to install struts-example.war and struts-documentation for
> Struts 1.1 Beta 3 on Weblogic 6.1 sp2 on WinNT When I tried to install
> the war files on Weblogic, it gave following error..
>

I thought I heard people say you needed sp4 to successfully run on WL
6.1???

> "  
> pe=Application, loading from path 
.\config\mydomain\applications\struts-documentation.war
> java.util.zip.ZipException: error in opening zip file"
>
> However the same war files were deployed succefully on Tomcat.
> So I tried deploying the exploded directory structure created by Tomcat 
in Weblogic.
>
> It gives the following error:
>
> Any solutions ?
>
> Thanks and regards,
> Amit
>
>
>
> starting Config caught throwable
> java.lang.reflect.UndeclaredThrowableException:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1

This exception is caused by a bug in WebLogic's JVM -- it does not obey
the spec requirements for the format of lines in the MANIFEST.MF file.

Craig

> at java.lang.String.substring(String.java:1520)
> at
> 
weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java
> :469)
> at
> 
weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.java:2
> 34)
> at
> 
weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppServl
> etContext.java:3407)
> at
> 
weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletConte
> xt.java:3376)
> at
> 
weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.jav
> a:862)
> at
> 
weblogic.servlet.internal.WebAppServletContext.(WebAppServletContext.j
> ava:815)
> at
> weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428)
> at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
> at weblogic.j2ee.Application.addComponent(Application.java:163)
> at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
> at
> 
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
> arget.java:329)
> at
> 
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
> arget.java:144)
> at
> 
weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:
> 76)
> at java.lang.reflect.Method.invoke(Native Method)
> at
> 
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
> .java:636)
> at
> 
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:6
> 21)
> at
> 
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
> nImpl.java:359)
> at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
> at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> at
> weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
> at
> weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
> at $Proxy29.addWebDeployment(Unknown Source)
> at
> 
weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeploymen
> t(WebServerMBean_CachingStub.java:1121)
> at
> 
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
> arget.java:315)
> at
> 
weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Deployment
> Target.java:279)
> at
> 
weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(D
> eploymentTarget.java:233)
> at
> 
weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(Deploym
> entTarget.java:193)
> at java.lang.reflect.Method.invoke(Native Method)
> at
> 
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
> .java:636)
> at
> 
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:6
> 21)
> at
> 
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
> nImpl.java:359)
> at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
> at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> at
> weblogic.management.internal.MBeanProxy.invoke(MBe

Override action in multiple struts-config.xml

2003-01-07 Thread Michael Lee
We have a base product. It has a struts-config.xml in a webapp. We have a couple of 
customers that each have their own web app and struts-config.xml. Their product sits 
on top of the base product. We have to have a complete struts-config.xml for each 
customer. Is there a way to have a core struts-config.xml in the base product and a 
struts-config.xml for each customer where the struts-config.xml for each customer uses 
whats in the base product and adds new actions or over-rides the actions in the base 
struts-config.xml?
thanks,
Mike


Re: AAAARGH! SOMEONE! How do I set the default selection when I'm using html:options?

2002-09-20 Thread Michael Lee

I figured out what the problem was.
Struts auto sets the default value in an html:select to whatever the
property is in the form bean. Someone said this earlier (thank you).
My problem was, I was getting this value from the database. Our database is
oracle and the fields in question were of type char[x]. These are fixed
length fields that are padded with spaces on a result set! So a state of
"GA" is not equal to "GA "!!
Thanks for everyone's help on this. This was not a struts issue (usually
isn't).
thanks,
Mike

- Original Message -
From: "Eddie Bush" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 19, 2002 9:43 AM
Subject: Re: RGH! SOMEONE! How do I set the default selection when I'm
using html:options?


> Yeah, actually this might be your best approach.  Mine would depend on
> Struts.  This approach would be totally independent of Struts.  If
> you're (wasn't it spec 2.3 that brought us these listeners?) on an older
> spec, using the plugin may well be the way to go though.
>
> Robert Taylor wrote:
>
> >javax.servlet.ServletContextListener @since Servlet2.2 spec acts a
> >bootstrap.
> >Prior to Servlet2.2 spec, try a bootstrap  servlet.
> >
> >A quick scan of the mailing list archives and .
> >http://www.mail-archive.com/struts-user@jakarta.apache.org/msg38242.html
> >
> >should help.
> >
> >robert
> >
>
> --
> Eddie Bush
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




Re: Struts with Jbuilder 6

2002-09-20 Thread Michael Lee

LOL!LOL! I can not belive your response to his link. My god...
Anyway
I have used struts with Jbuilder 4,6 and now 7. It is a java application,
like any other. The question itself makes no sense. If you mean what good
struts tools are there that integrate with jbuilder (almost any java ide
really) then check out...
http://easystruts.sourceforge.net/
There are a bunch more on
http://jakarta.apache.org/struts/resources/guis.html
I think this is your problem. You are not doing your homework. When I post a
question here I make sure I have
1) Read all the jakarta struts docs I can
2) Read all pertinent jakarta struts javadocs
3) Look through all pertinent struts examples in war files
4) Google search

You apparently not even done step 1. This is what many here find insulting.
Something I would like to see is these emails in searchable form. (I saw an
earlier email with a link)
Mike



- Original Message -
From: "Thomas T. Veldhouse" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, September 20, 2002 1:12 PM
Subject: Re: Struts with Jbuilder 6


> Tell him so -- don't just hand-off the URL as an answer.
>
> Tom Veldhouse
>
> - Original Message -
> From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Friday, September 20, 2002 10:32 AM
> Subject: RE: Struts with Jbuilder 6
>
>
> > If you had actually read the document, Tom, you would know that its main
> > thread is how to do research before asking questions that the asker has
> > obviously done nothing to figure out on his own.  If you find that
> > offensive, you've got a screw loose.
> >
> > Give a man a fish and he'll eat for a day.  Teach him how to fish and
> he'll
> > eat for a lifetime.
> >
> > Mark
> >
> > -Original Message-
> > From: Thomas T. Veldhouse [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, September 20, 2002 11:18 AM
> > To: Struts Users Mailing List
> > Subject: Re: Struts with Jbuilder 6
> >
> >
> > He was telling you to ask your question in a "smart" way.  In
otherwords,
> he
> > was trying to act as list moderator.  I find that more offensive than
some
> > of the things that document addresses.  I didn't personally find
anything
> in
> > particular wrong with your question and a simple answer from somebody
> would
> > have sufficed.  Try taking a look at EasyStruts from SourceForge.  I
have
> > not used it myself, so I can not say how well it does or does not work.
> >
> > Tom Veldhouse
> >
> > - Original Message -
> > From: "BARADAT Benoit" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Friday, September 20, 2002 7:43 AM
> > Subject: Re: Struts with Jbuilder 6
> >
> >
> > > are you sure ?
> > > I tryed to find the word "Struts" in this page. I didn't found it !!!
> > >
> > >
> > > - Original Message -
> > > From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> > > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > > Sent: Friday, September 20, 2002 2:29 PM
> > > Subject: RE: Struts with Jbuilder 6
> > >
> > >
> > > > Start here:
> > > >
> > > > http://www.tuxedo.org/~esr/faqs/smart-questions.html
> > > > 
> > > >
> > > > -Original Message-
> > > > From: BARADAT Benoit [mailto:[EMAIL PROTECTED]]
> > > > Sent: Friday, September 20, 2002 3:10 AM
> > > > To: Struts Users Mailing List
> > > > Subject: Struts with Jbuilder 6
> > > >
> > > >
> > > > hi !
> > > >
> > > > I would like to use Struts with Jbuilder 6.
> > > >
> > > > How do I process ?
> > > >
> > > >
> > > > Thanks in advance
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > 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: [FRIDAY] WINDOWS 2000 TEXAS EDITION

2002-09-20 Thread Michael Lee

Umm, I have this forwarded to a hotmail account. I don't mind the friday
emails too much, but can we please refrain from the 200K attachments? My
account is going to get filled up very quickly. I'm sure I'm not unique
here.
thanks,
Mike

- Original Message -
From: "Jens Kühnberger" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, September 20, 2002 1:26 PM
Subject: Re: [FRIDAY] WINDOWS 2000 TEXAS EDITION


> I saw a similar product in australia
>
> Jens
>
> James Mitchell wrote:
> > I can't believe I fell victim to that guy in trench coat selling Win2k
for
> > $5...
> >
> >
> >  
> >  Dear Consumers:
> >
> >  It has come to our attention that a few copies of the WINDOWS 2000
TEXAS
> >  EDITION may have
> >  accidentally been shipped outside of the state of Texas.
> >
> >  If you have one of these, you may need some help understanding the
> >  commands.
> >
> >  The TEXAS EDITION may be recognized by the unique opening screen.
> >  It reads:
> >
> >  WINDERS 2000, with a background picture of Willie Nelson superimposed
> >  on the Alamo.
> >
> >  Please also note:
> >
> >  The Recycle Bin is labeled "Outhouse"
> >  My Computer is called "This Dern Contraption"
> >  Dial Up Networking is called "Good Ol' Boys"
> >  Control Panel is known as "The Dashboard"
> >  Hard Drive is referred to as "4-Wheel Drive"
> >  Floppies are "Them little ol' plastic thangs"
> >  Instead of an error message, "Duct tape" pops up
> >
> >  CHANGES IN TERMINOLOGY IN TEXAS EDITION:
> >  Cancel.stopdat
> >  Reset...try'er agin
> >  Yes..yep
> >  Nonope
> >  Find..hunt fer it
> >  Go toover yonder
> >  Back.back yonder
> >  Help..hep me out here
> >  Stop..kwitit
> >  Start..crank'er up
> >  Settings.settins
> >  Programs...stuff at duz stuff
> >  Documents.stuff ah done did
> >
> >  Also note that theTEXAS EDITION does not recognize capital letters or
> >  punctuation marks.
> >
> >  Some programs that are exclusive to WINDERS 2000:
> >
> >  Tiperiter.a word processing program
> >  Colerin' Book..a graphics program
> >  Cyferin' mersheen...calculator
> >  Outhouse paper..notepad
> >  Inner-net.Microsoft Explorer 5.0
> >  Pitchers..a graphics viewer
> >
> >  We regret any inconvenience it may have caused if you received a copy
of
> >  the TEXAS EDITION.
> >  You may return it to Microsoft for a replacement version.
> >
> >  I hope this helps all ya'll!
> >
> >  Billy Bob Gates
> >  
> >
> > James Mitchell
> > Software Engineer\Struts Evangelist
> > Struts-Atlanta, the "Open Minded Developer Network"
> > http://www.open-tools.org/struts-atlanta
> >
> >
> >
> >
> > --
> > 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: 




Request for additional link on struts docs[Suggestion]

2002-09-20 Thread Michael Lee

This is fantastic. I've happened upon this on some google searches but
google is many times behind.
Would this be a worthwhile link to have off the struts site?
Mike

- Original Message -
From: "Galbreath, Mark" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, September 20, 2002 3:01 PM
Subject: RE: Struts with Jbuilder 6


> Here ya go:
>
> http://www.mail-archive.com/struts-user%40jakarta.apache.org/
>
> -Original Message-
> From: Michael Lee [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 20, 2002 2:53 PM
> To: Struts Users Mailing List
> Subject: Re: Struts with Jbuilder 6
>
>
> LOL!LOL! I can not belive your response to his link. My god...
> Anyway
> I have used struts with Jbuilder 4,6 and now 7. It is a java application,
> like any other. The question itself makes no sense. If you mean what good
> struts tools are there that integrate with jbuilder (almost any java ide
> really) then check out...
> http://easystruts.sourceforge.net/
> There are a bunch more on
> http://jakarta.apache.org/struts/resources/guis.html
> I think this is your problem. You are not doing your homework. When I post
a
> question here I make sure I have
> 1) Read all the jakarta struts docs I can
> 2) Read all pertinent jakarta struts javadocs
> 3) Look through all pertinent struts examples in war files
> 4) Google search
>
> You apparently not even done step 1. This is what many here find
insulting.
> Something I would like to see is these emails in searchable form. (I saw
an
> earlier email with a link)
> Mike
>
>
>
> - Original Message -
> From: "Thomas T. Veldhouse" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, September 20, 2002 1:12 PM
> Subject: Re: Struts with Jbuilder 6
>
>
> > Tell him so -- don't just hand-off the URL as an answer.
> >
> > Tom Veldhouse
> >
> > - Original Message -
> > From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > Sent: Friday, September 20, 2002 10:32 AM
> > Subject: RE: Struts with Jbuilder 6
> >
> >
> > > If you had actually read the document, Tom, you would know that its
main
> > > thread is how to do research before asking questions that the asker
has
> > > obviously done nothing to figure out on his own.  If you find that
> > > offensive, you've got a screw loose.
> > >
> > > Give a man a fish and he'll eat for a day.  Teach him how to fish and
> > he'll
> > > eat for a lifetime.
> > >
> > > Mark
> > >
> > > -Original Message-
> > > From: Thomas T. Veldhouse [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, September 20, 2002 11:18 AM
> > > To: Struts Users Mailing List
> > > Subject: Re: Struts with Jbuilder 6
> > >
> > >
> > > He was telling you to ask your question in a "smart" way.  In
> otherwords,
> > he
> > > was trying to act as list moderator.  I find that more offensive than
> some
> > > of the things that document addresses.  I didn't personally find
> anything
> > in
> > > particular wrong with your question and a simple answer from somebody
> > would
> > > have sufficed.  Try taking a look at EasyStruts from SourceForge.  I
> have
> > > not used it myself, so I can not say how well it does or does not
work.
> > >
> > > Tom Veldhouse
> > >
> > > - Original Message -
> > > From: "BARADAT Benoit" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Friday, September 20, 2002 7:43 AM
> > > Subject: Re: Struts with Jbuilder 6
> > >
> > >
> > > > are you sure ?
> > > > I tryed to find the word "Struts" in this page. I didn't found it
!!!
> > > >
> > > >
> > > > - Original Message -
> > > > From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> > > > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > > > Sent: Friday, September 20, 2002 2:29 PM
> > > > Subject: RE: Struts with Jbuilder 6
> > > >
> > > >
> > > > > Start here:
> > > > >
> > > > > http://www.tuxedo.org/~esr/faqs/smart-questions.html
> > > >

Re: Request for additional link on struts docs[Suggestion]

2002-09-21 Thread Michael Lee

LOL! Exactly what I mean!

- Original Message -
From: "Martin Cooper" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, September 20, 2002 3:31 PM
Subject: RE: Request for additional link on struts docs[Suggestion]


> You mean somewhere like here?
>
> http://jakarta.apache.org/struts/resources/archives.html
>
> --
> Martin Cooper
>
>
> > -Original Message-
> > From: Michael Lee [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, September 20, 2002 12:16 PM
> > To: Struts Users Mailing List
> > Subject: Request for additional link on struts docs[Suggestion]
> >
> >
> > This is fantastic. I've happened upon this on some google searches but
> > google is many times behind.
> > Would this be a worthwhile link to have off the struts site?
> > Mike
> >
> > - Original Message -
> > From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > Sent: Friday, September 20, 2002 3:01 PM
> > Subject: RE: Struts with Jbuilder 6
> >
> >
> > > Here ya go:
> > >
> > > http://www.mail-archive.com/struts-user%40jakarta.apache.org/
> > >
> > > -Original Message-
> > > From: Michael Lee [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, September 20, 2002 2:53 PM
> > > To: Struts Users Mailing List
> > > Subject: Re: Struts with Jbuilder 6
> > >
> > >
> > > LOL!LOL! I can not belive your response to his link. My god...
> > > Anyway
> > > I have used struts with Jbuilder 4,6 and now 7. It is a
> > java application,
> > > like any other. The question itself makes no sense. If you
> > mean what good
> > > struts tools are there that integrate with jbuilder (almost
> > any java ide
> > > really) then check out...
> > > http://easystruts.sourceforge.net/
> > > There are a bunch more on
> > > http://jakarta.apache.org/struts/resources/guis.html
> > > I think this is your problem. You are not doing your
> > homework. When I post
> > a
> > > question here I make sure I have
> > > 1) Read all the jakarta struts docs I can
> > > 2) Read all pertinent jakarta struts javadocs
> > > 3) Look through all pertinent struts examples in war files
> > > 4) Google search
> > >
> > > You apparently not even done step 1. This is what many here find
> > insulting.
> > > Something I would like to see is these emails in searchable
> > form. (I saw
> > an
> > > earlier email with a link)
> > > Mike
> > >
> > >
> > >
> > > - Original Message -
> > > From: "Thomas T. Veldhouse" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Friday, September 20, 2002 1:12 PM
> > > Subject: Re: Struts with Jbuilder 6
> > >
> > >
> > > > Tell him so -- don't just hand-off the URL as an answer.
> > > >
> > > > Tom Veldhouse
> > > >
> > > > - Original Message -
> > > > From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> > > > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > > > Sent: Friday, September 20, 2002 10:32 AM
> > > > Subject: RE: Struts with Jbuilder 6
> > > >
> > > >
> > > > > If you had actually read the document, Tom, you would
> > know that its
> > main
> > > > > thread is how to do research before asking questions
> > that the asker
> > has
> > > > > obviously done nothing to figure out on his own.  If
> > you find that
> > > > > offensive, you've got a screw loose.
> > > > >
> > > > > Give a man a fish and he'll eat for a day.  Teach him
> > how to fish and
> > > > he'll
> > > > > eat for a lifetime.
> > > > >
> > > > > Mark
> > > > >
> > > > > -Original Message-
> > > > > From: Thomas T. Veldhouse [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Friday, September 20, 2002 11:18 AM
> > > > > To: Struts Users Mailing List
> > > > > Subject: Re: Struts with Jbuilder 6
> > > > >
> > > > >
> > > > > He was telling you to ask yo

Re: Need Help Fast

2002-09-26 Thread Michael Lee

Ive done this, everyone is overcomplicating it greatly...
Lookup.getData() gets an ArrayList of states.
This array list is loaded through an XML file that loads upon boot and puts
it in a static variable. This XML file can load it from itself or from the
database. It does all the .add() .add() .add() etc. This should NOT be done
in a jsp tag. Done once and pulled from static method like below. Nice and
simple.
Here's the JSP code.

<%  pageContext.setAttribute("allUnitedStates",
Lookup.getData(Constant.GLOBAL.UNITED_STATES)); %>



  
  



- Original Message -
From: "Hajratwala, Nayan (N.)" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, September 26, 2002 9:41 AM
Subject: RE: Need Help Fast


> Essentially, he is saying you can rewrite your doStartTag method to be
something like:
>
>   private List _states = null;
>
>   public int doStartTag() throws JspException {
>
> if (_states == null) {
>   _states = new java.util.ArrayList();
>   _states.add(new com.ubspw.cdd.common.LabelValueBean("-Select One-",
""));
>   _states.add(new com.ubspw.cdd.common.LabelValueBean("AK","AK"));
>   _states.add(new com.ubspw.cdd.common.LabelValueBean("AL","AL"));
>   _states.add(new com.ubspw.cdd.common.LabelValueBean("AR","AR"));
>   ...
>   ...
> }
>
> pageContext.setAttribute("selectStates", _states);
> return (EVAL_BODY_INCLUDE);
>   }
>
> this way, "states" will only be set up the first time doStartTag is
called.
>
>
> ---
> - Nayan Hajratwala
> - Chikli Consulting LLC
> - http://www.chikli.com
>
>
> -Original Message-
> From: Smith, Johnathan M. [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 9:14 AM
> To: 'Struts Users Mailing List'
> Cc: '[EMAIL PROTECTED]'
> Subject: RE: Need Help Fast
>
>
> Can you please send me a sample of a better way
>
> -Original Message-
> From: Ville Peurala [mailto:
> Sent: Thursday, September 26, 2002 8:26 AM
> To: Struts Users Mailing List
> Subject: RE: Need Help Fast
>
>
> Hello,
>
> One possible solution:
>
> Put the ArrayList in application context and put a check in doStartTag()'s
> beginning to determine whether the list of states can be found in
> application context.
>
> Instead of:
>
> pageContext.setAttribute("selectStates", states);
>
> Put it like this:
>
> pageContext.setAttribute("selectStates", states,
> PageContext.APPLICATION_SCOPE);
>
> And in the beginning of doStartTag():
>
> Object o = pageContext.getAttribute("selectStates",
> PageContext.APPLICATION_SCOPE);
> if (o == null) { ...do what your current code does...
> }
> else { ...do nothing... }
>
> But why do this in a tag at all? If your list of states never changes, you
> might as well initialize it in an init() method somewhere.
>
> T: Ville Peurala
>
>
> -Original Message-
> From: Smith, Johnathan M. [mailto:[EMAIL PROTECTED]]
> Sent: 26. syyskuuta 2002 15:13
> To: 'Struts Users Mailing List'
> Subject: Need Help Fast
>
>
> This is not really a struts question but I am using struts a maybe someone
> can help.  I system has allot of state dropdown's so I I made a tag for
the
> programmers to insert into the JSP pages.
>
> The Tag builds a ArrayList with the states in it and then saves the states
> as a attribute in the pageContext. But I don't know if this is the best
way
> to do it.  Is it anyway to tell this code only to run one time and then
stay
> in member?
>
> Below is my sample code: Please help me out
>
> public int doStartTag() throws JspException {
>
> java.util.ArrayList states = new java.util.ArrayList();
> states.add(new com.ubspw.cdd.common.LabelValueBean("-Select
> One-", ""));
> states.add(new com.ubspw.cdd.common.LabelValueBean("AK",
> "AK"));
> states.add(new com.ubspw.cdd.common.LabelValueBean("AL",
> "AL"));
> states.add(new com.ubspw.cdd.common.LabelValueBean("AR",
> "AR"));
> states.add(new com.ubspw.cdd.common.LabelValueBean("AZ",
> "AZ"));
> states.add(new com.ubspw.cdd.common.LabelValueBean("CA",
> "CA"));
> states.add(new com.ubspw.cdd.common.LabelValueBean("CO",
> "CO"));
> states.add(new com.ubspw.cdd.common.LabelValueBean("CT",
> "CT"));
> states.add(new com.ubspw.cdd.common.LabelValueBean("DC",
> "DC"));
> states.add(new com.ubspw.cdd.common.LabelValueBean("DE",
> "DE"));
> states.add(new com.ubspw.cdd.common.LabelValueBean("FL",
> "FL"));
> states.add(new com.ubspw.cdd.common.LabelValueBean("GA",
> "GA"));
> states.add(new com.ubspw.cdd.common.LabelValueBean("HI",
> "HI"));
> states.add(new com.ubspw.cdd.common.LabelValueBean("IA",
> "IA"));
> states.add(new com.ubspw.cdd.common.LabelValueBean("ID",
> "ID"));
> states.add(new com.ubspw.cdd.common.LabelValueBean("IL",
> "IL"));
> states.add(new com.ubspw.cdd.common.LabelValueBean("IN",
> "IN"));
> states.add(new com.ubspw.cdd.common.LabelValueBean("KS",
> "KS"));
> states.add(new com.ubspw.cdd.common.LabelValueBean("KY",
> "KY"));
> states.add(new com.ubspw.cdd.common.LabelValueBean("LA",
> "LA"));
> states.add(new c

Re: How to set default

2002-10-04 Thread Michael Lee

in your  you will include
 first. This SINGULAR form of options will be the first one.
The default will be set to what the user chooses after that.
then 

- Original Message -
From: "Cathy Osekizoglu" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, October 04, 2002 2:57 PM
Subject: How to set default


>
>  I am using  tag to get a dropdown list. How can I make an
item as default so every time I open the page that contains the dropdown
list, it will show the default. Thanks.
> Cathy
>
>
>
> -
> Post your free ad now! Yahoo! Canada Personals
>

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




Re: struts 1.1 b2 + Weblogic 7.0 = ....

2002-10-23 Thread Michael Lee
Check your statics. I doubt this is struts fault.

- Original Message -
From: "Louis Leung" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 23, 2002 7:13 PM
Subject: RE: struts 1.1 b2 + Weblogic 7.0 = 


So I guess no one else encountered the same or similar problem before ?

How about this, has anyone successfully used Struts 1.1 b2 with Weblogic
7.0 for their web application ?





-Original Message-
From: Louis Leung
Sent: Tuesday, October 22, 2002 4:12 PM
To: Struts Users Mailing List
Subject: struts 1.1 b2 + Weblogic 7.0 = 

Hi all,



Previously my app is deployed in WL (weblogic) 7.0 with struts 1.1 b1
and everything works fine.  Then, I upgraded to struts 1.1 b2 by using
the new jar files and tld.  Now the app "crashes" randomly, usually when
a validation is firing.



The crash that I experienced is the app will just halt when a form is
submitted, and WL console shows nothing.  Is like the response is going
thru an infinite loop.  Sometimes I get java.lang.OutOfMemoryException
in the WL console and I have to restart the server.  Yup, not just
redeploy, but a restart.



I'm pretty sure is not something in my code since I didn't change my
source when I upgrade from struts 1.1 b1, and it was working fine with
beta 1.



Had anyone experienced this ?  Any input is appreciated.  Thanks in
advance.







Louis


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: Validator later rather than sooner?

2002-10-24 Thread Michael Lee
Along the same thread, we are having a validation design problem.
We have broken most of our Action classes up into multiple classes. Before
we had one and used the property in the action mapping. That makes the
Action classes much more readable.
Problem is, these action classes still just use one ActionForm. This
ActionForm's validation method checks the parameter because the validation
for each page is different. This is starting to get large and unwieldy. I
don't want to have to create basically the same ActionForm for each Action
class when they are all mostly the same.
Question is, what is a clean way of breaking up all these validations?
Should I continue to check the action parameter and validate against it
within the same validation method for that one Action form? I was thinking
of extending the UserForm (the ActionForm in question) and just implementing
the validation method. This way I could also get rid of the parameter in the
action mapping of the struts-config.xml.
Thanks,
Mike


- Original Message -
From: "Richards, Devin N (Devin)" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, October 24, 2002 1:58 PM
Subject: RE: Validator later rather than sooner?


> Since the validator classes extend the standard struts classes, I would
get everything working correctly and then add the validator in after. We did
this and it worked well (except for the current bug of the validator not
supporting multiple resource bundles.)
>
> -Devin
>
>
> -Original Message-
> From: Susan Bradeen [mailto:SusanB@;softlanding.com]
> Sent: Thursday, October 24, 2002 1:50 PM
> To: [EMAIL PROTECTED]
> Subject: Validator later rather than sooner?
>
>
> Is it general practice, or recommended, to develop a Struts application
> using the Action/ActionForm classes first (getting everything working
> properly) and later switch to the Validator classes, OR to use the
> Validator classes (implementing validation) right from the beginning?
>
> I have done a little with form validation, but not enough to know if I
> will get myself in trouble by waiting and "switching" class sets later on.
>
> Thanks,
> Susan Bradeen
>
> --
> 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: Validator later rather than sooner?

2002-10-24 Thread Michael Lee
We do use the same form. That's the problem.

- Original Message -
From: "bachan s" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, October 24, 2002 3:02 PM
Subject: Re: Validator later rather than sooner?


>
> Instead of writing different action forms you can have different entries
in your struts config with the same Object type (i.e action form ).In this
was you can have different rule for each form using the validator framework.
> Does this sound feasible.
>  Michael Lee <[EMAIL PROTECTED]> wrote:Along the same thread, we are
having a validation design problem.
> We have broken most of our Action classes up into multiple classes. Before
> we had one and used the property in the action mapping. That makes the
> Action classes much more readable.
> Problem is, these action classes still just use one ActionForm. This
> ActionForm's validation method checks the parameter because the validation
> for each page is different. This is starting to get large and unwieldy. I
> don't want to have to create basically the same ActionForm for each Action
> class when they are all mostly the same.
> Question is, what is a clean way of breaking up all these validations?
> Should I continue to check the action parameter and validate against it
> within the same validation method for that one Action form? I was thinking
> of extending the UserForm (the ActionForm in question) and just
implementing
> the validation method. This way I could also get rid of the parameter in
the
> action mapping of the struts-config.xml.
> Thanks,
> Mike
>
>
> - Original Message -
> From: "Richards, Devin N (Devin)"
> To: "Struts Users Mailing List"
> Sent: Thursday, October 24, 2002 1:58 PM
> Subject: RE: Validator later rather than sooner?
>
>
> > Since the validator classes extend the standard struts classes, I would
> get everything working correctly and then add the validator in after. We
did
> this and it worked well (except for the current bug of the validator not
> supporting multiple resource bundles.)
> >
> > -Devin
> >
> >
> > -Original Message-
> > From: Susan Bradeen [mailto:SusanB@;softlanding.com]
> > Sent: Thursday, October 24, 2002 1:50 PM
> > To: [EMAIL PROTECTED]
> > Subject: Validator later rather than sooner?
> >
> >
> > Is it general practice, or recommended, to develop a Struts application
> > using the Action/ActionForm classes first (getting everything working
> > properly) and later switch to the Validator classes, OR to use the
> > Validator classes (implementing validation) right from the beginning?
> >
> > I have done a little with form validation, but not enough to know if I
> > will get myself in trouble by waiting and "switching" class sets later
on.
> >
> > Thanks,
> > Susan Bradeen
> >
> > --
> > 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:
>
>
>
> -
> Do you Yahoo!?
> Y! Web Hosting - Let the expert host your web site

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




Re: Validator later rather than sooner?

2002-10-24 Thread Michael Lee
ActionForm reused across many actions, not the whole app. Its a UserForm.
Between admin create user, admin edit, end user edit and create, etc, it
would not make sense to have multiple aciton forms that all have 95% of the
same data. I'm just wondering how to split up the validator without using
parameters in the action mappings, which is how I do it now. The validator
becomes too huge.

- Original Message -
From: "David Graham" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 24, 2002 3:03 PM
Subject: Re: Validator later rather than sooner?


> You have one ActionForm class in your whole system?  If that's the case
then
> that's your main problem.  The rule is one ActionForm per logical html
form
> the user sees.
>
> It sounds like you used to have only one Action as well but split it up.
> That's what you should do with the forms.
>
> David
>
>
>
>
>
>
> >From: "Michael Lee" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: Re: Validator later rather than sooner?
> >Date: Thu, 24 Oct 2002 14:52:30 -0400
> >
> >Along the same thread, we are having a validation design problem.
> >We have broken most of our Action classes up into multiple classes.
Before
> >we had one and used the property in the action mapping. That makes the
> >Action classes much more readable.
> >Problem is, these action classes still just use one ActionForm. This
> >ActionForm's validation method checks the parameter because the
validation
> >for each page is different. This is starting to get large and unwieldy. I
> >don't want to have to create basically the same ActionForm for each
Action
> >class when they are all mostly the same.
> >Question is, what is a clean way of breaking up all these validations?
> >Should I continue to check the action parameter and validate against it
> >within the same validation method for that one Action form? I was
thinking
> >of extending the UserForm (the ActionForm in question) and just
> >implementing
> >the validation method. This way I could also get rid of the parameter in
> >the
> >action mapping of the struts-config.xml.
> >Thanks,
> >Mike
> >
> >
> >- Original Message -
> >From: "Richards, Devin N (Devin)" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Sent: Thursday, October 24, 2002 1:58 PM
> >Subject: RE: Validator later rather than sooner?
> >
> >
> > > Since the validator classes extend the standard struts classes, I
would
> >get everything working correctly and then add the validator in after. We
> >did
> >this and it worked well (except for the current bug of the validator not
> >supporting multiple resource bundles.)
> > >
> > > -Devin
> > >
> > >
> > > -Original Message-
> > > From: Susan Bradeen [mailto:SusanB@;softlanding.com]
> > > Sent: Thursday, October 24, 2002 1:50 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Validator later rather than sooner?
> > >
> > >
> > > Is it general practice, or recommended, to develop a Struts
application
> > > using the Action/ActionForm classes first (getting everything working
> > > properly) and later switch to the Validator classes, OR to use the
> > > Validator classes (implementing validation) right from the beginning?
> > >
> > > I have done a little with form validation, but not enough to know if I
> > > will get myself in trouble by waiting and "switching" class sets later
> >on.
> > >
> > > Thanks,
> > > Susan Bradeen
> > >
> > > --
> > > 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>
>
>
> _
> Broadband? Dial-up? Get reliable MSN Internet Access.
> http://resourcecenter.msn.com/access/plans/default.asp
>
>
> --
> 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: Validator later rather than sooner?

2002-10-24 Thread Michael Lee
If by ValidatorActionForm you mean ValidatingActionForm then I can't
(shouldn't). It recommends what I suggested as a possible solution in the
original post. That is, overriding the UserForm and using that form for the
appropriate action mapping in the struts-config.xml. I would be overriding
the validate() of UserForm which is overriding validate() of ActionForm. I'm
using struts 1.0.2 btw.

Javadocs for ValidatingActionForm
"Deprecated. Application ActionForm beans should now extend ActionForm
directly, and override the validate() method if they wish to provide such
services"
thanks,
Mike

- Original Message -
From: "Dave Derry" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, October 24, 2002 3:26 PM
Subject: Re: Validator later rather than sooner?


> You can also validate based on the action rather than the form. Just use
the
> action type rather than the form name, and be sure to extend
> ValidatorActionForm rather than ValidatorForm.
>
> Dave Derry
>
> - Original Message -
> From: "bachan s" <[EMAIL PROTECTED]>
>
>
> >
> > Instead of writing different action forms you can have different entries
> in your struts config with the same Object type (i.e action form ).In this
> was you can have different rule for each form using the validator
framework.
> > Does this sound feasible.
>
> >  Michael Lee <[EMAIL PROTECTED]> wrote:Along the same thread, we are
> having a validation design problem.
> > We have broken most of our Action classes up into multiple classes.
Before
> > we had one and used the property in the action mapping. That makes the
> > Action classes much more readable.
> > Problem is, these action classes still just use one ActionForm. This
> > ActionForm's validation method checks the parameter because the
validation
> > for each page is different. This is starting to get large and unwieldy.
I
> > don't want to have to create basically the same ActionForm for each
Action
> > class when they are all mostly the same.
> > Question is, what is a clean way of breaking up all these validations?
> > Should I continue to check the action parameter and validate against it
> > within the same validation method for that one Action form? I was
thinking
> > of extending the UserForm (the ActionForm in question) and just
> implementing
> > the validation method. This way I could also get rid of the parameter in
> the
> > action mapping of the struts-config.xml.
> > Thanks,
> > Mike
> >
>
>
>
> --
> 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>




Putting request parameter into page context

2002-11-15 Thread Michael Lee
This seems like it would be so simple yet I can't get it to work
I've tried all kinds of combinations of bean:define...

I want to take the request parameter startRow and put it in a page object startRow
startRow is in the request (URL.com/someaction.jsp?startRow=10).
thanks,
Mike


Re: j_security_check

2002-11-18 Thread Michael Lee
Dont use struts  tags inside your form.  and
such are ok. Otherwise, it thinks you want to use an ActionForm.
Mike

- Original Message -
From: "Darren Hill" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Monday, November 18, 2002 2:21 PM
Subject: j_security_check


> Wow.
>
> I had this working awesome ... now I get a
>
> HTTP ERROR: 404 Not Found
> RequestURI=/CMWeb/WEB-INF/pages/j_security_check
>
> from the following jsp
>
> 
> 
>  type="text" name="j_username">
>  type="password" name="j_password">
>  key="login.page.form.submit.label"/>
> 
>
> Its obvious that struts is trying to locate the action 'j_security_check'
in
> the struts-config.xml file ...
> Is there a way I can get Struts to ignore this ( not look it up ) so that
> the container can capture this request?
>
> Darren.
>
> P.S.  I DID search the archives with no lucl.
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




j_security_check, jaas and weblogic 6.1

2002-08-26 Thread Michael Lee

I have to do security for the company I am at. I have never used
j_security_check, jaas or weblogic 6.1 RDBMS (we have a database for
authentication/authorization). I read all through the examples on
j_security_check, jaas and WLS RDBMS out there I could get my hands on.
There seems to be no good real world examples of how to tie all these
together. The reason I'm having an issue is struts is the middle man, the
controller so he is key to it all. I know i configure j_security_check in my
web.xml to point to use form authentication, i know all about deployment
descriptor configuration for ejb, war, etc. This is not the problem. I don't
see how JAAS fits into j_security_check? I also dont see how struts fits
into it either? Do I need to also add a login.do? I need to get the locale
for the user from the database and figured I would do this at the login.
JAAS wants LoginContext.login(), most j2ee say j_security_check and struts
examples have login.do (this is the way I've typically done it).
Help! I can't find any real world examples to tie all these together!
thanks!
Mike Lee

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




Re: Iterate tag within an iterate tag

2002-08-26 Thread Michael Lee

I've done this...
The way I did it is the outer tag needs to populate data into a TagExtraInfo
class. The inner tag can now use this data.
You also have to make sure in your tld you tell it the TagExtraInfo class
you are going to use.
I've passed the data in the TagExtraInfo class into the attributes of the
inner tag. This is great for iterating through lists. You can use the outer
tag to pull the data and the inner tag to take it and put it in a table or
something. That way you can separate the data collection from the the
handler/view/manipulator for that data.
I learned how to do this from the book Java Server Programming J2EE edition.
Excellent book.
Mike


- Original Message -
From: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, August 26, 2002 11:49 AM
Subject: Re: Iterate tag within an iterate tag


>
>
> See the 1.1b nested tag extensions or Aron Bates (www.keyboardmonkey.com)
1.0
> extensions (which are the ones incorporated into 1.1).
>
>
>
>
>
> Darryl Nortje <[EMAIL PROTECTED]> on 08/26/2002 10:49:39 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:  Iterate tag within an iterate tag
>
>
> Went through the achives to find out if having an iterate tag within an
> iterate tag is possible. Didn't find anything.
>
> So basically, my question is 1) is it possible. and 2) if so, how.
>
> This is what I've done, but it's not working..
>
> 
> I am then able to access all this collections getters if they are
returning
> String via the  
>
> if the getter returns a collection, how do I iterate through that
result
>
> the getter in the bean is (in this case) getAttDetails() for the
collection
> that I now need to iterate through.
>
> If I do this  in the
> first iterate tag it prints out the following to my jsp
> [com.ag.armata.contentserver.OptionBean@475d,
> com.ag.armata.contentserver.OptionBean@6275], which looks to me like it's
> just simply calling the toString() method on the object. What I, in
essence
> want to do is this>
>
> 
>
> property="attDetails"/>" id="attDets">
> =  name="attDets" property="value"/>
>
> 
>  This obviously does not work...
> Does anyone know how to do what I've tried to explain as best as possible
> here.
>
> Thanks
> Darryl
>
> --
> 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: j_security_check, jaas and weblogic 6.1

2002-08-26 Thread Michael Lee

Thank you! You are the ONLY place I've heard this!  Now everything seems to
make more sense.

I was just going to use j_security_check hooked into Weblogic RDBMS and put
the user in the session for authentication from there on in (JNDI security
to EJB). So this looks like the right path?

No offense, but is this right? BEA recommends you use JAAS all over the
place. I'm mainly going to use ACL in the deployment descriptors for my web
app and ejbs. I also noticed that almost all JAAS implementations were at
the java client layer. Few were servlets, etc. This would make sense with
what your saying because no container would exist at a pure java client
layer (such as with the JAAS RMI example that comes with weblogic).

BTW, EXCELLENT job with struts Craig and team. I have 2 systems IN
PRODUCTION! using struts. They wrote one at the job I'm at and I recommended
struts to replace it. We are now going full steam ahead with struts!
thanks,
Mike Lee


- Original Message -
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, August 26, 2002 12:52 PM
Subject: Re: j_security_check, jaas and weblogic 6.1


> JAAS is not relevant if you're using container-managed security.  You'll
> need to set up users in whatever user database your container (WebLogic in
> your case) provides.  Struts also has nothing to do with this -- although
> you can use role information with tags like  or the "roles"
> attribute on an  if you want to.
>
> JAAS would only be relevant if you wanted to do application-managed
> security instead, or if you were implementing the container itself.
>
> Craig
>
>
> On Mon, 26 Aug 2002, Michael Lee wrote:
>
> > Date: Mon, 26 Aug 2002 12:21:12 -0400
> > From: Michael Lee <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > Subject: j_security_check, jaas and weblogic 6.1
> >
> > I have to do security for the company I am at. I have never used
> > j_security_check, jaas or weblogic 6.1 RDBMS (we have a database for
> > authentication/authorization). I read all through the examples on
> > j_security_check, jaas and WLS RDBMS out there I could get my hands on.
> > There seems to be no good real world examples of how to tie all these
> > together. The reason I'm having an issue is struts is the middle man,
the
> > controller so he is key to it all. I know i configure j_security_check
in my
> > web.xml to point to use form authentication, i know all about deployment
> > descriptor configuration for ejb, war, etc. This is not the problem. I
don't
> > see how JAAS fits into j_security_check? I also dont see how struts fits
> > into it either? Do I need to also add a login.do? I need to get the
locale
> > for the user from the database and figured I would do this at the login.
> > JAAS wants LoginContext.login(), most j2ee say j_security_check and
struts
> > examples have login.do (this is the way I've typically done it).
> > Help! I can't find any real world examples to tie all these together!
> > thanks!
> > Mike Lee
> >
> > --
> > 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: Adding errors to request in a DefaultAction

2002-08-26 Thread Michael Lee

Is it not in your resource bundle (ApplicationResources)?

- Original Message -
From: "Matt Raible" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 26, 2002 1:48 PM
Subject: Adding errors to request in a DefaultAction


> I have an ActionFilter that maps to /do/*.  In this class, I detect if
> the user has a missing "password_hint" and if so, set a session
> variable, "missingHint".  Then in my DefaultAction (which forward to the
> Main Menu), I have code to check for that variable and forward - but
> it's not working - any ideas? The logging message "building missing
> password hint warning" IS getting logged.
>
>
> // Extract attributes we will need
> ActionErrors errors = new ActionErrors();
>   ...
>
> String requestURI = request.getRequestURI();
> String contextPath = request.getContextPath();
>
> String forwardPath = requestURI.substring(contextPath.length());
>
> forwardPath = forwardPath.substring(
> forwardPath.indexOf("do/") + 3, forwardPath.length());
>
> if (forwardPath.indexOf("mainMenu") != -1) { // routing to Main
> Menu
>
> if (session.getAttribute("missingHint") != null) {
> if (logger.isDebugEnabled()) {
> logger.debug("building missing password hint
> warning");
> }
> // add warning message to the request
> errors.add(ActionErrors.GLOBAL_ERROR,
>new ActionError("errors.missing.hint"));
> saveErrors(request, errors);
> session.removeAttribute("missingHint");
> }
> }
>
> return mapping.findForward(forwardPath);
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>

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




Re: Result paging for site search results

2002-08-27 Thread Michael Lee

I wouldn't send around ResultSets. Use scrollable cursors if your JDBC
driver supports them and do an absolute() to go to the row you need.
thats one way
Michael Lee

- Original Message -
From: 
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, August 27, 2002 12:58 PM
Subject: Result paging for site search results


>
> All
>
> I am a newbie so if this question sounds a bit simple don't shoot...
>
> I am developing a search page and want to break the results into pages of
> containg 25 results per page.  I know I can use the "offset" and "length"
> parameters on the iterator tag but I can't seem to be able to pass the
> formBean maintaining the results data to the next page.. any ideas
>
> Thanks in advance.
>
> Simon.
>
>
> --
> 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: Nested tags performance

2002-08-28 Thread Michael Lee

In addition to pre-compiling, most JSP engines compile only once unless a
new version of your JSP is added so it should only be slow upon first hit.

I've run into this problem before. The solution is...
Don't show the bosses/customers the product until you run through on
iteration of testing on all the jsps you plan to show!
With bosses/customers, it rarely matters when you say 'But it's only slow
the first time'! They don't understand compiled/slow once.

Michael Lee

- Original Message -
From: "Donald Ball" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 28, 2002 10:23 AM
Subject: RE: Nested tags performance


> On 8/28/2002 at 1:58 PM Lister, Tom (ANTS) wrote:
>
> >I have got a page working with nested tags and the functionality is
> >brilliant for master/detail pages
> >However the performance is abysmal, to the point where we mayhave to
> >abandon
> >it completely.
> >The problem appears to be during the page compile/display phase. it is a
> >bit
> >erratic as to where it actually slows down and we suspect the problem is
> >the
> >garbage collector clearing up objects created by various tags although
> >we've
> >yet to put it through Optimizeit
> >Any suggestions for speeding up?
>
> Have you tried precompiling your jsp pages? any has an optional task that
> purports to make that easy.
>
> - donald
>
>
> --
> 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: JBUILDER keeps deleting the directory: WEB-INF/classes

2002-08-28 Thread Michael Lee

JBuilder 6 definately has some wierd 'issues' when it comes to building
enterprise apps (war/ear/ejb). I now use Jbuilder 7 Enterprise and it does a
much better job. It is still quirky (be careful when deploying wars, unset
that include necessary files or your war file will be 20 megs full of
j2ee.jar, weblogic.jar, etc). It does a pretty good job though.

However, since I've had similar problems, I use ant for full builds.
To just compile, deploy something fast, edit a deployment desciptor and
reploy, etc. JBuilder is good, but for most stuff, ant is king.
See a pattern?
:)
viva ant,
Michael Lee

- Original Message -
From: "Cliff Rowley" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, August 28, 2002 10:16 AM
Subject: Re: JBUILDER keeps deleting the directory: WEB-INF/classes


> Good old JBuilder :) *chuckles-whilst-using-intellij-idea*
>
> On Wed, 2002-08-28 at 15:14, [EMAIL PROTECTED] wrote:
> >
> >
> > JBuilder is just s#!*
> >
> > I have been using it to build my EJB projects and it keeps on loosing
information, deleting stuff and all sorts of fun and games! I've just given
up. My company makes us develop with JBuilder as they have spent a fortune
on the licenses, but all the building is done with ant scripts now!
> >
> > Sorry that dosen't help, but thats just the way I see things :(
> >
> > IV
> >
> > >  from:Darren McGuinness <[EMAIL PROTECTED]>
> > >  date:Wed, 28 Aug 2002 15:05:30
> > >  to:  [EMAIL PROTECTED]
> > >  subject: Re: JBUILDER keeps deleting the directory: WEB-INF/classes
> > >
> > > Forgot to add, this happens when I rebuild the project.
> > >
> > > Darren McGuinness wrote:
> > >
> > > > This is then causing problems because
ApplicationResources.properties is
> > > > gone, and I get errors because the code cannot find the keys from
the
> > > > now deleted file.
> > > >
> > > > I had it working, but now this is happening.
> > > >
> > > > Using struts 1.0, JBuilder 6 with TomCat
> > > >
> > > > Any ideas?
> > > >
> > > > Cheers.
> > > >
> > > > --
> > > > 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]>
> >
> >
> --
>
> Regards
>
> ---
>  Cliff Rowley| [EMAIL PROTECTED]
>  Software Engineer   |   www.doctype.co.uk
>  +44 (0) 1206 514263 | www.cliffrowley.com
> ---
>
>
> --
> 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: Memery Leak

2002-08-28 Thread Michael Lee

Dude, just do this...
on the command line where you run java . com.yourstuff.YourClass
add this parameter
-Xrunhprof:file=java.hprof.txt,heap=all,format=a,doe=y
Look at the end of the file. It will have all the objects
allocated/deallocated. Run your program for a while. Look for the objects
that get allocated but NEVER deallocated. These are many times static
objects like singletons and such that don't clean up well.
enjoy,
Michael Lee
Architect
Afterbot
[EMAIL PROTECTED]


- Original Message -
From: "Billy Ng" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, August 28, 2002 2:38 PM
Subject: Re: Memery Leak


> So you think it's not from Struts?  I would not think so either.
Otherwise,
> there must be many people complaining about it.  Do you mean to use
> OptimizeIt to check it?  By the way, I have a Account Manager object in
the
> session.  If user click on the Log out, it will remove the object form the
> session.  What about the user exit the program without click on Log Out.
> Will the object being holding in the session forever?  How should I hamdle
> this?
>
> Thanks!
>
> Billy Ng
>
> - Original Message -
> From: "Cliff Rowley" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, August 28, 2002 10:59 AM
> Subject: Re: Memery Leak
>
>
> > Ok, then it's possibly not that.  I should check your code, as suggested
> > use a profiler - which will give you an indication as to what is causing
> > the leak.
> >
> > On Wed, 2002-08-28 at 19:09, Billy Ng wrote:
> > > I don't know.  Yes, the memory usage is getting higher and higher.
> > >
> > > Billy Ng
> > >
> > > - Original Message -
> > > From: "Cliff Rowley" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Wednesday, August 28, 2002 2:15 AM
> > > Subject: RE: Memery Leak
> > >
> > >
> > > > Could it be the old javac memory leak bug?  Does memory usage get
> > > > progressively bigger?  The bug is fixed in JDK 1.4.1-beta, but it's
> not
> > > > a recommended upgrade yet as there are other bugs in it.
> > > >
> > > > On Wed, 2002-08-28 at 09:53, Martin Samm wrote:
> > > > > have you tried profiling your application? It could be objects not
> be
> > > garbage collected. Check your tags/servlets to ensure they are garbage
> > > collecting correctly.
> > > > >
> > > > > -Original Message-
> > > > > From: Billy Ng [mailto:[EMAIL PROTECTED]]
> > > > > Sent: 28 August 2002 09:50
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: Memery Leak
> > > > >
> > > > >
> > > > > Hi folks,
> > > > >
> > > > > I am using Tomcat 4.0.3, Struts 1.0.2, and Debian Linux 2.2.19.  I
> > > notice
> > > > > the size of the free memory is going down everytime there is a
user
> > > hitting
> > > > > my app.  It will never go back up.  Anybody having the same
problem?
> > > > >
> > > > > Billy Ng
> > > > >
> > > > > _
> > > > > Send and receive Hotmail on your mobile device:
> http://mobile.msn.com
> > > > >
> > > > >
> > > > > --
> > > > > 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]>
> > > > >
> > > > >
> > > > --
> > > >
> > > > Regards
> > > >
> > > > ---
> > > >  Cliff Rowley| [EMAIL PROTECTED]
> > > >  Software Engineer   |   www.doctype.co.uk
> > > >  +44 (0) 1206 514263 | www.cliffrowley.com
> > > > ---
> > > >
> > > >
> > > > --
> > > > 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]>
> > >
> > >
> > --
> >
> > Regards
> >
> > ---
> >  Cliff Rowley| [EMAIL PROTECTED]
> >  Software Engineer   |   www.doctype.co.uk
> >  +44 (0) 1206 514263 | www.cliffrowley.com
> > ---
> >
> >
> > --
> > 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: Memory Leak[OT]

2002-08-29 Thread Michael Lee

No problem.
I have no problem with some OT posts as long as someone thinks it may be
struts(like this memory leak). As soon as they find out it's not, they
should redirect appropriately. I asked a security question here a week ago
or so that I thought was related to struts but wasn't. A very nice man known
as Craig McClanahan (?whos that? hehe) answered my question (there was NO
information I could find out there on it) even though it wasn't exactly
struts (I didn't know that). I have no problem helping newbs out when I can
if they think it's struts. We're all newbs to something.
Michael Lee
Architect/Developer/J2ee Architect/Configuration Manager/yadayadyada
Afterbot
[EMAIL PROTECTED]
just remove nospam_ to email


- Original Message -
From: "Billy Ng" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 28, 2002 6:31 PM
Subject: RE: Memory Leak


> Thanks everybody!  I found where my app caused the memory leaks already.
> Somebody is right (sorry, I forget your name)!  It is from a singleton
call.
>   I will be very careful for the static calls next time.  This mailing
lists
> is great!
>
> Thanks!
>
> Billy Ng
>
> _
> Join the world's largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
>
>
> --
> 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: [Proposal] Thread Topic Identification (was [BS] Are we getting o ff the topic)

2002-08-29 Thread Michael Lee

I think a filter is good...the best filter being [OT]
My 5 c
add...
[APPSVR-WLS]
[APPSVR-JBOSS]
[WEBSVR-TOMCAT]
[WEBSVR-JRUN]
etc...
Michael Lee

- Original Message -
From: "Jerry Jalenak" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 29, 2002 9:28 AM
Subject: [Proposal] Thread Topic Identification (was [BS] Are we getting o
ff the topic)


> 
>
> Still chuckling about the Veggie Tales thread from yesterday. Thanks
> to everyone for lightening up the afternoon!
>
> 
>
> James Mitchell had a suggestion yesterday about using a [topic] prefix in
> the subject line that can be used to filter threads.  I know that I would
> use this as I don't really care about how to configure WebSphere or
JBuilder
> (no offense intended) to use Struts.  James had a pretty good start on a
> list (see below); I vote that we ALL begin trying to use these and expand
on
> them as needed.  It would be nice to be able to limit the number of
e-mails
> that we all have to deal with from this list (and all of the others) that
we
> belong to.
>
> James List:
>
> [DynaForms]
> [Validator]
> [Logging]
> [DTD]
> [EJB]
> [i18n]
> [IDE] - maybe include the name of the IDE?  i.e [IDE-JBuilder]
> [JSTL]
> [Modules] or [Sub-Apps]
> [Struts-Example]
> [Tiles]
> [SOAP]
> [Taglib]
> [UML]
>
> I would like to add
>
> [Struts-Config]
> [Tiles-Config]
> [Validator-Config]
>
> etc.
>
> or is this getting to fine-grained?
>
>
> Jerry Jalenak
> Development Manager, Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS  66219
> (913) 577-1496
> [EMAIL PROTECTED]
>
>
> This transmission (and any information attached to it) may be confidential
and is intended solely for the use of the individual or entity to which it
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be
advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is
strictly prohibited. If you have received this transmission in error, please
immediately notify LabOne at (800)388-4675.
>
>
>
> --
> 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: Using Struts in Weblogic & Eclipse [OT]

2002-08-30 Thread Michael Lee

Buddy, this sounds pretty OT. I'll help you, but you should know this isn't
a struts question...
The way to do this is...
Put this line in the start up path of weblogic where
java..weblogic.Server

-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,address=
abconn,server=y,suspend=n

In your IDE, enable remote debugging, hook or attach into localhost or
wherever your 'remotely' debugging, choose transport type and address. In
our case we use dt_shmem which is shared memory and an address of abconn
which is a unique id of the process to debug. If you debug remotely then
most likely you will use dt_socket and then address will be port.
This is good info. If you want any more then go to
http://java.sun.com/products/jpda/doc/conninv.html
Now no more questions OT and RTFM.   :)
Michael Lee
Architect
AfterBOT
[EMAIL PROTECTED]

- Original Message -
From: "Jesse Alexander (KADA 11)" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, August 30, 2002 3:08 AM
Subject: RE: Using Struts in Weblogic & Eclipse


> Use remote-debugging. Simply add the remote debugging parameters to
WLS-startup,
> configure remote-debugging in Eclipse and go ahead...
>
> hth
> Alexander
>
> -Original Message-
> From: Madhavan Srinivasan [mailto:[EMAIL PROTECTED]]
> Sent: Donnerstag, 29. August 2002 22:12
> To: Struts Users Mailing List
> Subject: Using Struts in Weblogic & Eclipse
>
>
> Friends
>
> I use weblogic 7.0 and eclipse 2.0.
> I try to integrate struts sample app with weblogic and eclipse.
> I installed easie weblogic plugin to eclipse, so I could start weblogic
server from eclipse.
> Now I want to debug the web application of the weblogic server instance
thru eclipse IDE.
> If there is anybody have the procedures please inform me.
>
> Thanks
> Madhavan
>
> --
> 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]>




getting data in value object out of logic:iterate

2002-09-04 Thread Michael Lee

I read the docs and looked through the examples and didn't see anything that
did what I was trying.
I have an array of Value(view) objects that I want to iterate through in my
jsp.

Here it is;

public class User
{
 private String firstName;
 private String lastName;
 public String getFirstName() { return firstName; }
 public void setFirstName(String firstName) { this.firstName =
firstName; }
 public String getLastName() { return lastName; }
 public void setLastName(String lastName) { this.lastName = lastName; }
...
}

public SomeAction extendsAction
{
  perform(
  {
User[] users = new User[3];
users[0] = user1;
users[1] = user2;
...
request.setAttribute("users", Arrays.asList(users));
return mapping.findForward("something.jsp");
  }
}

in the something.jsp



  
   ??? users.getFirstName(); ???
  
  
??? users.getLastName(); ???
  
...



HELP!
thanks,
Michael Lee


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




Re: getting data in value object out of logic:iterate

2002-09-05 Thread Michael Lee

You are very correct, there is a lot of 'chimp' like work in translating
value objects to forms to jsp tags to ApplicationResource.properties. I
spend lots of time double checking upper, lower case on stuff, simple
conversions (VO.setX(ActionForm.getX()) etc).
I'll have to check it out, thanks for the help!
Mike

- Original Message -
From: "John Raley" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 04, 2002 10:32 PM
Subject: Re: getting data in value object out of logic:iterate


> Hi Michael,
>
> You need:
> 
> 
> <%-- etc --%>
> 
>
> The name attr in logic:iterate must match the attribute name of the List.
>
> Any BTW you're going to get really tired of writing Beans classes like
> User.  Many folks on this list are using the DynaBean framework.  Also
> let me plug my own project, dynclass.sourceforge.net, which will
> transform an arbitrary java Map into a JavaBean...
>
> Michael Lee wrote:
>
> >I read the docs and looked through the examples and didn't see anything
that
> >did what I was trying.
> >I have an array of Value(view) objects that I want to iterate through in
my
> >jsp.
> >
> >Here it is;
> >
> >public class User
> >{
> > private String firstName;
> > private String lastName;
> > public String getFirstName() { return firstName; }
> > public void setFirstName(String firstName) { this.firstName =
> >firstName; }
> > public String getLastName() { return lastName; }
> > public void setLastName(String lastName) { this.lastName =
lastName; }
> >...
> >}
> >
> >public SomeAction extendsAction
> >{
> >  perform(
> >  {
> >User[] users = new User[3];
> >users[0] = user1;
> >users[1] = user2;
> >...
> >request.setAttribute("users", Arrays.asList(users));
> >return mapping.findForward("something.jsp");
> >  }
> >}
> >
> >in the something.jsp
> >
> >
> >
> >  
> >   ??? users.getFirstName(); ???
> >  
> >  
> >??? users.getLastName(); ???
> >  
> >...
> >
> >
> >
> >HELP!
> >thanks,
> >Michael Lee
> >
> >
> >--
> >To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
> >
> >
> >
> >
>
>
> --
> Check it out: Map -> JavaBean
> http://dynclass.sourceforge.net/
>
>
>
>
> --
> 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] RE: Struts and Large ResultSet

2002-09-05 Thread Michael Lee

Actually this is a very valid topic, one which I'm struggling with now. I
use scrollable cursors when I set up my statement and setFetchSize and do
ResultSet.absolute() to go to the row that the 'NEXT' button sent. Is this
the right path? In struts I'll most likely send a
strutsAction.do&firstRow=50?listSize=25 or something on my submits but as
anyone done pagination on large sets like this? I do a query every time they
click next. I don't think this is the best idea but I don't want to keep a
result set sitting around...
any idea? Am I on the right path?
thanks,
Mike


- Original Message -
From: "Matt Veitas" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 05, 2002 10:28 AM
Subject: Re: [OT] RE: Struts and Large ResultSet


> You can be assured they have lots and lots of money invested in huge
> server farms and other hardware
>
> Mazza, Glen R, PERSCOM wrote:
>
> >Google would seem to be a very good example of how to handle extremely
large
> >result sets.  A search on "America", for example, returned 36.2 million
rows
> >kept  server-side, which the browser can quickly requery to get the
results,
> >10 or so rows at a time.
> >
> >Can anyone surmise Google's probable approach to this?  Do they actually
> >retain DB cursors on the server side to query an additional 10 rows at a
> >time--but given their very fast response time, I suspect they may be
using
> >some other form of non-database cursor--I'm unsure if search engines even
> >use databases to return their result sets.
> >
> >Thanks,
> >Glen
> >
> >
> >-
> >
> >Changing data will happen. I see this kinda thing happen on google. You
to a
> >page and then when the results update the page 5 is different than it was
> >just a minute ago on the same query. It's kinda the way things are I
think.
> >The only way to avoid this is to keep the ResultSet open and updated from
> >the database. This is not a very good solution for high traffic sites.
> >
> >Brandon
> >
> >-Original Message-
> >From: John Owen [mailto:[EMAIL PROTECTED]]
> >Sent: Thursday, August 22, 2002 9:50 AM
> >To: Struts Users Mailing List
> >Subject: Re: Struts and Large ResultSet
> >
> >
> >I suggested using the ArrayList for providing a read-only view of the
> >current state of the database. If something changes, your view would
remain
> >constant until you performed another query. If I were to provide
> >functionality for an item in the ArrayList, such as update, I would make
> >sure the system retrieved the latest copy of the item in question.
> >
> >I would not suggest keeping a ResultSet of that size in the user session.
;)
> >I also would suggest determining if you really need to query 100,000
records
> >at once. If so, your J2EE container, application server or client machine
> >has to be able to handle that much information. If you devise cursors
using
> >a row limit (like rowcount, or is it rowid/rownum?) or some clever query
> >mechanism, you can pull back data in small, but meaningful groups.
> >Query-specific applications are database-dependent. I could devise
something
> >for Oracle 8.17 using cursors and using the limit functionality, but it
> >would not apply to mysql and other databases.
> >
> >- Original Message -
> >From: "Gus Delgado" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Sent: Thursday, August 22, 2002 10:17 AM
> >Subject: Re: Struts and Large ResultSet
> >
> >
> >
> >
> >>The only problem with returning so much data is that your ArrayList and
> >>the database can get out of sink if some else updates one of those
> >>
> >>
> >records.
> >
> >
> >>Ashish Kulkarni wrote:
> >>
> >>
> >>
> >>>Hi
> >>>do u keep this Object in the user session???
> >>>if so, how does it affect the perforamce??
> >>>Ashish
> >>>John Owen wrote:Irregardless of struts, I would suggest storing the
> >>>
> >>>
> >ResultSet in an object
> >
> >
> >>>and then maniuplating the bean (for viewing) through an Action class. I
> >>>typically store data from a ResultSet in an object and put the object
> >>>
> >>>
> >into a
> >
> >
> >>>collection such as an ArrayList.
> >>>
> >>>Hope this helps,
> >>>
> >>>John
> >>>- Original Message -
> >>>From: "Ashish Kulkarni"
> >>>To: "Struts Users Mailing List"
> >>>Sent: Thursday, August 22, 2002 9:29 AM
> >>>Subject: Struts and Large ResultSet
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> Hi,
> 
> Has any one handled lasgre result set using struts, like my sql query
> 
> 
> 
> 
> >>>returns ablut 100,000 records but i want to show only 20 records per
> >>>
> >>>
> >page,
> >
> >
> >>>and then when the user clicks next, want to show the next 20 ..
> >>>
> >>>
> >>>
> >
> >--
> >To unsubscribe, e-mail:

> >For additional commands, e-mail:

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

> F

Re: [OT] RE: Struts and Large ResultSet

2002-09-05 Thread Michael Lee

Actually this is a very valid topic, one which I'm struggling with now.
I use scrollable cursors when I set up my statement and setFetchSize and
do ResultSet.absolute() to go to the row that the 'NEXT' button sent. Is
this the right path? In struts I'll most likely send a
strutsAction.do&firstRow=50?listSize=25 or something on my submits but
as anyone done pagination on large sets like this? I do a query every
time they click next. I don't think this is the best idea but I don't
want to keep a result set sitting around... any idea? Am I on the right
path? thanks, Mike - Original Message - From: "Matt Veitas" To:
"Struts Users Mailing List" Sent: Thursday, September 05, 2002 10:28 AM
Subject: Re: [OT] RE: Struts and Large ResultSet > You can be assured
they have lots and lots of money invested in huge > server farms and
other hardware > > Mazza, Glen R, PERSCOM wrote: > > >Google would
seem to be a very good example of how to handle extremely large >
>result sets. A search on "America", for example, returned 36.2 million
rows > >kept server-side, which the browser can quickly requery to get
the results, > >10 or so rows at a time. > > > >Can anyone surmise
Google's probable approach to this? Do they actually > >retain DB
cursors on the server side to query an additional 10 rows at a >
>time--but given their very fast response time, I suspect they may be
using > >some other form of non-database cursor--I'm unsure if search
engines even > >use databases to return their result sets. > > >
>Thanks, > >Glen > > > > >
>- > > > >Changing data
will happen. I see this kinda thing happen on google. You to a > >page
and then when the results update the page 5 is different than it was >
>just a minute ago on the same query. It's kinda the way things are I
think. > >The only way to avoid this is to keep the ResultSet open and
updated from > >the database. This is not a very good solution for high
traffic sites. > > > >Brandon > > > >-Original Message- > >From:
John Owen [mailto:[EMAIL PROTECTED]] > >Sent: Thursday, August
22, 2002 9:50 AM > >To: Struts Users Mailing List > >Subject: Re: Struts
and Large ResultSet > > > > > >I suggested using the ArrayList for
providing a read-only view of the > >current state of the database. If
something changes, your view would remain > >constant until you
performed another query. If I were to provide > >functionality for an
item in the ArrayList, such as update, I would make > >sure the system
retrieved the latest copy of the item in question. > > > >I would not
suggest keeping a ResultSet of that size in the user session. ;) > >I
also would suggest determining if you really need to query 100,000
records > >at once. If so, your J2EE container, application server or
client machine > >has to be able to handle that much information. If you
devise cursors using > >a row limit (like rowcount, or is it
rowid/rownum?) or some clever query > >mechanism, you can pull back data
in small, but meaningful groups. > >Query-specific applications are
database-dependent. I could devise something > >for Oracle 8.17 using
cursors and using the limit functionality, but it > >would not apply to
mysql and other databases. > > > >- Original Message - > >From:
"Gus Delgado" > >To: "Struts Users Mailing List" > >Sent: Thursday,
August 22, 2002 10:17 AM > >Subject: Re: Struts and Large ResultSet > >
> > > > > > > >>The only problem with returning so much data is that
your ArrayList and > >>the database can get out of sink if some else
updates one of those > >> > >> > >records. > > > > > >>Ashish Kulkarni
wrote: > >> > >> > >> > >>>Hi > >>>do u keep this Object in the user
session??? > >>>if so, how does it affect the perforamce?? > >>>Ashish >
>>>John Owen wrote:Irregardless of struts, I would suggest storing the >
>>> > >>> > >ResultSet in an object > > > > > >>>and then maniuplating
the bean (for viewing) through an Action class. I > >>>typically store
data from a ResultSet in an object and put the object > >>> > >>> >
>into a > > > > > >>>collection such as an ArrayList. > >>> > >>>Hope
this helps, > >>> > >>>John > >>>- Original Message - > >>>From:
"Ashish Kulkarni" > >>>To: "Struts Users Mailing List" > >>>Sent:
Thursday, August 22, 2002 9:29 AM > >>>Subject: Struts and Large
ResultSet > >>> > >>> > >>> > >>> > >>> > >>> > Hi, >  > Has
any one handled lasgre result set using struts, like my sql query > 
>  >  >  > >>>returns ablut 100,000 records but i want to
show only 20 records per > >>> > >>> > >page, > > > > > >>>and then when
the user clicks next, want to show the next 20 .. > >>> > >>> > >>> > >
> >-- > >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: tsdok



How to set locale using j_security_check

2002-09-06 Thread Michael Lee

I use container managed security in WLS using j_security_check. I have multiple 
languages. I want to load a user object with a locale and set it for that user as long 
as he is logged in (Action.setLocale(request, locale)??).
How would I do this if the container is handling log in for me? For example lets say I 
want to go to 
domain.com/main.jsp but first it sends me to domain.com/login.html. The container 
would then authenticate and send me to main.jsp. I want to intercept this return and 
log in the user and set the local so he can see his language 
ApplicationResources.properties.
Any hints? (I know this group has em! This is the best damn email group in the world, 
I swear)
thanks,
Mike



Re: [OT] RE: Struts and Large ResultSet

2002-09-06 Thread Michael Lee

Does anyone have any good examples of pagination from jsp->struts->ejb/jdbc
and back with large result sets?
The web seems to be pretty thin on examples.
thanks,
Mike

- Original Message -
From: "Jan Fetyko" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 05, 2002 4:58 PM
Subject: Re: [OT] RE: Struts and Large ResultSet


Couple of thoughts:

1. Can you get and unique ID of the record(s) and store it somewhere
(users session) ? Pageing through would be easy (although if you have to
store couple of 1000 ids, it's not pretty) 2nd option maybe ?

2. Or is there a certain order by which this ResultSet is ordered by (
SELECT blah from BLAHBLAH ORDER BY blah ) ? In this case you can store
the ID of the first & last record displayed and then on the "next" &
"previous" actions, you'd use these to go up and down ( so to speak ).

Jf

Michael Lee wrote:

>Actually this is a very valid topic, one which I'm struggling with now. I
>use scrollable cursors when I set up my statement and setFetchSize and do
>ResultSet.absolute() to go to the row that the 'NEXT' button sent. Is this
>the right path? In struts I'll most likely send a
>strutsAction.do&firstRow=50?listSize=25 or something on my submits but as
>anyone done pagination on large sets like this? I do a query every time
they
>click next. I don't think this is the best idea but I don't want to keep a
>result set sitting around...
>any idea? Am I on the right path?
>thanks,
>Mike
>
>
>- Original Message -
>From: "Matt Veitas" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Sent: Thursday, September 05, 2002 10:28 AM
>Subject: Re: [OT] RE: Struts and Large ResultSet
>
>
>
>
>>You can be assured they have lots and lots of money invested in huge
>>server farms and other hardware
>>
>>Mazza, Glen R, PERSCOM wrote:
>>
>>
>>
>>>Google would seem to be a very good example of how to handle extremely
>>>
>>>
>large
>
>
>>>result sets.  A search on "America", for example, returned 36.2 million
>>>
>>>
>rows
>
>
>>>kept  server-side, which the browser can quickly requery to get the
>>>
>>>
>results,
>
>
>>>10 or so rows at a time.
>>>
>>>Can anyone surmise Google's probable approach to this?  Do they actually
>>>retain DB cursors on the server side to query an additional 10 rows at a
>>>time--but given their very fast response time, I suspect they may be
>>>
>>>
>using
>
>
>>>some other form of non-database cursor--I'm unsure if search engines even
>>>use databases to return their result sets.
>>>
>>>Thanks,
>>>Glen
>>>
>>>
>>>-
>>>
>>>Changing data will happen. I see this kinda thing happen on google. You
>>>
>>>
>to a
>
>
>>>page and then when the results update the page 5 is different than it was
>>>just a minute ago on the same query. It's kinda the way things are I
>>>
>>>
>think.
>
>
>>>The only way to avoid this is to keep the ResultSet open and updated from
>>>the database. This is not a very good solution for high traffic sites.
>>>
>>>Brandon
>>>
>>>-Original Message-
>>>From: John Owen [mailto:[EMAIL PROTECTED]]
>>>Sent: Thursday, August 22, 2002 9:50 AM
>>>To: Struts Users Mailing List
>>>Subject: Re: Struts and Large ResultSet
>>>
>>>
>>>I suggested using the ArrayList for providing a read-only view of the
>>>current state of the database. If something changes, your view would
>>>
>>>
>remain
>
>
>>>constant until you performed another query. If I were to provide
>>>functionality for an item in the ArrayList, such as update, I would make
>>>sure the system retrieved the latest copy of the item in question.
>>>
>>>I would not suggest keeping a ResultSet of that size in the user session.
>>>
>>>
>;)
>
>
>>>I also would suggest determining if you really need to query 100,000
>>>
>>>
>records
>
>
>>>at once. If so, your J2EE container, application server or client machine
>>>has to be able to handle that much information. If you devise cursors
>>>
>>>
>using
>
>
>>>a row limit (like rowcount, or is it 

Re: InitParameter and Actions

2002-09-06 Thread Michael Lee

They have a parameter="someValue"
for every action mapping you set up. Is that what you want?
You can get the value in your Action class by calling
String prameterValue = mapping.getParameter();
hope this helps,
Mike

- Original Message -
From: "Smith, Johnathan M." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 06, 2002 8:55 AM
Subject: InitParameter and Actions


> In the pass I setup InitParameter's in my web.xml file for my control
> (servlet) and the control pass the string on to each model.  How can I do
> the same thing in Struts. I need to pass a string like a database name to
> every action object.  I would like it in a files so if I go from dev to QA
> to prod I only have to change the name in a file
>
>
> Johnathan Mark Smith
> Divisional Assistant Vice President
> Information Systems Division
>
> Phone: (201) 352-1387
> Pager: (201) 718-1370
> Email: [EMAIL PROTECTED]
> Text Messaging: [EMAIL PROTECTED]
>
>
>
> --
> 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 Michael Lee

I've always used validate() as simple form validation, such as ensure a
necessary field is set, not business validation such as a 3 login attempt
rule. I would recommend you set something in the request or session that
stores the number of attempts. In each action, when you check, increment
that number and then add a mapping forward for a 3 strikes your out rule so
on the last failed attempt instead of
mapping.findForward(mapping.getInput()) you send him to
mapping.findForward("3strikesyourout");

Your struts-config.xml would look something like this


  
  


hope this helps,
Mike



- Original Message -
From: "Cohan, Sean" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, September 06, 2002 9:19 AM
Subject: DB hit from ActionForm Validate method


> We need to implement '3 strikes and your out' functionality to our logon
> process.  If the user is unsuccessful after 3 logon attempts, we disable
> their account.  I put some of the user id / password functionality in the
> validate method of the LogonForm class.  However, in between each attempt,
I
> need find out what number of logon attempt they are on, and if this is not
> their 3rd attempt, bump up the logon attempt number. If it's their second
> attempt and they fail, I  need to let them know they only have 1 ore
chance
> to get it right.  If they successfully logon, we also need to show them
how
> many attempts it took them to logon the last time their account was
> accessed.
>
> We were thinking we'd store their current and previous logon attempt
number
> in the DB.  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)?
>
> Thanks.
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




Re: [FRIDAY] SOMEONE SAVE OUR LIST!!!!

2002-09-06 Thread Michael Lee

Plus, add a [FRIDAY] filter if you so wish. Same thing for [OT], etc. I say
all is fair in love and [FRIDAY].
Im more annoyed at the one dude the other day that sent emails of;
1) test
2) job posting spam
3) email responding to group some an INDIVIDUAL email telling him to stop
spaming

There was no [OT] or [JOB POSTING] or anything of that sort. Annoying.

Mike

- Original Message -
From: "Galbreath, Mark" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, September 06, 2002 10:21 AM
Subject: RE: [FRIDAY] SOMEONE SAVE OUR LIST


> Lighten up, Brandon.  It's just BS from www.snopes.com.
>
> -Original Message-
> From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 06, 2002 10:05 AM
> To: Struts Users Mailing List
> Subject: RE: [FRIDAY] SOMEONE SAVE OUR LIST
>
>
> I thought it was funny! (Of course, I grew up watching Monty Python, so I
> could well be more corrupted than I think I am. ;-)
>
> Simon "Sasquatches taste just like chicken" Chappell
>
> >-Original Message-
> >From: Brandon Goodin [mailto:[EMAIL PROTECTED]]
> >Sent: Friday, September 06, 2002 9:01 AM
> >To: Struts Users Mailing List
> >Subject: RE: [FRIDAY] SOMEONE SAVE OUR LIST
> >
> >
> >Isn't this list suppossed to be protected from this kind of
> >refuse! I've got
> >a good sense of humor. But this is just sick! What the heck is this all
> >about? This really doesn't even qualify as a Friday topic.
> >YUUUK!
> >
> >-Original Message-
> >From: [EMAIL PROTECTED]
> >[mailto:[EMAIL PROTECTED]]
> >Sent: Friday, September 06, 2002 8:00 AM
> >To: [EMAIL PROTECTED]
> >Subject: RE: [FRIDAY] Please help save my soul
> >
> >
> >
> >Dear Henry,
> >
> >I would be most willing to contribute to your cause, in the
> >order of the
> >full amount.  I would do this in trade for one of your kidneys
> >(of which
> >you only need one).  I intend to put the kidney in question up for
> >auction on E-Bay.
> >
> >Please forward me your mailing address there in Ghana and I
> >will be most
> >happy to mail you:
> >
> >1 x Coleman cooler (2 six pack size)
> >3 x Ice packs
> >1 x pair latex gloves
> >1 x Cutco steak knife
> >1 x Zip lock baggie (Freezer bag size)
> >1 x copy of Gray's Anatomy with relevant page dog-eared and organ
> >highlighted
> >
> >A kidney is a small price to pay for a cure for your ailment
> >
> >
> >Thanks!
> >
> >
> >
> >
> >-Original Message-
> >From: Galbreath [mailto:[EMAIL PROTECTED]]
> >Sent: Friday, September 06, 2002 6:58 AM
> >To: struts-user
> >Subject: [FRIDAY] Please help save my soul
> >
> >
> >HELLO,
> >
> >MY NAME IS HENRY APPIANG, AM FROM GHANA.I AM SORRY IF I MAY IN ANYWAY
> >DISTURB YOU.IT IS JUST A PITY THAT I HAVE TO SIT DOWN AND START TYPING
> >ALL
> >THIS.I HAVE TO DO THIS BECAUSE I DO NOT HAVE ANY OTHER OPTION.
> >
> >I AM A BOY OF TWENTY-FIVE YEARS OLD, BORN IN BREAD IN GHANA.IN
> >ORDER NOT
> >TO
> >WASTE YOUR TIME, LET JUST TELL YOU WHY I HAVE DECIDED TO MAIL YOU.
> >
> >I HAVE A VERY BIG PROBLEM THAT IS AT THE MOMENT BIGGER THAN ME BUT NOT
> >BIGGER THAN GOD. WHEN I WAS TWENTY YEARS OLD,I REALISE THAT I HAVE A
> >PROBLEM. I REALISE THAT I AM HAVING A RETROGRADE EJACULATION, THIS I
> >THOUGHT
> >WAS A JOKE.I CONTACTED A FEW DOCTORS, IT WAS COMFIRMED THAT I REALLY
> >HAVE
> >THIS PROBLEM, SINCE THEN I BECAME WORRIED OF MY FUTURE, THINKING OF ANY
> >POSSIBLE SOLUTION IN ORDER TO REMEDY THE SITUATION BUT TO NO AVAIL.I
> >HAVE
> >DONE SO MANY TEST WHICH PROVED THAT I HAVE THESE PROBLEM.
> >
> >IN MY LITTLE EFFORT I TRIED SOLVING IT MYSELF BUT I COULD NOT,I WAS
> >DIRECTED
> >BY A DOCTOR TO BUY A CERTAIN DRUG WHICH I FOUND OUT THAT IT IS NO WHERE
> >TO
> >BE FOUND IN AFRICAN MARKET.
> >
> >NOW I HAVE TWO OPTIONS
> >1, TO EITHER GET THESE DRUG OR SEE IF IT WILL SOLVE MY PROBLEM OR TO
> >UNDERGO
> >A SURGERY, WHICH I PREFER FOR A LASTING SOLUTION.
> >
> >MY LIFE DEPEND SOLELY ON THIS.I HAVE MADE ENQUIRIES ABOUT THE SURGERY,I
> >FOUND OUT THAT IT WILL COST ME $4,500USD TO UNDERGO,THIS IS WHY I HAVE
> >SEEK
> >FOR YOUR ASSISTANCE.
> >
> >MY SURVIVAL DEPENDS ON YOU, YOU CAN TURN MY LIFE ARROUND, AND YOU CAN
> >PUT
> >THE SMILES ON MY FACE AGAIN WITH YOUR LITTLE DONATION.YOU CAN SAFE A
> >SOUL.
> >
> >I DO NOT HAVE ANYOTHER MEANS TO RAISE THESE MONEY EXCEPT THROUGH YOUR
> >KIND
> >HEART.
> >
> >KINDLY HELP SAVE MY SOUL.
> >
> >REGARDS
> >HENRY.
> >
> >--
> >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:   

Re: How to set locale using j_security_check

2002-09-06 Thread Michael Lee

Thanks but it still seems open.. We do give the user the ability to choose
language.

> If you really wanted to do this the easiest way would be to forward to an
> Action in your secured area (to initiate FORM based auth), say
> domain.com/secure/main.do and have the action get their locale from
> persistent store and set it before forwarding onto the
> domain.com/secure/main.jsp.

This is kind of what I was asking...
This can't be uncommon for struts users (as most are probably working in a
J2EE environment and using container managed security 'j_security_check').
I want to store the user object in the session. Included in that object is
the locale.
Problem is, using container managed security it will forward to the page
they requested and it will not have the locale set by the user on last log
in.
Help!
Mike

- Original Message -
From: "Jon.Ridgway" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, September 06, 2002 11:06 AM
Subject: RE: How to set locale using j_security_check


> Hi Mike,
>
> By default the user's locale will be set to that specified by their
browser.
> If you want to give users the option of changing their locale you would
have
> to display supported locales on a form (drop down, graphics etc) let the
> user pick a locale and post to an action then as you have already spotted
> use the setLocale method on the Action class to set the users locale to
that
> specified.
>
> There may be a way - using LDAP and/or RDBMS and/or custom realms in WLS
to
> set the locale to a value specified in the realm for the user; not sure
off
> the top of my head - never seen one - but I'll have a look into it for
> you...
>
> If you really wanted to do this the easiest way would be to forward to an
> Action in your secured area (to initiate FORM based auth), say
> domain.com/secure/main.do and have the action get their locale from
> persistent store and set it before forwarding onto the
> domain.com/secure/main.jsp.
>
> Jon Ridgway
>
>
> -Original Message-
> From: Michael Lee [mailto:[EMAIL PROTECTED]]
> Sent: 06 September 2002 14:56
> To: Struts Users Mailing List
> Subject: How to set locale using j_security_check
>
> I use container managed security in WLS using j_security_check. I have
> multiple languages. I want to load a user object with a locale and set it
> for that user as long as he is logged in (Action.setLocale(request,
> locale)??).
> How would I do this if the container is handling log in for me? For
example
> lets say I want to go to
> domain.com/main.jsp but first it sends me to domain.com/login.html. The
> container would then authenticate and send me to main.jsp. I want to
> intercept this return and log in the user and set the local so he can see
> his language ApplicationResources.properties.
> Any hints? (I know this group has em! This is the best damn email group in
> the world, I swear)
> thanks,
> Mike
>
>
> The contents of this email are intended only for the named addressees and
> may contain confidential and/or privileged material. If received in error
> please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
> e-mail from your system. Unauthorised review, distribution, disclosure or
> other use of this information could constitute a breach of confidence.
Your
> co-operation in this matter is greatly appreciated.
>
> --
> 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: [FRIDAY] Out of control ... again [OT] [HELP] [LOTS OF POSTINGS LITTLE HELP]

2002-09-06 Thread Michael Lee

Hey, do any of you [FRIDAY] guys know how to handle iterating through
enourmously large result sets without storing the ResultSet object in
memory? I use JDBC cursors now but have to do the query upon each 'next' or
'previous'.

I always ask the tough questions that get few responses!
:)
Mike Lee


- Original Message -
From: "James Mitchell" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, September 06, 2002 11:45 AM
Subject: RE: [FRIDAY] Out of control ... again


> LMAO
>
> James Mitchell
> Software Engineer\Struts Evangelist
> Struts-Atlanta, the "Open Minded Developer Network"
> http://www.open-tools.org/struts-atlanta
>
>
>
>
> > -Original Message-
> > From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, September 06, 2002 11:41 AM
> > To: Struts Users Mailing List
> > Subject: RE: [FRIDAY] Out of control ... again
> >
> >
> > Well said Sheriff Eddie!
> >
> > I hereby promise [hand placed upon a stack of printed Struts
> > articles] to be a good Struts mailing list user and to use my
> > power for good and not evil. So help me Craig! :-)
> >
> > Simon
> >
> > -
> > Simon P. Chappell [EMAIL PROTECTED]
> > Java Programming Specialist  www.landsend.com
> > Lands' End, Inc.   (608) 935-4526
> >
> >
> > >-Original Message-
> > >From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> > >Sent: Friday, September 06, 2002 10:36 AM
> > >To: Struts Users List
> > >Subject: [FRIDAY] Out of control ... again
> > >
> > >
> > >Guys,
> > >
> > >I enjoy (part of) your postings just as much as you intended
> > >them to be
> > >enjoyed.  However, it seems we're headed down that dark, lonely
> > >alley-way again.  Ok, ok ... I chipped in on the crap myself,
> > >so I guess
> > >I don't have full right to say anything.  However, if you
> > >value the list
> > >and wish to see us being able to continue with our "relaxed friday"
> > >attitude, I strongly urge you to cut out the entirely
> > >inappropriate crap
> > >that has started to be slung around today.
> > >
> > >You all know I'm not for cutting out all the [OT] and [FRIDAY] stuff,
> > >but I have to agree with folks that say part of what has been posted
> > >today is uncalled for and entirely inappropriate for public
> > >consumption.
> > >
> > >Bear in mind what we learned from the recent poll:
> > >*  Most folks enjoy the [OT] stuff
> > >*  Many folks would prefer any [OT] stuff be more closely confined
> > >to technically-oriented topics
> > >*  Several would like to make note that beer is not a worthy topic
> > >for discussion
> > >
> > >I think if we keep those points in mind, all of us will be able to get
> > >along just fine.  If we find ourselves driven to "think
> > >outside the box"
> > >(wrt these points), I think we'll find that the minority
> > >numbers we saw
> > >dislikeing the [OT] posts will quickly become a majority.  Thereafter,
> > >the list will (out of necessity) become much more rigid.  I
> > >don't think
> > >any of us want this.  Can we *please* act like adults?
> > >
> > >Personally, I enjoyed (a few of) the posts this morning.  However,
> > >posting sites with sexually-explicit material - that comes with pop-up
> > >pages of all sorts of things! - and trying to belittle people doesn't
> > >seem appropriate for this list IMNSHO.  Many of us are in public areas
> > >where things like the first could get us into serious trouble.  The
> > >second is just ... wrong.
> > >
> > >Regards,
> > >
> > >Eddie
> > >
> > >
> > >
> > >--
> > >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: 




setting/getting form data

2002-09-09 Thread Michael Lee

This seems simple enough but it isnt working?
:(



I have a form defined UserForm with getStartRow(), setStartRow(Short
startRow) and getListSize(),setListSize(Integer listSize)

its not setting these values in the form?
Also, how do I get the values from the form to display them on the screen?
thanks,
Mike

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




Re: Select Options

2002-09-09 Thread Michael Lee

A good example is in the struts-exersize-tablib.war in the struts/webapps
dir
look at html-select.jsp
You can create a collection of OptionBeans and select it or explicitly set
each option. There are examples of both in this jsp.
Mike

- Original Message -
From: "Smith, Johnathan M." <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, September 09, 2002 1:01 PM
Subject: RE: Select Options


> Can you please help me some more with details
>
> -Original Message-
> From: Carl Bacher [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 09, 2002 12:59 PM
> To: Struts Users Mailing List
> Subject: Re: Select Options
>
>
> 
>
> Smith, Johnathan M. wrote:
>
> >I am trying to find out how to make a select (dropdown list) selected a
> >option at the time of the page is loaded.  Sample
> >
> >1) I selected a option from my dropdown box and and click submit button
> >2) The FormAction find that I did not entered all the requested text boxs
> >and it redisplays the page
> >
> >at this time I would like the option I selected to be reselected!
> >
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




Re: [OT] RE: Struts and Large ResultSet

2002-09-09 Thread Michael Lee

The way I've done it is similar to number 2 but I did it all in Java using
cursors. I execute the query every time the user clicks next/previous. I
setFetchSize() instead of setCursorName(). Not sure how this will work as it
is a work in progress.

- Original Message -
From: "Eddie Bush" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, September 09, 2002 11:43 AM
Subject: Re: [OT] RE: Struts and Large ResultSet


> Two choices:
> 1)  Write a stored procedure
> - will still have to muddle through the rows at the beginning of
> the result before it starts giving you what you want
> - still database dependent
> 2)  Use a DBMS that provides the START, LIMIT options for the SELECT
> clause (like PostgreSQL)
> - still database dependent
> - works quite well (this is mature functionality)
> - *only* retrieves those rows you ask for (you don't have to
> wade through the ones you've already seen)
>
> ... if you really want to *just* bring back twenty rows out of 2
> million, it seems that (2) offers the best solution.  Yes, it's tightly
> coupled to a given DBMS.  That DBMS is open source, and quite good
> though.  (I'm nearly certain there are OS DBMS implementations other
> than PostgreSQL that offer this functionality, but none come to mind.)
>
> If database independence is your primary goal, I'd suggest you go with
> something like OJB (http://jakarta.apache.org/ojb).  You can utilize
> "lazy loading" of dependent data to help stream-line your results (only
> the PKs will be retrieved; full objects are materialized on access)
>
> Regards,
>
> Eddie
>
> Ashish Kulkarni wrote:
>
> >Hi,
> >But is there a way to write some thing, which is
> >database independent, so u can change the database
> >without any code modification,
> >what i am trying it using CachedRowSet, i load the
> >resultset into a cachedrowset and then display it page
> >by page,
> >now only think i have to figure is, how can i load
> >only few records in this rowset, like if i have 1
> >million records, just load say 1000 records, iterate
> >through them, if u reach end of cache load another
> >1000, and so,
> >since a user will never go through a process of seeing
> >million records at a time, may be 1000 the max...
> >most user will use some thing like "Go To" to point at
> >a specific record in database,
> >I hope this thing works out well
> >Ashish
> >
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




How to user logic:iterate

2002-09-09 Thread Michael Lee

Im having a helluva time getting logic:iterate to work..
I have a Users object that contains an array list of
User objects.
you call Users.getUsers() and it returns an arrayList
I stick that in the request object in the perform() method using 
request.setAttribute("users", users.getUsers());
In the JSP the code I have is;

 <% ArrayList users = (ArrayList) request.getAttribute("users");
   if(users != null)
   {%>


  
  
  
  
  
  
  


<%}%>

The error I'm getting is;

   <[WebAppServletContext(4398493,recei
ptsplus,/receiptsplus)] Root cause of ServletException
javax.servlet.jsp.JspException: Cannot find bean aUser in scope null
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:493)
at org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:179)
at jsp_servlet.__advanced_user_search._jspService(__advanced_user_search
.java:1541)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:265)

what am I doing wrong?
help!
thanks,
Mike



Re: How to user logic:iterate

2002-09-09 Thread Michael Lee

Thanks but this still isnt working!
Nothing I try works!
WTF! AAA
Help anyone? This can not be so uncommon as no one here knows how to do
this?

**ERROR**
  
<[WebAppServletContext(4298512,recei
ptsplus,/receiptsplus)] Root cause of ServletException
javax.servlet.jsp.JspException: Cannot find bean aUser in scope null
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:493)
at
org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:179)
at
jsp_servlet.__advanced_user_search._jspService(__advanced_user_search
.java:1534)


Here's one of the many errors.
Users object contains getUsers() that returns an ArrayList of User value
objects.

I've tried many combinations of these lines
  
  
  

with these combinations of bean writers





But if I explicitly go through the object I can iterate through it. It seems
as though this tag needs better documentation and real world examples.
This works
<% Users users =

(Users)request.getAttribute("users");
   if(users != null)
   {
   Iterator iterator = users.getUsers().iterator();
   while(iterator.hasNext())
   {%><%
   User user = (User)iterator.next();
   out.print(""+user.getUserID()+"");
   out.print(""+user.getUserType()+"");
   out.print(""+user.getFirstName()+"");
   out.print(""+user.getMiddleName()+"");
   out.print(""+user.getLastName()+"");


out.print(""+user.getAccountDisabled()+"");
   out.print(""+user.getEmail()+"");
   }
%>
   <%}%>

Code is attached.
Help! I'm doing everything I can see/think of in the docs/examples/etc and
nothing is working.
Mike


- Original Message -
From: "Todd Pierce" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, September 09, 2002 7:41 PM
Subject: RE: How to user logic:iterate


> Your arraylist isn't in the page context. Try this:
>
>  <%
> ArrayList users = (ArrayList) request.getAttribute("users");
> pageContext.setAttribute("userList", users);
>  %>
>
> 
>     
>   
> ...
>
> or use the collection attribute instead of the name attribute in the
iterate
> tag, ike this:
>
>  <%
> ArrayList users = (ArrayList) request.getAttribute("users");
>  %>
>
> 
> 
>   
> ...
>
> -Original Message-
> From: Michael Lee [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 10 September 2002 6:56 AM
> To: Struts Users Mailing List
> Subject: How to user logic:iterate
>
>
> Im having a helluva time getting logic:iterate to work..
> I have a Users object that contains an array list of
> User objects.
> you call Users.getUsers() and it returns an arrayList
> I stick that in the request object in the perform() method using
> request.setAttribute("users", users.getUsers());
> In the JSP the code I have is;
>
>  <% ArrayList users = (ArrayList) request.getAttribute("users");
>if(users != null)
>{%>
> 
> 
>   
>   
>   
>   
>   
>   
>   
> 
> 
> <%}%>
>
> The error I'm getting is;
>
>   
> <[WebAppServletContext(4398493,recei
> ptsplus,/receiptsplus)] Root cause of ServletException
> javax.servlet.jsp.JspException: Cannot find bean aUser in scope null
> at
org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:493)
> at
> org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:179)
> at
> jsp_servlet.__advanced_user_search._jspService(__advanced_user_search
> .java:1541)
> at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> pl.java:265)
>
> what am I doing wrong?
> help!
> thanks,
> Mike
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>



advanced_user_search.jsp
Description: Binary data

package com.afterbot.receiptsplus.user;

import com.afterbot.util.SearchCriteria;
/**
 * Title: 
 * Description: 
 * Copyright: Copyright (c) 2002
 * Company: 
 * @author unascribed
 * @version 1.0
 */

public class UserSearchCriteria extends SearchCriteria
{
public static final short USER_ID = 0 + SEARCH_CRITERIA_INDEX;
public static final short USER_TYPE = 1 + SEARCH_CRITERIA_INDEX;
public static fi

Re: How to user logic:iterate[MORON]

2002-09-10 Thread Michael Lee

I would like to thank everyone on this email list that helped out. Every
little bit helped including the property attribute on iterate and that
logic:present is very handy.
The main problem though was a complete brain fart on my part.
I am moron, hear me roar.
I forgot to include the tag lib import for logic. The thing I dont
understand is how it even go to the bean:write tag inside the iterate and
failed there?
Oh well, if you ever get an error message like I did, don't run around like
a chickend with your head chopped off, just include this line at the top of
the jsp...
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

AAA, I hate stupid mistakes that waste everyone's time!!!
Mike
:(


- Original Message -
From: "John Yu" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, September 09, 2002 10:20 PM
Subject: Re: How to user logic:iterate


> Option 1:
>
> In Action,
>
>request.setAttribute("myUsers", users); // no need to call getUsers()
>
> In JSP,
>
>
>   scope="request">
>  
>
>
>
>
>
>
>
>  
>  
>
>
> Option 2:
>
> Use your existing code, but get rid of the "user." part from the property
> of the  tags.
>
> At 04:55 am 10-09-2002, you wrote:
> >Im having a helluva time getting logic:iterate to work..
> >I have a Users object that contains an array list of
> >User objects.
> >you call Users.getUsers() and it returns an arrayList
> >I stick that in the request object in the perform() method using
> >request.setAttribute("users", users.getUsers());
> >In the JSP the code I have is;
> >
> >  <% ArrayList users = (ArrayList) request.getAttribute("users");
> >if(users != null)
> >{%>
> > 
> > 
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> > 
> > 
> > <%}%>
> >
> >The error I'm getting is;
> >
> >  
> ><[WebAppServletContext(4398493,recei
> >ptsplus,/receiptsplus)] Root cause of ServletException
> >javax.servlet.jsp.JspException: Cannot find bean aUser in scope null
> > at
org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:493)
> > at
> > org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:179)
> > at
> > jsp_servlet.__advanced_user_search._jspService(__advanced_user_search
> >.java:1541)
> > at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
> > at
> > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> >pl.java:265)
> >
> >what am I doing wrong?
> >help!
> >thanks,
> >Mike
>
> --
> John Yu   Scioworks Technologies
> e: [EMAIL PROTECTED] w: +(65) 873 5989
> w: http://www.scioworks.com   m: +(65) 9782 9610
>
> Scioworks Camino - "Don't develop Struts Apps without it!"
> Copyright (c) 2002 John Yu/Scioworks Technologies. All rights reserved.
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




Re: Security and Struts

2002-09-10 Thread Michael Lee

They have a good login example in the example war in the struts/webapps dir.
That's the way I've done it in the past. The way I'm currently doing it is
to use container managed security. This means NOT using struts for
authorization/authentication (for J2EE security). Since your using JSP your
probably gonna do form base authentication so just post your form to
action="j_security_check" and make sure your form username and password
fields are j_username and j_password appropriately. Check your container
documentation for how to hook this into its security model.
I'm currently actually having a problem with this in that I need for the
user information to be stored in the session at login. I may just put a tag
at the top of every page but that seems to get rid of the 'niceties' of
using J2EE security. I want to set the locale based upon the loaded user
object. Problem is, it goes right to the requested jsp page after login
without loading the user and his preferences. Not sure how I'm going to
handle this but in the mean time, that is how I handle security.
Mike


- Original Message -
From: "Darren Hill" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, September 10, 2002 10:24 AM
Subject: Security and Struts


> Hey all,
>
> I'm looking for a job document and example about best practices in
> implementing security in struts.
> I've got the general idea about placing all my JSP's under WEB-INF, but a
> doc/example might really solidify it for me.  Thanks in advance.
>
> Darren.
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




Re: [OT] RE: Struts and Large ResultSet

2002-09-10 Thread Michael Lee

This is to all the book writing dudes.
A lot of people here seem to be writing struts books.
Include an example that does this...
Scrolling through pageable data on a JSP from a large result set is very
common for J2EE/struts developers yet there are no good examples out there.
Real world examples would help sell the book for me.
My 5 c

BTW, I'm implementing this same routine now as we speak. I've done it before
(setting cursors and cursor sql in JDBC) but I'm trying to do it slightly
differently and in a more DB independent way (no DB specific SQL, stored
procedures, etc. just JDBC method calls and DB independent SQL) so I'll post
the code here when I get it working (and working fast).
Mike


- Original Message -
From: "Ashish Kulkarni" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 10, 2002 11:30 AM
Subject: Re: [OT] RE: Struts and Large ResultSet


> Hi Dave,
> thanx for the solution, but i guess first one is okay,
> for me, since if i keep the primary keys in list and
> store it in user session, then it may be a problem if
> some one else, deletes a record from database. since
> the same database will be used by may user, i dont
> want to check for each record while loading from
> database,
> Ashish
> --- David Graham <[EMAIL PROTECTED]> wrote:
> > Here's how you would grab the next set of values:
> > select id, field1, fieldn
> > from table
> > where id > cur_value
> > order by id
> > fetch first 30 rows only
> >
> > You would put a number in for cur_value like 30 to
> > get the second set of 30
> > records.  If you don't want to run that query each
> > time, just query the
> > whole table and put the primary keys into a List
> > object in the user's
> > session.  When the user wants the next set of values
> > you query the table
> > using an appropriate subset of the primary keys you
> > stored in the session.
> >
> > These are your 2 best bets.
> > Dave
> >
> > >Hi Dave,
> > >this querry only works for first 30 fields, but
> > what
> > >if i want to get data from 31 to 60, then either i
> > >have to have the key for 31 record, or else i will
> > >have to run the querry twice, first to get the
> > first
> > >30 and then the next 30 after setting the key..
> > >i have nottired getting the next 30 records, but
> > this
> > >querry work on as400 i have tried it before
> > >Ashish
> > >--- David Graham <[EMAIL PROTECTED]> wrote:
> > > > The databases all have their own version of this
> > > > feature :-( so in SQL
> > > > Server it's:
> > > >
> > > > select top 10 from table
> > > >
> > > > which makes the most sense to me.  But, in DB2
> > you
> > > > use a "fetch first"
> > > > clause like this:
> > > >
> > > > select * from table
> > > > fetch first 30 rows only
> > > >
> > > > Here's where I found the info
> > > >
> >
> >http://nscpcw.physics.upenn.edu/db2_docs/db2s0/fet1st.htm#HDRFET1ST
> > > >
> > > > I tried it out on a db2 7.2 database on win2k so
> > > > hopefully it works on
> > > > AS400.
> > > >
> > > > Dave
> > > >
> > > > >From: Ashish Kulkarni
> > <[EMAIL PROTECTED]>
> > > > >Reply-To: "Struts Users Mailing List"
> > > > <[EMAIL PROTECTED]>
> > > > >To: Struts Users Mailing List
> > > > <[EMAIL PROTECTED]>
> > > > >Subject: Re: [OT] RE: Struts and Large
> > ResultSet
> > > > >Date: Mon, 9 Sep 2002 16:02:00 -0700 (PDT)
> > > > >
> > > > >Hi,
> > > > >I am developing an web interface to existing
> > AS400
> > > > >system, so there is no way i can go to MYSQL or
> > > > >suggest to change database, i have to live with
> > > > AS400
> > > > >and DB2 and try to find a way out
> > > > >thanx for suggestion
> > > > >
> > > > >--- "Peter A. J. Pilgrim"
> > > > ><[EMAIL PROTECTED]> wrote:
> > > > > > Ashish Kulkarni wrote:
> > > > > > > Hi,
> > > > > > > But is there a way to write some thing,
> > which
> > > > is
> > > > > > > database independent, so u can change the
> > > > database
> > > > > > > without any code modification,
> > > > > > > what i am trying it using CachedRowSet, i
> > load
> > > > the
> > > > > > > resultset into a cachedrowset and then
> > display
> > > > it
> > > > > > page
> > > > > > > by page,
> > > > > > > now only think i have to figure is, how
> > can i
> > > > load
> > > > > > > only few records in this rowset, like if i
> > > > have 1
> > > > > > > million records, just load say 1000
> > records,
> > > > > > iterate
> > > > > > > through them, if u reach end of cache load
> > > > another
> > > > > > > 1000, and so,
> > > > > > > since a user will never go through a
> > process
> > > > of
> > > > > > seeing
> > > > > > > million records at a time, may be 1000 the
> > > > max...
> > > > > > > most user will use some thing like "Go To"
> > to
> > > > > > point at
> > > > > > > a specific record in database,
> > > > > > > I hope this thing works out well
> > > > > > > Ashish
> > > > > >
> > > > > >
> > > > > > Then you need something like MYSQL which has
> > > > special
> > > > > > reserved word to help you limit

Re: Security and Struts

2002-09-10 Thread Michael Lee

If your talking about security auditing then there is a container specific
way in WLS. WLS allows for a customer security audit class.

- Original Message -
From: "alex hun" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 10, 2002 11:53 AM
Subject: Re: Security and Struts


> Any recommendation to implementing audit trial under the struts frame
work?
> I was hoping to pushed the audit trail as backend as possible, if possible
> invisible at the Action layer.  Did look into do it under either the a
class
> extending from Dispatch action and have the other class extending it.
However
> another colleague of my was proposing to try out the forwardactionmap.
> Any good practices/design that i can adopt?
>
>
> Michael Lee wrote:
>
> > They have a good login example in the example war in the struts/webapps
dir.
> > That's the way I've done it in the past. The way I'm currently doing it
is
> > to use container managed security. This means NOT using struts for
> > authorization/authentication (for J2EE security). Since your using JSP
your
> > probably gonna do form base authentication so just post your form to
> > action="j_security_check" and make sure your form username and password
> > fields are j_username and j_password appropriately. Check your container
> > documentation for how to hook this into its security model.
> > I'm currently actually having a problem with this in that I need for the
> > user information to be stored in the session at login. I may just put a
tag
> > at the top of every page but that seems to get rid of the 'niceties' of
> > using J2EE security. I want to set the locale based upon the loaded user
> > object. Problem is, it goes right to the requested jsp page after login
> > without loading the user and his preferences. Not sure how I'm going to
> > handle this but in the mean time, that is how I handle security.
> > Mike
> >
> > - Original Message -
> > From: "Darren Hill" <[EMAIL PROTECTED]>
> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > Sent: Tuesday, September 10, 2002 10:24 AM
> > Subject: Security and Struts
> >
> > > Hey all,
> > >
> > > I'm looking for a job document and example about best practices in
> > > implementing security in struts.
> > > I've got the general idea about placing all my JSP's under WEB-INF,
but a
> > > doc/example might really solidify it for me.  Thanks in advance.
> > >
> > > Darren.
> > >
> > > --
> > > 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]>




set a value from a form to a form

2002-09-10 Thread Michael Lee

I have a form object that populates html fields. The problem is, I want to display 
some of the form data and have it uneditable. When I submit the form loses all the 
data that is not in an html:.. tag.
I've tried...

but this doesnt seem to work
thanks,
Mike



Re: RE: Security and Struts

2002-09-10 Thread Michael Lee

What if we didn't want to use this and wanted to use Weblogic (or the
system) container security. I just want something to load the currently
logged in user to the session and set the local to the user's locale (pulled
from database).
thanks,
Mike

- Original Message -
From: "Darren Hill" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, September 10, 2002 12:43 PM
Subject: RE: RE: Security and Struts


> Nice .. thanks Todd.
>
> Anyone ever use this with Struts?
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: September 10, 2002 12:41 PM
> To: Struts Users Mailing List
> Subject: Re: RE: Security and Struts
>
>
> Darren,
>
> Have you looked at the SecurityFilter project by Max Cooper?  Not sure
what
> all you need to achieve but this project provides a fairly extensible
> Security module.  You can find it at:
> http://securityfilter.sourceforge.net/
>
> Regards,
> Todd G. Nist
> >
> > From: Darren Hill <[EMAIL PROTECTED]>
> > Date: 2002/09/10 Tue PM 12:23:53 EDT
> > To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> > Subject: RE: Security and Struts
> >
> > Michael ... I've tried the same and thought it was a little messy.
> >
> > I was hope to find an example to uses roles 'n' such.
> >
> > -Original Message-
> > From: Michael Lee [mailto:[EMAIL PROTECTED]]
> > Sent: September 10, 2002 11:13 AM
> > To: Struts Users Mailing List
> > Subject: Re: Security and Struts
> >
> >
> > They have a good login example in the example war in the struts/webapps
> dir.
> > That's the way I've done it in the past. The way I'm currently doing it
is
> > to use container managed security. This means NOT using struts for
> > authorization/authentication (for J2EE security). Since your using JSP
> your
> > probably gonna do form base authentication so just post your form to
> > action="j_security_check" and make sure your form username and password
> > fields are j_username and j_password appropriately. Check your container
> > documentation for how to hook this into its security model.
> > I'm currently actually having a problem with this in that I need for the
> > user information to be stored in the session at login. I may just put a
> tag
> > at the top of every page but that seems to get rid of the 'niceties' of
> > using J2EE security. I want to set the locale based upon the loaded user
> > object. Problem is, it goes right to the requested jsp page after login
> > without loading the user and his preferences. Not sure how I'm going to
> > handle this but in the mean time, that is how I handle security.
> > Mike
> >
> >
> > - Original Message -
> > From: "Darren Hill" <[EMAIL PROTECTED]>
> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > Sent: Tuesday, September 10, 2002 10:24 AM
> > Subject: Security and Struts
> >
> >
> > > Hey all,
> > >
> > > I'm looking for a job document and example about best practices in
> > > implementing security in struts.
> > > I've got the general idea about placing all my JSP's under WEB-INF,
but
> a
> > > doc/example might really solidify it for me.  Thanks in advance.
> > >
> > > Darren.
> > >
> > > --
> > > 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]>




set a value from a form to a form

2002-09-10 Thread Michael Lee

I have a form object that populates html fields. The problem is, I want to display 
some of the form data and have it uneditable. When I submit the form loses all the 
data that is not in an html:.. tag.
I've tried...

but this doesnt seem to work
thanks,
Mike



Re: Problem with ApplicationResources properties file.

2002-09-10 Thread Michael Lee

Make sure your properties file is in your classpath and, if you for some
reason have multiple ones, that it is before the other ones in the
classpath.
Mike

PS: Does anyone know how to get a value from a form and then set it in the
form for the next request (want to display it but not use html:tag. This is
an earlier question.

- Original Message -
From: "Michael Deegan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 10, 2002 8:15 PM
Subject: Problem with ApplicationResources properties file.


> Hi all,
> When an error occurs in my application I am getting the words "null null"
> appearing and nothing else.
>
> I know the normal problem when you receive the "null null" message is that
> there is no "errors.footer" or "errors.header" lines in the properties
file.
>
> My ApplicationResources.properties file is in the WEB-INF/classes
directory
> and I have set an init-param in my web.xml file.
>
> But, I don't think the application is accessing my intended properties
file.
>
> Has anyone experienced a similar problem ?
> Does anyone have any constructive hints / tips for me to keep looking to
> solve this problem ?
>
> Would this be related to a CLASSPATH problem ?
> Could the application be accessing another "properties" file somewhere?
>
> Thanks in advance,
> Mike Deegan
>
>
> I have read the setup guide as per:
>
>
http://jakarta.apache.org/struts/doc-1.0.2/userGuide/building_view.html#i18n
>
>
> I have a properties file name ApplicationResources.properties in my
> /WEB-INF/classes dir
>
> errors.footer=
> errors.header=Validation ErrorYou must
> correct the following error(s) before proceeding:
> errors.ioException=I/O exception rendering error messages: {0}
> error.removed.attraction=Selected attraction has
been
> removed.
> error.create.attraction=Unable to create the
> attraction.
> error.duplicate.attraction=Specified attraction
> already exists.
> error.removed.event=Selected event has been
> removed.
> error.create.event=Unable to create the
> event.
> error.duplicate.event=Specified event already
> exists.
> error.removed.userRole=Selected user role has been
> removed.
> error.create.userRole=Unable to create the user
> role.
> error.duplicate.userRole=Specified user role already
> exists.
> error.removed.occassion=Selected occassion has been
> removed.
> error.create.occassion=Unable to create the
> occassion.
> error.duplicate.occassion=Specified occassion
already
> exists.
> error.missing.userId=Please enter the user
> id.
> error.missing.password=Please enter the
> password.
> error.missing.name=Please enter the
name.
> error.missing.description=Please enter the
> description.
> error.missing.webSite=Please enter the web
> site.
> error.missing.address=Please enter the
> address.
> error.missing.ticketPrice=Please enter the ticket
> price.
> error.missing.webSiteURL=Please enter the
> webSiteURL.
> error.missing.location=Please enter the
> location.
> error.missing.startDate=Please enter the
> startDate.
> error.missing.endDate=Please enter the
> endDate.
> error.missing.dateString=Please enter the
> dateString.
> error.missing.image=Please enter the
> image.
> error.missing.activeFlag=Please enter the
> activeFlag.
> error.missing.createTS=Please enter the
> createTS.
> error.missing.createUser=Please enter the
> createUser.
> error.missing.lastUpdateUserTS=Please enter the
> lastUpdateUserTS.
> error.missing.lastUpdateUser=Please enter the
> lastUpdateUser.
> error.missing.id=Please enter the id.
> error.database.missing=Database is missing, cannot
> continue.
> error.dataaccess.invalid=Data Access problem
> encountered - Please try again later.
> error.loginId.required=User Id must be
> supplied.
> error.loginId.notfound=User Id not
found.
> error.loginId.notactive=User Id not
> active.
> error.userPassword.required=Password must be
> supplied.
> error.userPassword.invalid=Password invalid - Please
> try again.
> error.unexpected=Unxpected error, Please contact
> webmaster.
>
>
> I have added the following to my web.xml
>
> 
> 
> action
> org.apache.struts.action.ActionServlet
> 
> application
> ApplicationResources
> 
> 
> debug
> 2
> 
> 
> detail
> 2
> 
> 
> validate
> true
> 
> 
> convertNull
> true
> 
> 2
> 
>
>
>
>
>
> _
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




Re: set a value from a form to a form

2002-09-11 Thread Michael Lee

?I haven't used hidden fields in over 4 years and have never had a problem.
You definately have to be careful with what you stick in the session, I
agree. I don't think it makes the app less scaleable as long as you use a
session object responsibly.  I've been using sessions since they've been
around and have never had a problem. I like the end user to see as little as
possible when it comes to controlling variables. I make an exception when I
want to give them access to something pertinent (the URL for mapquest is a
good example). This is a potential security hole (of which I have been able
to take advantage of before, not maliciously of course, just as a matter of
curiosity).

You can get the value you need from your form bean out of the request. The
problem is you lose scope unless you put it in the session. The more I think
about it the more I'm realising it's either the session or a hidden field
because there is no way to get data between requests outside of those
mechanisms. A request is just that, a request per page
hmmm...
So it's session if you don't want the user to see anything or hidden fields
if you don't want to put the data in the session for some reason.
thanks, I've always just stuck this stuff in the session but I may have a
valid case for a hidden field.
Mike

- Original Message -
From: "John Yu" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 11, 2002 3:21 AM
Subject: Re: set a value from a form to a form


> Mike,
>
> Using hidden fields is the general practice as it allows you to
> "distribute" the conversation state of the session to the clients and
makes
> your app more scalable.
>
> Use session with care. You need to consider multi-threading and
> concurrent-request issues if the data is stored in the session.
>
>
> At 02:15 pm 11-09-2002, you wrote:
> >You do understand me! :)
> >I use a hidden field now. I was trying to get away from that though so
the
> >user will not see it. I may have to put it in the session.
> >Any ideas?
> >thanks,
> >Mike
> >
> >- Original Message -
> >From: "John Yu" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Sent: Tuesday, September 10, 2002 10:09 PM
> >Subject: Re: set a value from a form to a form
> >
> >
> > > Mike,
> > >
> > > If I understand you correctly, you want to retain the value when the
form
> > > is submitted. One option is to use  to display the value
and
> > > use  to retain the value for form submission.
> > >
> > > 
> > >Prop1: 
> > >
> > >...
> > > 
> > >
> > > The value is *not* retained in a bean. It's just resubmitted as an URI
> > > parameter. If you let Struts do the auto formbean population, you will
get
> > > it in the actionform object.
> > >
> > > Bean created by  in the request scope will "disappear"
> >because
> > > whenever you submit the form, that's a complete new request.
> > >
> > >
> > > At 06:36 am 11-09-2002, you wrote:
> > > >I have a form object that populates html fields. The problem is, I
want
> >to
> > > >display some of the form data and have it uneditable. When I submit
the
> > > >form loses all the data that is not in an html:.. tag.
> > > >I've tried...
> > > >  > > > scope="request" toScope="request"/>
> > > >but this doesnt seem to work
> > > >thanks,
> > > >Mike
> > >
>
> --
> John Yu   Scioworks Technologies
> e: [EMAIL PROTECTED] w: +(65) 873 5989
> w: http://www.scioworks.com   m: +(65) 9782 9610
>
> Scioworks Camino - "Don't develop Struts Apps without it!"
> Copyright (c) 2002 John Yu/Scioworks Technologies. All rights reserved.
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




Re: Struts 1.1 Final release

2002-09-11 Thread Michael Lee

Be nice
There are no ship dates for jakarta stuff. It is released when it meets a
certain level of quality/features.
You can help it meet the ship date! It's open source!
I'm going to ask my bosses if I can release some of my code here as examples
(modified to protect our interests of course). Lots of good examples.

- Original Message -
From: "Andrew Hill" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 11, 2002 4:50 AM
Subject: RE: Struts 1.1 Final release


> I believe this has been "answered" a few million times, but since
searching
> the archive can be a tiresome experience (seriously. The archive search
> really does suck!) I shall repeat my previous answer.
>
> 
> The 12th of April 2156 at 15:28 in the afternoon.
> Or perhaps even sooner if its ready before then... ;-)
> 
>
> hehe
>
> For more info you can take a look at the faq:
> http://jakarta.apache.org/struts/kickstart.html#release
>
>
>
> -Original Message-
> From: Vikas Sangwan [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 11, 2002 16:40
> To: Struts Users Mailing List
> Subject: Struts 1.1 Final release
>
>
>
> Hi,
> Can somebody tell me, when can we expect production release od Struts 1.1
?
> Thanks in advance.
> Vikas.
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




Re: sites powered by struts

2002-09-11 Thread Michael Lee

Go to the 'Powered by Struts' section
http://jakarta.apache.org/struts/doc-1.0.2/userGuide/resources.html

I personally have 2 systems in production on it and am working on a third.
Mike

- Original Message -
From: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Wednesday, September 11, 2002 9:45 AM
Subject: Re: sites powered by struts


>
>
>
>
> here is one :
> http://www.britannia-music.co.uk/Home.do
>
> ta..
>
> Naveen Dhotre,
> Consultant
> Uovo Fi SYSTEM
>
> Main: +44 (0) 1 494 685 700, Fax: +44 (0) 1494 685 707
> Email: [EMAIL PROTECTED],  Web:  http://www.uovo.com
>
>
>
>
>
>
>
>
> "Jefferson R. de O. e Silva" <[EMAIL PROTECTED]> on 11/09/2002 14:36:48
>
> Please respond to "Struts Users Mailing List"
<[EMAIL PROTECTED]>;
>   Please respond to [EMAIL PROTECTED]
>
>
>
>
>
>
>
>
>  To:  [EMAIL PROTECTED]
>
>  cc:  (bcc: Naveen Dhotre/Uovo/UK)
>
>
>
>  Subject: sites powered by struts
>
>
>
>
>
>
>
>
> Hi guys,
>
> I'm in a process of trying to convince my developement team to use the
struts in
> a new project
> here.
>
> Can anyone tell me any site which is using struts ? There are some people
here
> wanting
> to see "results"
>
> Thanks in advance
>
> Jefferson
>
> --
> 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 Michael Lee

My first programming experience was basic and assembly on the TRS-80 in 1980
(I was 10 years old, saw another dude that had same thing. Gifted and
talented magnet school also). Moved onto C64 when I was 13 or so (1983-4).
Got burnt out on coding when I was 18 but went back in at college when I got
burnt out on Electrical Engineering. Coding is my gift!

I would have given my right **choose appendage important to you** when I was
15 for all the free software tools they have available now (Java, DirectX,
etc).

Java Server Programming, etc are all good books but THE BEST computer book
every made was by far the C64 programmers reference guide. It was the last
book that could explain every last thing you could ever need to know about
developing an app for a platform. Now you have to reference online docs in
34234 different sites, manuals, books, etc. I miss that somewhat...
My 5 c
Mike

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


> -Original Message-
> From: John Owen [mailto:[EMAIL PROTECTED]]
>
> Maybe I can generate some nostalgia as well :

Here we go then! :)  Can't go as far back as Apple II but my father
bought a Iix which was my first introduction to the Mac.  They were
_expensive_ back then.  My first Mac was an LC475 (LC68030) followed by
a 7200.  I then worked for Apple for a year during which time I bought
myself an 8600 on employee purchase :D.

Before Macs I had been an Atari ST and Sinclair Spectrum guy.  I now
almost exclusively use a PC :(.  Which is a shame.  I am seriously
considering a new Mac and OS X.

--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




Re: Additional helper tags wanted

2002-09-11 Thread Michael Lee

We use it all here. We had a big meeting and all agreed on one thing.
Views tend not to be too reusable so...
Use whatever medium you can to get something up fast. That usually means it
depends on the type of data comming in.
Here we get some data as XML (we do digial receipts and there is an XML
standard).
That data, we use XSLT.
We have a lot of data also in a database.
It is much faster to just code up some jdbc, put it in a value object (to
allow for business processing) and then use struts tags to pump em out on
the JSP.
Basically how we got the data dictated the view. I've found XSLT to be
'wordy'. I think its just as easy to write another damned JSP and parse the
Java Objects up there as it is to create another XSL page and use the same
JSP.
I consider views to be relatively non-reusable so time to market is my big
concern.
(I use lots of JSP tags and programs like struts to create the reusable
aspects of the view).
My 5 c
Mike


- Original Message -
From: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 11, 2002 1:14 PM
Subject: RE: Additional  helper tags wanted


>
> Wow, good rhubarb here hiding under a misleading subject title ;-).
>
> I think XSLT based presentation architecture vs. JSP is highly
interesting,
> Donald, but I don't agree with many of your points.
>
> To me, the big strength of the XSLT approach would be the ability to
> transform the model into a variety of views (not just one html view).  I
> know that I can create a JSP application that is layered well, keeping
only
> things like variable output and iteration in the JSPs and all other data
> preparation work back in other Java layers.  Believe me, programmers can
> hash up any architecture.  I can make a mess with XSLT just as readily as
I
> can with JSP.
>
> The strength of the JSP approach is it is faster to get going,
particularly
> if I'm starting with HTML prototypes of an application.  If I only have
one
> transform (model data to one html), why do a lot of extra work?
>
> Jim Weaver
> Software Developer - ThoughtWorks
>
>
>
>   "Donald Ball"
>   <[EMAIL PROTECTED]To:
[EMAIL PROTECTED], [EMAIL PROTECTED]
>   om>  cc:
>Subject:  RE: Additional
 helper tags wanted
>   09/11/2002 09:36
>   AM
>   Please respond to
>   "Struts Users
>   Mailing List"
>
>
>
>
>
>
> On 9/11/2002 at 9:17 AM Craig R. McClanahan wrote:
>
> >At the high level:  The JSTL tags are nice.  The JSTL expression language
> >(now adopted by JSP 2.0) is powerful enough to completely eliminate the
> >need for scriptlets and runtime expressions in JSP pages.  JSP 2.0 page
> >compilers will also let you use EL expressions directly in template text,
> >not just in tag attributes.
>
> So you _have_ rewritten Java in an xml-like language. :) except that you
> break xml rules by allowing things like jsp elements in tag attributes.
>
> >At the low level:  Given that you have to use *some* syntax for this
> >stuff, picking a syntax that lots of people are already familiar with
> >seems a lot smarter than making one up and having to teach it to all your
> >page authors :-).
>
> I guess that's where we disagree. I don't think you have to have a
> programming language for doing your view pages. I think you should keep
the
> programming logic back in your Java code where it belongs and the language
> which does the transformation from model to view should not let you do
> anything except transform input tree into output tree.
>
> I guess what I'm trying to point out is this: it seems to me that with
JSTL
> and its friends, JSP pages now share the drawbacks of XSLT (namely verbose
> syntax) without gaining any of its benefits (side-effect free processing
> model forces logic to stay back in the controller, strict adherence to xml
> syntax makes it easy to validate xslt stylesheets as well as their
output).
>
> - donald
>
>
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




Re: General Struts Question [OT]

2002-09-11 Thread Michael Lee

That just returns a list of books. It doesn't denote what we recommend. They
have user ratings but I would think that the struts email list would
probably be the best place to ask so I think it's a semi legitimate
question. I would like him to read a book...I have lots of questions. :)

BTW, buy.com has free shipping on its books.

My 5 c
Mike

- Original Message -
From: "Galbreath, Mark" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, September 11, 2002 3:03 PM
Subject: RE: General Struts Question


> That does not mean you can't (at least) go to amazon.com and search for
> books on "Java Struts."  You were smart enough to subscribe to this list,
> after all.
>
> http://www.tuxedo.org/~esr/faqs/smart-questions.html
>
>
> -Original Message-
> From: Pat Quinn [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 11, 2002 2:52 PM
> To: [EMAIL PROTECTED]
> Subject: RE: General Struts Question
>
>
> i'm a first year uni student actually and i've only been working with java
> for six weeks actually
>
>
> >From: [EMAIL PROTECTED]
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: RE: General Struts Question
> >Date: Wed, 11 Sep 2002 14:49:38 -0400
> >
> >
> >
> >Really! You wonder if these people have jobs. Let's hope not.
> >
> >
> >
> >
> >"Galbreath, Mark" <[EMAIL PROTECTED]> on 09/11/2002 02:32:39 PM
> >
> >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: General Struts Question
> >
> >
> >STFW, dude.  Don't expect us to do your homework for you.
> >
> >-Original Message-
> >From: Pat Quinn [mailto:[EMAIL PROTECTED]]
> >Sent: Wednesday, September 11, 2002 2:25 PM
> >
> >Does any know of any good books on struts that are available at the
> >moment... or websites for an introduction to the struts world
> >
> >--
> >To unsubscribe, e-mail:
> >
> >For additional commands, e-mail:
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >--
> >To unsubscribe, e-mail:
> >
> >For additional commands, e-mail:
> >
>
>
>
>
> _
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
> --
> 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: General Struts Question[OT]

2002-09-11 Thread Michael Lee

Here's one more thing I think you might want to learn today...
[OT] = Off Topic!
:)

jk

If you wish to respond to this email try adding [FLAME]

- Original Message -
From: "Chappell, Simon P" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 11, 2002 3:28 PM
Subject: RE: General Struts Question


That is soo true! I graduated from Plymouth University (England) in 1990
and I swear that I learn more in any given year than I ever did during my
entire University degree!

>-Original Message-
>From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, September 11, 2002 2:24 PM
>To: 'Struts Users Mailing List'
>Subject: RE: General Struts Question
>
>
>Education is a life-long process and requires work!  :-)
>
>-Original Message-
>From: Pat Quinn [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, September 11, 2002 3:14 PM
>To: [EMAIL PROTECTED]
>Subject: RE: General Struts Question
>
>
>Ok Mark i just read that link and i hold my hands up you got
>me... time to
>do some research for myself... sorry
>
>
>>From: "Galbreath, Mark" <[EMAIL PROTECTED]>
>>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
>>Subject: RE: General Struts Question
>>Date: Wed, 11 Sep 2002 15:03:54 -0400
>>
>>That does not mean you can't (at least) go to amazon.com and
>search for
>>books on "Java Struts."  You were smart enough to subscribe
>to this list,
>>after all.
>>
>>http://www.tuxedo.org/~esr/faqs/smart-questions.html
>>
>>
>>-Original Message-
>>From: Pat Quinn [mailto:[EMAIL PROTECTED]]
>>Sent: Wednesday, September 11, 2002 2:52 PM
>>To: [EMAIL PROTECTED]
>>Subject: RE: General Struts Question
>>
>>
>>i'm a first year uni student actually and i've only been
>working with java
>>for six weeks actually
>>
>>
>> >From: [EMAIL PROTECTED]
>> >Reply-To: "Struts Users Mailing List"
><[EMAIL PROTECTED]>
>> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>> >Subject: RE: General Struts Question
>> >Date: Wed, 11 Sep 2002 14:49:38 -0400
>> >
>> >
>> >
>> >Really! You wonder if these people have jobs. Let's hope not.
>> >
>> >
>> >
>> >
>> >"Galbreath, Mark" <[EMAIL PROTECTED]> on 09/11/2002 02:32:39 PM
>> >
>> >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: General Struts Question
>> >
>> >
>> >STFW, dude.  Don't expect us to do your homework for you.
>> >
>> >-Original Message-
>> >From: Pat Quinn [mailto:[EMAIL PROTECTED]]
>> >Sent: Wednesday, September 11, 2002 2:25 PM
>> >
>> >Does any know of any good books on struts that are available at the
>> >moment... or websites for an introduction to the struts world
>> >
>> >--
>> >To unsubscribe, e-mail:
>> >
>> >For additional commands, e-mail:
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >--
>> >To unsubscribe, e-mail:
>> >
>> >For additional commands, e-mail:
>> >
>>
>>
>>
>>
>>_
>>Send and receive Hotmail on your mobile device: http://mobile.msn.com
>>
>>
>>--
>>To unsubscribe, e-mail:
>>
>>For additional commands, e-mail:
>>
>>
>>--
>>To unsubscribe, e-mail:
>>
>>For additional commands, e-mail:
>>
>
>
>
>
>_
>MSN Photos is the easiest way to share and print your photos:
>http://photos.msn.com/support/worldwide.aspx
>
>
>--
>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: Sending parameters to form beans

2002-09-11 Thread Michael Lee

Ya, you go out and read his book, or you can do this;





I prefer to just get my answers in 5 minutes rather than read a whole book
to get the answer.
This is cut and pasted from my actual app.
The only other way is to put it in the session or add it to a URL request
such as http://domain.com/strutsaction/something.do&userID=Bob.
You can't put it in to the request because it doesn't exist yet.
(I just asked this question yesterday). Got some answers but no one really
said this. I just figured this out. Seems obvious now, but not when your
coding it up.
Mike

- Original Message -
From: "Eddie Bush" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 11, 2002 3:56 PM
Subject: Re: Sending parameters to form beans


> Pat, go read Chuck's book.  I notice someone else gave you a pointer to
> it too.  There is a *wealth* of information to be had there.  For (some
> of) the trickier points, hit Ted's site over at http://husted.com/struts
> -- and, specifically http://husted.com/struts/tips (copy and paste,
> pragmatic solutions).
>
> Please reserve asking questions for the time after you've actually read
> Chuck's book ... and tinkered with the "Struts machinery".  Just reading
> that one book will explain *so* much to you!  Tinkering required for
> good understanding though - don't be scared to shed some blood ... erm
> ... get your hands dirty! ;-)
>
> Regards,
>
> Eddie
>
> Pat Quinn wrote:
>
> > hi Guys
> >
> > I'm very new to the world of struts so please excuse me if this seems
> > like a really stupid question. Ok my situation is as follows:
> >
> > I have an action to display some application information, I also have
> > a form bean which fetches the data I want to display.
> >
> > The action takes a user name as a parameter in the request object and
> > then set the value in the form bean in order to display the data for
> > that user. But the reset method is called on the form bean and clears
> > the contents of the form bean.
> >
> > How should i implement this?
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




Re: Additional helper tags wanted

2002-09-12 Thread Michael Lee

Oh struts, definately. I use struts like a toolkit. I hand a web page to our
graphic artist with all the  and  and
 in it. It can put them wherever he needs them with ease,
just like an html tag. All the session/request information and logic is
hidden through html 'like' (struts) tags (and our own custom tags). We use
the jakarta XSL taglibs when the data is pulled from the database in XML
format. I still wrapper the XML in a Java object so if we need to break it
up and do business logic on it the interface can stay the same. Then when it
gets to the JSP he just uses the jakarta XSL tag lib and transforms it where
necessary. I just look at this argument as kind of academic. I say, use
whatever your most familiar with but use it cleanly (JSPs use tags,
javascript use a .js tag instead of inline javascript, etc). View, in my
opinion, are not to be looked at as the reusable components of your system.
Those should be your JSP tags (yay struts and jakarta tag libs!) and/or XSL
documents. This is VERY pertinent to what we do as we make digital receipts
that come from the retailer in XML format. You can imagine we DON'T want to
have to write JSP code to transform every one of these for every new retail
customer we get. We use XSLT on that. But that is because the data is
comming as XML already and we're familiar with XSLT. The data we pull from
the database we use JSP/struts/internal tags and value/form objects to
populate the screens. Our graphic artist is great with XSLT so that is his
preference and as a developer it is easy enough to change a Java bean to XML
for him.

Here is a design I came up with (I'm the J2EE architect) for the system that
addresses both these issues.

All your value objects have a toXML() method. They also follow the bean
format for all the data. The XML transformations are handled by Helper
classes for serialization purposes.

You can just call User.toXML() and get the XSL sheet for that XML if you
want to use XML or you can use
 if the data is not in XML but
stored in the Java object's fields. Either way the interface is the same.
This means that if we go to a new customer we don't have to change a lot of
code except at the view layer. We use EJBs and override them as needed for
new customers but deploy them to the same JNDI name (as long as the state
flow is the same).
Works like a champ so far. We're in development but it is nice.
Mike


- Original Message -
From: "Donald Ball" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 11, 2002 6:06 PM
Subject: Re: Additional  helper tags wanted


> On 9/11/2002 at 2:02 PM Michael Lee wrote:
>
> >Basically how we got the data dictated the view. I've found XSLT to be
> >'wordy'. I think its just as easy to write another damned JSP and parse
> the
> >Java Objects up there as it is to create another XSL page and use the
same
> >JSP.
> >I consider views to be relatively non-reusable so time to market is my
big
> >concern.
>
> Makes sense given your constraints. So when you throw together these
JSP's,
> do you use struts/JSTL taglibs or do you let yourself write scriptlets?
>
> - donald
>
>
> --
> 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: Question for using struts as our standard MVC framework

2002-09-12 Thread Michael Lee

Here's an argument, and have him email me if he has any questions...
I was brought on to my current company as a J2EE Architect.
It was basically one developer. He had a home brewed servlet controller
layer. I recommended struts. He pushed back (that's natural, it's his baby).
But he is rational and I explained a few points to him;
- The features of struts and how it did everything he did
- It is much more feature rich. More here being the html libraries so you
dont have to worry about session/request maintenance. That's big in my
opinion.
- It has a development community behind it meaning it will be as up to date
as our needs as J2EE developer's see we need.
- It is well tested. Much more so, I'm sure, than his. So not only is it
more powerful and feature rich, all the functionality and features are more
stable than what he has.
- It is maintained by someone else leaving us the job of writing business
code and not servlet frameworks (which are being written again and again all
over the world! ARRRGH! STOP IT!). This is a big one of the management types
when they realize it can save lots of design/development time because it's
one less piece to worry about.
- You have the source code so, at the very least, you can tweak it to fit
any needs that may not be covered by it that may be in yours. (I HIGHLY
doubt this would be the case).
- I have 2 systems in production with it as we speak.
- I'm here to help if you have any questions (You may have to just say this
and then get your learn on, or post a question here...AFTER YOU'VE DONE YOUR
RESEARCH!)

The fact that now he doesn't have to maintain his framework was a big
selling point in addition to the others.

If these don't work then tell him to go write a J2EE container as well.
There are reasons people pay for software (and people get together and write
open source). There is a common need

This worked here and we're using struts instead of the homebrewed job.
Mike





- Original Message -
From: "Galbreath, Mark" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, September 11, 2002 6:33 PM
Subject: RE: Question for using struts as our standard MVC framework


> Ignorant Luddites!
>
> -Original Message-
> From: Khan, Manuchehar A (ACF) [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 11, 2002 6:32 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Question for using struts as our standard MVC framework
>
>
> Thanks for input...You are right...Politics play more role here than
> technology and innovation.
> I gave 2 hr presentation on pros and cons of framework developed by one
> person as compare to people involved behind struts.   Opposition was
struts
> is not tested or proven, what if jakarta abandon struts project and we
will
> become dependent on 3rd party tool.
>
> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 11, 2002 10:57 AM
> To: Struts Users Mailing List
> Subject: RE: Question for using struts as our standard MVC framework
>
>
> Sounds like a political argument more than anything else.
>
> I could list 100 reasons to choose Struts, but it wouldn't change the mind
> of someone who 'wants' to use what they have builtespecially if they
> have a long standing history as defending champion in the Vi(m)  vs.
> (X)Emacs debate.
>
> I wish you luck in your endeavor.
>
>
>
> James Mitchell
> Software Engineer\Struts Evangelist
> Struts-Atlanta, the "Open Minded Developer Network"
> http://www.open-tools.org/struts-atlanta
>
> P.S. Tell them to stop being so ignorant and pickup FUC#ING book.
> Hmmmlike the STRUTS book by Chuck Cavaness ;)
>
>
> > -Original Message-
> > From: Khan, Manuchehar A (ACF) [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, September 11, 2002 10:37 AM
> > To: 'Struts Users Mailing List'
> > Subject: Question for using struts as our standard MVC framework
> >
> >
> > Hello Folks. I work for Govt and we have major policy meeting for using
> > struts as our stantard framework.
> > One developer in our team took the Sun pet store example and created a
> > framework that is basically a router/controller with xml
> > configuration files
> > to define handlers and views. And that controller works fine..
> > He claims that strut has not followed sun standards and guidelines and
> > struts is not reliable. It can only support maximum 100 users and
> > next year
> > struts team is coming up with new version based in JSTL and will trash
all
> > releases.
> > I need some inputs from people here to make solid arguments for
> > changing to
> > struts.
> > Thanks...
> >
> >
> >
> > -Original Message-
> > From: James Mitchell [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, September 11, 2002 10:34 AM
> > To: Struts Users Mailing List; Dariusz Wojtas
> > Subject: RE: JDO example - rozpakowywac Commanderem
> >
> >
> > Was there a question in there I missed?
> >
> > James Mitchell
> > Software Engineer\Str

Re: HOWTO add actions to the Struts "pipeline"

2002-09-12 Thread Michael Lee

I'm getting ready to write a servlet filter (2.3) to do something similar.
This is servlet 2.3. If you don't need struts specific stuff in the specific
piece of code you need then this is the way to go. You can add the filter to
url-patterns in your web.xml.
Thanks to Craig McClanahan for this one.
Mike

- Original Message -
From: "James Mitchell" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 11, 2002 10:38 PM
Subject: RE: HOWTO add actions to the Struts "pipeline"


> This can be done by having an abstract BaseAction which extends Action and
> change all your actions to extend the BaseAction.  This allows you to do
any
> setup or logging for all actions.
>
> I can send you an example if you need it.
>
>
> James Mitchell
> Software Engineer\Struts Evangelist
> Struts-Atlanta, the "Open Minded Developer Network"
> http://www.open-tools.org/struts-atlanta
>
>
>
>
> > -Original Message-
> > From: Eric Weiss [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, September 11, 2002 9:36 PM
> > To: [EMAIL PROTECTED]
> > Subject: HOWTO add actions to the Struts "pipeline"
> >
> >
> > I want to add an action to the Struts "pipeline" so that every single
> > request will cause the ActionServlet, or any other entity, to trigger a
> > custom service/action.
> > Basically I want to add one or more custom "Helpers" or "Managers" that
> > will perform some processing for every request and then return control
to
> > the ActionServlet so it can process the request and forward on to the
> > requested ActionClass.  I want these custom actions to fire for every
> > request and I want to fire some before the ActionClass(s) and some after
> > the ActionClass(s) is done.
> > What mechanism(s) does Struts offer that will allow me to plug into the
> > existing Struts pipeline?
> >
> > Thx,
> > Eric Weiss
> >
> >
> > --
> > 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: Disadvantages of Struts

2002-09-12 Thread Michael Lee

No real world examples and no good documentation describing those examples.
This email list helps that.
I'm also going to see if I can release some of my code here open source when
I'm done for an example for just such a reason. This is an example of how
the community can help out where they see a problem.
Mike

- Original Message -
From: "Martina Weise" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 12, 2002 5:19 AM
Subject: RE: Disadvantages of Struts


Hi Raghu,
in my opinion, for developing, struts is a huge help.

The disadvantages are only in the administrative/costum-related parts
(mainly if you want to support a long-lifing application).

Martina


"Jesse Alexander (KADA 11)" <[EMAIL PROTECTED]> schrieb:
>Disadvantages of Struts: ... thinking ...
>
>==>
>- you have to read through a HUGE number of mails if you subscribe
>  to the official mailing list ... (== this one)
>- every now and then people will aks you why you use Struts (espescially
>  by those who have financial interests to get XYZ-framework to be used...)
>- you have not too many excuses for being late in the office (cannot
>  say: "had to develop lots of framework-components)
>- you cannot make huge architectoral mistakes
>- every now and then you get smacked with a smelly trout
>- you have to explain to your managers why that framework costs nothing...
>
>about what comes to my mind thinking it...
>Alexander
>
>-Original Message-
>From: James Mitchell [mailto:[EMAIL PROTECTED]]
>Sent: Donnerstag, 12. September 2002 08:23
>To: Struts Users Mailing List
>Subject: RE: Disadvantages of Struts
>
>
>Ok.  Good point.
>
>Now, from what perspective?  Disadvantages compared to what?
>
>ASP?
>ASPX?
>PHP?
>Cold Fusion?
>CGI (Perl/C/C++)?
>
>or do we play in our own ballpark?
>JSP? (Model 1)
>Servlet?
>Servlet w/JSP?
>Servlet w/XML/XSL?
>Other similar frameworks?
>
>
>
>James Mitchell
>Software Engineer\Struts Evangelist
>Struts-Atlanta, the "Open Minded Developer Network"
>http://www.open-tools.org/struts-atlanta
>
>
>
>
>> -Original Message-
>> From: Andrew Hill [mailto:[EMAIL PROTECTED]]
>> Sent: Thursday, September 12, 2002 1:45 AM
>> To: Struts Users Mailing List
>> Subject: RE: Disadvantages of Struts
>>
>>
>> Oh come on.
>> Who best to get the bad points from than the users and developers
>> themselves?
>> Having a good critical look to identify weaknesses and problems
>> will help to
>> make the framework stronger, as once identified these points can be
>> addressed in future enhancements.
>>
>> -Original Message-
>> From: James Mitchell [mailto:[EMAIL PROTECTED]]
>> Sent: Thursday, September 12, 2002 13:38
>> To: Struts Users Mailing List
>> Subject: RE: Disadvantages of Struts
>>
>>
>> You won't find it on this list.
>>
>> James Mitchell
>> Software Engineer\Struts Evangelist
>> Struts-Atlanta, the "Open Minded Developer Network"
>> http://www.open-tools.org/struts-atlanta
>>
>>
>>
>>
>> > -Original Message-
>> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>> > Sent: Thursday, September 12, 2002 12:21 AM
>> > To: struts help
>> > Subject: Disadvantages of Struts
>> >
>> >
>> > Hi All,
>> >
>> > Can any one tell me what are the disadvantages of Struts?.
>> > Your help is appreciated
>> >
>> > thanks and regards
>> > Raghu
>> >
>> >
>>
>> --
>> 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: Reloading struts-config.xml

2002-09-12 Thread Michael Lee

I use Weblogic 6.1sp3. I put everything in my WAR. The struts app goes in
WEB-INF/lib/struts.jar and the struts-config.xml goes in the WEB-INF dir. I
even have a resource bundle in there.
It all gets reloaded upon deployment!
VERY nice feature.
In a nutshell, if your container can class load your app again from a war
then there is one solution.
Mike

- Original Message -
From: "Galbreath, Mark" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, September 12, 2002 8:58 AM
Subject: RE: Reloading struts-config.xml


AFAIK, no.  struts-config.xml is loaded into memory upon the first
instantiation of  ActionServlet and stays resident until the container is
rebooted.

Mark (right, guys?)

-Original Message-
From: phpsurf [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 8:33 AM
To: Struts Users Mailing List
Subject: Reloading struts-config.xml


Hi

I'm new to struts, so I apologize in advance if my question has already
shown up ...

I would like to know if there is a way to setup struts (in development mode)
to automatically reload its configuration file when it has been modified.
Or how can I make it reload the file, on demand, without having to redeploy
the entire webapp ?

thanks



Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros
d'économies !
Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
+ 1 mois de jeu en réseau offert !
Clique ici : http://www.ifrance.com/_reloc/mail.etudiant


--
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: Redirecting to a relative URL from root

2002-09-12 Thread Michael Lee

by default the '/' root is from your webapp, as it should be. All URLs
should be from '/' that are going to the same webapp. If your going to
another webapp just do an http:// (Is this last sentence right?)
Don't use ../.. whatever you do! (not easily mutable)
Mike

- Original Message -
From: "Will Spies" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 12, 2002 10:49 AM
Subject: Redirecting to a relative URL from root


>
>
> I would like a forward to redirect off of the root context. Normally, if
my
> struts app is in a WAR , let's say MyStrutsApp this forward:
>
> redirect = "true"/>
>
> would result in a redirect to
> http://myhost:myport/MyStrutsApp/mydir/allben_home.jsp
>
> I would like to do a redirect to
http://myhost:myport/mydir/allben_home.jsp
>
> Looking at the processActionForward code below this would work if I
removed
> the '/' but by definition this doesn't work since redirecting to a
relative
> link without a slash in front of it will still result in MyStrutsApp
> appearing in the new redirect URL.
>
> How can I do this?
>
>
>
>
>
>
>
> protected void processActionForward(ActionForward forward,
> ActionMapping mapping,
> ActionForm formInstance,
> HttpServletRequest request,
> HttpServletResponse response)
>   throws IOException, ServletException {
>
>   if (forward != null) {
>   String path = forward.getPath();
>   if (forward.getRedirect()) {
>   if (path.startsWith("/"))
> path = request.getContextPath() + path;
> response.sendRedirect(response.encodeRedirectURL(path));
>   } else {
> RequestDispatcher rd =
> getServletContext().getRequestDispatcher(path);
> if (rd == null) {
>
> response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
>internal.getMessage
> ("requestDispatcher",
>path));
> return;
> }
> rd.forward(request, response);
>   }
>   }
>
>
> ___
> Will Spies
> Towers Perrin
> Phone: (215)246-7145
> e-mail: [EMAIL PROTECTED]
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




html:options question

2002-09-12 Thread Michael Lee

I want to populate an  with data from a Map (HashMap). I have

...
<% pageContext.setAttribute("allUserRoles", Lookup.getData(Constant.USER.USER_ROLES)); 
%>
...


  


I don't see an example in the struts-exercise-taglib.war under html:select
It is vector or Object[].
Ideas?
thanks,
Mike




Re: Redirecting to a relative URL from root

2002-09-12 Thread Michael Lee

Cool! Did not know that! I take it when you say that solution doesn't work
you just mean the one scentence..
" If your going to another webapp just do an http:// (Is this last
sentence right?)"
So you just use // and it get's you to domain root? Is that right?
so if I had
http://domain.com/webapp1/somepage.jsp
http://domain.com/webapp2/somepage.jsp

from somepage.jsp all urls from "/anotherpage.jsp" would be
http://domain.com/webapp1/anotherpage.jsp

and to go to webapp2/somepage.jsp the url would be
"//webapp2/sompage.jsp" which equates to
http://domain.com/webapp2/somepage.jsp

Is this correct?

- Original Message -
From: "Donald Ball" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 12, 2002 11:10 AM
Subject: Re: Redirecting to a relative URL from root


> On 9/12/2002 at 11:01 AM Michael Lee wrote:
>
> >by default the '/' root is from your webapp, as it should be. All URLs
> >should be from '/' that are going to the same webapp. If your going to
> >another webapp just do an http:// (Is this last sentence right?)
> >Don't use ../.. whatever you do! (not easily mutable)
>
> That solution doesn't work in general. In his struts-config file, he would
> have to hard-code the following assumptions:
>
> * protocol (http v.s. https)
> * hostname
> * port number
>
> A better solution, I think, would be to augment processActionForward with
a
> new syntax for reaching the site root. How about //? E.g.
>
> //OtherWebApp/foo/bar
>
> - donald
>
>
> --
> 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: Re-initialize ActionServlet.

2002-09-12 Thread Michael Lee

Wow, this looks like an email sent just a few hours ago!
Anyway, put your app in a war and redeploy.
The class loader should reload it and pick up the changes.
Works for me in weblogic 6.1 sp3.
Mike

- Original Message -
From: "Cristian Cardenas" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 12, 2002 11:53 AM
Subject: Re-initialize ActionServlet.


Hi all,
How can I re-initialize the ActionServlet in order to reload the
Struts-config.xml without reload the whole web app?

Thanks.
Cristian.


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




HELP! html:options with a hashmap

2002-09-12 Thread Michael Lee

I posted this before but haven't heard anything. Thought I would put up the error 
message too. What name do I put for name? The examples don't use a hashmap (seems 
logical for 'options'). When I put name it does the name and value. I want it to put 
the name under name and value under value, not both in the drop down.

I want to populate an  with data from a Map (HashMap). I have

...
<% pageContext.setAttribute("allUserRoles", Lookup.getData(Constant.USER.USER_ROLES)); 
%>
...


  


I don't see an example in the struts-exercise-taglib.war under html:select
It is vector or Object[].
Ideas?
thanks,
Mike

   <[WebAppServletContext(2285117,rece
iptsplus,/receiptsplus)] Servlet failed with Exception
java.lang.IllegalArgumentException: No name specified
at org.apache.struts.util.PropertyUtils.getNestedProperty(PropertyUtils.
java:405)
at org.apache.struts.util.PropertyUtils.getProperty(PropertyUtils.java:4
53)
at org.apache.struts.taglib.html.OptionsTag.doEndTag(OptionsTag.java:230
)
at jsp_servlet.__create_user._jspService(__create_user.java:395)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)



HashMap with html:options? Anyone? **crickets**

2002-09-12 Thread Michael Lee

I have looked through all the docs, javadocs, examples, google searches and nada.
Anyone know how to use html:options with a HashMap. I have tried about every 
combination I can think of.
Thanks,
Mike



Re: HashMap with html:options? Anyone? **crickets**

2002-09-12 Thread Michael Lee

I searched. All I got was one response from someone saying it cant be done.
I don't believe that.
Anyone else know how to do this?

- Original Message -
From: "Galbreath, Mark" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, September 12, 2002 3:25 PM
Subject: RE: HashMap with html:options? Anyone? **crickets**


> This issue is well documented in the archive.
>
> -Original Message-
> From: Michael Lee [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 12, 2002 3:18 PM
> To: Struts Users Mailing List
> Subject: HashMap with html:options? Anyone? **crickets**
>
>
> I have looked through all the docs, javadocs, examples, google searches
and
> nada.
> Anyone know how to use html:options with a HashMap. I have tried about
every
> combination I can think of.
> Thanks,
> Mike
>
> --
> 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: HELP! html:options with a hashmap

2002-09-12 Thread Michael Lee

Hmm, that's the way I'm trying/having to do it now, it just seems logical
that it would use the keys as the html option value and the map values as
labels by default. Oh well.
Ok, kinda depressing (We have to do this A LOT). Thanks for your help Joe.
Mike

- Original Message -
From: "Joe Barefoot" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 12, 2002 3:51 PM
Subject: RE: HELP! html:options with a hashmap


You don't see an example because html:options expects a *Collection*, not a
Map.  I have no idea if the tag works with a Map, but it probably doesn't
because it expects a Collection object.  If you want to use a Map
implementation (like HashMap), then your property getter should return
myHashMap.entrySet() and you should set these attributes in the
: property="value" labelProperty="key".  Something like
that.

http://java.sun.com/j2se/1.3/docs/api/index.html


Struts javadocs are quite verbose:

http://jakarta.apache.org/struts/doc-1.0.2/api/index.html

Click on any of the taglib packages in the top left frame, then the package
name in the bottom left frame, then the "Description" link that comes up in
the right frame.  Gets you descriptions of any tag.  You can reach these
throught the Struts site as well.

peace,
Joe



> -Original Message-
> From: Michael Lee [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 12, 2002 10:53 AM
> To: Struts Users Mailing List
> Subject: HELP! html:options with a hashmap
>
>
> I posted this before but haven't heard anything. Thought I
> would put up the error message too. What name do I put for
> name? The examples don't use a hashmap (seems logical for
> 'options'). When I put name it does the name and value. I
> want it to put the name under name and value under value, not
> both in the drop down.
>
> I want to populate an  with data from a Map
> (HashMap). I have
>
> ...
> <% pageContext.setAttribute("allUserRoles",
> Lookup.getData(Constant.USER.USER_ROLES)); %>
> ...
> 
> 
>   
> 
>
> I don't see an example in the struts-exercise-taglib.war
> under html:select
> It is vector or Object[].
> Ideas?
> thanks,
> Mike
>
>   
> <[WebAppServletContext(2285117,rece
> iptsplus,/receiptsplus)] Servlet failed with Exception
> java.lang.IllegalArgumentException: No name specified
> at
> org.apache.struts.util.PropertyUtils.getNestedProperty(PropertyUtils.
> java:405)
> at
> org.apache.struts.util.PropertyUtils.getProperty(PropertyUtils.java:4
> 53)
> at
> org.apache.struts.taglib.html.OptionsTag.doEndTag(OptionsTag.java:230
> )
> at
> jsp_servlet.__create_user._jspService(__create_user.java:395)
> at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
>

--
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: HELP! html:options with a hashmap

2002-09-12 Thread Michael Lee

Wow! This worked like a champ! What I was doing was actually not what you
were saying. What I was doing was much more complicated. This is MUCH
cleaner.

The thing I didn't know about we're the "key" and "value" names. I found the
"value" one but didn't understand exactly how to use it. I found the only
pertinent example on some spanish web site. I tried to figure out what they
were doing but to no avail. (Hey Marc, how's that for well documented?)

Anyway, here's the code for all to enjoy;
...
***This section gets the HashMap with the Lookup.getData() method
then calls .entrySet()*
<%
pageContext.setAttribute("allUserRolesKeys",
Lookup.getData(Constant.USER.USER_ROLES).entrySet());
%>


  


Thanks again Joe,
Mike

- Original Message -
From: "Joe Barefoot" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 12, 2002 3:51 PM
Subject: RE: HELP! html:options with a hashmap


You don't see an example because html:options expects a *Collection*, not a
Map.  I have no idea if the tag works with a Map, but it probably doesn't
because it expects a Collection object.  If you want to use a Map
implementation (like HashMap), then your property getter should return
myHashMap.entrySet() and you should set these attributes in the
: property="value" labelProperty="key".  Something like
that.

http://java.sun.com/j2se/1.3/docs/api/index.html


Struts javadocs are quite verbose:

http://jakarta.apache.org/struts/doc-1.0.2/api/index.html

Click on any of the taglib packages in the top left frame, then the package
name in the bottom left frame, then the "Description" link that comes up in
the right frame.  Gets you descriptions of any tag.  You can reach these
throught the Struts site as well.

peace,
Joe



> -Original Message-
> From: Michael Lee [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 12, 2002 10:53 AM
> To: Struts Users Mailing List
> Subject: HELP! html:options with a hashmap
>
>
> I posted this before but haven't heard anything. Thought I
> would put up the error message too. What name do I put for
> name? The examples don't use a hashmap (seems logical for
> 'options'). When I put name it does the name and value. I
> want it to put the name under name and value under value, not
> both in the drop down.
>
> I want to populate an  with data from a Map
> (HashMap). I have
>
> ...
> <% pageContext.setAttribute("allUserRoles",
> Lookup.getData(Constant.USER.USER_ROLES)); %>
> ...
> 
> 
>   
> 
>
> I don't see an example in the struts-exercise-taglib.war
> under html:select
> It is vector or Object[].
> Ideas?
> thanks,
> Mike
>
>   
> <[WebAppServletContext(2285117,rece
> iptsplus,/receiptsplus)] Servlet failed with Exception
> java.lang.IllegalArgumentException: No name specified
> at
> org.apache.struts.util.PropertyUtils.getNestedProperty(PropertyUtils.
> java:405)
> at
> org.apache.struts.util.PropertyUtils.getProperty(PropertyUtils.java:4
> 53)
> at
> org.apache.struts.taglib.html.OptionsTag.doEndTag(OptionsTag.java:230
> )
> at
> jsp_servlet.__create_user._jspService(__create_user.java:395)
> at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
>

--
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: HELP! html:options with a hashmap

2002-09-12 Thread Michael Lee

I agree but it's not in a form, it's pulled from a helper class.
I did a little research since you told me about the entrySet() in HashMap.
Since there are no get/set methods in HashMap/Set I thought that "key" and
"value" were just reserved words in struts. This kind of bugged me since it
seemed to deviate from the whole struts/jsp introspection model. I figured I
was missing something and so I looked into entrySet() and this acutally uses
a HashMap internal class called Map.Entry. The javadocs for this are under
java.util.Map.Entry. In the javadocs show Map.Entry has a getKey and
getValue method. I let out a big 'ah' when I saw that. It all makes
sense now. That's why it works and why you can just use a HashMap as long as
you use "key" and "value" (the getKey getValue internal to HashMap). I never
would have found this without that clue (entrySet()). I've included my
updated code below...

 // This gets a HashMap and puts it in a variable called alluserRoles
<%
  pageContext.setAttribute("allUserRoles",
Lookup.getData(Constant.USER.USER_ROLES));
%>
.

  


If you use lots of static data, like dereferencing lists in a database, then
this is very handy.
you da man,
Mike

- Original Message -
From: "Joe Barefoot" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 12, 2002 5:32 PM
Subject: RE: HELP! html:options with a hashmap


Cool.  Glad it works.  You could probably do away with the scriplet by
adding another property getter in your action form though, call it
getAllUserRolesKeysAsCollection, or some such title, and just return
myHashMap.entrySet().  To be honest, I've never used a Hashmap like this in
Struts.  I've always used an ArrayList for the Collection, populated with
KeyValuePair objects (with key/value getters).  Good to know it can be done.

peace,
joe


> -Original Message-
> From: Michael Lee [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 12, 2002 1:42 PM
> To: Struts Users Mailing List
> Subject: Re: HELP! html:options with a hashmap
>
>
> Wow! This worked like a champ! What I was doing was actually
> not what you
> were saying. What I was doing was much more complicated. This is MUCH
> cleaner.
>
> The thing I didn't know about we're the "key" and "value"
> names. I found the
> "value" one but didn't understand exactly how to use it. I
> found the only
> pertinent example on some spanish web site. I tried to figure
> out what they
> were doing but to no avail. (Hey Marc, how's that for well
> documented?)
>
> Anyway, here's the code for all to enjoy;
> ...
> ***This section gets the HashMap with the
> Lookup.getData() method
> then calls .entrySet()*
> <%
> pageContext.setAttribute("allUserRolesKeys",
> Lookup.getData(Constant.USER.USER_ROLES).entrySet());
> %>
> 
> 
>labelProperty="value"/>
> 
>
> Thanks again Joe,
> Mike
>
> - Original Message -
> From: "Joe Barefoot" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, September 12, 2002 3:51 PM
> Subject: RE: HELP! html:options with a hashmap
>
>
> You don't see an example because html:options expects a
> *Collection*, not a
> Map.  I have no idea if the tag works with a Map, but it
> probably doesn't
> because it expects a Collection object.  If you want to use a Map
> implementation (like HashMap), then your property getter should return
> myHashMap.entrySet() and you should set these attributes in the
> : property="value" labelProperty="key".
> Something like
> that.
>
> http://java.sun.com/j2se/1.3/docs/api/index.html
>
>
> Struts javadocs are quite verbose:
>
> http://jakarta.apache.org/struts/doc-1.0.2/api/index.html
>
> Click on any of the taglib packages in the top left frame,
> then the package
> name in the bottom left frame, then the "Description" link
> that comes up in
> the right frame.  Gets you descriptions of any tag.  You can
> reach these
> throught the Struts site as well.
>
> peace,
> Joe
>
>
>
> > -Original Message-
> > From: Michael Lee [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, September 12, 2002 10:53 AM
> > To: Struts Users Mailing List
> > Subject: HELP! html:options with a hashmap
> >
> >
> > I posted this before but haven't heard anything. Thought I
> > would put up the error message too. What name do I put for
> > name? The exam

Re: ClassCastException error

2002-09-13 Thread Michael Lee

Need more info.
What app server?
What jdk?
Stack trace?
Offensive code?
Mike

- Original Message -
From: "Jason Reilly" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 13, 2002 12:01 AM
Subject: ClassCastException error


>
> Let's say I have a Vector of objects.  I put that Vector into the
> session in my Action.perform() method.  I then do a generic forward to
> a jsp.  Nothing fancy here But, when I try to access that Vector
> in a jsp, I am getting a ClassCastException on the objects in the
> Vector.  When I do a getClass().getName() on any of the objects in the
> Vector, it returns the exact object that I originally put in the
> Vector.  So I am assuming that it is a ClassLoader issue.  I was told
> to rearrange the jars in my classpath, but that did not resolve
> anything.  Does anyone have any insight into how I might resolve this?
>
> jdr
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




Re: refreshing application properties

2002-09-17 Thread Michael Lee

Just peruse the javadocs for ResourceBundle (and similar classes). You will
see static finals all over the place. It has to be re-class loaded is my
guess. Just redeploy the WAR.
Mike

- Original Message -
From: "Eddie Bush" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 17, 2002 12:07 PM
Subject: Re: refreshing application properties


> That doesn't just go for MessageResources -- it goes for all of your
> entire web-app config.  Once the configuration has been frozen, any
> attempt to modify it will meet with an exception being thrown.
>
> Regards,
>
> Eddie
>
> James Mitchell wrote:
>
> >I could be wrong, but every thing I've seen tell me that you can't do
this
> >with the current MessageResources API.  There is no call for reloading or
> >even modifying values.
> >
> >I've written a DBMessageResources, and working on XMLMessageResources,
there
> >seems to be an cache issue, so (currently) I am not able to modify a
value
> >in the database and see the change on the web page, unless the session
> >expires and the user gets a new one.
> >
> >You'll probably want to roll your own and add it as a plugin.but then
> >this will require changes to your code (undesireable from a component
add-on
> >standpoint).
> >
> >Good luck and let me know if you find anything.
> >
> >
> >
> >James Mitchell
> >Software Engineer\Struts Evangelist
> >Struts-Atlanta, the "Open Minded Developer Network"
> >http://www.open-tools.org/struts-atlanta
> >
>
> --
> Eddie Bush
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




default value for html:select

2002-09-17 Thread Michael Lee

I have one MAIN question. I don't want to have to repost a question. I try searching 
for answers to my questions on the website but it always forwards me to google. Are 
these emails not cached for searching?

Anyway, 2 questions;
1) How do I set a default value in an html:select on an options list? I need the 
default state to be the one loaded from the struts form.


  



2) I do a query. I put the result in  the logic:iterate below. I want to alternate 
colors. I've seen this before but I couldn't do a search because of the aforementioned 
problem. Thanks

  
  
  


.
  

  




Re: default value for html:select

2002-09-17 Thread Michael Lee

Thanks, but what I meant was set the default option chosen in the
html:options to be a value in the current html:form.

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 17, 2002 4:42 PM
Subject: RE: default value for html:select


>
> Answer to #1)
>
> 
> Select a company
>  property="orglevel2id"  labelProperty="orglevel2name"/>
>   
>
> The above sets the "Select a company" as the default.  I think if you
> wanted the default to be set in the collection you would just set it as
> the first entry when you make the collection.  Someone tell me if I am
> wrong on this one...
>
>
> Answer to #2)
> To display alternating colors, a bunch of us like:
> http://edhill.its.uiowa.edu/display/
>
>
>
>
> -Original Message-
> From: mleejr [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 4:29 PM
> To: struts-user
> Subject: default value for html:select
>
>
> I have one MAIN question. I don't want to have to repost a question. I
> try searching for answers to my questions on the website but it always
> forwards me to google. Are these emails not cached for searching?
>
> Anyway, 2 questions;
> 1) How do I set a default value in an html:select on an options list? I
> need the default state to be the one loaded from the struts form.
>
> 
>   
> 
>
>
> 2) I do a query. I put the result in  the logic:iterate below. I want to
> alternate colors. I've seen this before but I couldn't do a search
> because of the aforementioned problem. Thanks
>
>   
>scope="request">
>   
> 
> 
> .
>   
> 
>   
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




  1   2   >