RE: [OT] RE: J2EE certified

2003-08-18 Thread Jones, Marty B.
Why o why must it always be a racist thing.  Can't we all just get along.

-Original Message-
From: message message [mailto:[EMAIL PROTECTED]
Sent: Monday, August 18, 2003 7:52 AM
To: [EMAIL PROTECTED]
Subject: RE: [OT] RE: J2EE certified



Who wants to know about your theory about girls or beer.
I already you know that the majority of you are Racist , low life scum.



>From: "message message" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: RE: [OT] RE: J2EE certified
>Date: Mon, 18 Aug 2003 16:47:47 +0400
>
>Why not filter you out.
>Perhaps because you are white.
>Or perhaps you represent certain interests.
>
>
>
>
>>From: "Mark Galbreath" <[EMAIL PROTECTED]>
>>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>>Subject: RE: [OT] RE: J2EE certified
>>Date: Mon, 18 Aug 2003 08:05:44 -0400
>>
>>Just filter out this message message character; he's been argumentative 
>>and
>>arrogant since he joined a couple of weeks ago.
>>
>>Mark
>>
>>-Original Message-
>>From: Adam Hardy [mailto:[EMAIL PROTECTED]
>>Sent: Saturday, August 16, 2003 6:08 AM
>>To: Struts Users Mailing List
>>Subject: Re: [OT] RE: J2EE certified
>>
>>
>>Before you guys on this thread go really overboard with tit-for-tat
>>arguments, perhaps you should consider whether that type of discussion
>>fits in on a list where people are on first name terms, helpfulness and
>>consideration are the order of the day, and secretiveness is generally
>>considered unnecessary.
>>
>>It's only through such an attitude shared by all the listers here that
>>such a high volume list can remain so productive.
>>
>>All the best,
>>Adam
>>
>>
>>On 08/16/2003 11:47 AM message message wrote:
>> >
>> > I should also inform you that I am writing my own product that
>> > includes marketing. It is none of your business what the product is.
>> >
>> >> From: "message message" <[EMAIL PROTECTED]>
>> >> Reply-To: "Struts Users Mailing List"
>> >> <[EMAIL PROTECTED]>
>> >> To: [EMAIL PROTECTED]
>> >> Subject: Re: [OT] RE: J2EE certified
>> >> Date: Sat, 16 Aug 2003 13:37:43 +0400
>> >>
>> >>
>> >> There is nothing wonky here apart from your postings.
>> >> A discussion is going on about verify applications and the
>> >> consequences.
>> >>
>> >> I hardly consider you to be qualified to express an opinion on my
>> >> posting.
>> >>
>> >> To make comments or express opinions about my postings is a
>> >> qualification you gave yourself
>> >> but I do not recognise it.
>> >>
>> >>
>> >>> From: "Alen Ribic" <[EMAIL PROTECTED]>
>> >>> Reply-To: "Struts Users Mailing List"
>> >>> <[EMAIL PROTECTED]>
>> >>> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>> >>> Subject: Re: [OT] RE: J2EE certified
>> >>> Date: Sat, 16 Aug 2003 08:41:45 +0200
>> >>>
>> >>> Just create a noise box and dump things like this in it. Does the
>> >>> job well. ;)
>> >>>
>> >>> Subjects aint standardised anyway. Some read [OT] other [OFF TOPIC],
>> >>> [???nothing???], etc. I can't really filter this so I just read
>> >>> first 1 or two threads and decide if it's relevant info to the
>> >>> reason I subscribed to
>> >>> this mailinglist. ;)
>> >>>
>> >>> ciao
>> >>>
>> >>> --Alen
>> >>>
>> >>>
>> >>> - Original Message -
>> >>> From: "Micael" <[EMAIL PROTECTED]>
>> >>> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>;
>> >>> <[EMAIL PROTECTED]>
>> >>> Sent: Saturday, August 16, 2003 8:34 AM
>> >>> Subject: [OT] RE: J2EE certified
>> >>>
>> >>>
>> >>> > This discussion has gotten a little wonky.  Let me suggest you add
>> >>> [OT] to
>> >>> > this stuff.
>> >>> >
>> >>> > At 02:09 AM 8/16/2003 +0400, message message wrote:
>> >>> >
>> >>> > >Also if somebody logged on Sun Microsystems' mailing list using
>> >>> tomcat or
>> >>> > >JBOSS,
>> >>> > >I guess he/she would be treated some hostility because he could
>> >>> > >write applications using J2EE without  paying for the J2EE
>> >>> > >compliancy fee.
>> >>> > >
>> >>> > >>From: "message message" <[EMAIL PROTECTED]>
>> >>> > >>Reply-To: "Struts Users Mailing List"
>> >>> <[EMAIL PROTECTED]>
>> >>> > >>To: [EMAIL PROTECTED]
>> >>> > >>Subject: RE: J2EE certified
>> >>> > >>Date: Sat, 16 Aug 2003 00:14:02 +0400
>> >>> > >>
>> >>> > >>
>> >>> > >>There was a dispute by IBM over the specification so IBM's
>> >>> websphere 3.5
>> >>> > >>wasn't j2ee compliant ?
>> >>> > >>
>> >>> > >>>From: "Brian Lee" <[EMAIL PROTECTED]>
>> >>> > >>>Reply-To: "Struts Users Mailing List"
>> >>> <[EMAIL PROTECTED]>
>> >>> > >>>To: [EMAIL PROTECTED]
>> >>> > >>>Subject: RE: J2EE certified
>> >>> > >>>Date: Fri, 15 Aug 2003 13:32:47 -0400
>> >>> > >>>
>> >>> > >>>The main advantage is marketing. Since only a few apps are
>> >>> verified,
>> >>> you
>> >>> > >>>can tell your clients "My product is j2ee verified by sun, but
>> >>> company
>> >>> x
>> >>> > >>>is not. Who knows what it will do?"
>> >>> > >>>
>> >>> > >>>Not much 

