RE: Tomcat error with compiling JSPs

2004-01-15 Thread Kevin A. Palfreyman
This is a known problem in some versions of Tomcat, due to a known
problem in some versions of ANT, due to a known problem with
command-line length on windows.

It relates to the path length that is used by ANT when compiling your
JSP.

If the path is longer than the max, then the initial '' is there but
the final one is chopped. So if you have spaces in the path it will fail
as you say.  We hit this bug too.

My guess is you are using 4.1.24? (maybe 21/27 too, but it broke in 24
for me).  Try 4.1.29 - that seems better (embeds a newer version of
ANT), although I think theoretically its not entirely fixed. (I think
they put quotes around each element, but that could still mean the path
is chopped.  Not sure on this though.)

Your other apps worked because the their paths (e.g. package names) are
shorter, or they depend on fewer 3rd party JARs.


Hope this helps.

Kev
 

 -Original Message-
 From: Claire Wall [mailto:[EMAIL PROTECTED] 
 Sent: 15 January 2004 12:53
 To: Struts Users Mailing List
 Subject: Re: Tomcat error with compiling JSPs
 
 i see what you're saying, but I've got about 6 applications 
 running on Tomcat on this server and they all work fine with 
 no problems. This is the first time that this has occured so 
 I'd really like to understand what could be causing this to 
 happen. I'm assuming that it can't be anything coded into my 
 servlets/classes as these are already complied and shouldn't 
 be compiled by Tomcat when it's run, should they? I am using 
 the getRealPath() method in my servlets but this is also true 
 of my other applications. i cannot change the path of Tomcat 
 because this application may well need to be installed on a 
 server where we can't dictate the install path of Tomcat so 
 this is not a solution.
 
 
 
 - Original Message -
 From: McCormack, Chris [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, January 15, 2004 12:11 PM
 Subject: RE: Tomcat error with compiling JSPs
 
 
 [javac] javac: invalid flag: C:\Program
 [javac] Usage: javac
 --
 
 Try putting your tomcat install to c:\tomcat
 
 -Original Message-
 From: Claire Wall [mailto:
 Sent: 15 January 2004 12:07
 To: Struts Users Mailing List
 Subject: Tomcat error with compiling JSPs
 
 
 hi,
 
 I am trying to install my application on another server 
 (Tomcat 4.1). I have built a WAR file from an ANT build file 
 but when I install it on Tomcat and try to access it I get 
 the following error:
 
 
 HTTP Status 500 -
 
 --
 --
 
 
 type Exception report
 
 message
 
 description The server encountered an internal error () that 
 prevented it from fulfilling this request.
 
 exception
 
 org.apache.jasper.JasperException: Unable to compile class for JSP
 
 An error occurred at line: -1 in the jsp file: null
 
 Generated servlet error:
 [javac] Since fork is true, ignoring compiler setting.
 [javac] Compiling 1 source file
 [javac] Since fork is true, ignoring compiler setting.
 [javac] javac: invalid flag: C:\Program
 [javac] Usage: javac
 [javac] where possible options include:
 [javac]   -gGenerate all debugging info
 [javac]   -g:none   Generate no debugging info
 [javac]   -g:{lines,vars,source}Generate only some 
 debugging info
 [javac]   -nowarn   Generate no warnings
 [javac]   -verbose  Output messages about what the
 compiler is doing
 [javac]   -deprecation  Output source locations where
 deprecated APIs are used
 [javac]   -classpath  Specify where to find user 
 class files
 [javac]   -sourcepath Specify where to find input 
 source files
 [javac]   -bootclasspath  Override location of 
 bootstrap class files
 [javac]   -extdirsOverride location of 
 installed extensions
 [javac]   -d Specify where to place generated 
 class files
 [javac]   -encoding   Specify character encoding used 
 by source
 files
 [javac]   -source  Provide source compatibility 
 with specified
 release
 [javac]   -target  Generate class files for 
 specific VM version
 [javac]   -help Print a synopsis of 
 standard options
 
 
 
 
  at
 org.apache.jasper.compiler.DefaultErrorHandler.javacError(Defa
 ultErrorHandle
 r.java:130)
  at
 org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDis
 patcher.java:2
 93)
  at 
 org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
  at
 org.apache.jasper.JspCompilationContext.compile(JspCompilation
 Context.java:4
 73)
  at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
 Wrapper.java:1
 90)
  at 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
 .java:295)
  at 

