Re: calling ASP inside a JSP

2004-03-18 Thread James Mitchell
This has nothing to do with ASP or JSP specifically.  You simply want to use
one frame as the target of another's links/posts.

This is very easy to do.


--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
MSN: [EMAIL PROTECTED]
Yahoo IM:[EMAIL PROTECTED]



[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi All
 I have a webpage in which i have two Frames.  In my left frame i want to
 display an ASP page. In the main frame i have a JSP page. Can i do this at
 all. I have a link to the ASP page, but i do not want to provide a link
 but only want to display the content of the ASP page. Please let me know
 if i can do this.

 Thanks
 --Mohan




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



Re: [SwitchAction] How

2004-03-14 Thread James Mitchell

http://sourceforge.net/project/showfiles.php?group_id=49385package_id=74324
release_id=147944

--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
MSN: [EMAIL PROTECTED]
Yahoo IM:[EMAIL PROTECTED]



Mike Zatko [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hello,
 Does anyone have a simple example on how to use a SwitchAction? How
 is it defined properly in the config file?

 Thanks




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



Re: ASP.NET and Struts: Web Application Architectures

2004-03-10 Thread James Mitchell
LOL

That's a good one!!



--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
MSN: [EMAIL PROTECTED]
Yahoo IM:[EMAIL PROTECTED]



- Original Message -
From: Christian Bollmeyer [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, March 10, 2004 4:02 PM
Subject: Re: ASP.NET and Struts: Web Application Architectures


On Wednesday 10 March 2004 21:10, Guido García Bernardo wrote:
 Interesting reading...

 http://msdn.microsoft.com/asp.net/using/migrating/default.aspx?pull=/
library/en-us/dnaspp/html/aspnet-aspnet-j2ee-struts.asp#aspnet-aspnet-
j2ee-struts_topic4

 Regards.

Yeah! Finally, the first truly unbiased comparison between both
serverside component technologies has arrived! Pity for J2EE.

I definitely want .NET now. Still, I obviously didn't completely
grok the following yet:

Impersonation allows ASP.NET applications to execute with the identity
of the user who requested the page. Impersonation pushes authentication
and authorization out to IIS, as ASP.NET will just use the token
received from IIS whether it is authenticated or not. When
impersonating, ASP.NET relies on standard NTFS permissions on files
and folders in order to determine whether it should allow or deny access
to a particular resource.

So I can simply delegate all those nasty security issues to
the trusty IIS and have my users just safely wander about
the servers' hard drives afterwards? No wonder J2EE
falls short in terms of security. A pity they don't tell
anything about availability dates for Linux clusters,
so we may have to live on with this outdated J2EE
technology for some time. A real pity :-)

-- Chris.

-
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: Newbie question

2004-03-03 Thread James Mitchell
From the main page of Struts (the one you clicked past to subscribe to this
list)

  http://jakarta.apache.org/struts/learning.html




--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
MSN: [EMAIL PROTECTED]



- Original Message -
From: Satya Narayan Dash [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 03, 2004 9:31 AM
Subject: Newbie question


Hi,

I am new to struts. I found a number of simple tutorials (with examples) to
understand struts-1.0, but there seems to none for struts-1.1. I have gone
through one struts-1.0 tutorial given at jspfinder.com, which is good.

Can you please recommend for struts-1.1 (with examples)?

Thanks,
Satya





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



Re: How do I access Message Resources in an Action?

2004-03-02 Thread James Mitchell
The same way it is done in the struts-example.  Did you run that yet?


--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
MSN: [EMAIL PROTECTED]



- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 7:37 AM
Subject: How do I access Message Resources in an Action?


Hey everybody!

Well the subject basically states my problem already. I'd like to create a
dynamical Navigation Bar that holds some pages you visited last. Therefore
I'd like to add Name, Link and Parameters to a Collection for later
printing. Problem is that the Name needs to come from the Message Resources,
and I don't know how to access those in an Action.

Can somebody help me?!

Thx!

P.S.: Can you guys access http://java.sun.com http://java.sun.com  ??!
Either my company's net is broken or the page is really down.

___
Tim Adler, Abt. SDA1
Adress Management Solutions
AZ | Direct
Carl-Bertelsmann Straße 161s
D-33311 Gütersloh

Tel.: 05241/ 80 - 89574
[EMAIL PROTECTED]






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



Re: replacing messages tag with fmt tag - can both exist at 1x?

2004-03-01 Thread James Mitchell
Yes, just point them to the same file.


--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
MSN: [EMAIL PROTECTED]



- Original Message -
From: Menke, John [EMAIL PROTECTED]
To: Struts (E-mail) [EMAIL PROTECTED]
Sent: Monday, March 01, 2004 10:16 AM
Subject: replacing messages tag with fmt tag - can both exist at 1x?


 does anyone have the messages tag working in the same application as the
fmt
 tag using the fmt tag for displaying messages in some pages and messages
for
 other pages?  can you implement both at once?



 -
 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: spontaneous disappering ApplicationResources.properties

2004-02-21 Thread James Mitchell
This is cause by Eclipse rebuilding your project.

You need to put your source files (that means *.properties as well as
*.java) in your source folders.  Any time you make changes, Eclipse will
copy them over to the classes directory for you.



--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
MSN: [EMAIL PROTECTED]




 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Saturday, February 21, 2004 2:45 PM
 To: [EMAIL PROTECTED]
 Subject: spontaneous disappering ApplicationResources.properties


 Hi list,

 I have a weird problem with all of my struts applications.

 the file ApplicationResources.properties, usually in WEB-
 INF/classes, is disappearing spontaneously every now and then.
 this happens with all of my projects. I tried and set the attributes of
 the file on read-only, but that does not help.
 Though i learned to live with it by having backups available, it is
 quite irritating.

 Has anyone else experienced this?  Is it some weird setting or
 what?

 I'm using Eclipse 2.1.0 on a win2000 platform.

 Thanks,
 Rinke

 -
 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: Struts and I8N looking for a good combination

2004-02-20 Thread James Mitchell
You should consider using a database implementation of Struts' internal
MessageResources component.

That let's you keep your text in the database, supports i18n without
changing anything in your Struts app (except one line in the struts-config),
and provides the ability to change content on the fly (although this last
part is up to you).

--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
MSN: [EMAIL PROTECTED]




 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] Behalf Of Linus Nikander
 Sent: Friday, February 20, 2004 3:52 AM
 To: [EMAIL PROTECTED]
 Subject: Struts and I8N looking for a good combination


 Is there any (preferably GPL:ed or equivalent) framework out there for
 internationalization of all texts on a site ? In particular I'm
 looking for
 something that integrates well with struts.

 I know I can use different resource-files for different languages
 in Struts.
 The problem is that using files for internationalizations quickly becomes
 hard to handle, particularly as the amount of text and languages
 increases.
 I also want to be able to dynamically update text content when the site is
 up and running (very hard to accomplish using textfiles).

 Anyone have any recommendations / experiences ?

 //Linus Nikander - [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: Servlet Context

2004-02-19 Thread James Mitchell
Get it from the servletContext and change it...dynamically.



--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
MSN: [EMAIL PROTECTED]




 -Original Message-
 From: keshav [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 19, 2004 2:11 AM
 To: Struts Users Mailing List
 Subject: Servlet Context
 
 
 Hi
 
 How can I update a list dynamically which has been added to 
 servletContext.
 
 regards,
 keshav
 
 -
 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: Mroe then one resource message file

2004-02-19 Thread James Mitchell
Just like it is done in the struts-example.



--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
MSN: [EMAIL PROTECTED]




 -Original Message-
 From: Daniel [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 19, 2004 8:52 AM
 To: Struts Users Mailing List
 Subject: Mroe then one resource message file
 
 
 Does anybody know of a way to define more than one default message 
 resources in struts 1.1.
 


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



RE: Problem using split() method in java script

2004-02-16 Thread James Mitchell
 -Original Message-
 From: McCormack, Chris [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 16, 2004 3:35 AM
 To: Struts Users Mailing List
 Subject: RE: Problem using split() method in java script
 
 
 Ahh yes I see how this relates to struts...
 
 subscribe to a JS newsgroup
 google is your friend

+1
I couldn't have said it better myself.



 
 Chris
 
 -Original Message-
 From: Ramachandran [mailto:[EMAIL PROTECTED]
 Sent: 16 February 2004 07:52
 To: Struts Users Mailing List
 Subject: Problem using split() method in java script
 
 
 Hi,
 
  I am facing problem in java script, using spilt() methos.
 
  Here i want to split the strings using '\' this separator. Here it is
 separating the strings. Bu it is displayed in the zeroth index 
 array. But i
 want to display in each index.
 
 But not Working. Any body having idea please maile me.
 
 This is my code.
 
  var where_is_mytool=home\mytool\mytool.cgi;
  var mytool_array=where_is_mytool.split(\\);
  alert(mytool_array[0]+ second +mytool_array[1]+ third
 +mytool_array[2]);
 
 




--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
MSN: [EMAIL PROTECTED]




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



RE: Java / J2EE Developer

2004-02-16 Thread James Mitchell
Looks like the only way to compete is to improve yourself.  That works for
me, what about you?



--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
MSN: [EMAIL PROTECTED]




 -Original Message-
 From: Andy Engle [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 16, 2004 12:59 PM
 To: Struts Users Mailing List
 Subject: RE: Java / J2EE Developer


 deepak saini [EMAIL PROTECTED] wrote:

  Come to India, there are lots of jobs for you here.

 This drives me crazy -- our future is being exported and nobody seems
 to care.

 http://www.wired.com/wired/archive/12.02/india.html


 -
 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: Struts Module switching example

2004-02-12 Thread James Mitchell
http://sourceforge.net/project/showfiles.php?group_id=49385package_id=74324
release_id=147944


--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
MSN: [EMAIL PROTECTED]



- Original Message -
From: Sreenivasa Chadalavada [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 4:09 PM
Subject: Struts Module switching example


 All,

 I am trying to switch from 'navbar' module to 'patient' module in my
 application.

 The following is the definition of the URL.

 forward name=patient path=/patient/main.do?main
 contextRelative=true redirect=true/

 From with in navbar module I am trying to perform the forward.

 It is not working. Can some one shed some light on this topic? Is there a
 detailed documentations on how to work with struts modules?

 Your help is very much appreciated.

 Thanks and Regards, Sree/-





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



Re: Config issue

2004-02-11 Thread James Mitchell
It is possible that this application is NOT the default (or in Tomcat terms
'ROOT' application).

In that case, it is correct...

 form name=loginForm method=post action=/gannett/gannett/login
   (servlet context)   
  (your path mapping)   ^^


If this application was the default, then that would eliminate one the first
/gannetts

Hope that helps.

--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
MSN: [EMAIL PROTECTED]



- Original Message -
From: Sam [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 11, 2004 11:03 PM
Subject: Config issue


 Greetings,

 I'm a STRUTS newbie and am having a problem I can't seem to solve,
 searched everywhere I can think of and haven't found an answer.

 I have STRUTS 1.1 running with Tomcat 5.0.18 and am
 having a URI context issue.  All of my html form actions
 are coming out with the wrong URI -- should be /gannett/login
 but are coming out as /gannett/gannett/login duplicating the prefix.

 Any ideas out there?  Following is my config.

 Thanks,

 Sam

 web.xml snippet:

 web-app
 display-nameGannett Web Application/display-name
 servlet
 servlet-namegannett/servlet-name
 servlet-class
   org.apache.struts.action.ActionServlet
 /servlet-class
 init-param
 param-nameconfig/param-name
 param-value/WEB-INF/struts-config.xml/param-value
 /init-param
 init-param
 param-namedebug/param-name
 param-value4/param-value
 /init-param
 init-param
 param-namedetail/param-name
 param-value4/param-value
 /init-param
 load-on-startup1/load-on-startup
 /servlet
 servlet-mapping
 servlet-namegannett/servlet-name
 url-pattern/gannett/*/url-pattern
 /servlet-mapping

 Struts-config:
 action-mappings
 action
 path=/login
 input=/login.jsp
 name=loginForm
 scope=request
 type=com.dimeta.security.LoginAction
 validate=false
 forward name=Success path=/chooser.jsp redirect=true/
 forward name=Failure path=/login.jsp redirect=true/
 /action

 HTML for login.jsp:
 html:form action=/login method=post
 /html:form

 HTML source from browser:
 form name=loginForm method=post action=/gannett/gannett/login
 /form


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



[OT] Re: Debugging JSP

2004-02-09 Thread James Mitchell
On Mon, 9 Feb 2004, Ramadoss Chinnakuzhandai wrote:

 Hi,
   I'm debugging Java code using JBoss IDE installed with Eclipse 2.1 and I 
 found I could not debug JSP using the same IDEthen I installed MyEclipse to 
 debug JSP and tested working fine with JSP when I come to debug Java code the break 
 point which I put seems to be does not working then I found MyEclipse has got its 
 own JBoss IDE and it clashes with JBoss IDE which I installed already.

 Can anybody suggest me how can get rid of this problem or suggest is there anyother 
 way I can debug JSP without getting into this problem? or any better alternatives 
 debug JSP without affecting debugging of java code??

Here a couple of ideas:
 - use [OT] when discussing off-topic threads
 - if you rely on JSP debugging, chances are good that you have WAY too
   much logic in your pages.  Consider following an MVC approach.


...hope that helps.





 Thankx in advance,

 -Ramadoss





-- 
James Mitchell


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



Re: Supporting a back button without JavaScript

2004-02-09 Thread James Mitchell
On Mon, 9 Feb 2004, Brian Ivey wrote:

 Dear List,

 I have to give my application users a way to navigate to the previous page
 without using the browser back button.  Program constraints prevent me from
 using JavaScript to solve this.  Because many JSP pages use the same Actions
 I am unable to simply hard code the referring page to navigate back to.

 Any thoughts would be appreciated.  BTW, I am inclined to believe that I can
 extract the referring page from one of the attributes sent to the Action
 (mapping, request, ...) and then cache this value as either a  parameter or
 as an attribute.  Does anyone think this could work?

I recently completed a mechanism for doing this.  It supports back
(previous) and cancel actions for you.

Basically, I keep 2 stacks in the session, one for standard navigation
and one for exception flows which simply are pointers the standard nav
stack.

In my base action, I call super.execute (I use DispatchAction, use an
abstract doExecute or whatever if you are going stock) with a custom
wrapped ActionMapping that takes (and manages) the request on the
constructor so that all calls to findforward are added to the stack.

What is boils down to is for normal flow of my application, I don't have
to do anything.  In the case where the user 'jumps' off the normal flow of
things, the app needs to provide a cancel that takes them back on flow
where they left off.  (all the while remember the back or previous page).

The only problem with our implementation is that all lists (drop down
collections) are retrieved via a caching mechanism that is invoked from
our dto getters (not my design), which allows our simple design to work so
fuently.

From there, all the developers have to do is:
 - remeber to call addCancelAction() from any action that takes the user
   off of the normal flow
 - use an %page include...% which renders the previous or cancel button


Anyway, I can't indulge in all the details, but I hope you can get a
couple of ideas from that.




 Thanks,
 Brian Ivey


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



-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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



Re: logic:iterate question

2004-02-06 Thread James Mitchell
Oops, did you mean to do this?

 c:forEach items=foo.bar var=bar varStat=stat
c:if test=stat.last
^^^
do what needs to be done
/c:if
  
 /c:forEach


shouldn't that be?
c:if test=${stat.last}
 ^^ ^


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM: jmitchtx
MSN: [EMAIL PROTECTED]



- Original Message - 
From: Slattery, Tim - BLS [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, February 06, 2004 9:29 AM
Subject: RE: logic:iterate question


  i have a question about the logic:iterate tag. My tag 
  iterates over an ArrayList which contains an amount of beans. 
  However, in the last iteration i want to perform some special 
  action. My current code looks something like this:
  
  logic:iterate id=foo name=bar scope=session indexId=index
  
  ...
  logic:equal value=... name=index
  ...
  /logic:equal
  
  /logic:iterate
 
 This is something that JSTL does *extremely* well:
 
 c:forEach items=foo.bar var=bar varStat=stat
c:if test=stat.last
do what needs to be done
/c:if
  
 /c:forEach
 
 --
 Tim Slattery
 [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: How to export the html table contents (records) to an Excel file.

2004-02-04 Thread James Mitchell

  response.setContentType(application/vnd.ms-excel);


Assuming the end user has Excel installed and their browser
accepts application/vnd.ms-excel, the data will be streamed
to the client and the content will be opened by Excel.


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM: jmitchtx
MSN: [EMAIL PROTECTED]



- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 04, 2004 4:06 AM
Subject: How to export the html table contents (records) to an Excel file.


 Hi,

 I have webpage (.jsp) which lists out 4 to 5 records (having say 4 to 5
columns)
 inside html table tag.  This page, has an Export button, at the bottom.
On
 click of this button, I need to export the records (that the current page
is
 displaying) to an .xls (Excel format) file.

 Shall be greatful if anyone can tip me on this.

 Thanks,
 S.Srikanth



 -
 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: accessing application.properties from JSP

2004-02-03 Thread James Mitchell
Serverside jsp processing knows nothing about embedded JavaScript or
anything else.

bean:message .../ works anywhere on your page (if you remember to put the
taglib declaration)


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM: jmitchtx
MSN: [EMAIL PROTECTED]



- Original Message -
From: Marco Mistroni [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Tuesday, February 03, 2004 12:01 PM
Subject: RE: accessing application.properties from JSP


 Hi,
 Actually my problem is that I have to make so that a javascript
 message can be internationalized, so I must get it from
 application.properties.

 But it looks like writing a bean:message  inside a javascript method
 Does not work.

 Any workarounds?

 I assume that message resources are stored in servlet context.. if so,
 under
 Which name?

 Thanx and regards
 marco

 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]
 Sent: 03 February 2004 15:09
 To: Struts Users Mailing List
 Subject: Re: accessing application.properties from JSP

 The same way it is done in the struts-example.


 --
 James Mitchell
 Software Engineer / Struts Evangelist
 http://www.struts-atlanta.org
 678.910.8017 (cell)
 AIM: jmitchtx
 MSN: [EMAIL PROTECTED]



 - Original Message -
 From: Marco Mistroni [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Tuesday, February 03, 2004 10:06 AM
 Subject: accessing application.properties from JSP


  Hi all,
  Does anyone know how to access application.resources from a JSP?
  With best regards
  Marco
 
 
 
 
  -
  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: Tesiting DispatchAction with StrutsAction..

2004-02-02 Thread James Mitchell
What is your question?


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM: jmitchtx
MSN: [EMAIL PROTECTED]



- Original Message - 
From: Al Rathon [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 02, 2004 9:42 AM
Subject: Tesiting DispatchAction with StrutsAction..


 Need to test a struts app that uses DispatchAction
 using struts TestCase.
 
 Thanks for the help.
 
 
 
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free web site building tool. Try it!
 http://webhosting.yahoo.com/ps/sb/
 
 -
 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: Using database tables for resource bundles

2004-02-02 Thread James Mitchell
Not yet.  I was planning to finish my refactoring to commons-resources
(sandbox) quite some time ago, but like most people.I have just been too
busy with other things.


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM: jmitchtx
MSN: [EMAIL PROTECTED]



- Original Message -
From: Johan Wasserman - CPX Mngd Services [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, February 02, 2004 10:21 AM
Subject: RE: Using database tables for resource bundles


Regarding using a database to provide resource bundles;
James Mitchell developed a nifty extention called 'OJBMessageResources'
that uses OJB and there where talk of a new version using Hibernate...

quote
I'm also about to release another implementation that uses Hibernate for
those who don't want the required OJB internal tables.stay
tunedmore to come.
/quote

Does anyone know (James, if you're listening) if the Hibernate version
where made available or if there is something else available (that
doesn't use OJB)?

Thanks (and kudos to James for the OJB version),
Johan Wasserman
For: Comparex Africa (Pty) Ltd
+27 (0) 83 326 7339 (Mobile)
+27 (0) 11 266 1110 (Tel)
+27 (0) 11 266 1099 (Fax)
Mailto:[EMAIL PROTECTED]
http://www.comparex.co.za/
Company Registration Number 1993/003683/07
NOTICE: This message and any attachments are confidential and intended
solely for the addressee.  If you have received this message in error,
please notify Johan Wasserman at Comparex Africa (Pty) Ltd immediately,
telephone number +27 (0) 11 266 1110.  Any unauthorized use, alteration
or dissemination is prohibited.  Comparex Africa (Pty) Ltd accepts no
liability whatsoever for any loss whether it be direct, indirect or
consequential, arising from information made available and actions
resulting there from.



-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 6:17 PM
To: Struts Users Mailing List
Subject: Re: Using database tables for resource bundles


On Tue, 2003-03-25 at 10:30, Robert Leland wrote:
 Rahul wrote:
  Hi,
 
  We are developing a multilingual system using struts 1.1 and j2ee
  1.3.
 
  I need to know whether we can use backend database tables for
  providing all the messages i.e. whether the messages can be provided

  by a set of java class rather than relying on resource files
  residing on the server.

 James Mitchell developed a version of this.
 It is in the jakarta-commons-sandbox/resources.
 I haven't used this myself though. For 1.2 we plan
 on making the message resources in struts a wrapper
 around these classes. Until that point you'll need to
 provide your own glue.

Cool, I wasn't aware that it was added to commons-sandbox.

I initially released this extension on http://sourceforge.net/struts
called 'OJBMessageResources'.  This particular implementation uses OJB
under the covers.

It is very simple to use.  The best part is that you don't have to
change anything in your application that already uses MessageResources.
You can even use both properties files and database in the same
application. (Props for some and db for others)

Complete details are available in the download, and I'm here (almost 24
X 7) if you need assistance with setting things up.

I'm also about to release another implementation that uses Hibernate for
those who don't want the required OJB internal tables.stay
tunedmore to come.


 -Rob





--
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org




-
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: OT: Need help downloading latest commons-sandbox and Struts Contrib from CVS

2004-02-01 Thread James Mitchell
On Sun, 1 Feb 2004, Jim Anderson wrote:

 Sorry, I'm feeling very stupid, but could someone please send me the
 cvs command(s) needed to download each of these from the Jakarta site?
 IIn case you haven't guessed, I'm rather new to CVS :-)

Yes, you are right.  This is VERY OT.  But I'm feeling generous today :)

Depending on your cvs client, and assuming you have the correct connection
established to connect to apache's cvs repository.

  cvs checkout jakarta-struts
and
  cvs checkout jakarta-commons-sandbox




 Thanks very much!

 A CVS ignoramus...


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



-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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



Re: White space problem

2004-01-28 Thread James Mitchell
Yes, same as with any tag or scriptlet.

c:forEach 
  c:if ...

   /c:if
/c:forEach



Of course, you could always use a servlet filter and replace all \n+ with
/n.


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM: jmitchtx
MSN: [EMAIL PROTECTED]



- Original Message -
From: McCormack, Chris [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, January 28, 2004 5:19 AM
Subject: White space problem



Hi all
I am using struts with jstl. I have a problem that is a bit annoying.
In the navigation jsp on one of my sites I have 2 nested c:forEach tags that
have c:if tags inside them. If a bean element meets the c:if condition
it gets c:out to the page, if not the loop skips over it until all the outer
c:forEach beans have been looped.

The problem is however when the c:if condition is not met a white line is
written out by the c:forEach (ie one white line for each iteration
regardless of the c:if condition). This ends up with a MASS of white space
on the page. Is there anyway to stop the c:forEach writing out the white
space ?

tia
Chris

***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please
notify the sender immediately and delete this
e-mail from your system.
You must take no action based on this, nor must
you copy or disclose it or any part of its contents
to any person or organisation.
Statements and opinions contained in this email may
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



-
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: request scope vs. session scope

2004-01-28 Thread James Mitchell
Does your action-mapping use redirect=true?


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM: jmitchtx
MSN: [EMAIL PROTECTED]



- Original Message -
From: struts fox [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, January 28, 2004 2:38 PM
Subject: request scope vs. session scope



   I have the following weird problem.

 I start off with a web page, that has a hyperlink, not a submit button.
 When the hyperlink is selected the page goes to Tomcat/Struts.
 Two actions are executed and the page is forwarded to a jsp page and
displayed.

   The second action executed, as stated above, sets a bean up in the
session before it is forwarded.  The problem is in the jsp if I declare the
bean via 'session' scope it sees the attribute and displays the value
properly, but if I declare it as 'request' scope it doesn't and just prints
null.  Request scope should work here but it doesn't.









 -
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free web site building tool. Try it!


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



Re: request scope vs. session scope

2004-01-28 Thread James Mitchell
Sorry, but there could be any number of reasons why your page isn't working.
We'll need more information to help you.

Check out the struts-example.war that ships with the distribution.  That
shows the most basic ways to send data to your jsp (in request scope).



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM: jmitchtx
MSN: [EMAIL PROTECTED]



- Original Message -
From: struts fox [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, January 28, 2004 4:39 PM
Subject: Re: request scope vs. session scope


 I never specified, but adding it doesn't effect anything.  Same results,
it just doesn't like the request scope.  Other example code does work with
request, just not the one I'm trying to do myself.







 James Mitchell [EMAIL PROTECTED] wrote:Does your action-mapping use
redirect=true?


 --
 James Mitchell
 Software Engineer / Struts Evangelist
 http://www.struts-atlanta.org
 678.910.8017 (cell)
 AIM: jmitchtx
 MSN: [EMAIL PROTECTED]



 - Original Message -
 From: struts fox
 To: Struts Users Mailing List
 Sent: Wednesday, January 28, 2004 2:38 PM
 Subject: request scope vs. session scope


 
  I have the following weird problem.
 
  I start off with a web page, that has a hyperlink, not a submit button.
  When the hyperlink is selected the page goes to Tomcat/Struts.
  Two actions are executed and the page is forwarded to a jsp page and
 displayed.
 
  The second action executed, as stated above, sets a bean up in the
 session before it is forwarded. The problem is in the jsp if I declare the
 bean via 'session' scope it sees the attribute and displays the value
 properly, but if I declare it as 'request' scope it doesn't and just
prints
 null. Request scope should work here but it doesn't.
 
 
 
 
 
 
 
 
 
  -
  Do you Yahoo!?
  Yahoo! SiteBuilder - Free web site building tool. Try it!


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



 -
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free web site building tool. Try it!


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



Re: entity includes in tiles-defs.xml (again)

2004-01-28 Thread James Mitchell
Sorry, I thought you *wanted* to specify it directly.

From what you've said below, that's an odd problem and my first inclination
would be to check and recheck the spelling.  Other than that, I'm not sure
without having more information or having the project right here in front of
me.



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM: jmitchtx
MSN: [EMAIL PROTECTED]



- Original Message -
From: Matt Bathje [EMAIL PROTECTED]
To: strutslist [EMAIL PROTECTED]
Sent: Wednesday, January 28, 2004 2:52 PM
Subject: Re: entity includes in tiles-defs.xml (again)


 Hi James, thanks for the answer. Unfortunatley it somehow wound up in my
 spam box...

 This doesn't really solve the problem. I don't care about having to put
the
 c:\ in the entity - what I care about is having to put
 /Inetpub_Tomcat/rsg_java/struts/pub in there. The application I am working
 on will have multiple instantations, and the installation path will change
 with each one.

 What I am looking for is a solution that allows me to put in just the file
 name (as you can do in struts-config files) or a path relative to WEB-INF.


 Thanks,
 Matt Bathje



 - Original Message -
  Date: Mon, 26 Jan 2004 13:17:25 -0500
  From: James Mitchell [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
   Subject: Re: entity includes in tiles-defs.xml (again)
To: Struts Users Mailing List [EMAIL PROTECTED]
 
  Try changing this:
   Here is what DOES work in tiles-defs:
   !ENTITY kurt-tiledefs SYSTEM
  
 C:\Inetpub_Tomcat\rsg_java\struts\pub\WEB-INF\kurt-admin-tilesdefs.xml
  
 
  to this
  !ENTITY kurt-tiledefs SYSTEM
  /Inetpub_Tomcat/rsg_java/struts/pub/WEB-INF/kurt-admin-tilesdefs.xml
 
 
  normally, / will be interpreted as C:\ or to be more
  specificyour system's %SystemDrive%
 
 
 
  --
  James Mitchell
  Software Engineer / Struts Evangelist
  http://www.struts-atlanta.org
  678.910.8017 (cell)
  AIM: jmitchtx
  MSN: [EMAIL PROTECTED]
 
 
 
  - Original Message -
  From: Matt Bathje [EMAIL PROTECTED]
  To: strutslist [EMAIL PROTECTED]
  Sent: Monday, January 26, 2004 12:04 PM
  Subject: entity includes in tiles-defs.xml (again)
 
 
   Hi, I asked this question a month or 2 ago, and never got a response,
so
   thought I'd try again -
  
   Using XML entities, I was able to get my struts-config file broken up
 into
   multiple files.
  
   I am attempting the same thing on my tile-defs.xml file, and when I do
 it,
  I
   get the following error:
  
   12/16/03 10:56:55 AMERROR org.apache.struts.tiles.TilesPlugin init -
 Can't
   create Tiles definition factory for module ''.
   ServletInitError: javax.servlet.ServletException: IO Error while
parsing
   file '/WEB-INF/tiles-defs-admin.xml'.
   C:\WINDOWS\system32\kurt-admin-tilesdefs.xml (The system cannot find
the
   file specified)
  
  
   So, just to be stupid, I put the full path to the file in the XML
 enitity
   declaration, and that makes it work - but I don't want to have to hard
  code
   that path in.
  
  
   Here is what works in struts-config:
   !ENTITY kurt-actionmappings SYSTEM kurt-admin-actionmappings.xml
  
   Here is what DOESN'T work in tiles-defs:
   !ENTITY kurt-tiledefs SYSTEM kurt-admin-tilesdefs.xml
  
   Here is what DOES work in tiles-defs:
   !ENTITY kurt-tiledefs SYSTEM
  
 C:\Inetpub_Tomcat\rsg_java\struts\pub\WEB-INF\kurt-admin-tilesdefs.xml
  
   I have also tried doing ./kurt-admin-tilesdefs.xml and
   /kurt-admin-tilesdefs.xml but they just give me the same error.
  
   Any ideas about what is going on or how to fix it?
  
  
   Thanks,
   Matt Bathje
  
  
   -
   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]
 
 
  - End forwarded message -
 
 


 -
 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: constant url

2004-01-27 Thread James Mitchell
- Original Message -
From: shankarr [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, January 27, 2004 3:47 AM
Subject: RE: constant url


 Hi!

 Thanks for the response.
 http://localhost:8081/log4jdemo/loginScreen.do is what I see in my url.
 I would like to keep this a constant at http://localhost:8081/log4jdemo
only.
 I am using both a href and html:link.

Have you seen what DispatchAction can do for you?


 But, even in cases where i use direct action like /loginScreen.do, on
 invoking the action, i.e clicking a button,
 i get the full  path in the url.

Yes, and that bothers you?


 This exposes the data to the hackers and will be a big issue in
deployment.

WHAT?!?!?

Expose what to hackers?  The HTTP request string?  If you want to get away
from HTTP request string, you need to get away from HTTP.  Your closest
option is to POST everything, but that still leaves you vulnerable.  I
could (if I were sniffing your network) capture and read a POST as easily
as I could a GET.

Consider using SSL.


 Any help will be appreciated.

 Richie






--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM: jmitchtx
MSN: [EMAIL PROTECTED]



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



Re: WebGroups css

2004-01-27 Thread James Mitchell
I've found this to be the cleanest way (aside from using a custom tag):

head
...
...
 style type=text/css media=screen
  @import url(html:rewrite page=/stylesheets/style.css /);
 /style
/head


The benefits here are:
* The URL is relative to the root of the server.
  An application named myapp will resolve to
  /myapp/stylesheets/style.css.  So this will
  work from anywhere in the application, no
  matter what the address bar shows.

* no scriplet

* no nested xml-like syntax


...anyway...just my $.02


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM: jmitchtx
MSN: [EMAIL PROTECTED]



- Original Message -
From: Otto, Frank [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Tuesday, January 27, 2004 5:10 AM
Subject: AW: WebGroups  css


 Hi,

 you can do this in this way (static path to css file):

 %
 String context_path = request.getContextPath();
 %

 LINK href=%=context_path%/theme/formats.css rel=stylesheet
type=text/css


 Regards,

 Frank

 -Ursprungliche Nachricht-
 Von: Manuel Lenz [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 27. Januar 2004 09:15
 An: Struts Users Mailing List
 Betreff: WebGroups  css







 Hi you,
 I do have a silly problem with style sheets-linking.

 I have a css-File in the folder /theme/formats.css.

 I access this file from a jsp-page of the folder /help/info.jsp with
this
 link:
 LINK href=../theme/formats.css rel=stylesheet type=text/css
 This works, if I call the jsp-Page directly.

 There is another jsp-page in the folder called /help/infoTest.jsp.
 This page is called from struts-config with a forward.
 The page has exactly the same code for linking the css-File.
 But when the jsp-Page is called, the css-File is not found and the server
 is
 showing this message:

 Web group /theme/formats.css is not defined
 (Die Webgruppe /theme/formats.css wurde nicht definiert.)

 Does anybody have an idea how to solve this problem?

 Manuel


 -
 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: [OT] How to use java constants as bean identifiers in jsps

2004-01-26 Thread James Mitchell
Look at the unstandard tags.  Specifically, the bind tag.


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM: jmitchtx
MSN: [EMAIL PROTECTED]



- Original Message -
From: Paul McCulloch [EMAIL PROTECTED]
To: Struts Users Mailing List (E-mail) [EMAIL PROTECTED]
Sent: Monday, January 26, 2004 12:56 PM
Subject: [OT] How to use java constants as bean identifiers in jsps


 Hi,

 Is there a common solution to using Constants for bean identifiers in your
 views?

 For example in some action I have
 ...
 Collection foo = new SomeCollection();
 request.setAttribute(Constants.SOME_THING, foo);
 

 I want to access this collection via the JSTL in my view. Something like

 c:forEach items=${Constants.SOME_THING} var=thing
 c:out value=thing.name/
 /c:forEach

 Is there a decent way of doing this? What does everyone else do?

 thanks,

 Paul


 **
 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: entity includes in tiles-defs.xml (again)

2004-01-26 Thread James Mitchell
Try changing this:
 Here is what DOES work in tiles-defs:
 !ENTITY kurt-tiledefs SYSTEM
 C:\Inetpub_Tomcat\rsg_java\struts\pub\WEB-INF\kurt-admin-tilesdefs.xml


to this
!ENTITY kurt-tiledefs SYSTEM
/Inetpub_Tomcat/rsg_java/struts/pub/WEB-INF/kurt-admin-tilesdefs.xml


normally, / will be interpreted as C:\ or to be more
specificyour system's %SystemDrive%



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM: jmitchtx
MSN: [EMAIL PROTECTED]



- Original Message -
From: Matt Bathje [EMAIL PROTECTED]
To: strutslist [EMAIL PROTECTED]
Sent: Monday, January 26, 2004 12:04 PM
Subject: entity includes in tiles-defs.xml (again)


 Hi, I asked this question a month or 2 ago, and never got a response, so
 thought I'd try again -

 Using XML entities, I was able to get my struts-config file broken up into
 multiple files.

 I am attempting the same thing on my tile-defs.xml file, and when I do it,
I
 get the following error:

 12/16/03 10:56:55 AMERROR org.apache.struts.tiles.TilesPlugin init - Can't
 create Tiles definition factory for module ''.
 ServletInitError: javax.servlet.ServletException: IO Error while parsing
 file '/WEB-INF/tiles-defs-admin.xml'.
 C:\WINDOWS\system32\kurt-admin-tilesdefs.xml (The system cannot find the
 file specified)


 So, just to be stupid, I put the full path to the file in the XML enitity
 declaration, and that makes it work - but I don't want to have to hard
code
 that path in.


 Here is what works in struts-config:
 !ENTITY kurt-actionmappings SYSTEM kurt-admin-actionmappings.xml

 Here is what DOESN'T work in tiles-defs:
 !ENTITY kurt-tiledefs SYSTEM kurt-admin-tilesdefs.xml

 Here is what DOES work in tiles-defs:
 !ENTITY kurt-tiledefs SYSTEM
 C:\Inetpub_Tomcat\rsg_java\struts\pub\WEB-INF\kurt-admin-tilesdefs.xml

 I have also tried doing ./kurt-admin-tilesdefs.xml and
 /kurt-admin-tilesdefs.xml but they just give me the same error.

 Any ideas about what is going on or how to fix it?


 Thanks,
 Matt Bathje


 -
 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: Debugging in JBoss 3.2.3

2004-01-25 Thread James Mitchell
Sorry, I wasn't able to get this done.  A few hours ago I got 5 more
Chapters dumped into my Inbox (tech editing) so I'm not sure when I'll have
time.  Maybe next week.

Thankx.


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM: jmitchtx
MSN: [EMAIL PROTECTED]



- Original Message -
From: James Mitchell [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, January 23, 2004 9:39 AM
Subject: Re: Debugging in JBoss 3.2.3


 I'll see if I can put together something this weekend like this:
  http://jakarta.apache.org/struts/faqs/eclipse.html

 --
 James Mitchell
 Software Engineer / Struts Evangelist
 http://www.struts-atlanta.org
 678.910.8017 (cell)
 AIM: jmitchtx
 MSN: [EMAIL PROTECTED]



 - Original Message -
 From: Ramadoss Chinnakuzhandai [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Friday, January 23, 2004 9:24 AM
 Subject: RE: Debugging in JBoss 3.2.3


 Can u drop more light on itit would be helpful for guy like me whoz
new
 to JBoss

 Tnx in advance.

 -R

 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 22, 2004 3:27 PM
 To: Struts Users Mailing List
 Subject: Re: Debugging in JBoss 3.2.3


 Yes,

 1. Setup JBoss for remote debugging.
 (specifically, you need to add a line
  to the .bat/.sh startup script)

 2. Setup your .war expanded
  (for example, the directory in the
   deploy directory is named 'myapp.war')

 3. Startup JBoss/Tomcat and use remote debugging
in Eclipse


 sorry for the speedy, not-quite-complete helpbut that's basically
 what I used to do before I found MyEclipse.

 Now, if only MyEclipse worked on 3.0 M6...hm

 --
 James Mitchell
 Software Engineer / Struts Evangelist
 http://www.struts-atlanta.org
 678.910.8017 (cell)
 AIM:jmitchtx
 MSN: [EMAIL PROTECTED]



 - Original Message -
 From: Ramadoss Chinnakuzhandai [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, January 22, 2004 3:07 PM
 Subject: Debugging in JBoss 3.2.3


 Hi,
  I'm using JBoss 3.2.3 (with Tomcat as default container) and was
 using version 3.2.1 earliar with Tomcat as separate container and was able
 to debug my application using eclipse, now we are moved onto JBoss 3.2.3
 with Tomcat as default container. Is there anyway I can debug my
application
 using eclipse without having to re-deploy my application again and again.
 I know I can use myeclipse plugin to debug but wondering is there any
other
 better alternate for debugging.
 Thanks in advance,
 -Ramadoss






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


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



Re: Debugging in JBoss 3.2.3

2004-01-23 Thread James Mitchell
I'll see if I can put together something this weekend like this:
 http://jakarta.apache.org/struts/faqs/eclipse.html

--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM: jmitchtx
MSN: [EMAIL PROTECTED]



- Original Message -
From: Ramadoss Chinnakuzhandai [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, January 23, 2004 9:24 AM
Subject: RE: Debugging in JBoss 3.2.3


Can u drop more light on itit would be helpful for guy like me whoz new
to JBoss

Tnx in advance.

-R

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 3:27 PM
To: Struts Users Mailing List
Subject: Re: Debugging in JBoss 3.2.3


Yes,

1. Setup JBoss for remote debugging.
(specifically, you need to add a line
 to the .bat/.sh startup script)

2. Setup your .war expanded
 (for example, the directory in the
  deploy directory is named 'myapp.war')

3. Startup JBoss/Tomcat and use remote debugging
   in Eclipse


sorry for the speedy, not-quite-complete helpbut that's basically
what I used to do before I found MyEclipse.

Now, if only MyEclipse worked on 3.0 M6...hm

--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM:jmitchtx
MSN: [EMAIL PROTECTED]



- Original Message -
From: Ramadoss Chinnakuzhandai [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 3:07 PM
Subject: Debugging in JBoss 3.2.3


Hi,
 I'm using JBoss 3.2.3 (with Tomcat as default container) and was
using version 3.2.1 earliar with Tomcat as separate container and was able
to debug my application using eclipse, now we are moved onto JBoss 3.2.3
with Tomcat as default container. Is there anyway I can debug my application
using eclipse without having to re-deploy my application again and again.
I know I can use myeclipse plugin to debug but wondering is there any other
better alternate for debugging.
Thanks in advance,
-Ramadoss






-
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: Switch Action

2004-01-23 Thread James Mitchell
http://sourceforge.net/project/showfiles.php?group_id=49385package_id=74324
release_id=147944


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM: jmitchtx
MSN: [EMAIL PROTECTED]



- Original Message -
From: Ramadoss Chinnakuzhandai [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 10:47 AM
Subject: Switch Action


Hi,
Can anybody give an example for switch action if possible in
detail.

Thanks in advance.

-Ram

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



[Struts Atlanta] January meeting

2004-01-23 Thread James Mitchell
This month's meeting will be held on Thursday, January 29, 2004.

The topic this month is an Open Forum.  Our local Atlanta Struts gurus will
take their best crack at helping you with any issues/questions you may have.


For more information, go to:

 http://www.struts-atlanta.org





--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM: jmitchtx
MSN: [EMAIL PROTECTED]





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



Re: Debugging in JBoss 3.2.3

2004-01-22 Thread James Mitchell
Yes,

1. Setup JBoss for remote debugging.
(specifically, you need to add a line
 to the .bat/.sh startup script)

2. Setup your .war expanded
 (for example, the directory in the
  deploy directory is named 'myapp.war')

3. Startup JBoss/Tomcat and use remote debugging
   in Eclipse


sorry for the speedy, not-quite-complete helpbut that's basically
what I used to do before I found MyEclipse.

Now, if only MyEclipse worked on 3.0 M6...hm

--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM:jmitchtx
MSN: [EMAIL PROTECTED]



- Original Message -
From: Ramadoss Chinnakuzhandai [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 3:07 PM
Subject: Debugging in JBoss 3.2.3


Hi,
 I'm using JBoss 3.2.3 (with Tomcat as default container) and was
using version 3.2.1 earliar with Tomcat as separate container and was able
to debug my application using eclipse, now we are moved onto JBoss 3.2.3
with Tomcat as default container. Is there anyway I can debug my application
using eclipse without having to re-deploy my application again and again.
I know I can use myeclipse plugin to debug but wondering is there any other
better alternate for debugging.
Thanks in advance,
-Ramadoss






-
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:link multiple parameters

2004-01-22 Thread James Mitchell
Sorry if this was already posted, but you can always do this:


jsp:useBean id=linkParams class=java.util.HashMap/
c:set target=${linkParams} property=action value=addAuctionItem/
c:set target=${linkParams} property=id value=${bean.itemId}/


 html:link action=/ManageAuctions name=linkParams
   Add XYZ Cart
 /html:link


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM:jmitchtx
MSN: [EMAIL PROTECTED]



- Original Message - 
From: Richard Hightower [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 8:16 PM
Subject: RE: html:link multiple parameters


 use JSTL
 
 c:url/
 
 it allows you to pass parameter tags
 
 -Original Message-
 From: Nathan Maves [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 22, 2004 9:47 AM
 To: Struts Users Mailing List
 Subject: html:link multiple parameters
 
 
 Is there any reason why this has not been implemented in the struts 
 html tags?
 
 http://www.mail-archive.com/[EMAIL PROTECTED]/msg02207.html
 
 Say I have a List of People objects that I place into the request from 
 an action.
 
 Now I want to iterate through them and create links with two or more 
 parameters.  I now have to add a List of HashMaps that contain these 
 two attributes of a person.  Tell me there is a better way to do this.
 
 Nathan
 
 
 -
 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: [OT?]Tomcat multiple users developing

2004-01-21 Thread James Mitchell
- Original Message -
From: Larry Meadors [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 21, 2004 10:47 AM
Subject: Re: [OT?]Tomcat multiple users developing


  1) How do you share the same application development? Do you use
  a strategy? We are testing our business objects outside struts,

 Are you all sharing a single tomcat instance for development? If so,
 stop now! :-)

+1


 Set up a version control system (like cvs), and use one instance of
 tomcat per developer (on each workstation). That way only your changes
 affect you. Update from cvs often and commit when your code works.

  2) Is there another way to tell Tomcat that a class has been changed
  instead of reload the application or set the reload=true attribute
  in the context?

 No.

Actually, that's not totally true.  When running Tomcat and attaching via
Remote Debugging (or using something like MyEclipse), you can change and
save (which Eclipse automatically compiles for you) your code at will and
you will be able to execute that new code by just refreshing your browser.

Or even better, if you set a break point in a method and as an executing
thread comes to (and freezes on it) that peice of code, you can change
anything in that method and execution will restart from the top of that
method.

As long as you don't change the signature of a preloaded class (binary
compatibility), you can change all you want, on the fly.

Good stuff for lazy people!   (like me ;)



 Larry



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM: jmitchtx
MSN: [EMAIL PROTECTED]



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



Re: [OT] Eclipse and JSTL

2004-01-18 Thread James Mitchell
Yes, MyEclipse.
 http://www.myeclipseide.com/





--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM:jmitchtx



- Original Message -
From: Mike Duffy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Sunday, January 18, 2004 3:13 AM
Subject: [OT] Eclipse and JSTL


 Has anyone found a good Eclipse plugin for editing JSPs containing JSTL?

 Thanks.

 Mike

 __
 Do you Yahoo!?
 Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
 http://hotjobs.sweepstakes.yahoo.com/signingbonus

 -
 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: [OT] Eclipse and JSTL

2004-01-18 Thread James Mitchell
That's true.  It is not free.  But it is the best $30 you'll ever spend.


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM:jmitchtx



- Original Message -
From: Ashikuzzaman [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Sunday, January 18, 2004 12:50 PM
Subject: RE: [OT] Eclipse and JSTL



 But myeclipseide is not free. I guess new plugins will come soon or a
lomboz
 j2ee plugin update will come for supporting J2EE 1.4. Currently my lomboz
 supports J2EE 1.3 of which JSTL is not an integral part.

 Regards,

 Muhammad Ashikuzzaman (Fahim)
 SCJP, SCWCD, IBM WebSphere and XML Developer
 Senior Software Engineer, SurroundApps Inc.


 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]
 Sent: Sunday, January 18, 2004 10:05 PM
 To: Struts Users Mailing List
 Subject: Re: [OT] Eclipse and JSTL

 Yes, MyEclipse.
  http://www.myeclipseide.com/





 --
 James Mitchell
 Software Engineer / Struts Evangelist
 http://www.struts-atlanta.org
 678.910.8017 (cell)
 AIM:jmitchtx



 - Original Message -
 From: Mike Duffy [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED];
 [EMAIL PROTECTED]
 Sent: Sunday, January 18, 2004 3:13 AM
 Subject: [OT] Eclipse and JSTL


  Has anyone found a good Eclipse plugin for editing JSPs containing JSTL?
 
  Thanks.
 
  Mike
 
  __
  Do you Yahoo!?
  Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
  http://hotjobs.sweepstakes.yahoo.com/signingbonus
 
  -
  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: How to enable Text formatting in Text area using struts html tagshtml:TextArea...

2004-01-15 Thread James Mitchell
You know, you'll be lucky if you don't get flamed for asking a question like
that here.

I'll take the high road today ;)

I would highly suggest you do one of the following:
 - purchase a book on HTML
 - go through an HTML tutorial
 - search google
 - search mail-archive.com


Please post back if you don't find your answer after doing one of those.


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM:jmitchtx



- Original Message -
From: N.N.S.S Ravi Krishna [EMAIL PROTECTED]
To: 'struts users' [EMAIL PROTECTED]
Sent: Thursday, January 15, 2004 6:28 AM
Subject: How to enable Text formatting in Text area using struts html
tagshtml:TextArea...


 Hi,
  I am using html:textarea .I want to format the text written in the
 given text area i.e. enabling characters bold, Italics,underline etc., as
in
 windows .doc format.

 Please help me how do I achieve this using struts tagshtml:textarea

 --Ravi Krishna






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



Re: Struts 1.1 and iPlanet iws 6.05

2004-01-12 Thread James Mitchell
You should upgrade to 6.1 if you can.  It uses Tomcat under the covers.  All
will work fine once you do that.

James

- Original Message - 
From: Fowler, David [EMAIL PROTECTED]
To: Struts [EMAIL PROTECTED]
Sent: Monday, January 12, 2004 10:22 PM
Subject: Struts 1.1 and iPlanet iws 6.05


I have read through the archive and it seems that there are many who have
struggled with iPlanet and Struts.

I have a Struts application running on Tomcat, and I wanted to move it to an
iPlanet web server (6.05).  I'm running into a little trouble.

I get a RequestDispatcher: forward call failed error.  It appears to be
finding the action and failing some time after execution.  Any ideas?


Also, I am using tiles.

If this isn't possible, please tell me now...

-
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: Querystring builder

2004-01-04 Thread James Mitchell
On Mon, 5 Jan 2004, Patrick Cheng wrote:

 Hi All,

 I have been trying to find helper class to build QueryString from
 javabean.
 Does anyone know of any tool like this?

What are you wanting to do?  Add parameters from your bean?


 Thanks,
 Patrick.

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



-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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



Re: How to perform validation and then call another javascript function?

2003-12-29 Thread James Mitchell

Not to be too off-subjectbut, why do you have the Struts Users
Mailing List named as usergroup in your mail client?  Is this the only
usergroup that you subscribe to?  I am on at least 15, so I almost
skipped right over your post.

Would you mind changing it to at least strutsgroup or something with
struts in the name?

Thanks





On Mon, 29 Dec 2003, Clark Kent wrote:


 I have a form in which upon submit, depending on whether a certain checkbox is 
 checked or not, it is directed to a certain action (if checked, then action 1, if 
 unchecked, then action 2). With the following code, I am trying to validate the 
 form.  Now I need to perform the validation and also depending upon the checkbox 
 condition (checked or not) I need to redirect it to one of 2 actions. 
 UpdateSubscription() is a javascript function which directs to a certain action and 
 then submits it.

 How can I do both the validation and also call this javascript function to redirect 
 to different actions. Can I use any condition within the onsubmit=  ? Any help 
 would be appreciated?



 html:errors /

 html:javascript formName=subscriptionForm /

 html:form name=subscriptionForm onsubmit=return validateSubscriptionForm(this);



 html:submit property=submitEnrollment value=Submit

 onclick=updateSubscription();/



 /html:form







 -
 Do you Yahoo!?
 Yahoo! Photos - Get your photo on the big screen in Times Square

-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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



Re: .NET: We are just like Struts... only better.

2003-12-25 Thread James Mitchell
On Thu, 25 Dec 2003 [EMAIL PROTECTED] wrote:

  Just like everyone else.
  http://msdn.microsoft.com/asp.net/default.aspx?pull=/library/en-us/dnaspp/html/aspnet-aspnet-j2ee-struts.asp
 
  This was fun to read, it puts a smile on my face. Somone has a chip on
  their sholder.

 Great article, Vic. First time there is some Struts-bashing from Microsoft.

I didn't notice any bashing going on.  I found it to be a pretty good
article pointing out high level differences between developing with Struts
vs. an ASP.NET approach.  From an agnostic approach, it was a pretty good
article.

Funny thing is, the only negative comments (or short-falls) the author
mentioned about taking the J2EE/Struts approach were not really about
Struts per se, but were issues/problems with J2EE development in general.


Reading through this article, I began to feel a lump in my throat as it
slowly dawned on me what this article really represents.  After who knows
how many millions of dollars of RD and many years of success and failure
on fronts far and wide..and the best that Microsoft can come up with
(or at least in this authors eyes) is a copy-cat of a free product.  I
try to hold a straight face, but inside I am dying with laughter.




 The most important point left off is if there is missing functionality in
 Struts, you can go ahead and add it yourself because you have access to
 the source code.

  This is commic: How to migrate Struts to ASP. ??

 ewww.. wouldn't want to go there.

 I-Shen





-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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



Re: capture the output of a logic:iterate and place it in the URI of an html:link forward

2003-12-23 Thread James Mitchell


1. Do not use the same name for 'id' and 'name' in your iterate tag.
(I made it plural)

session.setAttribute(concurs, group.getConcurrencesList());
   ^^^

2. You can easily create a map for use with links or other tags like so:

jsp:useBean id=mapOfKeyValues class=java.util.HashMap/

TABLE
logic:iterate id=concur name=concurs !-- concur contains the
ArrayList --

!-- this value get overwritten with each iteration --
  c:set target=${mapOfKeyValues} property=someKey
   value=${concur.someProperty}/
  TR
TD
html:link forward=concurrence name=mapOfKeyValues
bean:write name=concur property=projectName
/html:link
/TD
TDbean:write name=concur property=concurrenceStatus/
/TD
  /TR
/logic:iterate
/TABLE



Hope that helps.


On Mon, 22 Dec 2003, Mike R. Phelan wrote:

 Hi folks,

 I'm trying to add a parameter to a hyperlink, but I don't have direct access to the 
 value I want to use in the parameter. I don't have direct access because the value 
 is held within an ArrayList object, and only referenced with a logic:iterate call in 
 a JSP page.

 I have thoroughly searched the mailing list archive and wider Internet, as well as 
 Struts in Action. I have found some related material, but nothing that does 
 exactly what I need to do.

 I have an ArrayList of Objects that I've placed in the HTTP Request object.

 LogonAction.java excerpt:
 ...
 session.setAttribute(concur, group.getConcurrencesList());
 ...

 Each item in the ArrayList consists of two Strings, named projectName and 
 concurrenceStatus .
 I am iterating through that on a JSP page, using a logic:iterate tag.

 portal.jsp excerpt:
 ...
 TABLE
 logic:iterate id=concur name=concur !-- concur contains the ArrayList --
   TR
 TDhtml:link forward=concurrence
 bean:write name=concur property=projectName
 /html:link
 /TD
 TDbean:write name=concur property=concurrenceStatus/
 /TD
   /TR
 /logic:iterate
 /TABLE
 ...

 This results in the projectName and concurrenceStatus value pairs of every item in 
 the ArrayList concur being printed to the page, in a table. The projectName values 
 render as hyperlinks to project.jsp, the site specified in the struts-config.xml.
 excerpts from struts-config.xml
 ...
 forward name=concurrence path=/Concurrence.do/
 ...
 action
   path=/Concurrence
   type=org.apache.struts.actions.ForwardAction
   parameter=/pages/project.jsp/
 ...

 I want to take the property projectName and append its value to the URI referenced 
 by the hyperlink.

 I have tried using the technique referenced in SIA 6.4.1, as well as the technique 
 referenced in
 http://www.mail-archive.com/[EMAIL PROTECTED]/msg89289.html

 I can't quite get it working. I'd really appreciate any help.

 thanks,

 Mike Phelan


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



-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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



Re: Multiple struts-config.xml

2003-12-22 Thread James Mitchell
On Sat, 20 Dec 2003, Sudhakar G wrote:

 Hi,
 Can any one give me a example how struts supports multiple struts-config.xml
 file?

See the struts-example.war that comes with the distribution.


 Thanks in advance..
 cheers
 Sudhakar







 DISCLAIMER:
 This message (including attachment if any) is confidential and may be privileged. 
 Before opening attachments please check them for viruses and defects. MindTree 
 Consulting Private Limited (MindTree) will not be responsible for any viruses or 
 defects or any forwarded attachments emanating either from within MindTree or 
 outside. If you have received this message by mistake please notify the sender by 
 return  e-mail and delete this message from your system. Any unauthorized use or 
 dissemination of this message in whole or in part is strictly prohibited.  Please 
 note that e-mails are susceptible to change and MindTree shall not be liable for any 
 improper, untimely or incomplete transmission.

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



-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org

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



Re: URGENT - Help defending Struts

2003-12-19 Thread James Mitchell
On Thu, 18 Dec 2003 [EMAIL PROTECTED] wrote:

That's funny.  I'm on a contract right now with Accenture and we are using
it as part of GRNDS.

 All:



 Our CIO is currently fighting the use of Struts by saying that it is not
 widely used in B2C sites.  Does anyone know of any sites, preferably
 commerce sites that are using Struts?  This would be extremely helpful.



 The issue is that the CIO is looking for sites that may be similar to
 ours that are using Struts already.



 Thanks very much,

 Russell



 [EMAIL PROTECTED]

 310-426-5587





 This message is for the designated recipient only and may contain privileged, 
 proprietary, or otherwise private information.  If you have received it in error, 
 please notify the sender immediately and delete the original.  Any other use of the 
 email by you is prohibited.


-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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



Re: .Net Struts?

2003-12-16 Thread James Mitchell
On Tue, 16 Dec 2003, Dhaliwal, Pritpal (HQP) wrote:

 Is anyone working on struts in .Net?

No.  You are the first.


 Curious..

 Pritpal Dhaliwal


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



-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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



Re: [ANNOUNCE] Struts Console v4.2

2003-12-16 Thread James Mitchell
On Mon, 15 Dec 2003, James Holmes wrote:


Just in case no one else mentions it, thanks for your hard work on this!
I know it isn't easy spending so much time on it and then giving it away.



 Struts Console version 4.2 is now available.

 http://www.jamesholmes.com/struts/

 Download Now:
 http://www.jamesholmes.com/struts/struts-console-4.2.zip
   -- OR --
 http://www.jamesholmes.com/struts/struts-console-4.2.tar.gz

 Struts Console is FREE software.

 At long last there is a new release.  This release has a bug fix
 and some enhancements.

 Changes with Struts Console v4.2

   *) Fixed to Eclipse plugin to work with 3.0M5
  and higher releases.

   *) Added ability to set output options from
  JDeveloper plugin.

   *) Added ability to set output options from
  IntelliJ IDEA plugin.

 Thanks,

 -James
 [EMAIL PROTECTED]
 http://www.jamesholmes.com/struts/


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



-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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



Re: iterate over one collection two times in a jsp

2003-12-05 Thread James Mitchell
On Fri, 5 Dec 2003, Gurpreet Dhanoa wrote:

 hi Ralf

 I am facing the same trouble. If u come to know the answer Please let me
 know as well

Not sure if this helps, but I do this in several places on my app.
However, I use JSTL c:forEach tag.



 Thanks in Advance
 Gary
 - Original Message -
 From: Ralf Rapude [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, December 05, 2003 4:49 PM
 Subject: iterate over one collection two times in a jsp


  Hi,
  with a logic:iterate tag I run over a Collection:
 
  logic:present name=%=Constants.SUBJECTS % scope=session 
logic:iterate id=subjects name=%=Constants.SUBJECTS %
  ...output
/logic:iterate
  /logic:present
 
  It works well but if I try to iterate over the same collection after
  changing the id (but still in the same jsp):
 
  logic:present name=%=Constants.SUBJECTS % scope=session 
logic:iterate id=subjectsmain name=%=Constants.SUBJECTS %
  ... output
/logic:iterate
  /logic:present
 
  I got this Exception - Cannot create iterator for this collection
 
  It works if I put my collection under a different name in the
  session-scope, but in my Opinion there must be a more proper way to
  handle the problem.
 
  Thanks a lot
  Ralf
 
 
 
 
  -
  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]



-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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



Re: Log4j with Struts

2003-12-05 Thread James Mitchell
, Hadapsar Industrial Estate
  Pune - 411 013
  Phone: +91 4042333 or 4031122 Extn 2556
  +91 20 31544082 ( Mobile )
  Fax: +91 20 4042399
  email : [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]



-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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



RE: Problems with modules

2003-12-05 Thread James Mitchell
On Fri, 5 Dec 2003, Lawrence Williams wrote:

 Aman,

 Thanks for your reply,

 However I cant see what you are suggesting here? Can you describe what you are 
 meaning? -

 btw I don’t use the application param because as far as im aware it is deprecated 
 in favour of the message-resources element.

 The crux of my problem is that my index.jsp (Welcome file) cant seem to resolve any 
 of my module's global-forwards. However if I type a direct url to 
 http://host/app/module/logon.do the module works fine.


That's correct.

The container is serving up your index.jsp based on the uri from the
web.xml (*.do), so anything under /yourapp (or whatever your context is)
will be used by the container.

Bascially what that means is that Struts hasn't come into the picture
yet.

Unless you specifically swith to a different module (which requires a GET
or POST to something that goes through the ActionServlet (*.do in your
case), then the default configuration is used.

There is a simple module-switching example that I put together and is
available here:

http://sourceforge.net/projects/struts
 - go down to simple, and look for Module Switching Examples


 Regards
 Lawrence



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 05 December 2003 10:51
 To: Struts Users Mailing List
 Subject: Re: Problems with modules

 Hi,
 Make the following changes in ur web.xml to ur specific configuration file

   servlet
 servlet-nameaction/servlet-name
 servlet-classorg.apache.struts.action.ActionServlet/servlet-class
 init-param
   param-nameapplication/param-name

 param-valuefr.improve.struts.webapp.layout.example.ApplicationResources/param-value
 /init-param
 init-param
   param-nameconfig/param-name
   param-value/WEB-INF/struts-config.xml/param-value
 /init-param



 Thanks  Regards,

 Aman Sheriff

 ---
 MoTech Software Pvt. Ltd.
 56, Mogra Village Lane,
 Andheri East
 Mumbai - 400 069

 ph : 91 -22 - 821 4541 x 1412
 fax :  91 -22 - 820 8757
 ---

 -
 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.547 / Virus Database: 340 - Release Date: 02/12/2003


 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.547 / Virus Database: 340 - Release Date: 02/12/2003


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



-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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



Re: session taglib

2003-12-05 Thread James Mitchell
On Fri, 5 Dec 2003, struts wrote:

 In the Jsp i have:

 sess:attribute name=userName/

 witch prints the username. Now i want something like:

 %

 String username= sess:attribute name=userName/;

 %

 but that doesn't work. How can i assign the session variable to the String username ?

A scriptlet-free way to do this:

bean:define id=username
 sess:attribute name=userName/
/bean:define


 Thanks !




-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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



Re: using ApplicationResources in jsp...

2003-12-05 Thread James Mitchell
On Fri, 5 Dec 2003, Ralf Rapude wrote:

 Hi Gary,
 I am facing the same trouble. If u come to know the answer Please let me
 know as well
 Thanks in Advance
 I havn't been able to find a solution yet though asking in several ngs
 and forums.
 I will post to the list if the problem is solved (but I still hope,
 that someone of the listmembers knows which way to go :o).

bean:define id=msg
 bean:message key=some.key.in.properties
/bean:define

...doing that will create a scripting variable that you can use in your
own scriptlet.

See the docs for more help (there is even a JSTL equivalent IN THE DOCS)



 Regards
 Ralf Rapude


  Hi,
  with a logic:iterate tag I run over a Collection:
 
  logic:present name=%=Constants.SUBJECTS % scope=session 
  logic:iterate id=subjects name=%=Constants.SUBJECTS %
  ...output
  /logic:iterate
  /logic:present
 
  It works well but if I try to iterate over the same collection after
  changing the id (but still in the same jsp):
 
  logic:present name=%=Constants.SUBJECTS % scope=session 
  logic:iterate id=subjectsmain name=%=Constants.SUBJECTS %
  ... output
  /logic:iterate
  /logic:present
 
  I got this Exception - Cannot create iterator for this collection
 
  It works if I put my collection under a different name in the
  session-scope, but in my Opinion there must be a more proper way to
  handle the problem.
 
  Thanks a lot
  Ralf
 
 
 
 
  -
  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]



-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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



Re: session taglib

2003-12-05 Thread James Mitchell
On Fri, 5 Dec 2003, Oron Gill Haus wrote:

 James,

 Isn't there a drive to move to JSTL vs. the Struts tag library?  I'm
 curious as we've been pushing JSTL for this reason (though it rather
 flexible).

Yes, you are absolutely correct.  Use c:set if you can (given the min spec
requ).

Have a good one!


 Thank you.

 --- James Mitchell [EMAIL PROTECTED] wrote:
  On Fri, 5 Dec 2003, struts wrote:
 
   In the Jsp i have:
  
   sess:attribute name=userName/
  
   witch prints the username. Now i want something like:
  
   %
  
   String username= sess:attribute name=userName/;
  
   %
  
   but that doesn't work. How can i assign the session variable to the
  String username ?
 
  A scriptlet-free way to do this:
 
  bean:define id=username
   sess:attribute name=userName/
  /bean:define
 
  
   Thanks !
  
  
  
 
  --
  James Mitchell
  Software Developer / Struts Evangelist
  http://www.struts-atlanta.org
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


 =
 Oron Gill Haus
 IBM CSE Content Manager 8 - Sun Certified Programmer Java 2 1.4
 office: (410) 539-3733 x1348
 fax:(410) 837-9535 c/o Oron
 e-mail: [EMAIL PROTECTED]
 web: http://www.electronicscene.com/oron_haus

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



-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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



Re: The API of a package

2003-12-02 Thread James Mitchell
On Tue, 2 Dec 2003, Gus Heck wrote:

 In package com.google.www?


LOL.and I thought I was a smart azz!



 How does this happen to relate to struts?

 Have you read: http://www.catb.org/~esr/faqs/smart-questions.html?

 Zakaria khabot wrote:

 Hi,
 In wich Pakage exist the import org.jdom.* 
 Thanks for all...
 
 
 
 
 



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



-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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



Re: FormFile not re-populated

2003-12-01 Thread James Mitchell
On Mon, 1 Dec 2003, Sharmila Pandith wrote:

 Hi,

 I am using FormFile and after it is validated it must be displayed on the
 next JSP. However, the field is blank. When I look at the source in IE6, I
 see the file name without the directory. But even that is not displayed.

 Any thoughts?


Yes, basically, you cannot expect to pre-fill an input field of type
file (html file upload box with browse button).  It is not supported in
all browsers and those that do, prompt the user to so they can cancel the
field value or the form all-together.

You would be better off doing something like this:
1. Show page (with file upload button), and ask the user if they want
   to upload additional files (radio button or something)
2. If yes, then after that page is processed, show it again, only this
   time with file listed off to the side (similar to how a summary view
   of a shopping cart might do)
3. If no, then move along with your wizard.

Does that help?




 S P

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



-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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



Re: Urgent Help Struts on Linux

2003-11-27 Thread James Mitchell
On Thu, 27 Nov 2003, Gurpreet Dhanoa wrote:

What version of Struts are you using?


 HI David,

 Thanks and i realy appreciate your Help. We have found we are using
 Tomcat4.0 and now we are going to install Tomcat 4.1 same as you used. Yes,
 we are getting all of the jar files and strut-config as well. I think trying
 on Tomcat4.1 may solve the issue. Well now i am innstalling Tomcayt4.1 and
 will be needing your assistance further ifnothing work work

 Once again Thanks for your support.

 Regards
 Gary

 - Original Message -
 From: David Friedman [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, November 27, 2003 10:30 PM
 Subject: RE: Urgent Help Struts on Linux


  I've developed on a Windows platform and ported to Linux for
  Struts/Tiles/Tomcat before and not had this problem.  I've used Tomcat
  4.1.24 and higher, not 4.0.6.  Is your deployment bringing over all .jars
  and putting them in WEB-INF/lib as well as bringing over your
  WEB-INF/struts-config.xml (and any modular ocnfigurations if you use
 them?)
  ?
 
  Regards,
  David
 
  -Original Message-
  From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED]
  Sent: Thursday, November 27, 2003 11:51 AM
  To: Struts Users Mailing List
  Subject: Urgent Help Struts on Linux
 
 
  Hi
 
  We are facing a problem of running an application in Struts using Tiles on
  the Tomcat running on linux . WE have ran the application on Windows and
 it
  is working absolutely fine but when we are trying it to run on Linux we
 are
  not able to call Action Servlet and got the error. Then we debuged the
  application and found if we dont use the Tiles then it works fine, but as
  soon as we are trying to run the application with tiles it just hang on.
 
  Following are the some of the major contents of log file which has been
  generated when we used tiles
 
  2003-11-27 17:57:05 ApplicationDispatcher[/efit]: Servlet action is
  currently unavailable
  2003-11-27 17:59:49 StandardHost[localhost]: Removing web application at
  context path /webdav
  2003-11-27 17:59:51 StandardHost[localhost]: Removing web application at
  context path /examples
  2003-11-27 17:59:52 StandardHost[localhost]: Removing web application at
  context path /efit
  2003-11-27 17:59:53 StandardHost[localhost]: Removing web application at
  context path /jamesj2ee
  2003-11-27 17:59:53 StandardHost[localhost]: Removing web application at
  context path /efitAdmin_20Nov
  2003-11-27 17:59:55 StandardHost[localhost]: Removing web application at
  context path /manager
  2003-11-27 17:59:55 StandardHost[localhost]: Removing web application at
  context path /efitAdmin_old
  2003-11-27 17:59:57 action: Error - TilesRequestProcessor : Definition
  Factory not found for subapp ''. Do you have declared appropriate plugin
 in
  struts-config.xml ?
  2003-11-27 17:59:58 StandardHost[localhost]: Removing web application at
  context path /efitAdmin_old20Nov
  2003-11-27 17:59:59 StandardHost[localhost]: Removing web application at
  context path /efitAdmin_29_10_2003
  2003-11-27 18:00:00 action: Error - TilesRequestProcessor : Definition
  Factory not found for subapp ''. Do you have declared appropriate plugin
 in
  struts-config.xml ?
  2003-11-27 18:00:00 StandardHost[localhost]: Removing web application at
  context path /tomcat-docs
  2003-11-27 18:00:00 StandardHost[localhost]: Removing web application at
  context path /efitAdmin_Nov24,2003
  2003-11-27 18:00:01 StandardHost[localhost]: Removing web application at
  context path /efitAdmin
  2003-11-27 18:00:04 StandardHost[localhost]: Removing web application at
  context path
  2003-11-27 18:13:33 WebappLoader[/manager]: Deploying class repositories
 to
  work directory
  /home/ashish/tomcat/jakarta-tomcat-4.0.6/work/Standalone/localhost/manager
  2003-11-27 18:13:33 StandardManager[/manager]: Seeding random number
  generator class java.security.SecureRandom
  2003-11-27 18:13:33 StandardManager[/manager]: Seeding of random number
  generator has been completed
 
 
 
  ARe we missing something on Linux server which is required to make Tiles
 run
  .
 
 
  Any help will be of great use.
 
  Regards
  Gary
 
 
  -
  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]



-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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



Re: Struts-chain

2003-11-27 Thread James Mitchell
On Thu, 27 Nov 2003, Vic Cekvenich wrote:

 I tried to build to get the chain sample app... and I can't. I got the
 common and struts chain jars built.

 In order to build sample chains war... you have to get sturts to build
 from source... which requires you get commons-lib.home of CVS of jakarta
 commons and sandobox... yuck. (Maven build of Sturts is broken).

Actually, you don't have to build the commons stuff, just get the
latest binaries and reference them in your build.properties.

See build.properties.sample for what you have to do.



 If anyone (Batjen?) wants to e-mail me privetly the example war file
 great, tia.

 .V

 Craig R. McClanahan wrote:
  Quoting Vic Cekvenich [EMAIL PROTECTED]:
 
 
 
 BaTien Duong wrote:
 
 
   i am able to have struts-chain example (the old
 
 struts-example with struts-chain built from cvs) up and running using
 j2sdk1.4.2_02 and tomcat 5.0.14.
 
 
 Where did you find an example of using a Struts chain?
 
 .V
 
 
 
  Download the jakarta-struts nightly source distro (or check it out from
  anonymous CVS).  Then, start Tomcat and execute:
 
cd contrib/struts-chain
ant install
 
  This builds a variation on the standard struts-example webapp that uses the
  chain-based replacement for the standard RequestProcessor.
 
  Craig



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



-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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



Re: bean:message and characters that are sensitive in HTML

2003-11-26 Thread James Mitchell
On Wed, 26 Nov 2003, Duma Rolando wrote:

 Hello everybody,
 I would like to know if there is something like the filter attribute present
 in the bean:write tag that I can use with the bean:message tag.
 The problem is that I want to use the same i18n key inside a jsp and also
 for a plain text e-mail message.
 Thanks for your help.

Is plain text part of the requirements?  I added a mailer component to a
recent project that sends users their newly generated passwords.  The
format is html, but the message renders fine in text-only browsers like
Pine and Outlook Express (set to text-only mode).




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



-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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



[OT] Re: Sorry.. Need of blood of B Negative

2003-11-24 Thread James Mitchell
On Tue, 25 Nov 2003, Abhijeet Mahalkar wrote:

You should label this as [OT] in the subject heading.  I hope your Uncle
is ok.



 Very Very Sorry to all ,
  But I have a major requirement of ( B Negative )blood for the heart
 operation of My Uncle at Ruby hospital PUNE, Maharashtra State INDIA.
 All those who are localite Puneties and have a blood group B Negative,
 (Maharashtra State, INDIA)
 I request them to donate the blood to Uday at Ruby hospital.
 The operation will take place on thursday 27th Nov. 2003.
 the contact No. for the Uday is ...91-020-9422320155 or me.
 Abhijeet: 91-020-9822410348 One more thing. We need fesh blood or blood
 taken within last 24 hrs. Maximum.

 I feel that this is the best way to request such things.
 Sorry again for out of disscussion Request...

 regards
 Abhijeet



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



-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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



Re: Localized message to alt-tag

2003-11-20 Thread James Mitchell
On Thu, 20 Nov 2003, Manuel Lenz wrote:






 What Do you mean with altKey attribute?

You would know what I mean If you had:

 - Looked at the user guide
or
 - Looked at the TLD
or
 - Looked at the source


Basically, you can use altKey to display an i18n'd alt tag...

html:checkbox property=wareneingang altKey=label.test/




 I try to fill in a localized message into alt-attribute.
 The only way I know to get a resourceBundle-Message is with bean:message
  Tag.
 But this tag is not usable for alt-attribute.

 Cheers,
 Manuel


 |-+
 | ||
 | ||
 | ||
 | |James Mitchell  |
 | |[EMAIL PROTECTED]  |
 | |19.11.2003 19:34|
 | |Bitte antworten an Struts  |
 | |Users Mailing List |
 |-+
   
 |
   |  
   |
   | An:  Struts Users Mailing List [EMAIL PROTECTED]   
  |
   | Kopie:   
   |
   | Thema:   Re: Localized message to alt-tag
   |
   
 |




 On Wed, 19 Nov 2003, Manuel Lenz wrote:

 
 
 
 
  Hi to all,
  how can I get a localized message from a ressource bundle which ist
 placed
  into the alt-tag of an html-field?
  The struts-tag to get a ressource-bundle message is not defined for
  alt-tag.
  Example:
  html:checkbox property=wareneingang alt=bean:message
 key=label.test
  //

 Did you try using the altKey attribute yet?

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

 --
 James Mitchell
 Software Developer / Struts Evangelist
 http://www.struts-atlanta.org


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



-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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



Re: URGENT :: Disable enter key in HTML:FORM by using onKeyPress func tion

2003-11-20 Thread James Mitchell
On Thu, 20 Nov 2003, Chawla, Yogesh wrote:

 Hi,

 In normal forms, we can disable enter key by calling onKeyPress() function
 in the form tag.
 However, this is not supported in the html:form definition for Struts.

 Can anybody give a solution to this ...

Your best bet for stopping the user from submitting a form with JavaScript
is to handle it in the form tags onsubmit attribute.

Here's an example from a recent app I'm working on:

I needed a way to make sure that users entered a minimum of 3 (or some
configurable value) characters when performing a search.  The problem is
that it can be 3 characters from any combination of 3 fields.


html:form action=/manageUsers
  onsubmit=return doMyValidation(this)
focus=view.registration.security.userName


...and at the bottom of the page I do this...


script language=JavaScript/
function doMyValidation(form){
u =
form.elements['view.registration.security.userName'].value.length;
f =
form.elements['view.registration.personal.firstName'].value.length;
l =
form.elements['view.registration.personal.lastName'].value.length;

if (u + f + l  bean:message
key=validation.min.search.chars/){
alert('c:out value=${msg}/');
return false;
}
return validateSearchForm(form);

}
/script

html:javascript formName=searchForm
dynamicJavascript=true
 staticJavascript=true/



...what that does is allow me to insert my own custom validation and, if
that passes, then the validator-generated one is run.




 Thanks,

 Yogesh Chawla
 DISCLAIMER: The information in this message is confidential and may be
 legally privileged. It is intended solely for the addressee.  Access to this
 message by anyone else is unauthorised.  If you are not the intended
 recipient, any disclosure, copying, or distribution of the message, or any
 action or omission taken by you in reliance on it, is prohibited and may be
 unlawful.  Please immediately contact the sender if you have received this
 message in error. Thank you.

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



-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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



Re: Localized message to alt-tag

2003-11-19 Thread James Mitchell
On Wed, 19 Nov 2003, Manuel Lenz wrote:





 Hi to all,
 how can I get a localized message from a ressource bundle which ist placed
 into the alt-tag of an html-field?
 The struts-tag to get a ressource-bundle message is not defined for
 alt-tag.
 Example:
 html:checkbox property=wareneingang alt=bean:message key=label.test
 //

Did you try using the altKey attribute yet?


 Greetings,
 Manuel


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



-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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



Re: JSTL DynaValidatorForm

2003-11-18 Thread James Mitchell
On Tue, 18 Nov 2003, Yann Lebreton wrote:

 Hi,



 For x and y reasons I've to create my own version of the c:out tag.

Why?


 Everything is working great for everything BUT DynaValidatorForm where I get Unable 
 to find a value for value in object of class 
 org.apache.struts.validator.DynaValidatorForm using operator .


You would get a value from field by using form.map.field if your
DynaValidarotForm was stored under form in any scope or if it was
availabe through a scripting variable by that name.

I do this all the time.  It works great.

Assuming you had value as a field asa form-property...try doing
${manageForm.map.value}



snip/


 Thanks the help,

 Yann



-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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



Re: How to populate form bean during runtime from an XML file?

2003-11-08 Thread James Mitchell
On Fri, 7 Nov 2003, Jyothi Panduranga wrote:

 Hi,

Are there any third party libraries to populate Form bean during run time
 from and XML file?  Can somebody give me pointers on how to go about doing
 this?  Has anybody done this before?  Any help would be appreciated.

Take a look at the DigestingPlugin for easy xml to bean population at
startup:
 http://demo.jgsullivan.com/struts/DigestingPlugIn.html


 Thanks in advance,
 Jyothi


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



-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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



Re: [FRIDAY] Why people want to know who read their msg?

2003-11-07 Thread James Mitchell
On Fri, 7 Nov 2003, Yansheng Lin wrote:


 It's pissing me off when my Outlook asks me if I went to send a notification
 message.

 Don't understand it.

If you don't like Outlook features, stop using Outlook.



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



-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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



RE: [ANNOUNCE] Visual Tags for Struts 2004 Released

2003-11-05 Thread James Mitchell

  
  Sadly, none of the current Committers are using the 
 original taglibs in 
  their own work, and so we are actively looking for a taglib 
 maintainer.
 
 That's not quite true; I use the html and tiles tags all the time :-).

Ditto for me.  I am using the original tags and JSTL (not struts-el).
I haven't come across any show-stoppers in quite a while.  What can I
say, we have a set of very solid taglibs due (in part) to some great
tests!!! ;)


Now...if we could only fix the broken test runDOH!!


 
 David
 



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (c)
770.822.3359 (h)
AIM:jmitchtx


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



RE: Deploying struts application on iplanet 6.0 or 4.0

2003-11-04 Thread James Mitchell
That's because 6.0 != 6.1



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (c)
770.822.3359 (h)
AIM:jmitchtx




 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, November 04, 2003 4:51 AM
 To: Struts Users Mailing List
 Subject: RE: Deploying struts application on iplanet 6.0 or 4.0
 
 
 
 Hello James,
 I have dowloaded the iplanet 6.0 service pack 4.0 (web 
 server) but I am
 still unable to deploy the struts application can anybody 
 tell me what all
 jars I need to keep in the classpath??
 
 
 
 Alok Garg
 Polaris Software Lab Ltd.
 ( + 91 - 022 - 28290019 Ext. # 1308 )
 
 
   

   James Mitchell

   [EMAIL PROTECTED] To:  
 'Struts Users Mailing List' 
 [EMAIL PROTECTED]   
   e.org   cc:  (bcc: 
 alok.garg/Polaris) 
Subject: RE: 
 Deploying struts application on iplanet 6.0 or 4.0   
   11/01/03 02:43  

   AM  

   Please respond  

   to Struts Users

   Mailing List   

   

   

 
 
 
 
 You will need to upgrade to 6.1.  If I were you, I wouldn't waste my
 time trying anything less.
 
 If your customer/boss says they can't or won't, tell them 
 that they will
 spend more time trying to make it work then they ever would have if
 they had just upgraded...trust me!
 
 
 
 --
 James Mitchell
 Software Engineer / Struts Evangelist
 http://www.struts-atlanta.org
 678.910.8017 (c)
 770.822.3359 (h)
 AIM:jmitchtx
 
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Friday, October 31, 2003 4:06 PM
  To: Struts Users Mailing List
  Subject: RE: Deploying struts application on iplanet 6.0 or 4.0
 
 
 
  I want to deploy my Struts application which is running in Tomcat in
  iplanet server version 6.0. with no service packs
 
  Alok Garg
  Polaris Software Lab Ltd.
  ( + 91 - 022 - 28290019 Ext. # 1308 )
 
 
 
 
James Mitchell
 
[EMAIL PROTECTED] To:
  'Struts Users Mailing List'
  [EMAIL PROTECTED]
e.org   cc:  (bcc:
  alok.garg/Polaris)
 Subject: RE:
  Deploying struts application on iplanet 6.0 or 4.0
11/01/03 12:40
 
AM
 
Please respond
 
to Struts Users
 
Mailing List
 
 
 
 
 
 
 
 
 
  You're welcome in advance.  Now, what's your question?
 
 
 
  --
  James Mitchell
  Software Engineer / Struts Evangelist
  http://www.struts-atlanta.org
  678.910.8017 (c)
  770.822.3359 (h)
  AIM:jmitchtx
 
 
 
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
   Sent: Friday, October 31, 2003 1:01 PM
   To: [EMAIL PROTECTED]
   Subject: Deploying struts application on iplanet 6.0 or 4.0
  
  
   Hello ,
   I want to deploy the struts application on iplanet 6.0 or 4.0.
  
   Thanking you in advance...
  
   Alok Garg
   Polaris Software Lab Ltd.
   ( + 91 - 022 - 28290019 Ext. # 1308 )
  
  
  
 
 
  
 -
  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: use html:link pass two param

2003-11-01 Thread James Mitchell
Not sure about the error, but you aren't referencing the bean properties
properly.


jsp:useBean id=cus class=java.util.HashMap/
 ...
 c:set target=${cus} property=cid 
value=list.id/
  ^

...and...

 c:set target=${cus} property=company
value=list.company/
  ^

When referencing dynamic properties with JSTL, be sure to use ${}
syntax.

Try doing this:  value=${list.id}



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (c)
770.822.3359 (h)
AIM:jmitchtx




 -Original Message-
 From: javen fang [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, November 01, 2003 10:45 AM
 To: Struts Users Mailing List
 Subject: Re: use html:link pass two param
 
 
 Thanks all, thanks James Mitchell!
 
 I use the method James Mitchell tell me.
 And I read JSTL Spec and tutorial in javaword.com
 http://www.javaworld.com/javaworld/jw-02-2003/jw-0228-jstl-p3.html
 
 But I encouter a error,and I don't know why this
 occur:
 
 javax.servlet.ServletException: Invalid property in
 set:  cid
 
 These are my code:
 jsp:useBean id=cus class=java.util.HashMap/
 ...
   c:set target=${cus} property=cid
 value=list.id/
   c:set target=${cus} property=company
 value=list.company/
 html:link action=linkman_list
 name=cusLinkman/html:link
 
 My container is tomcat5.0
 
 
 
 
 --- Kris Schneider [EMAIL PROTECTED] wrote:
  You can call it whatever you want - admin-tool
  from James' example. The
  difference is this:
  
  /app/do/manageUsers
  
  vs. this:
  
  /app/manageUsers.do
  
  I think James was referring to the use of:
  
  html:link action=next.do ...
  
  when he said, you should never have to put .do
  any where in your
  application... You really only need to do:
  
  html:link action=/next ...
  
  which will work regardless of how you do your
  servlet mapping.
  
  Quoting Ruth, Brice [EMAIL PROTECTED]:
  
   doesn't this still put 'do' somewhere in the URL?
   
   Kris Schneider wrote:
   
   web.xml:
   
   !-- mapping for ActionServlet --
   servlet-mapping
 servlet-nameaction/servlet-name
 url-pattern/do/*/url-pattern
   /servlet-mapping
   
   Quoting Ruth, Brice [EMAIL PROTECTED]:
   
 
   
   How do you go about enabling path mapping v.
  extension mapping in 
   web.xml (or struts-config.xml)?
   
   James Mitchell wrote:
   
   
   
   First of all, you should never have to put
  .do any where in your
   application except the web.xml file.
   That way, you change the mapping in one place
  and it flows to the rest
   of the application.
   
   Here's what I do:
   
   
   %@ page contentType=text/html;charset=UTF-8
  language=java %
   %@ taglib uri=/WEB-INF/struts-html.tld 
  prefix=html %
   %@ taglib uri=http://java.sun.com/jstl/core;
  prefix=c%
   
   
   jsp:useBean id=userDetailLink
  class=java.util.HashMap/
   
   c:set target=${userDetailLink}
  property=action value=editUser/
   c:set target=${userDetailLink} property=id
  value=${user.id}/
   
   html:link action=/manageUsers
  name=userDetailLink
  Edit this user
   /html:link
   
   
   
   Which produces a link like this:
   
   a
 
 href=/app/admin-tool/manageUsers?action=editUseramp;id=44Edit
   this user/a
   
   
   The above example uses path mapping, but if I
  were using extension
   mapping (*.do), it looks like this:
   
   (with no changes to the source jsp)
   
   a
 
 href=/app/manageUsers.do?action=editUseramp;id=44Edit
  this
   user/a
   
   
   
   --
   James Mitchell
   Software Engineer / Struts Evangelist
   http://www.struts-atlanta.org
   678.910.8017 (c)
   770.822.3359 (h)
   AIM:jmitchtx
   
   
   
   

   
 
   
   -Original Message-
   From: javen fang
  [mailto:[EMAIL PROTECTED] 
   Sent: Friday, October 31, 2003 1:58 AM
   To: struts
   Subject: use html:link pass two param
   
   
   I have a bean list that have two property id /
  name
   
   code:
  
 
 --
   
   html:link action=next.do paramId=first
   paramName=list paramProperty=id next
  action
   /html:link
   
  
 
 --
   
   
   And how can I pass the second parameter name
  after the
   action next.do??
   Thanks.
   
   
   
  
 
 __
   Do You Yahoo!?
   Tired of spam?  Yahoo! Mail has the best spam
  protection around 
   http://mail.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]
   

   
 
   
   -- 
   Brice D. Ruth
   Sr. IT Analyst
   Fiskars Brands, Inc

RE: use html:link pass two param

2003-11-01 Thread James Mitchell
Do you have the directive at the top?

%@ taglib uri=http://java.sun.com/jstl/core; prefix=c%



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (c)
770.822.3359 (h)
AIM:jmitchtx




 -Original Message-
 From: javen fang [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, November 01, 2003 12:14 PM
 To: Struts Users Mailing List
 Subject: RE: use html:link pass two param
 
 
 Thank you, James
 
 But even:
 
 c:out value=${USER.username} default=username /
 bean:write name=USER property=username/
 USER is a user session
 bean:write can work,and prints myname
 c:out can not work, and prints   ${USER.username}
 
 why ??? 
 I seems like  my JSTL does not work rightly.
 
 tomcat 5.0 can support jsp2.0 and jstl 1.1 
 
 --- James Mitchell [EMAIL PROTECTED] wrote:
  Not sure about the error, but you aren't referencing
  the bean properties
  properly.
  
  
  jsp:useBean id=cus class=java.util.HashMap/
   ...
   c:set target=${cus} property=cid 
  value=list.id/
^
  
  ...and...
  
   c:set target=${cus} property=company
  value=list.company/
^
  
  When referencing dynamic properties with JSTL, be
  sure to use ${}
  syntax.
  
  Try doing this:  value=${list.id}
  
  
  
  --
  James Mitchell
  Software Engineer / Struts Evangelist
  http://www.struts-atlanta.org
  678.910.8017 (c)
  770.822.3359 (h)
  AIM:jmitchtx
  
  
  
  
   -Original Message-
   From: javen fang [mailto:[EMAIL PROTECTED]
  
   Sent: Saturday, November 01, 2003 10:45 AM
   To: Struts Users Mailing List
   Subject: Re: use html:link pass two param
   
   
   Thanks all, thanks James Mitchell!
   
   I use the method James Mitchell tell me.
   And I read JSTL Spec and tutorial in javaword.com
  
 
 http://www.javaworld.com/javaworld/jw-02-2003/jw-0228-jstl-p3.html
   
   But I encouter a error,and I don't know why this
   occur:
   
   javax.servlet.ServletException: Invalid property
  in
   set:  cid
   
   These are my code:
   jsp:useBean id=cus class=java.util.HashMap/
   ...
 c:set target=${cus} property=cid
   value=list.id/
 c:set target=${cus} property=company
   value=list.company/
   html:link action=linkman_list
   name=cusLinkman/html:link
   
   My container is tomcat5.0
   
   
   
   
   --- Kris Schneider [EMAIL PROTECTED] wrote:
You can call it whatever you want - admin-tool
from James' example. The
difference is this:

/app/do/manageUsers

vs. this:

/app/manageUsers.do

I think James was referring to the use of:

html:link action=next.do ...

when he said, you should never have to put
  .do
any where in your
application... You really only need to do:

html:link action=/next ...

which will work regardless of how you do your
servlet mapping.

Quoting Ruth, Brice [EMAIL PROTECTED]:

 doesn't this still put 'do' somewhere in the
  URL?
 
 Kris Schneider wrote:
 
 web.xml:
 
 !-- mapping for ActionServlet --
 servlet-mapping
   servlet-nameaction/servlet-name
   url-pattern/do/*/url-pattern
 /servlet-mapping
 
 Quoting Ruth, Brice [EMAIL PROTECTED]:
 
   
 
 How do you go about enabling path mapping v.
extension mapping in 
 web.xml (or struts-config.xml)?
 
 James Mitchell wrote:
 
 
 
 First of all, you should never have to put
.do any where in your
 application except the web.xml file.
 That way, you change the mapping in one
  place
and it flows to the rest
 of the application.
 
 Here's what I do:
 
 
 %@ page
  contentType=text/html;charset=UTF-8
language=java %
 %@ taglib uri=/WEB-INF/struts-html.tld  

prefix=html %
 %@ taglib
  uri=http://java.sun.com/jstl/core;
prefix=c%
 
 
 jsp:useBean id=userDetailLink
class=java.util.HashMap/
 
 c:set target=${userDetailLink}
property=action value=editUser/
 c:set target=${userDetailLink}
  property=id
value=${user.id}/
 
 html:link action=/manageUsers
name=userDetailLink
Edit this user
 /html:link
 
 
 
 Which produces a link like this:
 
 a
   
  
 
 href=/app/admin-tool/manageUsers?action=editUseramp;id=44Edit
 this user/a
 
 
 The above example uses path mapping, but if
  I
were using extension
 mapping (*.do), it looks like this:
 
 (with no changes to the source jsp)
 
 a
   
  
 
 href=/app/manageUsers.do?action=editUseramp;id=44Edit
this
 user/a
 
 
 
 --
 James Mitchell
 Software Engineer / Struts Evangelist
 http://www.struts-atlanta.org
 678.910.8017 (c)
 770.822.3359 (h)
 AIM:jmitchtx
 
 
 
 
  
 
  
 === message truncated

RE: use html:link pass two param

2003-10-31 Thread James Mitchell
First of all, you should never have to put .do any where in your
application except the web.xml file.
That way, you change the mapping in one place and it flows to the rest
of the application.

Here's what I do:


%@ page contentType=text/html;charset=UTF-8 language=java %
%@ taglib uri=/WEB-INF/struts-html.tld  prefix=html %
%@ taglib uri=http://java.sun.com/jstl/core; prefix=c%


jsp:useBean id=userDetailLink class=java.util.HashMap/

c:set target=${userDetailLink} property=action value=editUser/
c:set target=${userDetailLink} property=id value=${user.id}/

html:link action=/manageUsers name=userDetailLink
Edit this user
/html:link



Which produces a link like this:

a href=/app/admin-tool/manageUsers?action=editUseramp;id=44Edit
this user/a


The above example uses path mapping, but if I were using extension
mapping (*.do), it looks like this:

(with no changes to the source jsp)

a href=/app/manageUsers.do?action=editUseramp;id=44Edit this
user/a



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (c)
770.822.3359 (h)
AIM:jmitchtx




 -Original Message-
 From: javen fang [mailto:[EMAIL PROTECTED] 
 Sent: Friday, October 31, 2003 1:58 AM
 To: struts
 Subject: use html:link pass two param
 
 
 I have a bean list that have two property id / name
 
 code:
 --
 
 html:link action=next.do paramId=first
 paramName=list paramProperty=id next action
 /html:link
 
 --
 
 
 And how can I pass the second parameter name after the
 action next.do??
 Thanks.
 
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.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: Connection pool and MessageRessources

2003-10-31 Thread James Mitchell
You might not be realizing just how deeply the MesageResources is
integrated with Struts.

Your solution won't work if:

  * your app is using the validator

  * any of your jsp pages are using bean:message

  * any of your jsp pages use tags that use MessageResources
(which are any that use xyzKey such as srcKey, 
 pageKey, altKey, etc)


As far as application modification goes, the extension I 
created is a simple config change in struts-config, and voila!


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (c)
770.822.3359 (h)
AIM:jmitchtx




 -Original Message-
 From: Ovidiu EFTIMIE [mailto:[EMAIL PROTECTED] 
 Sent: Friday, October 31, 2003 7:23 AM
 To: Struts Users Mailing List
 Subject: Re: Connection pool and MessageRessources
 
 
 I think I've found a solution.
 I'll make an object (eventualy a struts PlugIn), DBMessage 
 which receivies a
 connection from my connection pool and retrives the error 
 messages from the
 database, and this object will not extend MessageRessources.
 Then in my actions I'll have :
 
 DbMessage dbmesg = (DbMessage)servlet.getAttribute(DBMESG);
 String  message = dbmesg.getMessage(error_code);
 ActionErrors errors = new ActionError();
 errors.add(code,new ActionError(foo,message));
 
 where foo is defined in my application.properties as
 foo = {0}
 
 How that sounds ?
 
 
 Ovidiu
 
 - Original Message - 
 From: James Mitchell [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Thursday, October 30, 2003 7:18 PM
 Subject: RE: Connection pool and MessageRessources
 
 
  Hi Ovidiu
 
  I also wrote my own DBMessageResources.  With a simple 
 hack, I was able
  to overcome the limitations of the existing API.
 
  The source code and example are available for download at:
 
 
  
 http://sourceforge.net/project/showfiles.php?group_id=49385re
 lease_id=1
  54972
 
 
 
  --
  James Mitchell
  Software Engineer / Struts Evangelist
  http://www.struts-atlanta.org
  678.910.8017 (c)
  770.822.3359 (h)
  AIM:jmitchtx
 
 
 
 
   -Original Message-
   From: Ovidiu EFTIMIE [mailto:[EMAIL PROTECTED]
   Sent: Thursday, October 30, 2003 1:07 PM
   To: [EMAIL PROTECTED]
   Subject: Connection pool and MessageRessources
  
  
   Hi,
   I'm working with Struts 1.1 and I have a problem with the
   MessageRessource and I
   don't know to handle it  the right way.
   In my application I have two constraints,among others :) ,
   - i must use an oci connection to the database
   - the error messages will be stored in the database
   For that I took two aproaches :
   ## One ##:  I have written a Struts plugin which builds the
   connection pool, and
   I've extended MessageRessourceFactory and MessageRessources
   with my own classes
   DBRessourceFactory and DBRessource to have my own mechanism
   for message
   retrivial. My problem is now how can I get a connection to
   the database from the
   connection pool I've just made ? Is there a way to
   communicate between my plugin
   and my DBRessource class ?
  
  
   ## Two ##: I make a class which will handle the connection
   pool creation and the
   retrivial of messages from the database.
   It will look like this :
   public class MessagesDBPool extends MessageRessources implements
   PlugIn,Serializable {
   public MessageDBPool (){
   super();
   }
   public MessageDBPool(MessageRessourcesFactory
   factory,String config){
   this(factory,config,false);
   }
   public MessageDBPool(MessageRessourcesFactory
   factory,String config,boolean
   returnNull){
   super(factory,config,returnNull);
   }
   public void init(ActionServlet servlet, ModuleConfig
   config) throws
   ServletException{
   //pool initialisation here
   }
   public void destroy(){
   //destroy pool here
   }
   }
   Can I do this in the first place ?
  
   Now the question is which one of this two solutions can work?
   Is there another
   way to do this ?
   Any suggestions are welcome .
  
   Thanks,
   Ovidiu EFTIMIE
  
  
  
  
   
 -
   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: Connection pool and MessageRessources

2003-10-31 Thread James Mitchell
 -Original Message-
 From: Ovidiu EFTIMIE [mailto:[EMAIL PROTECTED] 
 Sent: Friday, October 31, 2003 5:34 AM
 To: Struts Users Mailing List
 Subject: Re: Connection pool and MessageRessources
 
 
 Hi James,
 I've studied your solution, and I've noticed that you use a 
 different connection
 to the database and not the one that should be availble in an struts
 application, and I think that could be a point of failure. 

No, actually you have that part wrong.  See, my extension uses OJB which
is configured from it's own xml file and not from the struts-config.xml.

Using the existing API (without any special hacks), you have no 
way to pass a connection, the DataSourceConfig, or even get at 
the ModuleConfig from any subclass of MessageResources.  That's why my
solution works without requiring any special coding.

My extension is designed to run independently of your application's
persistence mechanism(s), but if you happen to be using OJB, it's 
all good.

Somewhere on my todo list, is to implement the same extension using each
of the major ORM frameworks.  But like all things, it takes time, and
since I can't put food on the table writing Struts extensions, it'll 
have to wait.


 
 That is why I'm
 trying tu use the same connection pool as the rest of the application.

If your app used OJB, you could do exactly that.

 
 Ovidiu
 


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (c)
770.822.3359 (h)
AIM:jmitchtx



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



RE: use html:link pass two param

2003-10-31 Thread James Mitchell
See Section 11.2 of the Servlet 2.3 API Specification or Section 10.2 of
the Servet 2.2 API Specification.

Then do some testingpun intended ;)



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (c)
770.822.3359 (h)
AIM:jmitchtx




 -Original Message-
 From: Ruth, Brice [mailto:[EMAIL PROTECTED] 
 Sent: Friday, October 31, 2003 11:03 AM
 To: Struts Users Mailing List
 Subject: Re: use html:link pass two param
 
 
 doesn't this still put 'do' somewhere in the URL?
 
 Kris Schneider wrote:
 
 web.xml:
 
 !-- mapping for ActionServlet --
 servlet-mapping
   servlet-nameaction/servlet-name
   url-pattern/do/*/url-pattern
 /servlet-mapping
 
 Quoting Ruth, Brice [EMAIL PROTECTED]:
 
   
 
 How do you go about enabling path mapping v. extension mapping in 
 web.xml (or struts-config.xml)?
 
 James Mitchell wrote:
 
 
 
 First of all, you should never have to put .do any where in your
 application except the web.xml file.
 That way, you change the mapping in one place and it flows 
 to the rest
 of the application.
 
 Here's what I do:
 
 
 %@ page contentType=text/html;charset=UTF-8 language=java %
 %@ taglib uri=/WEB-INF/struts-html.tld  prefix=html %
 %@ taglib uri=http://java.sun.com/jstl/core; prefix=c%
 
 
 jsp:useBean id=userDetailLink class=java.util.HashMap/
 
 c:set target=${userDetailLink} property=action 
 value=editUser/
 c:set target=${userDetailLink} property=id 
 value=${user.id}/
 
 html:link action=/manageUsers name=userDetailLink
Edit this user
 /html:link
 
 
 
 Which produces a link like this:
 
 a 
 href=/app/admin-tool/manageUsers?action=editUseramp;id=44Edit
 this user/a
 
 
 The above example uses path mapping, but if I were using extension
 mapping (*.do), it looks like this:
 
 (with no changes to the source jsp)
 
 a href=/app/manageUsers.do?action=editUseramp;id=44Edit this
 user/a
 
 
 
 --
 James Mitchell
 Software Engineer / Struts Evangelist
 http://www.struts-atlanta.org
 678.910.8017 (c)
 770.822.3359 (h)
 AIM:jmitchtx
 
 
 
 
  
 
   
 
 -Original Message-
 From: javen fang [mailto:[EMAIL PROTECTED] 
 Sent: Friday, October 31, 2003 1:58 AM
 To: struts
 Subject: use html:link pass two param
 
 
 I have a bean list that have two property id / name
 
 code:
 --
 
 html:link action=next.do paramId=first
 paramName=list paramProperty=id next action
 /html:link
 
 --
 
 
 And how can I pass the second parameter name after the
 action next.do??
 Thanks.
 
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.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]
 
  
 
   
 
 -- 
 Brice D. Ruth
 Sr. IT Analyst
 Fiskars Brands, Inc.
 
 
 
   
 
 
 -- 
 Brice D. Ruth
 Sr. IT Analyst
 Fiskars Brands, Inc.
 
 
 
 -
 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: Deploying struts application on iplanet 6.0 or 4.0

2003-10-31 Thread James Mitchell
You're welcome in advance.  Now, what's your question?



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (c)
770.822.3359 (h)
AIM:jmitchtx




 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Friday, October 31, 2003 1:01 PM
 To: [EMAIL PROTECTED]
 Subject: Deploying struts application on iplanet 6.0 or 4.0
 
 
 Hello ,
 I want to deploy the struts application on iplanet 6.0 or 4.0.
 
 Thanking you in advance...
 
 Alok Garg
 Polaris Software Lab Ltd.
 ( + 91 - 022 - 28290019 Ext. # 1308 )
 
 
 


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



RE: Connection pool and MessageRessources

2003-10-31 Thread James Mitchell
As far as what will happen in the future, Struts will be using Resources
from the commons sandbox (well, once it is released).

You should take a look over there for more ideas.

Thanks and good luck!!



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (c)
770.822.3359 (h)
AIM:jmitchtx




 -Original Message-
 From: Ovidiu EFTIMIE [mailto:[EMAIL PROTECTED] 
 Sent: Friday, October 31, 2003 11:30 AM
 To: Struts Users Mailing List
 Subject: Re: Connection pool and MessageRessources
 
 
 Yes I know it is very tighly integrated with Struts, and 
 actualy  we're comply
 with all things you've enumerated below.
 The validator will not be used because all validation 
 will be done with
 javascript already present in the jsp page, and the only 
 server side validation
 we'll have will be to find out if the client has disabled 
 javascript, and  we'll
 not be using bean:message beacause we'll not have a multi 
 language site.
 
 I know that my solution cannot be universally applied, and 
 it's just a way to
 overcome Struts limitations regarding the MessageRessources.
 I'll hope that in future versions something similar with your 
 extension could be
 integrated into Struts, because is a little bit frustrating 
 to manage error
 messages(for example) in two separate places (an Oracle table and
 application.properties as in my case).
 
 Thanks for your response, and I hope Id didn't took a lot of your time
 
 Ovidiu
 
 - Original Message - 
 From: James Mitchell [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Friday, October 31, 2003 4:13 PM
 Subject: RE: Connection pool and MessageRessources
 
 
  You might not be realizing just how deeply the MesageResources is
  integrated with Struts.
 
  Your solution won't work if:
 
* your app is using the validator
 
* any of your jsp pages are using bean:message
 
* any of your jsp pages use tags that use MessageResources
  (which are any that use xyzKey such as srcKey,
   pageKey, altKey, etc)
 
 
  As far as application modification goes, the extension I
  created is a simple config change in struts-config, and voila!
 
 
  --
  James Mitchell
  Software Engineer / Struts Evangelist
  http://www.struts-atlanta.org
  678.910.8017 (c)
  770.822.3359 (h)
  AIM:jmitchtx
 
 
 
 
   -Original Message-
   From: Ovidiu EFTIMIE [mailto:[EMAIL PROTECTED]
   Sent: Friday, October 31, 2003 7:23 AM
   To: Struts Users Mailing List
   Subject: Re: Connection pool and MessageRessources
  
  
   I think I've found a solution.
   I'll make an object (eventualy a struts PlugIn), DBMessage
   which receivies a
   connection from my connection pool and retrives the error
   messages from the
   database, and this object will not extend MessageRessources.
   Then in my actions I'll have :
  
   DbMessage dbmesg = (DbMessage)servlet.getAttribute(DBMESG);
   String  message = dbmesg.getMessage(error_code);
   ActionErrors errors = new ActionError();
   errors.add(code,new ActionError(foo,message));
  
   where foo is defined in my application.properties as
   foo = {0}
  
   How that sounds ?
  
  
   Ovidiu
  
   - Original Message - 
   From: James Mitchell [EMAIL PROTECTED]
   To: 'Struts Users Mailing List' [EMAIL PROTECTED]
   Sent: Thursday, October 30, 2003 7:18 PM
   Subject: RE: Connection pool and MessageRessources
  
  
Hi Ovidiu
   
I also wrote my own DBMessageResources.  With a simple
   hack, I was able
to overcome the limitations of the existing API.
   
The source code and example are available for download at:
   
   
   
   http://sourceforge.net/project/showfiles.php?group_id=49385re
   lease_id=1
54972
   
   
   
--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (c)
770.822.3359 (h)
AIM:jmitchtx
   
   
   
   
 -Original Message-
 From: Ovidiu EFTIMIE 
 [mailto:[EMAIL PROTECTED]
 Sent: Thursday, October 30, 2003 1:07 PM
 To: [EMAIL PROTECTED]
 Subject: Connection pool and MessageRessources


 Hi,
 I'm working with Struts 1.1 and I have a problem with the
 MessageRessource and I
 don't know to handle it  the right way.
 In my application I have two constraints,among others :) ,
 - i must use an oci connection to the database
 - the error messages will be stored in the database
 For that I took two aproaches :
 ## One ##:  I have written a Struts plugin which builds the
 connection pool, and
 I've extended MessageRessourceFactory and MessageRessources
 with my own classes
 DBRessourceFactory and DBRessource to have my own mechanism
 for message
 retrivial. My problem is now how can I get a connection to
 the database from the
 connection pool I've just made ? Is there a way to
 communicate between my plugin
 and my DBRessource class

RE: Deploying struts application on iplanet 6.0 or 4.0

2003-10-31 Thread James Mitchell
You will need to upgrade to 6.1.  If I were you, I wouldn't waste my
time trying anything less.

If your customer/boss says they can't or won't, tell them that they will
spend more time trying to make it work then they ever would have if
they had just upgraded...trust me!



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (c)
770.822.3359 (h)
AIM:jmitchtx




 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Friday, October 31, 2003 4:06 PM
 To: Struts Users Mailing List
 Subject: RE: Deploying struts application on iplanet 6.0 or 4.0
 
 
 
 I want to deploy my Struts application which is running in Tomcat in
 iplanet server version 6.0. with no service packs
 
 Alok Garg
 Polaris Software Lab Ltd.
 ( + 91 - 022 - 28290019 Ext. # 1308 )
 
 
   

   James Mitchell

   [EMAIL PROTECTED] To:  
 'Struts Users Mailing List' 
 [EMAIL PROTECTED]   
   e.org   cc:  (bcc: 
 alok.garg/Polaris) 
Subject: RE: 
 Deploying struts application on iplanet 6.0 or 4.0   
   11/01/03 12:40  

   AM  

   Please respond  

   to Struts Users

   Mailing List   

   

   

 
 
 
 
 You're welcome in advance.  Now, what's your question?
 
 
 
 --
 James Mitchell
 Software Engineer / Struts Evangelist
 http://www.struts-atlanta.org
 678.910.8017 (c)
 770.822.3359 (h)
 AIM:jmitchtx
 
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Friday, October 31, 2003 1:01 PM
  To: [EMAIL PROTECTED]
  Subject: Deploying struts application on iplanet 6.0 or 4.0
 
 
  Hello ,
  I want to deploy the struts application on iplanet 6.0 or 4.0.
 
  Thanking you in advance...
 
  Alok Garg
  Polaris Software Lab Ltd.
  ( + 91 - 022 - 28290019 Ext. # 1308 )
 
 
 
 
 
 -
 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: Connection pool and MessageRessources

2003-10-30 Thread James Mitchell
Hi Ovidiu

I also wrote my own DBMessageResources.  With a simple hack, I was able
to overcome the limitations of the existing API.

The source code and example are available for download at:

 
http://sourceforge.net/project/showfiles.php?group_id=49385release_id=1
54972



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (c)
770.822.3359 (h)
AIM:jmitchtx




 -Original Message-
 From: Ovidiu EFTIMIE [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 30, 2003 1:07 PM
 To: [EMAIL PROTECTED]
 Subject: Connection pool and MessageRessources
 
 
 Hi,
 I'm working with Struts 1.1 and I have a problem with the 
 MessageRessource and I
 don't know to handle it  the right way.
 In my application I have two constraints,among others :) ,
 - i must use an oci connection to the database
 - the error messages will be stored in the database
 For that I took two aproaches :
 ## One ##:  I have written a Struts plugin which builds the 
 connection pool, and
 I've extended MessageRessourceFactory and MessageRessources 
 with my own classes
 DBRessourceFactory and DBRessource to have my own mechanism 
 for message
 retrivial. My problem is now how can I get a connection to 
 the database from the
 connection pool I've just made ? Is there a way to 
 communicate between my plugin
 and my DBRessource class ?
 
 
 ## Two ##: I make a class which will handle the connection 
 pool creation and the
 retrivial of messages from the database.
 It will look like this :
 public class MessagesDBPool extends MessageRessources implements
 PlugIn,Serializable {
 public MessageDBPool (){
 super();
 }
 public MessageDBPool(MessageRessourcesFactory 
 factory,String config){
 this(factory,config,false);
 }
 public MessageDBPool(MessageRessourcesFactory 
 factory,String config,boolean
 returnNull){
 super(factory,config,returnNull);
 }
 public void init(ActionServlet servlet, ModuleConfig 
 config) throws
 ServletException{
 //pool initialisation here
 }
 public void destroy(){
 //destroy pool here
 }
 }
 Can I do this in the first place ?
 
 Now the question is which one of this two solutions can work? 
 Is there another
 way to do this ?
 Any suggestions are welcome .
 
 Thanks,
 Ovidiu EFTIMIE
 
 
 
 
 -
 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:select onchange

2003-10-29 Thread James Mitchell
Change your custom JavaScript function.

Here's an example of what I mean: (change it to fit your needs)

form name=SelectURL action=originalUrl.do method=GET
 select name=users.userAccount onChange=setAction(this.form)
  option selected value=value1value1/option
  option value=value2value2/option
  option value=value3value3/option
 /select

script LANGUAGE=JavaScript
function setAction(form) {
 selectCtl = form.elements[users.userAccount];
 form.action = dosomething.do?users.userAccount=;
 form.action += selectCtl.options[selectCtl.selectedIndex].value;
}
/script
br
input type=submit name=submit value=Submit

/form





--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
770.822.3359
AIM:jmitchtx



- Original Message - 
From: struts [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 6:12 AM
Subject: html:select onchange


Problem how can i pass the userId ? so that i can do a
request.getParameter(userId)  ?

example:



html:select property=users.userAccount
onchange=setAction('setUpUsersForm.do?action=retrieveuserId= 

html:options labelProperty=userName collection=userList
property=userId /

/html:select





Thanks !


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



RE: [OT - JavaScript] Setting value on a html:select/

2003-10-29 Thread James Mitchell
Not sure, but this may be what you need: (change to your liking)


form name=frm action=somewhere.go method=GET

script LANGUAGE=JavaScript
function forceSelect(form, val, bDisabled){
selectCtl = form.elements[something];
selectCtl.selectedIndex=val;
selectCtl.disabled=bDisabled;
}

/script
br
input type=radio name=myRadio value=val1
onClick=forceSelect(this.form, 0, false)Val 1br
input type=radio name=myRadio value=val2
onClick=forceSelect(this.form, 1, true)Val 2br

 select name=something
  option value=- Select One -/option
  option value=value1value1/option
  option value=value2value2/option
  option value=value3value3/option
 /select
input type=submit name=submit value=Submit

/form






--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (c)
770.822.3359 (h)
AIM:jmitchtx




 -Original Message-
 From: Jerry Jalenak [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, October 29, 2003 11:44 AM
 To: '[EMAIL PROTECTED]'
 Subject: [OT - JavaScript] Setting value on a html:select/
 
 
 Been screwing around with this all morning, and can't seem to find an
 answer.
 
 I've got two radio buttons on a form.  If the user clicks the 
 second radio
 button, I need to force the value of a following html:select/ to a
 specific value, and disable the select.  So, using 
 JavaScript, on my radio
 button I fire an onclick event that run a real simple 
 javascript function.
 In this function I've tried using 
 
   document.formName.selectVar.value = default value // is
 accepted, but the default value isn't passed to my form bean
   document.formName.selectVar.option[0].selected = true   
 //  ditto
   document.formName.selectVar.option[0].value = default value
 // ditto
   document.formName.selectVar.option[0].isSelected = true 
   //
 ditto
 
 JavaScript seems to accept all of these formats, but the 
 setter method in my
 form bean for 'selectVar' is never getting called.  This is 
 going to be a
 'Doh!' moment, but how do I do this?
 
 TIA!
 
 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 the following email address: 
 [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]



[OT] Next Struts-Atlanta meeting

2003-10-28 Thread James Mitchell
For anyone interested our next meeting is this week.

(don't forget about the 6:30 drinks and discussion 
 before the presentation at MaxErma's)


When  - This Thursday from 7PM to 9PM
Where - Mirant
Presenter - Bill Siggelkow
Topic - Testing Struts Applications


For more details and a map to Mirant point your 
browser to http://www.struts-atlanta.org/


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
770.822.3359
AIM:jmitchtx


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



RE: how to disable (or work around) jsessionid in html:img sources

2003-10-23 Thread James Mitchell
You know, in light of the fact that it may be standard and to the spec,
it's funny that most of the servlet containers that I use (Tomcat,
Resin, Jetty) don't recognize their own rewritten urls.

To me, that's just unacceptable.

Someone with some influence (Craig? Remy?) might want to address this.


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




 -Original Message-
 From: Kris Schneider [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 23, 2003 12:01 PM
 To: Struts Users Mailing List
 Subject: Re: how to disable (or work around) jsessionid in 
 html:img sources
 
 
 The HTTP/1.0 spec defines a URI as:
 
 ...
 rel_path = [ path ] [ ; params ] [ ? query ]
 ...
 
 The Servlet spec states:
 
 The session id must be encoded as a path parameter in the URL 
 string. The
 name of the parameter must be jsessionid.
 
 Quoting Ruth, Brice [EMAIL PROTECTED]:
 
  Saul Q Yuan wrote:
  
  -Original Message-
  From: Ruth, Brice [mailto:[EMAIL PROTECTED]
  Sent: Thursday, October 23, 2003 9:32 AM
  To: Struts Users Mailing List
  Subject: Re: how to disable (or work around) jsessionid 
 in html:img
  sources
  
  James Mitchell wrote:
  
  
  
  A bit of history on this subject:
  
  * From: Craig R. McClanahan
  * Subject: Re: Why would jsessionid not appear?
  * Date: Wed, 08 Aug 2001 12:09:26 -0700
  
  The jsessionid path parameter will only be added if the servlet
  container
  does not know whether your client supports cookies.  How Tomcat

  
  handles

  
  this (probably typical of others):
  
  * On the first response in a session, send the session id
   both ways (cookie and encoding).
  
  * If the subsequent request comes back with a cookie, turn
   of URL rewriting for the remainder of this session.
  
  * If the subsequent request comes back without a cookie,
   keep on rewriting.
  
  Craig
  
  
  
  So, with that having been said, all you have to do is
  tell all your users to hit refresh whenever they access
  your site.
  
  That way, all external links and images will work.
  
  If you find that unacceptable, you could:
  
  Move the contents of index.jsp to index2.jsp, then:
  
   Put a meta refresh tag as your initial page (index.jsp).
 META HTTP-EQUIV=refresh
   content=2;URL=http://www.yoursite.com/index2.jsp;
  
   or
  
   Add some javascript that sends the user to index2.jsp.
 (similar to above)
  
   or
  
   Use logic:redirect or any number of ways in a scriptlet
   to redirect to index2.jsp
  
  
  On the Struts-Atlanta web site (http://www.struts-atlanta.org),
  I take a slightly different approach.
  At the top of my index.jsp, I do this:
  
  logic:present parameter=refresh
  bean:parameter id=refreshed name=refresh/
  /logic:present
  
  logic:notEqual name=refreshed value=true
  logic:redirect page=/index.jsp?refresh=true/
  /logic:notEqual
  
  
  What this does is refresh the page one time only.  This 
 method works

  
  for

  
  me because I am not posting or processing any forms with 
 this page

  
  which

  
  would not work correctly if I had.
  
  Hope that helps.
  
  
  

  
  Thanks, James.
  
  Ignoring for the moment how these workarounds smack of 
 hack, this
  doesn't solve the problem of people visiting the site w/o cookies
  enabled. What I don't understand is why the delimiter ';' is being
  
  
  used,

  
  instead of the traditional '?' - which Apache wouldn't 
 have a problem
  stripping off and serving up the proper file with ...
  
  
  
  
  That seems to be a rule in the Servlet specification on 
 URL rewriting
  for passing session info.
  
  
 http://www.jcp.org/aboutJava/communityprocess/first/jsr053/se
rvlet23_PFD
 .pdf
 
 
 Saul
 
 
   
 
 Seems strange that a rule would be set that breaks IETF standards, 
 doesn't it? Or am I seeing this totally wrong?
 
 -- 
 Brice D. Ruth
 Sr. IT Analyst
 Fiskars Brands, Inc.

-- 
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.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: [ANN] Struts IRC Channel: Square off with Mark

2003-10-23 Thread James Mitchell
 lets leave the econonmy, politics, and religion out of it.

Amen brother!!!

Doh!  Sorry!!



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




 -Original Message-
 From: Ted Husted [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 23, 2003 1:17 PM
 To: Struts Users Mailing List
 Subject: Re: [ANN] Struts IRC Channel: Square off with Mark
 
 
 +1
 
 The Struts USER list is suppose to be a place where people 
 who need help 
 with Struts can connect with people who want to offer help 
 with Struts.
 
 Posts regarding beer are tolerated :), but lets leave the econonmy, 
 politics, and religion out of it. :|
 
 -Ted.
 
 Brandon Goodin wrote:
 
  Greetings,
  
  The struts IRC channel at irc.darkmyst.org #struts_users was created
  for two reasons:
  
  1) To provide a place where struts questions can receive more
  interactive and immediate dialog.
  2) To relieve [OT] tensions from the list.
  
  Please feel free to visit the IRC channel to participate in 
 either. It
  is good practice to keep the struts list clean from 
 renegade threads.
  
  Brandon
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 -- 
 Ted Husted,
Junit in Action  - http://www.manning.com/massol/,
Struts in Action - http://husted.com/struts/book.html,
JSP Site Design  - 
 http://www.amazon.com/exec/obidos/ISBN=1861005512.
 
 
 
 
 -
 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]



Bad email config [was: RE: sorting and searching in Struts/tiles]

2003-10-23 Thread James Mitchell
his emails aren't reaching the list

That's because he has a problem with the configuration of his mail
client.  He asked me something offlist, and my reply just bounced.  I
think his reply-to is set to go to some yahoo group address.not
sure.



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




 -Original Message-
 From: Ruth, Brice [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 23, 2003 1:26 PM
 To: Struts Users Mailing List
 Subject: sorting and searching in Struts/tiles
 
 
 [Forwarded from Dinh Nguyen, his emails aren't reaching the list]
 
 Dinh Nguyen wrote:
 
 Hi,
 
 I am wondering how do you do the sorting and searching in struts.
 Let say, when a person views a list of collections (for example, the
 list consists of 5 people, each person has first name, last name,
 age), there is a drop-down menu on the bottom of the table/page says
 that:
 1) Sort has two options: a) Ascending b) Descending
 2) Search has three options a) Last Name b) First Name c) Age
 
 Since data is not stored in database yet.
 so in this case how can I do it using Struts?
 
 Thanks for your help.
 
 DN
 
 
 -
 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: Servlet call from JSP/HTML - Need help

2003-10-22 Thread James Mitchell
You mean like this?

 http://www-106.ibm.com/developerworks/library/wa-resc/



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




 -Original Message-
 From: Shishir K. Singh [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, October 22, 2003 10:18 PM
 To: Struts Users Mailing List
 Subject: Servlet call from JSP/HTML - Need help
 
 
 Hi,  
 
 Is there anyway that I can call a servlet from a Select Input 
 type. The
 idea is that the moment  user clicks on the drop down of an
 html:select type, the option is populate by data queried 
 from database
 ( this logic resides in a servlet). I think that I may have to use the
 onClick attribute, but I am not sure how to implement this.
 
 Any pointers ?
 
 TIA
 Shishir
 
 
 -
 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: how to disable (or work around) jsessionid in html:img sources

2003-10-22 Thread James Mitchell
A bit of history on this subject:

 * From: Craig R. McClanahan
 * Subject: Re: Why would jsessionid not appear?
 * Date: Wed, 08 Aug 2001 12:09:26 -0700 

The jsessionid path parameter will only be added if the servlet
container
does not know whether your client supports cookies.  How Tomcat handles
this (probably typical of others):

* On the first response in a session, send the session id
  both ways (cookie and encoding).

* If the subsequent request comes back with a cookie, turn
  of URL rewriting for the remainder of this session.

* If the subsequent request comes back without a cookie,
  keep on rewriting.

Craig



So, with that having been said, all you have to do is 
tell all your users to hit refresh whenever they access 
your site.  

That way, all external links and images will work.

If you find that unacceptable, you could:

Move the contents of index.jsp to index2.jsp, then:

  Put a meta refresh tag as your initial page (index.jsp).
META HTTP-EQUIV=refresh 
  content=2;URL=http://www.yoursite.com/index2.jsp; 

  or

  Add some javascript that sends the user to index2.jsp.
(similar to above)

  or

  Use logic:redirect or any number of ways in a scriptlet
  to redirect to index2.jsp


On the Struts-Atlanta web site (http://www.struts-atlanta.org), 
I take a slightly different approach.
At the top of my index.jsp, I do this:

logic:present parameter=refresh
bean:parameter id=refreshed name=refresh/
/logic:present

logic:notEqual name=refreshed value=true
logic:redirect page=/index.jsp?refresh=true/
/logic:notEqual


What this does is refresh the page one time only.  This method works for
me because I am not posting or processing any forms with this page which
would not work correctly if I had.

Hope that helps.


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx



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



RE: Any way to put the output of a JSP into a String?

2003-10-22 Thread James Mitchell
Take a look at bean:include.

 http://jakarta.apache.org/struts/userGuide/struts-bean.html#include

--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




 -Original Message-
 From: David Friedman [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 23, 2003 1:16 AM
 To: Struts Users Mailing List
 Subject: RE: Any way to put the output of a JSP into a String?
 
 
 Richard,
 
 Any clues on any solutions which I can call from
 within a Struts action?  I don't want to leave
 the action and go to that JSP until I'm done and
 have emailed the JSP.
 
 Thanks,
 David
 
 -Original Message-
 From: Richard Yee [mailto:[EMAIL PROTECTED]
 Sent: Thursday, October 23, 2003 1:03 AM
 To: Struts Users Mailing List
 Subject: Re: Any way to put the output of a JSP into a String?
 
 
 David,
 Check out the ColdJava Copy tag
 http://coldjava.hypermart.net/servlets/copytag.htm
 The www.jsptags.com site is a good source for tag libraries 
 such as this
 one.
 
 Regards,
 
 Richard
 
 
 At 12:53 AM 10/23/2003 -0400, you wrote:
 I'd like to be able retrieve a JSP on the same server as a 
 String so I can
 email attach it as a customer's receipt (as well as 
 displaying it on the
 screen later).  I'd prefer to not have to make an outside 
 HTTP request but
 simply as the server to give it to me as a string.
 
 Can someone point me in the right direction?  Clues are 
 appreciated as long
 as they aren't Sherlock Holmes' difficulty level. :)
 
 Regards,
 David
 
 
 -
 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: Eclipse question about using taglibs in

2003-10-22 Thread James Mitchell
You might want to start with this first:
  
  http://java.sun.com/products/jsp/tutorial/TagLibrariesTOC.html


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




 -Original Message-
 From: David Friedman [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 23, 2003 1:43 AM
 To: Struts Users Mailing List
 Subject: Eclipse question about using taglibs in 
 
 
 In order to get the output of a JSP, I want to try to call the struts
 Bean.IncludeTag from my struts action.  I've never tried 
 calling a taglib
 from java before, only used the TLDs in JSP's.  So, here is 
 my attempt:
 
 package org.nothing;
 
 import org.apache.struts.taglib.bean.IncludeTag;
 
 public class David {
   String pageURL = /index.jsp;
   IncludeTag includePage = new IncludeTag();
   includePage.setPage(pageURL);
 }
 
 It compiles okay BUT in the Eclipse IDE, the methods under 
 for includePage
 don't auto-complete and also give me syntax warnings.  I know 
 my tag is
 readable since I can click down through the
 org.apache.struts.taglib.bean.IncludeTag class in Eclipse.  
 Does anyone have
 any pointers on how to correct this since I'm clueless having 
 never tried to
 call a taglib inside an action before.  Any hints, 
 suggestions, tutorials,
 etc.?
 
 Regards,
 David
 
 
 -
 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: illegal character with struts-validator.war

2003-10-21 Thread James Mitchell
Title: Message



What character 
do you consider to be invalid?
--James MitchellSoftware Engineer / Struts 
Evangelisthttp://www.struts-atlanta.org678.910.8017AIM:jmitchtx

  
  -Original Message-From: dutrieux 
  [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 11:46 
  AMTo: [EMAIL PROTECTED]Subject: illegal 
  character with struts-validator.warI try the link "_javascript_ Type Form" in struts-validator.war with tomcat v3.3.1a : I get a error message in _javascript_ console with Mozilla (1.5) : illegal Character. If I check the source there are effectively some illegal characters. Then of course the _javascript_ control doesn't work.

info : Struts Nightly Build 2003-10-21


Best regards
  -- 
  

  
  
  

  


  
Olivier Dutrieux 

 


Institut Pasteur Informatique de 
gestionMicro-Informatique 
25-28 rue du Docteur Roux 75724 PARIS CEDEX 15 

Tel: +33 (0) 1 40 61 31 62 Fax: +33 (0) 1 45 68 89 89 

  
  


RE: html:rewrite doesn't rewrite action contrary to docs?

2003-10-21 Thread James Mitchell
It was added after 1.1 release.  That's why it is in in the docs, but
not available anywhere except in the nightlies.



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




 -Original Message-
 From: Ruth, Brice [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 21, 2003 1:23 PM
 To: Struts Users Mailing List
 Subject: html:rewrite doesn't rewrite action contrary to docs?
 
 
 The docs 
 (http://jakarta.apache.org/struts/userGuide/struts-html.html#rewrite) 
 indicate that html:rewrite will rewrite an action, forward, href, or 
 page attribute - but the action attribute isn't in the TLD 
 and in the 
 source for org.apache.struts.taglib.html.RewriteTag the call to 
 RequestUtils.computeURL passes a hard-coded null in for the action 
 parameter.
 
 Why?
 
 -- 
 Brice D. Ruth
 Sr. IT Analyst
 Fiskars Brands, Inc.
 
 
 
 -
 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:rewrite doesn't rewrite action contrary to docs?

2003-10-21 Thread James Mitchell
There are other ways to get around hard-coding .do anywhere in your
app.
What, specifically, are you rewriting?


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




 -Original Message-
 From: Ruth, Brice [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 21, 2003 1:46 PM
 To: Struts Users Mailing List
 Subject: Re: html:rewrite doesn't rewrite action contrary to docs?
 
 
 I see. Well, I would prefer only to use stable release builds 
 for this - 
 so I can make do with adding .do on the end of my relative URLs and 
 using page instead of action for now ... when will the 
 next stable 
 release come out?
 
 James Mitchell wrote:
 
 It was added after 1.1 release.  That's why it is in in 
 the docs, but
 not available anywhere except in the nightlies.
 
 
 
 --
 James Mitchell
 Software Engineer / Struts Evangelist
 http://www.struts-atlanta.org
 678.910.8017
 AIM:jmitchtx
 
 
 
 
   
 
 -Original Message-
 From: Ruth, Brice [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 21, 2003 1:23 PM
 To: Struts Users Mailing List
 Subject: html:rewrite doesn't rewrite action contrary to docs?
 
 
 The docs 
 (http://jakarta.apache.org/struts/userGuide/struts-html.html
#rewrite) 
indicate that html:rewrite will rewrite an action, forward, href, or 
page attribute - but the action attribute isn't in the TLD 
and in the 
source for org.apache.struts.taglib.html.RewriteTag the call to 
RequestUtils.computeURL passes a hard-coded null in for the action 
parameter.

Why?

-- 
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.



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

  


-- 
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.



-
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: Access control in Struts

2003-10-21 Thread James Mitchell

 Lesson 1. - Don't hijack an existing thread, create your own.

 Lesson 2. - See lesson 1.



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




 -Original Message-
 From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 21, 2003 1:54 PM
 To: Struts Users Mailing List
 Subject: Access control in Struts
 
 
 Hi,
 I'm new to struts,I need to load some jsp pages based 
 on different level of access control who are accessing the 
 site. for eg for userA I need to show some pages while userB 
 can only view/access few pages.
 
 Thanks in advance,
 
 -Ram
 
 
 -Original Message-
 From: Barry Volpe [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 21, 2003 1:48 PM
 To: Struts Users Mailing List
 Subject: Re: DynaForms and java.util.ArrayList 
 
 
 Tim,
 
 Thanks. The error is gone.  Should have
 realized I couldn't initialize array with initial=.
 
 Barry
 
 
 - Original Message - 
 From: Chen, Gin [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Tuesday, October 21, 2003 10:42 AM
 Subject: RE: DynaForms and java.util.ArrayList 
 
 
  Remove initial=
  Then in your jsp do:
  c:forEach var=blah items=${myFormBean.map.city}
  c:out value=${blah}/
  /c:forEach
  -Tim
  
  -Original Message-
  From: Barry Volpe [mailto:[EMAIL PROTECTED] 
  Sent: Tuesday, October 21, 2003 1:14 PM
  To: Struts Users Mailing List
  Subject: DynaForms and java.util.ArrayList 
  
  
  
  When I define this in my struts-config:
  
  form-property 
   name=city
   type=java.util.ArrayList 
   initial=/ 
  
  I get this error:
  
  [ServletException in:/tiles/locationselection.jsp] 
  Exception creating bean of class
  org.apache.struts.validator.DynaValidatorForm: {1}' 
   
   Can I access city using JSTL in my jsp.
  
  What should I put in my JSP.
  
  What am I missing?
  
  Thanks,
  Barry
  
  
 -
  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: html:rewrite doesn't rewrite action contrary to docs?

2003-10-21 Thread James Mitchell
Hmmm...that's a tough one.  

Perhaps you should reevaluate your Use Case.  

Q.Why are you submitting to a different URL depending on the selection 
  of a drop down?  

Q.Why don't you just perform a different piece of code depending on what

  they picked?





--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




 -Original Message-
 From: Ruth, Brice [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 21, 2003 2:11 PM
 To: Struts Users Mailing List
 Subject: Re: html:rewrite doesn't rewrite action contrary to docs?
 
 
 I have a drop-down select that jumps the user to a different 
 country's 
 site (e.g. from /US/whatever to /DE/index.do). For the select 
 to work, I 
 embed the link for the jump in the option's value attribute - so it 
 looks like this:
 
 option value='html:rewrite page=/US/index.do'US/option
 
 The reason I need the rewrite (besides sessions and such) is 
 that this 
 is in a tile that will be referenced from pages that aren't all 
 necessarily at the same hierarchy level.
 
 Brice
 
 James Mitchell wrote:
 
 There are other ways to get around hard-coding .do anywhere in your
 app.
 What, specifically, are you rewriting?
 
 
 --
 James Mitchell
 Software Engineer / Struts Evangelist
 http://www.struts-atlanta.org
 678.910.8017
 AIM:jmitchtx
 
 
 
 
   
 
 -Original Message-
 From: Ruth, Brice [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 21, 2003 1:46 PM
 To: Struts Users Mailing List
 Subject: Re: html:rewrite doesn't rewrite action contrary to docs?
 
 
 I see. Well, I would prefer only to use stable release builds 
 for this - 
 so I can make do with adding .do on the end of my 
 relative URLs and 
 using page instead of action for now ... when will the 
 next stable 
 release come out?
 
 James Mitchell wrote:
 
 
 
 It was added after 1.1 release.  That's why it is in in 
   
 
 the docs, but
 
 
 not available anywhere except in the nightlies.
 
 
 
 --
 James Mitchell
 Software Engineer / Struts Evangelist
 http://www.struts-atlanta.org
 678.910.8017
 AIM:jmitchtx
 
 
 
 
  
 
   
 
 -Original Message-
 From: Ruth, Brice [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 21, 2003 1:23 PM
 To: Struts Users Mailing List
 Subject: html:rewrite doesn't rewrite action contrary to docs?
 
 
 The docs 
 (http://jakarta.apache.org/struts/userGuide/struts-html.html
 
 
 #rewrite) 
   
 
 indicate that html:rewrite will rewrite an action, 
 forward, href, or 
 page attribute - but the action attribute isn't in the TLD 
 and in the 
 source for org.apache.struts.taglib.html.RewriteTag the call to 
 RequestUtils.computeURL passes a hard-coded null in for 
 the action 
 parameter.
 
 Why?
 
 -- 
 Brice D. Ruth
 Sr. IT Analyst
 Fiskars Brands, Inc.
 
 
 
 ---
 --
 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]
 
  
 
 
 
 
   
 
 
 -- 
 Brice D. Ruth
 Sr. IT Analyst
 Fiskars Brands, Inc.
 
 
 
 -
 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: [ANNOUNCE] Struts Message Resource Doc

2003-10-20 Thread James Mitchell
1. Setting the null attribute to false will display missing resource
values as ???key??? instead of displaying null.

That's not totally accurate, but it gets the idea across.  Perhaps you
could mention how the string is actually constructed???


2. The Internationalization is not correct (unless you meant it in a
different context).

See o.a.s.u.MessageResources.


3. You didn't mention the Struts-Atlanta

Just kidding ;)


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




 -Original Message-
 From: Nick Heudecker [mailto:[EMAIL PROTECTED] 
 Sent: Monday, October 20, 2003 1:28 PM
 To: [EMAIL PROTECTED]
 Subject: [ANNOUNCE] Struts Message Resource Doc
 
 
 Afternoon all,
 
 I've written a short article detailing usage of the message resources
 functionality with Struts.  It seems like a lot of people are having
 problems with it, so I'm hoping that this will shed some light on this
 topic.
 
 You can find it at:
 http://www.systemmobile.com/articles/strutsMessageResources.html
 
 Feedback is appreciated.
 
 -- 
 Nick Heudecker
 SystemMobile, Inc.
 Email: [EMAIL PROTECTED]
 Web: http://www.systemmobile.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: [ANNOUNCE] Struts Message Resource Doc

2003-10-20 Thread James Mitchell
 I wasn't aware that there was anything noteworthy about ATL. :)

LOL.ouch!!!


 
 -- 
 Nick Heudecker
 SystemMobile, Inc.
 Email: [EMAIL PROTECTED]
 Web: http://www.systemmobile.com
 



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx


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



RE: Trimming the extra spaces in the output page

2003-10-20 Thread James Mitchell
Someone mentioned this a few weeks back.  I don't remember the solution,
but if it were my job to make this happen, I would most likely use a
Filter.

 http://java.sun.com/products/servlet/Filters.html


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




 -Original Message-
 From: EL AKARI Mehdi [mailto:[EMAIL PROTECTED] 
 Sent: Monday, October 20, 2003 1:34 PM
 To: Struts Users Mailing List
 Subject: Trimming the extra spaces in the output page
 
 
 Hi,
 I'm trying to optimise the size of the output pages of a 
 struts application.
 The first thing that i'm trying to do is to trim the extra 
 spaces and carriage returns in the output page.
 Do you have any ideas of how to do this?
 If you have any suggestions of how to optimise the page 
 output they are welcome!
 Thanks
 Mehdi
 


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



RE: stuts 1.1 and iPlanet 6.0/SP6 Classloader question

2003-10-20 Thread James Mitchell
Is there any chance you can upgrade to 6.1?

--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




 -Original Message-
 From: Martin Gainty [mailto:[EMAIL PROTECTED] 
 Sent: Monday, October 20, 2003 7:18 PM
 To: Struts Users Mailing List
 Subject: Re: stuts 1.1 and iPlanet 6.0/SP6 Classloader question
 
 
 show us YOUR java file which contains
 /*app.app2 is a Suspicious package name*/
 package app.app2;
 class GeneralActionForm
 
 -Martin
 
 - Original Message - 
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, October 20, 2003 2:14 PM
 Subject: RE: stuts 1.1 and iPlanet 6.0/SP6 Classloader question
 
 
  I have checked and rechecked the package names and the 
 struts config file.
  There are no differences between the classes except for the 
 functional
  behavior of the two forms in in web-app. Again, they both 
 inherit from the
  same parent BaseActionForm, they both have a bean 
 constructor. The .class
  file is in the right place with the right file permissions.
 
  So why can't be loaded?
 
  Mysteries, mysteries.
 
  -Original Message-
  From: Martin Gainty [mailto:[EMAIL PROTECTED]
  Sent: Saturday, October 18, 2003 5:01 PM
  To: Struts Users Mailing List
  Subject: Re: stuts 1.1 and iPlanet 6.0/SP6 Classloader question
 
 
  off the top of my head I would check out your package name 
 app.app2 doesnt
  seem like a correct package name what is the package 
 specification for
 your
  GeneralActionForm class? -M
  - Original Message - 
  From: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Saturday, October 18, 2003 6:47 PM
  Subject: stuts 1.1 and iPlanet 6.0/SP6 Classloader question
 
 
   Hi folks,
  
   I have trawled through the mail list looking at the 
 threads related to
   the iPlanet web server and I am left with the general 
 uneasy feeling
   that
  there
   are many unresolved issues with the iPlanet web server.
  
   I have been tracing a problem with web-app deployment on a iPlanet
   6.0/SP6 web server where twoweb-app deploys successfully 
 and one runs
   and the
  other
   very similar one does not.
   The one that does run shows the dreaded 
 ClassNotFoundException error
   on
  the
   very first action form load. (See stack trace below). The 
 two webapps
   are built in very similar pattern, all actions and action forms
   inherit from
  the
   same base classes, the deployed apps on the web server 
 have the same
   directory structure with the same permissions, and yes the failing
   action form is in the right place in the WEB-INF/classes 
 folder with
   the same file/directory permission as other class files in both
   webapps which load fine, (e.g. custom request processor).
  
   Deployment is done the same way for both webapps using the wdeploy
   script. The deployment succeeds with no errors. The 
 problem emerges
   when you hit
  the
   welcome url and struts loads up the first action form. It 
 appears the
   the classloader is not able to find the action form. The working
   webapp runs successfully 100% of the time while failing 
 one fails 100%
   of the time at the same place. The webserver error logs 
 are not very
   helpful since only show a servlet exception.
  
   The two web-apps deploy and run just fine on Tomcat 4.1.27.
  
   As a secondary matter of interest I have not been able to get an
  application
   to deploy and work successfully on iPlanet that 
 references a secondary
   messages resource file. The bean:messages tag fails to find the
   alternate message bundle unless it is explicitly added to the JVM
   classpath. I not
  yet
   been able to find out why and have not heard back from Sun on the
   matter.
  
   So any ideas on what would cause the iPlanet classloader to be so
   flighty?
  
   Guidance and inspiration appreciated.
  
   Anthony
  
   
   java.lang.ClassNotFoundException: app.app2.GeneralActionForm  at
   java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)  at
   java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at
  
 
 org.apache.struts.util.RequestUtils.applicationClass(RequestUt
 ils.java:207)
at
  
 
 org.apache.struts.util.RequestUtils.applicationInstance(Reques
 tUtils.java:23
   1)
at
  
 
 org.apache.struts.util.RequestUtils.createActionForm(RequestUt
 ils.java:837)
at
   
 org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:552)
at 
 org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:520)
at
 _jsps._jsp._customerstart_jsp._jspService(_customerstart_jsp.java:126)
at 
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service

RE: stuts 1.1 and iPlanet 6.0/SP6 Classloader question

2003-10-20 Thread James Mitchell
It should, it uses Tomcat.



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Monday, October 20, 2003 2:44 PM
 To: [EMAIL PROTECTED]
 Subject: RE: stuts 1.1 and iPlanet 6.0/SP6 Classloader question
 
 
 I have asked and the web-farm admins are looking into it? Do 
 you think that
 6.1 will behave better?
 
 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED] 
 Sent: Monday, October 20, 2003 12:41 PM
 To: 'Struts Users Mailing List'
 Subject: RE: stuts 1.1 and iPlanet 6.0/SP6 Classloader question
 
 
 Is there any chance you can upgrade to 6.1?
 
 --
 James Mitchell
 Software Engineer / Struts Evangelist http://www.struts-atlanta.org
 678.910.8017 AIM:jmitchtx
 
 
 
 
  -Original Message-
  From: Martin Gainty [mailto:[EMAIL PROTECTED]
  Sent: Monday, October 20, 2003 7:18 PM
  To: Struts Users Mailing List
  Subject: Re: stuts 1.1 and iPlanet 6.0/SP6 Classloader question
  
  
  show us YOUR java file which contains
  /*app.app2 is a Suspicious package name*/
  package app.app2;
  class GeneralActionForm
  
  -Martin
  
  - Original Message -
  From: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, October 20, 2003 2:14 PM
  Subject: RE: stuts 1.1 and iPlanet 6.0/SP6 Classloader question
  
  
   I have checked and rechecked the package names and the
  struts config file.
   There are no differences between the classes except for the
  functional
   behavior of the two forms in in web-app. Again, they both
  inherit from the
   same parent BaseActionForm, they both have a bean
  constructor. The .class
   file is in the right place with the right file permissions.
  
   So why can't be loaded?
  
   Mysteries, mysteries.
  
   -Original Message-
   From: Martin Gainty [mailto:[EMAIL PROTECTED]
   Sent: Saturday, October 18, 2003 5:01 PM
   To: Struts Users Mailing List
   Subject: Re: stuts 1.1 and iPlanet 6.0/SP6 Classloader question
  
  
   off the top of my head I would check out your package name
  app.app2 doesnt
   seem like a correct package name what is the package
  specification for
  your
   GeneralActionForm class? -M
   - Original Message -
   From: [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Saturday, October 18, 2003 6:47 PM
   Subject: stuts 1.1 and iPlanet 6.0/SP6 Classloader question
  
  
Hi folks,
   
I have trawled through the mail list looking at the
  threads related to
the iPlanet web server and I am left with the general
  uneasy feeling
that
   there
are many unresolved issues with the iPlanet web server.
   
I have been tracing a problem with web-app deployment 
 on a iPlanet 
6.0/SP6 web server where twoweb-app deploys successfully
  and one runs
and the
   other
very similar one does not.
The one that does run shows the dreaded
  ClassNotFoundException error
on
   the
very first action form load. (See stack trace below). The
  two webapps
are built in very similar pattern, all actions and action forms 
inherit from
   the
same base classes, the deployed apps on the web server
  have the same
directory structure with the same permissions, and yes 
 the failing 
action form is in the right place in the WEB-INF/classes
  folder with
the same file/directory permission as other class files in both 
webapps which load fine, (e.g. custom request processor).
   
Deployment is done the same way for both webapps using 
 the wdeploy 
script. The deployment succeeds with no errors. The
  problem emerges
when you hit
   the
welcome url and struts loads up the first action form. It
  appears the
the classloader is not able to find the action form. 
 The working 
webapp runs successfully 100% of the time while failing
  one fails 100%
of the time at the same place. The webserver error logs
  are not very
helpful since only show a servlet exception.
   
The two web-apps deploy and run just fine on Tomcat 4.1.27.
   
As a secondary matter of interest I have not been able to get an
   application
to deploy and work successfully on iPlanet that
  references a secondary
messages resource file. The bean:messages tag fails to find the 
alternate message bundle unless it is explicitly added 
 to the JVM 
classpath. I not
   yet
been able to find out why and have not heard back from 
 Sun on the 
matter.
   
So any ideas on what would cause the iPlanet 
 classloader to be so 
flighty?
   
Guidance and inspiration appreciated.
   
Anthony
   

java.lang.ClassNotFoundException: app.app2.GeneralActionForm  at
java.net.URLClassLoader$1.run(URLClassLoader.java:195)
 at java.security.AccessController.doPrivileged(Native 
 Method)  at
java.net.URLClassLoader.findClass(URLClassLoader.java:183

RE: stuts 1.1 and iPlanet 6.0/SP6 Classloader question

2003-10-20 Thread James Mitchell
I don't know which version was used.  I'm sure whichever one they chose
was modified quite a bit.  

You won't find Sun advertising Tomcat anywhere in their 6.1 docs, but a
little birdie (wink) told me so.

Besides, once you begin using it, it becomes more than apparent that
they have finally taken a step in the right direction.



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Monday, October 20, 2003 3:19 PM
 To: [EMAIL PROTECTED]
 Subject: RE: stuts 1.1 and iPlanet 6.0/SP6 Classloader question
 
 
 James, I just searched Suns docs website looking for tomcat 
 in the 6.1 books
 and came up empty.
 
 How do you know that iPlanet 6.1 is Tomcat underneath, and if so what
 version? 
 
 We do all our development on Tomcat (4.1.XX) and the 
 classloader works as
 expected in Tomcat.
 
 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED] 
 Sent: Monday, October 20, 2003 12:50 PM
 To: 'Struts Users Mailing List'
 Subject: RE: stuts 1.1 and iPlanet 6.0/SP6 Classloader question
 
 
 It should, it uses Tomcat.
 
 
 
 --
 James Mitchell
 Software Engineer / Struts Evangelist http://www.struts-atlanta.org
 678.910.8017 AIM:jmitchtx
 
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Monday, October 20, 2003 2:44 PM
  To: [EMAIL PROTECTED]
  Subject: RE: stuts 1.1 and iPlanet 6.0/SP6 Classloader question
  
  
  I have asked and the web-farm admins are looking into it? Do
  you think that
  6.1 will behave better?
  
  -Original Message-
  From: James Mitchell [mailto:[EMAIL PROTECTED]
  Sent: Monday, October 20, 2003 12:41 PM
  To: 'Struts Users Mailing List'
  Subject: RE: stuts 1.1 and iPlanet 6.0/SP6 Classloader question
  
  
  Is there any chance you can upgrade to 6.1?
  
  --
  James Mitchell
  Software Engineer / Struts Evangelist http://www.struts-atlanta.org 
  678.910.8017 AIM:jmitchtx
  
  
  
  
   -Original Message-
   From: Martin Gainty [mailto:[EMAIL PROTECTED]
   Sent: Monday, October 20, 2003 7:18 PM
   To: Struts Users Mailing List
   Subject: Re: stuts 1.1 and iPlanet 6.0/SP6 Classloader question
   
   
   show us YOUR java file which contains
   /*app.app2 is a Suspicious package name*/
   package app.app2;
   class GeneralActionForm
   
   -Martin
   
   - Original Message -
   From: [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Monday, October 20, 2003 2:14 PM
   Subject: RE: stuts 1.1 and iPlanet 6.0/SP6 Classloader question
   
   
I have checked and rechecked the package names and the
   struts config file.
There are no differences between the classes except for the
   functional
behavior of the two forms in in web-app. Again, they both
   inherit from the
same parent BaseActionForm, they both have a bean
   constructor. The .class
file is in the right place with the right file permissions.
   
So why can't be loaded?
   
Mysteries, mysteries.
   
-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Saturday, October 18, 2003 5:01 PM
To: Struts Users Mailing List
Subject: Re: stuts 1.1 and iPlanet 6.0/SP6 Classloader question
   
   
off the top of my head I would check out your package name
   app.app2 doesnt
seem like a correct package name what is the package
   specification for
   your
GeneralActionForm class? -M
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, October 18, 2003 6:47 PM
Subject: stuts 1.1 and iPlanet 6.0/SP6 Classloader question
   
   
 Hi folks,

 I have trawled through the mail list looking at the
   threads related to
 the iPlanet web server and I am left with the general
   uneasy feeling
 that
there
 are many unresolved issues with the iPlanet web server.

 I have been tracing a problem with web-app deployment
  on a iPlanet
 6.0/SP6 web server where twoweb-app deploys successfully
   and one runs
 and the
other
 very similar one does not.
 The one that does run shows the dreaded
   ClassNotFoundException error
 on
the
 very first action form load. (See stack trace below). The
   two webapps
 are built in very similar pattern, all actions and 
 action forms
 inherit from
the
 same base classes, the deployed apps on the web server
   have the same
 directory structure with the same permissions, and yes
  the failing
 action form is in the right place in the WEB-INF/classes
   folder with
 the same file/directory permission as other class 
 files in both
 webapps which load fine, (e.g. custom request processor).

 Deployment is done the same way for both webapps using
  the wdeploy
 script. The deployment succeeds with no errors. The
   problem emerges

  1   2   3   4   5   6   7   8   9   10   >