RE: Iterate Tag Question

2003-08-15 Thread Jones, Marty B.
Matt,

Yes it does.  I was hoping to get rid of scriplets if possible.  I cannot
use JSTL yet because our jsp container does not support the jsp 1.2 spec.
(Jrun 3.1).  We are going to migrate to Jrun 4 soon which supports the jsp
1.2 spec so I will be able to use JSTL then.  Guess I will have to use
scriplets until
then.

Thanks,

Marty

-Original Message-
From: Sgarlata Matt [mailto:[EMAIL PROTECTED]
Sent: Friday, August 15, 2003 11:02 AM
To: Struts Users Mailing List
Subject: Re: Iterate Tag Question


You can implement this just as you would in any other programming 
environment: by saving the previous and the current value in different 
variables.  You can do this using scriptlets, as I see you doing here. 
You can also do this using the JSTL (for more info, see the Jakarta 
Taglibs project), which you may find a little easier to work with once 
you get the hang of it.

Does that answer your question?

Matt

Jones, Marty B. wrote:

> Does anyone have any suggestions on how I can compare the previous
object's
> parameters to determine when my object's category has changed?
> 
> -Original Message-
> From: Jones, Marty B. 
> Sent: Friday, August 15, 2003 7:07 AM
> To: [EMAIL PROTECTED]
> Subject: Iterate Tag Question
> 
> 
> I am using an iterate tag to iterate over a List of items that have a
given
> category.  I need to be able to determine when a given category has
changed
> when iterating and push out a header row in a table that I am generating.
> Is there a way that I can look back a row or save the category from the
> previous row so that I can compare it with the current row to determine
> whether or not a category break has occurred.   Here is a snippet of my
> code:
> 
> 
> <%
> String previousCategory = "";
> %>
> 
>  frame="hsides">
>   
>   Filename
>   Description
>   
>indexId="index">
>value="<%=previousCategory%>">
>   
>class="groupBreak"> property="categoryDesc"/> property="categoryName"/>">  
>   
>   
>   
>src="/images/common/spacer.gif" width="15" height="10">
>href="documentsandfiles?fileId= property="fileId"/>"> property="fileName"/>
>   
>   
>property="description"/>
>   
>   
>   <% previousCategory =
> ((DbFileInfo)currElement).getCategoryName();  %>  
>   
>   
> 
> 
> The way that I am attempting it from above is not working, the notEqual
tag
> is not seeing that the strings are equal.  I would like to be able to get
> all the scriplets out of the jsp if possible.
> 
> Any suggestions would be appreciated.
> 
> Marty B. Jones
> Senior Software Engineer
> DailyAccess.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]
> 


-
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]



RE: Iterate Tag Question

2003-08-15 Thread Jones, Marty B.
Does anyone have any suggestions on how I can compare the previous object's
parameters to determine when my object's category has changed?

-Original Message-----
From: Jones, Marty B. 
Sent: Friday, August 15, 2003 7:07 AM
To: [EMAIL PROTECTED]
Subject: Iterate Tag Question


I am using an iterate tag to iterate over a List of items that have a given
category.  I need to be able to determine when a given category has changed
when iterating and push out a header row in a table that I am generating.
Is there a way that I can look back a row or save the category from the
previous row so that I can compare it with the current row to determine
whether or not a category break has occurred.   Here is a snippet of my
code:


<%
String previousCategory = "";
%>



Filename
Description




">




">





<% previousCategory =
((DbFileInfo)currElement).getCategoryName();%>  