Problem with Struts 1.1, Tomcat 4.1, SingleSignOn

2003-12-01 Thread Kevin A. Palfreyman
I have a problem using SingleSignOn with a Struts 1.1 app in Tomcat 4.1
(tried 24  29).

I have Tomcat set up with the SingleSignOn valve, and a number of web
apps (5) all using FORM based authentication.  The single sign-on seems
to be working fine for 4 out of the 5, but I have a problem with the
sessions in the 5th app.

The problem is that although at first glance the SSO appears to work, in
reality this single app is creating a separate new session for the user
on top of the one they already have.  This causes a problem upon logout,
because the common session is invalidated, but the one that is specific
to the struts app remains valid.  This means that if the user then
navigates directly to the struts application they are still logged in.
This is a Bad Thing.

In an attempt to trace this issue, I set up an HttpSessionListener in
the offending application and dumped the stack in the sessionCreated()
method.  It appears that a new session is created during processing of
the struts RequestProcessor.processLocale() method.  The JavaDoc warns
that this may happen if a session does not exist, but in my case a valid
session must already exist since I have used SSO to login in a different
app (and watched a session being created there using another listener)!

I'm confused.  Why does this one single application not see the existing
session?
Have I missed some silly config?  Is it a bug?

Thanks in advance,

Kev

---
Kev Palfreyman  
Cambridge, UK



Problem converting from Struts tags to JSTL

2003-08-27 Thread Kevin A. Palfreyman
Hello,

I'm trying to convert some pages from Struts tags to JSTL for the next 
iteration of our product and I've hit a problem.
[Struts 1.1, Tomcat 4.1.24, Java 1.4.2, JSTL 1.0.3]

I need to be able to dynamically access nested fields of my form object.

The Form object (instanceForm) contains a DynaBean (dynamic) as one 
of its fields.  The fields of the DynaBean are what I'm trying to
access.
The name of the particular field within the DynaBean is stored in a 
local variable (fieldName) that is been populated in a loop.

The following Struts tag works fine:

bean:write name=instanceForm property='%= dynamic.+fieldName %'/

I'm new to JSTL, and I've tried various forms similar to those below 
without success.  Is what I'm trying to do possible?

c:out value='%= ${instanceForm.dynamic.+fieldName %}' /
c:out value=${instanceForm.dynamic.%=fieldName%} /
c:out value=${instanceForm.dynamic.${fieldName}} /

Anyone have any ideas?  Or should I stick with the Struts tags for this?

Thanks in advance,

Kev


---
Dr. Kevin Palfreyman  
Apama (UK) Ltd,
Cambridge, UK



RE: JSTL

2003-08-27 Thread Kevin A. Palfreyman
Yes, you can get the reference implementation direct from Jakarta
http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html

Kev

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] 
 Sent: 27 August 2003 10:55
 To: [EMAIL PROTECTED]
 Subject: JSTL
 
 
 Hi,
 Can I just download the JSTL without downloading the JWSDP ?
 
 thanks
 -raj
 
 
 
 
 -
 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: Problem converting from Struts tags to JSTL

2003-08-27 Thread Kevin A. Palfreyman
Thanks for the pointer to the user guide, but unfortunately it doesn't
help.

I tried:

c:out value=${instanceForm.dynamic.map.%=fieldName%} /

And

c:out value='%=${instanceForm.dynamic.map.+fieldName+}%' /

And

c:out value=${instanceForm.dynamic.map.${fieldName}} /

But those didn't work either.

I think the problem is with the nested evaluation - combining the
scriptlet and the EL.