The way that I am attempting it from above is not working, the notEqual tag
is not seeing that the strings are equal.  I would like to be able to get
all the scriplets out of the jsp if possible.

Any suggestions would be appreciated.

Marty B. Jones
Senior Software Engineer
DailyAccess.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]



Iterate Tag Question

2003-08-15 Thread Jones, Marty B.
I am using an iterate tag to iterate over a List of items that have a given
category.  I need to be able to determine when a given category has changed
when iterating and push out a header row in a table that I am generating.
Is there a way that I can look back a row or save the category from the
previous row so that I can compare it with the current row to determine
whether or not a category break has occurred.   Here is a snippet of my
code:


<%
String previousCategory = "";
%>



Filename
Description




">




">





<% previousCategory =
((DbFileInfo)currElement).getCategoryName();%>  




The way that I am attempting it from above is not working, the notEqual tag
is not seeing that the strings are equal.  I would like to be able to get
all the scriplets out of the jsp if possible.

Any suggestions would be appreciated.

Marty B. Jones
Senior Software Engineer
DailyAccess.Com


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



Html tag question

2003-08-14 Thread Jones, Marty B.
I have an array of Project objects that are stored within a ActionForm class
(say ShowFileDiffsForm).

I have a getter and setter on the ShowFileDiffsForm:
Project[] getProjects()
void setProjects(Project[] projects)

The Project object itself has the attributes:
int id;
String name

My question is how can I build a logic:iterate tag to iterate over the array
of project objects.?

Here is what I have so far


   []


The one thing that I don't know how to do is to write the name and the
project id out for each iteration.  ]

Can anyone shed any light on this?



Marty B. Jones
Senior Software Engineer
DailyAccess.Com


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



RE: bean tag question

2003-08-14 Thread Jones, Marty B.
Good Idea Paul.  That sounds like the best and simpliest solution.

-Original Message-
From: Paul McCulloch [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 10:28 AM
To: 'Struts Users Mailing List'
Subject: RE: bean tag question


Can't you define a new class which wraps the project and provides getters
for the properties you are interested in?

Paul

-Original Message-----
From: Jones, Marty B. [mailto:[EMAIL PROTECTED]
Sent: 05 August 2003 14:41
To: [EMAIL PROTECTED]
Subject: bean tag question


Does anyone know if the bean tag will allow you to pull a value from a class
that does not have getter or setter methods on the instance attributes?
Here is the scenerio that I have.

I have a ActionForm that has an array of Project objects.  The actionForm
has a getter and setter for the array of Project Objects.  The project
object itself is nothing more than a structure that has id and name
attributes. There are no methods within the Project object itself.  What I
need to do is iterate through the array of Project objects and pull the id
and name from each project.  I can iterate through the array of Projects
fine but when I attempt to get the id and name attribute from the Project it
fails stating that there is no get method for them.  

Does anyone know of a work around for this?  I can't modify the Project
object because it is automatically generated Stub class that is generated
from an application server and it would be overwritten the next time I
generate stubs for this component.

Any help would be greatly appreciated.


Marty B. Jones
Senior Software Engineer
DailyAccess.Com


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


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you
are not the addressee indicated in this message (or responsible for delivery
of the message to such person), you may not copy or deliver this message to
anyone. In such case, you should destroy this message, and notify us
immediately. If you or your employer does not consent to Internet email
messages of this kind, please advise us immediately. Opinions, conclusions
and other information expressed in this message are not given or endorsed by
my Company or employer unless otherwise indicated by an authorised
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being
transmitted via electronic mail attachments we cannot guarantee that
attachments do not contain computer virus code.  You are therefore strongly
advised to undertake anti virus checks prior to accessing the attachment to
this electronic mail.  Axios Systems Ltd grants no warranties regarding
performance use or quality of any attachment and undertakes no liability for
loss or damage howsoever caused.


-
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]



RE: Html tag question

2003-08-14 Thread Jones, Marty B.
nagi,
 
thanks for the input.  I tried what you suggested and I get the following
error:
 
 
No getter method for property name of bean element' 
 

-Original Message-
From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 7:21 AM
To: [EMAIL PROTECTED]
Subject: Re: Html tag question





 []


-- nagi
 
---Original Message---
 
From: Struts Users Mailing   List
Date: Tuesday, August 05, 2003 05:34:45 PM
To: [EMAIL PROTECTED]  
Subject: Html tag question
 
I have an array of Project objects that are stored within a ActionForm class
(say ShowFileDiffsForm).

I have a getter and setter on the ShowFileDiffsForm:
Project[] getProjects()
void setProjects(Project[] projects)

The Project object itself has the attributes:
int id;
String name

My question is how can I build a logic:iterate tag to iterate over the array
of project objects.?

Here is what I have so far


 []


The one thing that I don't know how to do is to write the name and the
project id out for each iteration. ]

Can anyone shed any light on this?



Marty B. Jones
Senior Software Engineer
DailyAccess.Com


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


.



    IncrediMail -
Email has finally evolved -
 Click Here 



RE: Sessions and ActionForm

2003-08-14 Thread Jones, Marty B.
See answers below:

-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 8:58 AM
To: 'Struts Users Mailing List'
Subject: Sessions and ActionForm


I have a registration wizard where I have a RegForm bean on the session
scope. Now if on the second page I decide to quite and I close the
browser (MS IE), and I open a new IE browser, and I go to registration,
the same form is there containing all the information that I entered in
the previous session. 

1) Doesn't a session ends (invalidates) once I close the browser?
No, The session will stay valid until the webcontainer invalidates
it or you programatically invalidate it.  Most webcontainers have a default
timeout
  value.
2) What is the best way to handle such situation of needing the
registration form always empty? The only thing that comes to my mind is
on the RegAction?method=init remove the RegForm from the session and
recreate a new one instead, or just call reset on the one that is there
on the session context. Will that work?

I think that your action will know when you are coming into the
registration view for the first time so you can reset your actionform or
re-create one.

Thanks,
Erze 



-
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]



RE: Location of JSPs for TILES

2003-08-08 Thread Jones, Marty B.
I am not sure about Tomcat.  I just know that most jsp containers compile
the source jsp files to servlets within the /WEB-INF/jsp folder so it
probably isnt the best place to put your source files.

-Original Message-
From: Cameron Hickey [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 11:37 AM
To: 'Struts Users Mailing List'
Subject: RE: Location of JSPs for TILES


Thanks for the response Marty,

I am using Tomcat 4.1.24, and have no problem generally putting these
files into the /jsp folder, its only when I put them into the /jsp/prop
folder that there are problems.

Where can I find out what the rules are for folders to hold JSPs for
either struts, or tiles?  Does Tomcat implement this reserved folder
concept for WEB-INF/jsp ?

Thanks
 
Cameron


-Original Message-----
From: Jones, Marty B. [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2003 7:25 PM
To: Struts Users Mailing List
Subject: RE: Location of JSPs for TILES

I think that the /jsp folder that you are specifying is a reserved
folder
for some jsp containers.  We use /WEB-INF/pages/...

Hope this helps.

-Original Message-
From: Cameron Hickey [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 11:23 AM
To: [EMAIL PROTECTED]
Subject: Location of JSPs for TILES


I am having some problems getting TILES to work properly when I put my
JSPs into folders.  The error I get is:

Unable to compile class for JSP An error occurred at line: -1 in the jsp
file: null

Which I assume means that it cannot find the JSP file I have specified
in my tiles-defs.xml.  

If I have my files here:

/WEB-INF/jsp/proptypelist.jsp

and this in the tiles-defs.xml

  


  

Then everything works fine.

BUT, if I put the same file a level deeper:

/WEB-INF/jsp/prop/proptypelist.jsp

with def:






then I get the error.

Any idea why this would be happening?

Are there limits to how deep or where the templates should be located
for use with TILES?  Is there a way to configure this?

Thanks for any assistance

Cameron Hickey


-
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]


-
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]



RE: Location of JSPs for TILES

2003-08-06 Thread Jones, Marty B.
I think that the /jsp folder that you are specifying is a reserved folder
for some jsp containers.  We use /WEB-INF/pages/...

Hope this helps.

-Original Message-
From: Cameron Hickey [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 11:23 AM
To: [EMAIL PROTECTED]
Subject: Location of JSPs for TILES


I am having some problems getting TILES to work properly when I put my
JSPs into folders.  The error I get is:

Unable to compile class for JSP An error occurred at line: -1 in the jsp
file: null

Which I assume means that it cannot find the JSP file I have specified
in my tiles-defs.xml.  

If I have my files here:

/WEB-INF/jsp/proptypelist.jsp

and this in the tiles-defs.xml

  


  

Then everything works fine.

BUT, if I put the same file a level deeper:

/WEB-INF/jsp/prop/proptypelist.jsp

with def:






then I get the error.

Any idea why this would be happening?

Are there limits to how deep or where the templates should be located
for use with TILES?  Is there a way to configure this?

Thanks for any assistance

Cameron Hickey


-
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]



bean tag question

2003-08-06 Thread Jones, Marty B.
Does anyone know if the bean tag will allow you to pull a value from a class
that does not have getter or setter methods on the instance attributes?
Here is the scenerio that I have.

I have a ActionForm that has an array of Project objects.  The actionForm
has a getter and setter for the array of Project Objects.  The project
object itself is nothing more than a structure that has id and name
attributes. There are no methods within the Project object itself.  What I
need to do is iterate through the array of Project objects and pull the id
and name from each project.  I can iterate through the array of Projects
fine but when I attempt to get the id and name attribute from the Project it
fails stating that there is no get method for them.  

Does anyone know of a work around for this?  I can't modify the Project
object because it is automatically generated Stub class that is generated
from an application server and it would be overwritten the next time I
generate stubs for this component.

Any help would be greatly appreciated.


Marty B. Jones
Senior Software Engineer
DailyAccess.Com


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



RE: Html tag question

2003-08-05 Thread Jones, Marty B.
Sorry about the mislabeled subject line.  It should have been "logic tag
question" :)

-Original Message-----
From: Jones, Marty B. 
Sent: Tuesday, August 05, 2003 7:04 AM
To: [EMAIL PROTECTED]
Subject: Html tag question


I have an array of Project objects that are stored within a ActionForm class
(say ShowFileDiffsForm).

I have a getter and setter on the ShowFileDiffsForm:
Project[] getProjects()
void setProjects(Project[] projects)

The Project object itself has the attributes:
int id;
String name

My question is how can I build a logic:iterate tag to iterate over the array
of project objects.?

Here is what I have so far


   []


The one thing that I don't know how to do is to write the name and the
project id out for each iteration.  ]