Any other ideas?

Kev

 -Original Message-
 From: Hue Holleran [mailto:[EMAIL PROTECTED] 
 Sent: 27 August 2003 10:21
 To: Struts Users Mailing List
 Subject: RE: Problem converting from Struts tags to JSTL
 
 
 Try the User Guide:
 
 
 http://jakarta.apache.org/struts/userGuide/building_controller
 .html#dyna_act
 ion_form_classes
 
  -Original Message-
  From: Kevin A. Palfreyman [mailto:[EMAIL PROTECTED]
  Sent: 27 August 2003 10:05
  To: [EMAIL PROTECTED]
  Subject: Problem converting from Struts tags to JSTL
 
 
  Hello,
 
  I'm trying to convert some pages from Struts tags to JSTL 
 for the next 
  iteration of our product and I've hit a problem. [Struts 
 1.1, Tomcat 
  4.1.24, Java 1.4.2, JSTL 1.0.3]
 
  I need to be able to dynamically access nested fields of my form 
  object.
 
  The Form object (instanceForm) contains a DynaBean 
 (dynamic) as one of 
  its fields.  The fields of the DynaBean are what I'm trying 
 to access.
  The name of the particular field within the DynaBean is stored in a
  local variable (fieldName) that is been populated in a loop.
 
  The following Struts tag works fine:
 
  bean:write name=instanceForm property='%= dynamic.+fieldName 
  %'/
 
  I'm new to JSTL, and I've tried various forms similar to 
 those below 
  without success.  Is what I'm trying to do possible?
 
  c:out value='%= ${instanceForm.dynamic.+fieldName %}' 
 / c:out 
  value=${instanceForm.dynamic.%=fieldName%} / c:out 
  value=${instanceForm.dynamic.${fieldName}} /
 
  Anyone have any ideas?  Or should I stick with the Struts tags for 
  this?
 
  Thanks in advance,
 
  Kev
 
 
  ---
  Dr. Kevin Palfreyman
  Apama (UK) Ltd,
  Cambridge, UK
 
 
  ---
  Incoming mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.512 / Virus Database: 309 - Release Date: 19/08/2003
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.512 / Virus Database: 309 - Release Date: 19/08/2003
 
 
 -
 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: Problem converting from Struts tags to JSTL

2003-08-27 Thread Kevin A. Palfreyman
Hi Hue - thanks for your efforts.

I actually just managed to get it working as your mail arrived.

Here is what I had to do:
1) Change the JSP to be
c:out value=${instanceForm.dynamic.map[fieldName]} /
   (actually just like you suggested)

2) This is the interesting bit - I had to subclass BasicDynaBean
   to expose a getMap() method.  This is what DynaActionForm
   does, and was discussed on the commons-dev list in Nov2002
   by Craig, David, and co.

   I then had to pass that new class as the 2nd param of the 
   constructor of BasicDynaClass that creates the instance for me.

Thanks again,