Can anyone shed any light on this?



Marty B. Jones
Senior Software Engineer
DailyAccess.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]



RE: Best place to hook the Security Call

2003-08-04 Thread Jones, Marty B.
This is what I mentioned earlier.  We needed more security flexability that
what the normal servlet container supports so we had to write our own
security handler.  The struts framework has a method hook in the
RequestProcessor class that will allow you to verify the users access rights
for each request.  The method is processPreprocess. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2003 7:34 AM
To: Struts Users Mailing List
Subject: Re: Best place to hook the Security Call



I agree with Alen, but at the same time if all the containers are
supporting J2EE security standards then porting to different containers
should not be an issue. SecurityFilter as I just browsed through seems
interesting but all the latest J2EE containers will have to support Servlet
2.3 for using the same. Alternatively whatif I write my own security piece
by looking up LDAP for A&A (authentication and authorization) and this
piece would be called from some place in the STRUTS control flow so that
for everyrequest security would be validated.

Thanks
Sreekant G.
TCS AMBATTUR


 

  "Alen Ribic"

  <[EMAIL PROTECTED]To:   "Struts Users
Mailing List"
  >
<[EMAIL PROTECTED]>
   cc:

  08/04/2003 04:25 Subject:  Re: Best place to
hook the Security Call   
  PM

  Please respond to

  "Struts Users

  Mailing List"

 

 





If I'm not mistaken, this approach is container specific hence would make
deployment on difference container(s) not as smooth as one would wish.
I may be wrong so please correct me! I'm not very clued up in this area. ;)

I have privilege working with servlet 2.3 and am now using SecurityFilter
component (www.securityfilter.org)  to handle my auth. Very simple!

--Alen


>Best place would be using container J2EE security, such as JDBC realms.

>[EMAIL PROTECTED] wrote:
> Which is the best place to hook the security call for an application in
the
> STRUTS framework so that for every request security check is made. Does
> STRUTS provide integration with any Security framework ?
>
> thanks in advance.
> Sreekant G.
>
>
>
>
> 
>
> This mail was scanned by Interscan Virus Wall of Mailserver at Cathedral
Road TCS Chennai
>
>
>
> 
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

--
Vic Cekvenich,
Struts Instructor,
1-800-917-JAVA

Advanced Struts Training, mentoring and
project recovery in North East.
Open Source Portal Content Management
basicPortal  software.



-
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]







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



RE: Best place to hook the Security Call

2003-08-04 Thread Jones, Marty B.
>From what I can tell, if you have already authenticated a user, and now you
want to ensure that the user's roles and grants allow them to see the given
url that was requested, I would place it in the RequestProcessor by
overloading the processPreprocess method.  This method gives you the
opportunity to ensure that the user has access before the execute method is
called on the action.  Of course this method is called on every request.

Just my .02

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2003 4:42 AM
To: [EMAIL PROTECTED]
Subject: Best place to hook the Security Call


Which is the best place to hook the security call for an application in the
STRUTS framework so that for every request security check is made. Does
STRUTS provide integration with any Security framework ?

thanks in advance.
Sreekant G.



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



RE: Html Form Tag Question

2003-08-01 Thread Jones, Marty B.
Chuck,

Sure enough, that was it.  The action attribute is now being set as it
should.

Thanks for all your help.