Kev



 -Original Message-
 From: Hue Holleran [mailto:[EMAIL PROTECTED] 
 Sent: 27 August 2003 13:20
 To: Struts Users Mailing List
 Subject: RE: Problem converting from Struts tags to JSTL
 
 
 Hi Kev,
 
 Sorry - I missed the fieldName being dynamic bit(!). I think 
 you may want to consider moving to JSTL for the loop bit so 
 it will save having to do conversions but I think the 
 following will achieve what you're trying to do:
 
   bean:define id=fieldNameBean value=%=fieldName% /
   c:out value=${instanceForm.dynamic.map[fieldNameBean]} 
 default=uh? /
 
 BTW you could remove the default=uh? bit - I use this for 
 testing so that I can at least see the loop working.
 
 I don't tend to mix EL with non-EL so this may not be the 
 optimum solution - someone else may have a better idea - as I 
 guess the performance will be slower and heavier due to 
 having to copy a value to a bean in page scope.
 
 Hue.
 
  -Original Message-
  From: Kevin A. Palfreyman [mailto:[EMAIL PROTECTED]
  Sent: 27 August 2003 11:32
  To: Struts Users Mailing List
  Subject: RE: Problem converting from Struts tags to JSTL
 
 
  Thanks for the pointer to the user guide, but unfortunately 
 it doesn't 
  help.
 
  I tried:
 
  c:out value=${instanceForm.dynamic.map.%=fieldName%} /
 
  And
 
  c:out value='%=${instanceForm.dynamic.map.+fieldName+}%' /
 
  And
 
  c:out value=${instanceForm.dynamic.map.${fieldName}} /
 
  But those didn't work either.
 
  I think the problem is with the nested evaluation - combining the 
  scriptlet and the EL.
 
  Any other ideas?
 
  Kev
 
   -Original Message-
   From: Hue Holleran [mailto:[EMAIL PROTECTED]
   Sent: 27 August 2003 10:21
   To: Struts Users Mailing List
   Subject: RE: Problem converting from Struts tags to JSTL
  
  
   Try the User Guide:
  
  
   http://jakarta.apache.org/struts/userGuide/building_controller
   .html#dyna_act
   ion_form_classes
  
-Original Message-
From: Kevin A. Palfreyman [mailto:[EMAIL PROTECTED]
Sent: 27 August 2003 10:05
To: [EMAIL PROTECTED]
Subject: Problem converting from Struts tags to JSTL
   
   
Hello,
   
I'm trying to convert some pages from Struts tags to JSTL
   for the next
iteration of our product and I've hit a problem. [Struts
   1.1, Tomcat
4.1.24, Java 1.4.2, JSTL 1.0.3]
   
I need to be able to dynamically access nested fields 
 of my form 
object.
   
The Form object (instanceForm) contains a DynaBean
   (dynamic) as one of
its fields.  The fields of the DynaBean are what I'm trying
   to access.
The name of the particular field within the DynaBean is 
 stored in 
a local variable (fieldName) that is been populated in a loop.
   
The following Struts tag works fine:
   
bean:write name=instanceForm property='%= 
 dynamic.+fieldName 
%'/
   
I'm new to JSTL, and I've tried various forms similar to
   those below
without success.  Is what I'm trying to do possible?
   
c:out value='%= ${instanceForm.dynamic.+fieldName %}'
   / c:out
value=${instanceForm.dynamic.%=fieldName%} / c:out 
value=${instanceForm.dynamic.${fieldName}} /
   
Anyone have any ideas?  Or should I stick with the 
 Struts tags for 
this?
   
Thanks in advance,
   
Kev
   
   
---
Dr. Kevin Palfreyman
Apama (UK) Ltd,
Cambridge, UK
   
   
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 
 19/08/2003
   
   ---
   Outgoing mail is certified Virus Free.
   Checked by AVG anti-virus system (http://www.grisoft.com).
   Version: 6.0.512 / Virus Database: 309 - Release Date: 19/08/2003
  
  
   
 
   -
   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]
 
 
  ---
  Incoming mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.512 / Virus Database: 309 - Release Date: 19/08/2003
 
 ---
 Outgoing mail is certified Virus Free.
 Checked

ActionForm with a DynaBean property?

2003-07-24 Thread Kevin A. Palfreyman
Hi All,

I'm trying to create a web application with Struts where some of the fields are not 
hard coded.

What I'd like to do is to embed a DynaBean as a property of my ValidatorActionForm.
My problem is related to how the ActionForm is instantiated and populated.

I've created a couple of DynaClass objects using a custom PlugIn that digests a config 
file - one for the Form with String types, and one for the DTO with business types.  
Constructing a DynaBean for the DTO is ok as my Action can construct a BasicDynaBean 
using my DTO DynaClass.

However, I'm not sure how to get a DynaBean of the correct type (i.e. using my form 
DynaClass) instantiated as a property of my ActionForm.

Any suggestions?

Thanks,

Kev

---
Dr. Kevin Palfreyman  
Apama (UK) Ltd



RE: [OT] Java Trivia

2003-06-12 Thread Kevin A. Palfreyman
month is String[]
test is String

arrays have .length
String object has .length()


Kev

 -Original Message-
 From: Mark Galbreath [mailto:[EMAIL PROTECTED]
 Sent: 12 June 2003 15:32
 To: 'Struts Users Mailing List'
 Subject: RE: [OT] Java Trivia
 
 
 Here's my code - it compiles just fine.  Note the 
 string.length in the for{}
 and the string.length() in the if{}:
 
 test = st.nextToken();
 if( test.equals(   )) { return false; }
 
   for( int i = 0; i  months.length; i++ ) {
 
 if( test.equals( months[ i ] )){
   month = true;
   break;
 }
   }
 if( !month ) { return false; }
   test = st.nextToken();
 
   if( test.length()  3 || test.length()  2 ) {
 return false;
 
   } else {
 StringTokenizer token = new StringTokenizer( test, , );
 
 while( token.hasMoreTokens() ) {
   int i = 0;
   if( !Character.isDigit( token.nextToken().charAt( i ))) { return
 false; }
   i++;
   }
 }
 
 -Original Message-
 From: Jarnot Voytek Contr AU HQ/SC 
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 12, 2003 10:02 AM
To: 'Struts Users Mailing List'
Subject: RE: [OT] Java Trivia


for( int i = 0; i  string.length; i++ ) {}

doesn't compile for me...

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


 -Original Message-
 From: Mark Galbreath [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 12, 2003 8:46 AM
 To: 'Struts Users Mailing List'
 Subject: [OT] Java Trivia
 
 
 Anybody know why the length of a String is a property of the
 String when
 used as a logical qualifier in a for{} block but a function 
 of the String in
 a conditional if{} statement?
 
 for( int i = 0; i  string.length; i++ ) {}
 
 if( string.length() != 4 ) {}
 
 
 Mark
 
 
 
 -
 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]



Multiple apps and class loaders

2003-01-10 Thread Kevin A. Palfreyman
struts-newbie-warning/

Hi folks,

I have been having some problems developing multiple similar applications with regards 
to classloaders.

I'm using Tomcat 4.1.18, and struts 1.1b3 (b2 was the same).

What I have discovered is that everything is fine if I package all of the struts Jars 
in each of my applications, but that there are problems if I put the struts jars in 
the tomcat $CATALINA_HOME/shared/lib.

I have two (actually multiple) applications (app1 and app2) that are extremely similar 
and happen to define Form classes which have the same class name (say FormA).  These 
form classes are used as fields of a DynaActionForm.  

When the struts jars are shared I get classloader issues with symptoms such as:
Object of type FormA cannot be assigned to variable of type FormA

Now if I'm following correctly, this is because the first application that tomcat 
discovers is initialised and it's struts-config is read.  The dyna-form is created in 
the parent (shared) class loader, and is using the class definition for FormA as found 
by the child classloader for app1.  Afterwards, app1 can be used successfully.  As 
tomcat continues the initialisation, it reads the config for app2 and attempts to init 
a dyna-form, but finds it already has one so uses that (?).  When I attempt to use 
app2 I get the above error because although the two FormA classes are byte for byte 
identical, they were loaded by different child classloaders.

Is there any way around this problem, other than by including all of the struts jars 
in each of my applications?  What are the minimum jars I could get away with?

Packaged without struts each of my little apps is around 120KB.
Packaged with struts each of my little apps is around 1.5MB.

I know disk space is cheap these days, but I was trying to keep things as lightweight 
as possible for each new application we add to the server.

(thankfully I seem to be able to share my 4MB jacorb corba library rather than 
packaging that with each web-app!)

Is there a way to share the struts libraries so that what I am trying to do will work?

Thanks,

Kev

---
Dr. Kevin Palfreyman  
Apama (UK) Ltd,  Cambridge, UK




RE: kiosk mode browser

2002-12-20 Thread Kevin A. Palfreyman
I'm pretty sure the common browsers already do this.

MS IE
http://support.microsoft.com/default.aspx?scid=KB;en-us;q154780

Mozilla
http://tln.lib.mi.us/~amutch/pro/mozilla/kioskmode.htm
http://kiosk.mozdev.org/

This any help?

Kev

 -Original Message-
 From: Vincent Stoessel [mailto:[EMAIL PROTECTED]]
 Sent: 20 December 2002 16:27
 To: Struts Users
 Subject: kiosk mode browser
 
 
 I was was wondering about what people think about  implementing
 a kiosk style browser on the client end of a struts app.
 I was thinking mozilla because it is already ported to so 
 many platforms 
 and it can be customized without paying for a development license. By 
 kiosk mode, I mean that the broswer would retain all the 
 functionality 
 of modern browser but not have the buttons or url window that 
 end users 
 sometime mistakingly use to reload, go back or otherwise shoot 
 themselves in the foot. Opinions?
 -- 
 Vincent Stoessel
 Linux Systems Developer
 vincent xaymaca.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: JAXP version 1.1

2002-10-26 Thread Kevin A. Palfreyman
Try the JDOM distribution - I think b8 is bundled with JAXP1.1.
www.jdom.org

Kev


 -Original Message-
 From: Haseltine, Celeste [mailto:CHaseltine;magticket.com]
 Sent: 25 October 2002 22:13
 To: 'Struts Users Mailing List'
 Subject: JAXP version 1.1
 
 
 This is a little off topic, but does anyone know how I can 
 get my hands on
 an older version of JAXP?  We had to rebuild a server, and 
 the newer JAXP
 1.2 does not work with our existing Java code.  I got my 
 hands on a older
 version of crimson.jar, but I need the older versions of jaxp.jar and
 xalan.jar.  We need to get up and running now, we can't 
 afford the time to
 rewrite our older Java code to work with 1.2.  I can't find 
 it on the Sun
 site, nor by doing a search under google.com.  Anyone have 
 any suggestions
 as to where I can get my hands on JAXP 1.1?
 
 Celeste Haseltine, PE
 MTL Inc
 Dallas, TX
 
 --
 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: User Authentication

2002-06-10 Thread Kevin A. Palfreyman

I haven't actually used it, but would the Open Symphony - OSUser module help here, 
even as a starting point?

http://www.opensymphony.com/osuser/
http://www.opensymphony.com/matrix.jsp

Kev.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: 10 June 2002 16:41
 To: Struts Users Mailing List
 Subject: Re: User Authentication
 
 
 
 I'd like to bring this up at a more general level.
 
 I've wondered why Struts provides no specific User Management 
 tools. I'd
 almost expect to see a user.tld tag lib and struts tags such as:
 
  user:checkLogin - make sure the user is logged in or 
 redirect to
 login page
  user:userProperty - to get/set properties from a 
 configurable User
 bean
  user:authSource - to configure authentication against various
 soruces such as ldap, jdbc, etc.
  user:roleRequred - for conditional processing based on 
 whether or
 not a user has a certain role associated with them.
 
 I know that servlet spec 2.3 provides the idea of realms and 
 a declarative
 security model, but I've not seen this addressed directly on 
 the list or
 anywhere in the docs.
 
 Does anyone have throughts on why there have been no more 
 direct addressing
 of this in Struts? If the answer is, because we only have so 
 much time,
 or, no one's really needed/.requested it, then that's fine.
 
 I'm just wondering if it's the planned direction to off-load 
 this to the
 container as a general rule. or if there are thoughts of 
 providing some
 functionality into Struts directly.
 
 Anyone have insight into this?
 
 
 
 
 
 Struts Newsgroup (@Basebeans.com) struts on 06/10/2002 11:25:01 AM
 
 Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]
 
 To:   [EMAIL PROTECTED]
 cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
 Subject:  Re: User Authentication
 
 
 Subject: Re: User Authentication
 From: Torgeir Veimo [EMAIL PROTECTED]
  ===
 David Bolsover wrote:
  Vic
 
  Thanks - you could well be right, my question may be better 
 directed to
 web
  container or JAAS.
  What I do know is that using the web xml .. security-constraint,
  auth-constraint .. features is not sufficintly flexible 
 for my needs --
 I
  need to be able to create new users with new, as yet 
 undefined security
  privileges, dynamically, with the webapp itself.
  My question I suppose is more about how to model the 
 security privileges
  rather than how to implement.
 
 Think of user having roles. Users are assigned roles as needed. You
 attach functionality in your web-app to roles. The security rules in
 web.xml are defined using roles, but are specified on a URL 
 match basis.
 If you use struts, then you can insert checks in webpages to enable /
 disable functionality on a more finegrained level.
 
 --
 -Torgeir
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


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




RE: Struts salability

2001-11-22 Thread Kevin A. Palfreyman

Hi 

I'd be very interested in any performance figures you can provide, and
the type of architecture you have deployed to ensure performance and
scalability.

I'm currently considering struts for a large project, and finding large
commercial deployments for reference is hard.  Also if you could give
any info on the servers you are using, that would be appreciated.

Thanks in advance,

Kev

 -Original Message-
 From: Emaho, Ghoot [mailto:[EMAIL PROTECTED]]
 Sent: 22 November 2001 09:30
 To: Struts Users Mailing List
 Subject: RE: Struts salability
 
 
 We have a system in production which serves the entire North Sea
 Offshore and Onshore Installations for BP, serving several thousand
 concurrent users and performance is excellent (i can provide 
 metrics if
 you are interested) - although we did have to do the neccessary
 performance tuning. Generally we found that Struts is the 
 least of your
 worries when it comes to large scale enterprise deployments -
 particularly if your software involves EJBs. If you or anyone 
 else would
 like anymore info, i'd be happy to share more details.
 
 On another note, details of the previously mentioned Chiki Wiki built
 with Struts will be posted soon - the prototype will be available over
 the web shortly.
 
 Cheers
 
 Ghoot Emaho
 Software Development Team Leader
 www.petrotechnics.com
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: 21 November 2001 18:04
  To: [EMAIL PROTECTED]
  Subject: Struts salability
  
  
  
  
  Does anybody know of any issues with Struts with respect to 
  salability ?
  Is a multiple servlet solution more scalable ?
  
  Many Thanks
  
  Alan
  
  
  
  --
  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: OFFT: base for file reading in WEB apps

2001-11-22 Thread Kevin A. Palfreyman

Be careful here - getRealPath() can return null when the application is
deployed in a WAR if the app server does not expand it (some app server
do in fact serve the files straight from the WAR).  I got bitten by this
recently.

Instead try looking at the getResource() and getResourceAsStream()
methods.

Kev

 -Original Message-
 From: Moritz Björn-Hendrik, HH [mailto:[EMAIL PROTECTED]]
 Sent: 22 November 2001 14:42
 To: 'Struts Users Mailing List'
 Subject: AW: OFFT: base for file reading in WEB apps
 
 
 Hi Gundars,
 
 you can get the Base-Path by using the
 getServletContext().getRealPath()-Method in the ActionServlet.
 
 Björn
 
  -Ursprüngliche Nachricht-
  Von:Gundars Kulups [SMTP:[EMAIL PROTECTED]]
  Gesendet am:Donnerstag, 22. November 2001 15:12
  An: [EMAIL PROTECTED]
  Betreff:OFFT: base for file reading in WEB apps
  
  Hi!
  I know that this is totally off topic, but what is file 
 base for file 
  operations for classes running in servlet container (Tomcat 
 in my case). 
  For example if I have app.properties file in WEB-INF directory, what
  should 
  be the path I need to use to open this file?
  
  WBR,
  
  Gundars Kulups
  Project manager
  A/S Dati
  Phone: +371-7067713
  Mobile: +371-9466055
  Fax: +371-7619573
  
  
  --
  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]