-Original Message-
From: Canning, Chuck [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 10:49 AM
To: 'Struts Users Mailing List'
Subject: RE: Html Form Tag Question


Hey,

I had the same syptoms and the problem was an incorrect  in
my web.xml. We had /*.do instead of *.do. because of that, the
RequestUtils.getActionMappingURL() would not parse the action correctly. YOu
might want to start looking there.

Chuck

-Original Message-
From: Michael Ruppin [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 10:40 AM
To: Struts Users Mailing List
Subject: Re: Html Form Tag Question


I don't know if it was resolved, but this thread
should be of interest to you:

http://marc.theaimsgroup.com/?l=struts-user&m=105943092932593&w=2

HTH

m

--- "Jones, Marty B." <[EMAIL PROTECTED]>
wrote:
> I have the following tag declaration in a jsp file:
> 
>  focus="username" method="POST"
> type="com.dailyaccess.actions.LoginBean">
> 
> The jsp compiles correct and views correctly.  The
> issue that I am having is
> that the action attribute in the html form that is
> created is an empty
> string!  It is as if the FormTag class is not
> setting the action string.
> 
> Any help would be greatly appreciated.
> 
> 
> Marty B. Jones
> Senior Software Engineer
> DailyAccess.Com
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.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]

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



RE: Html Form Tag Question

2003-08-01 Thread Jones, Marty B.
Thanks Michael.

-Original Message-
From: Michael Ruppin [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 10:40 AM
To: Struts Users Mailing List
Subject: Re: Html Form Tag Question


I don't know if it was resolved, but this thread
should be of interest to you:

http://marc.theaimsgroup.com/?l=struts-user&m=105943092932593&w=2

HTH

m

--- "Jones, Marty B." <[EMAIL PROTECTED]>
wrote:
> I have the following tag declaration in a jsp file:
> 
>  focus="username" method="POST"
> type="com.dailyaccess.actions.LoginBean">
> 
> The jsp compiles correct and views correctly.  The
> issue that I am having is
> that the action attribute in the html form that is
> created is an empty
> string!  It is as if the FormTag class is not
> setting the action string.
> 
> Any help would be greatly appreciated.
> 
> 
> Marty B. Jones
> Senior Software Engineer
> DailyAccess.Com
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.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]



RE: Html Form Tag Question

2003-08-01 Thread Jones, Marty B.
Thanks for the info.  I will take a look.

-Original Message-
From: Canning, Chuck [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 10:49 AM
To: 'Struts Users Mailing List'
Subject: RE: Html Form Tag Question


Hey,

I had the same syptoms and the problem was an incorrect  in
my web.xml. We had /*.do instead of *.do. because of that, the
RequestUtils.getActionMappingURL() would not parse the action correctly. YOu
might want to start looking there.

Chuck

-Original Message-
From: Michael Ruppin [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 10:40 AM
To: Struts Users Mailing List
Subject: Re: Html Form Tag Question


I don't know if it was resolved, but this thread
should be of interest to you:

http://marc.theaimsgroup.com/?l=struts-user&m=105943092932593&w=2

HTH

m

--- "Jones, Marty B." <[EMAIL PROTECTED]>
wrote:
> I have the following tag declaration in a jsp file:
> 
>  focus="username" method="POST"
> type="com.dailyaccess.actions.LoginBean">
> 
> The jsp compiles correct and views correctly.  The
> issue that I am having is
> that the action attribute in the html form that is
> created is an empty
> string!  It is as if the FormTag class is not
> setting the action string.
> 
> Any help would be greatly appreciated.
> 
> 
> Marty B. Jones
> Senior Software Engineer
> DailyAccess.Com
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.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]

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



Html Form Tag Question

2003-08-01 Thread Jones, Marty B.
I have the following tag declaration in a jsp file:



The jsp compiles correct and views correctly.  The issue that I am having is
that the action attribute in the html form that is created is an empty
string!  It is as if the FormTag class is not setting the action string.

Any help would be greatly appreciated.


Marty B. Jones
Senior Software Engineer
DailyAccess.Com


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



DynaValidatorBean Error Question

2003-08-01 Thread Jones, Marty B.
I am getting the following error when I try to set the name and type
attribute of the  tag.  I have included a snippet of my login.jsp
file and my struts-config.xml file

The main reason I am trying to set them is because if I don't set them and
let the form tag configure itself with the appropriate bean, the action
attribute on the form is empty
(action="")  .  If someone can explain why the action attribute is not being
set then I will not worry about having to try to set the name and type
attributes of the form tag.


Any help with be greatly appreciated.

Marty Jones







Error I received.




java.lang.NullPointerException
at
org.apache.commons.beanutils.PropertyUtils.getSimpleProperty(PropertyUtils.j
ava:1162)
at
org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.j
ava:772)
at
org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:80
1)
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:952)
at
org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:176)
at
jrun__WEB2dINF__pages__login2ejsp18._jspService(jrun__WEB2dINF__pages__login
2ejsp18.java:111)
at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
at jrun.jsp.JSPServlet.service(JSPServlet.java:119)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invokeNext(JRunRequestDispatcher.java:439
)
at
jrun.servlet.JRunRequestDispatcher.forwardInvoke(JRunRequestDispatcher.java:
409)
at
jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:178)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
69)
at
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcesso
r.java:274)
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces
sor.java:455)
at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequ
estProcessor.java:320)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:252)
at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451
)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)





snippet of login.jsp






StarTeam
Integration

  

  :


  

  

  

  :


  

  

  




  









struts-config.xml





http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>







  
  



  
  


  


  
  


  


  
  



  



  
  
  


  


  

  
  
 
  


  

  

  
  


  
  
  

  
  
  




  






Marty B. Jones
Senior Software Engineer
DailyAccess.Com


---

RE: DynaValidatorForm question

2003-08-01 Thread Jones, Marty B.
That is what I figured.

Thanks for your help.

-Original Message-
From: Alex Shneyderman [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 8:01 AM
To: 'Struts Users Mailing List'
Subject: RE: DynaValidatorForm question


I think the easiest way is to actually set validate to false on your
action and do it manually first thing in your execute:

// check for null values if there are just display the page otherwise

ActionErrors errors = yourForm.validate (...);
If (!errors.isEmpty ()) { return input mapping }

// everything is ok




> -Original Message-
> From: Jones, Marty B. [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 01, 2003 8:55 AM
> To: Struts Users Mailing List
> Subject: RE: DynaValidatorForm question
> 
> I currently have that setting that you mentioned.  That is exactly the
> problem that I am seeing.  If a user goes directly to the /login url.
The
> LoginAction is being instatiated and the validator trys to validate
> parameters that the user never had a chance to enter.
> 
> -Original Message-
> From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 01, 2003 7:46 AM
> To: 'Struts Users Mailing List'
> Subject: RE: DynaValidatorForm question
> 
> 
> My gut reaction would be to use a depends=required on both fields.
This
> should give you the behavior you desire.
> 
> -Original Message-
> From: Jones, Marty B. [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 31, 2003 5:37 PM
> To: [EMAIL PROTECTED]
> Subject: DynaValidatorForm question
> 
> I have a class that extends Action (LoginAction) and references a
> DynaValidatorForm for form validation. I have noticed that if I
directly
> reference a url say http://myserver/control/login that it instantiates
the
> LoginAction as it should.  My question is, what is the best way to not
> allow
> the Action class to be fired if no request arguments are on the
request so
> that the login.jsp file will paint to allow the user to enter usename
and
> password information in.  I am pretty sure that I could use a normal
> ActionForm and in the validation method check to see if the username
and
> password values are both null.  If they are then return a mapping to
go
> back
> to the login screen.  Is there a way to do this with the
> DynaValidatorForm?
> 
> Thanks in advance,
> 
> Marty Jones
> 
> 
> Marty B. Jones
> Senior Software Engineer
> DailyAccess.Com
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> This message and its contents (to include attachments) are the
property of
> Kmart Corporation (Kmart) and may contain confidential and proprietary
> information. You are hereby notified that any disclosure, copying, or
> distribution of this message, or the taking of any action based on
> information contained herein is strictly prohibited. Unauthorized use
of
> information contained herein may subject you to civil and criminal
> prosecution and penalties. If you are not the intended recipient, you
> should
> delete this message immediately.
> 
> 
> 
> 
> -
> 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]



-
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]



RE: DynaValidatorForm question

2003-08-01 Thread Jones, Marty B.
I currently have that setting that you mentioned.  That is exactly the
problem that I am seeing.  If a user goes directly to the /login url.  The
LoginAction is being instatiated and the validator trys to validate
parameters that the user never had a chance to enter.

-Original Message-
From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 7:46 AM
To: 'Struts Users Mailing List'
Subject: RE: DynaValidatorForm question


My gut reaction would be to use a depends=required on both fields.  This
should give you the behavior you desire.  

-Original Message-----
From: Jones, Marty B. [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 5:37 PM
To: [EMAIL PROTECTED]
Subject: DynaValidatorForm question

I have a class that extends Action (LoginAction) and references a
DynaValidatorForm for form validation. I have noticed that if I directly
reference a url say http://myserver/control/login that it instantiates the
LoginAction as it should.  My question is, what is the best way to not allow
the Action class to be fired if no request arguments are on the request so
that the login.jsp file will paint to allow the user to enter usename and
password information in.  I am pretty sure that I could use a normal
ActionForm and in the validation method check to see if the username and
password values are both null.  If they are then return a mapping to go back
to the login screen.  Is there a way to do this with the DynaValidatorForm?

Thanks in advance,

Marty Jones

________
Marty B. Jones
Senior Software Engineer
DailyAccess.Com


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


This message and its contents (to include attachments) are the property of
Kmart Corporation (Kmart) and may contain confidential and proprietary
information. You are hereby notified that any disclosure, copying, or
distribution of this message, or the taking of any action based on
information contained herein is strictly prohibited. Unauthorized use of
information contained herein may subject you to civil and criminal
prosecution and penalties. If you are not the intended recipient, you should
delete this message immediately.




-
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]



RE: DynaValidatorForm question

2003-08-01 Thread Jones, Marty B.
I think that I may be missing something here.  When using struts, how do you
load say a html form (using a jsp file) to the user initially without having
the Action class actually being processed and then being forwarded to the
view?  I defintely want to use the Validator class but I only want it to
validate when the user has actually submitted a form with request parameters
to that given action.

Marty

-Original Message-
From: Jones, Marty B. 
Sent: Friday, August 01, 2003 6:09 AM
To: Struts Users Mailing List
Subject: RE: DynaValidatorForm question


Will this still validate the request parameters when there are actually
request parameters present?

-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 6:04 PM
To: 'Struts Users Mailing List'
Subject: RE: DynaValidatorForm question


Set validate attribute in  to false will solve your problem.

-Original Message-----
From: Jones, Marty B. [mailto:[EMAIL PROTECTED] 
Sent: July 31, 2003 3:37 PM
To: [EMAIL PROTECTED]
Subject: DynaValidatorForm question


I have a class that extends Action (LoginAction) and references a
DynaValidatorForm for form validation. I have noticed that if I directly
reference a url say http://myserver/control/login that it instantiates the
LoginAction as it should.  My question is, what is the best way to not allow
the Action class to be fired if no request arguments are on the request so
that the login.jsp file will paint to allow the user to enter usename and
password information in.  I am pretty sure that I could use a normal
ActionForm and in the validation method check to see if the username and
password values are both null.  If they are then return a mapping to go back
to the login screen.  Is there a way to do this with the DynaValidatorForm?

Thanks in advance,

Marty Jones

________
Marty B. Jones
Senior Software Engineer
DailyAccess.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]

-
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]



RE: Strange Problem saving and retrieving file

2003-08-01 Thread Jones, Marty B.
Are you using a input stream to load the file in the database?  If so make
sure that you flush the stream and close it.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 4:59 AM
To: [EMAIL PROTECTED]
Subject: Strange Problem saving and retrieving file



In my struts application I save a text file in an oracle database.
Whenever I retrieve the file from the database, it is always 8kb smaller.
Has any one of you ever experienced this problem?

Sam

-
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]



RE: DynaValidatorForm question

2003-08-01 Thread Jones, Marty B.
Will this still validate the request parameters when there are actually
request parameters present?

-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 6:04 PM
To: 'Struts Users Mailing List'
Subject: RE: DynaValidatorForm question


Set validate attribute in  to false will solve your problem.

-Original Message-----
From: Jones, Marty B. [mailto:[EMAIL PROTECTED] 
Sent: July 31, 2003 3:37 PM
To: [EMAIL PROTECTED]
Subject: DynaValidatorForm question


I have a class that extends Action (LoginAction) and references a
DynaValidatorForm for form validation. I have noticed that if I directly
reference a url say http://myserver/control/login that it instantiates the
LoginAction as it should.  My question is, what is the best way to not allow
the Action class to be fired if no request arguments are on the request so
that the login.jsp file will paint to allow the user to enter usename and
password information in.  I am pretty sure that I could use a normal
ActionForm and in the validation method check to see if the username and
password values are both null.  If they are then return a mapping to go back
to the login screen.  Is there a way to do this with the DynaValidatorForm?

Thanks in advance,

Marty Jones

________
Marty B. Jones
Senior Software Engineer
DailyAccess.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]

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



DynaValidatorForm question

2003-07-31 Thread Jones, Marty B.
I have a class that extends Action (LoginAction) and references a
DynaValidatorForm for form validation. I have noticed that if I directly
reference a url say http://myserver/control/login that it instantiates the
LoginAction as it should.  My question is, what is the best way to not allow
the Action class to be fired if no request arguments are on the request so
that the login.jsp file will paint to allow the user to enter usename and
password information in.  I am pretty sure that I could use a normal
ActionForm and in the validation method check to see if the username and
password values are both null.  If they are then return a mapping to go back
to the login screen.  Is there a way to do this with the DynaValidatorForm?

Thanks in advance,

Marty Jones


Marty B. Jones
Senior Software Engineer
DailyAccess.Com


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