RE: reading the xml file

2003-10-19 Thread James Mitchell
Take a look at the DigestingPlugin:

http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=digestingpluginb
tnG=Google+Search



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




 -Original Message-
 From: Jiri Chaloupka [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, October 19, 2003 12:23 PM
 To: [EMAIL PROTECTED]
 Subject: reading the xml file
 
 
 Hallo,
 I thinkin how I can read the xml file from /WEB-INF directory.
 
 I found something as 
 InputStream is = 
 servletContext.getResourceAsStream(/WEB-INF/something.xml)
 
 but how I can get servletContext?. Or, is t good way to read data, as 
 datasource names, from xml file and store it as instance of 
 config file in 
 session? is there any better way?
 
 Thanks for help,
 Jiri
 
 
 -
 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: display tag and struts

2003-10-16 Thread James Mitchell
It might look better if you change this to use the struts or JSTL tags.
It would also allow your app to work with multiple bundles and modules
(if any)
You might also think about having the href rewritten so you aren't
hardcoding .do in there


bean:define id=msg
 bean:message key=search.result.internalid/
/bean:define

bean:define id=link
 html:rewrite action=get?method=retrieve/
/bean:define

display:column property=internalID 
title=%=msg% 
sort=true 
href=%=link% 
paramId=lId 
paramProperty=ID /



* Although, unless I'm mistaken, the action attribute for rewrite is
post 1.1.so that might not help you.


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




 -Original Message-
 From: Nimish Chourey , Tidel Park - Chennai 
 [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 16, 2003 9:34 AM
 To: Struts Users Mailing List
 Subject: RE: display tag and struts
 
 
 Yes .. I had the same problem .. 
 you need to use scriplet .. some thing like this ..
 
 %
   MessageResources resource =(MessageResources)
 application.getAttribute(Globals.MESSAGES_KEY) ;
 %
 
 display:column property=internalID
 title=%=resource.getMessage((Locale)session.getAttribute(Glo
 bals.LOCALE_KE
 Y),search.result.internalid)% sort=true 
 href=get.do?method=retrieve
 paramId=lId paramProperty=ID /
 
 Nimish
 
 -Original Message-
 From: Otto, Frank [mailto:[EMAIL PROTECTED]
 Sent: Thursday, October 16, 2003 11:56 AM
 To: 'Struts Users Mailing List'
 Subject: AW: display tag and struts
 
 
 Hi,
 
 I have asked this question in display-tag maillist, but I got 
 no answer.
 
 I think the i18n with display-tag is a struts problem, 
 because I read the
 mail from Nelson in display-tag maillist and he has the same 
 problem. Struts
 can't parse nested tags. Mail of Nelson:
 
 -
 Von: Nelson Ferreira Jr [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 15. Oktober 2003 21:38
 An: [EMAIL PROTECTED]
 Betreff: [displaytag-user] Display taglib and struts
 internationalization
 
 
Hi,
 
I´d like to internationalize my table headers, reading the 
 column title 
 from ApplicationResources. Something like this:
 
 display:column sort=true  property=my_property 
 title=bean:message 
 key=column_header1//
 
But it looks like Struts does not parse nested tags, and I 
 just get a 
 blank title. Any ideas?
 
 
   
  Thanks,
 
  
 Nelson 
 --
 --
 
 
 
 
 -Ursprüngliche Nachricht-
 Von: Yansheng Lin [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 15. Oktober 2003 23:42
 An: 'Struts Users Mailing List'
 Betreff: RE: display tag and struts
 
 
 Hi Frank, you might want to ask this question on display-tag 
 maillist.  I
 subscribed to that list a while ago, and as far as I can 
 tell, there are
 quite a
 few nice people on the list.
 
 As to your sorting problem,  I don't think it has anything to 
 do with the
 scope.
 I got it working with request scope Can you do paging?  
 And what kind of
 error message do you get?
 
 
 
 -Original Message-
 From: Otto, Frank [mailto:[EMAIL PROTECTED] 
 Sent: October 15, 2003 9:27 AM
 To: Struts-User (E-Mail)
 Subject: display tag and struts
 
 
 Hello,
  
 I have read something about diplay tag library and have test 
 it. If I want
 to
 sort the table by clicking on column, I will get an error, because my
 collection
 is null. It isn't saved in the session, only in the request. An idea?
  
 My other questions is:
  
 - Can I use display tag with i18n and resource bundles? I 
 need the column
 titles
 in different languages.
  
  
 Regards,
  
 Frank
 
 
 -
 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: jpetstore example from ibatis uses struts

2003-10-16 Thread James Mitchell
What container/version are you using?




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




 -Original Message-
 From: Butt, Dudley [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 16, 2003 1:29 PM
 To: '[EMAIL PROTECTED]'
 Subject: jpetstore example from ibatis uses struts
 
 
 Hi all,
 
 Anyone managed to successfully get the JPetstore app working? 
 I managed to build ok, but I'm getting the following error 
 when trying to do anything on
 the index page
 
 type Exception report
 message Internal Server Error
 description The server encountered an internal error 
 (Internal Server Error) that prevented it from fulfilling 
 this request.
 exception 
 javax.servlet.ServletException: Cannot find bean category in 
 scope null
   at 
 org.apache.jasper.runtime.PageContextImpl.handlePageException(
 PageContextImpl.java:471)
   at 
 org.apache.jsp.Category$jsp._jspService(Category$jsp.java:934)
   at 
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
 (JspServlet.java:201)
   at 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
 .java:381)
   at 
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
 org.apache.catalina.core.ApplicationDispatcher.invoke(Applicat
 ionDispatcher.java:683)
   at 
 org.apache.catalina.core.ApplicationDispatcher.doForward(Appli
 cationDispatcher.java:431)
   at 
 org.apache.catalina.core.ApplicationDispatcher.forward(Applica
 tionDispatcher.java:355)
   at 
 org.apache.struts.action.ActionServlet.processActionForward(Ac
 tionServlet.java:1759)
   at 
 org.apache.struts.action.ActionServlet.process(ActionServlet.j
 ava:1596)
   at 
 org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
 er(ApplicationFilterChain.java:247)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
 cationFilterChain.java:193)
   at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 rapperValve.java:243)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardC
 ontextValve.java:190)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at 
 org.apache.catalina.valves.CertificatesValve.invoke(Certificat
 esValve.java:246)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
 org.apache.catalina.core.StandardContext.invoke(StandardContex
 t.java:2347)
   at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHost
 Valve.java:180)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at 
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
 spatcherValve.java:170)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
 Valve.java:170)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at 
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
 e.java:468)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
 gineValve.java:174)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
 org.apache.catalina.connector.http.HttpProcessor.process(HttpP
 rocessor.java:1027)
   at 
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
 ssor.java:1125)
   at java.lang.Thread.run(Thread.java:536)
 root cause 
 javax.servlet.jsp.JspException: Cannot find bean category

Re: [ot] Time format and time picking?

2003-10-10 Thread James Mitchell
I don't recall any handy dandy utilities for time.  Sure, there are plenty
for dates, but I don't seem to recall that being requested very often or I
just have missed it since it hasn't been a requirement in any of my latest
projects.


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



- Original Message - 
From: Mick Knutson [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, October 10, 2003 12:55 PM
Subject: Re: [ot] Time format and time picking?


 No, I understand how to get the time correct, I am just hoping someone has
a
 utility that will help me do this, as well as convert it back to 12 hour
 formatted time. Just so I don't have to re-invent the wheel.


 ---
 Thanks
 Mick Knutson

 The world is a playground...Play Hard, Play Smart.
 Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
 Contact System can help you Play Smart.

 +00 1 (708) 570-2772 Fax
 MSN: mickknutson
 ICQ: 316498480
 ICQ URL: http://wwp.icq.com/316498480

 ---

 - Original Message - 
 From: James Mitchell [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Friday, October 10, 2003 9:38 AM
 Subject: Re: [ot] Time format and time picking?


  Add 12 to the hour.
 
  8:30 AM ==  830
  8:30 PM == 2030
  1:00 PM == 1300
 
  ...is that what you wanted?
 
  --
  James Mitchell
  Software Engineer / Struts Evangelist
  http://www.struts-atlanta.org
  678.910.8017
  770.822.3359
  AIM:jmitchtx
 
 
 
  - Original Message - 
  From: Mick Knutson [EMAIL PROTECTED]
  To: struts [EMAIL PROTECTED]
  Sent: Friday, October 10, 2003 11:59 AM
  Subject: [ot] Time format and time picking?
 
 
   I need the ability to have a user choose their own Time. But, I can
only
   seem to get 24 hour time to work. So, Either I need to find a
JavaScript
   Time Chooser, or I need help to figure out how to convert the time
  (8:56PM)
   to the Military time.
  
   Any help on this?
  
  
   ---
   Thanks
   Mick Knutson
  
   The world is a playground...Play Hard, Play Smart.
   Visit  http://www.YourSoS.com to learn how our Personal Emergency
Alert
 
   Contact System can help you Play Smart.
  
   +00 1 (708) 570-2772 Fax
   MSN: mickknutson
   ICQ: 316498480
   ICQ URL: http://wwp.icq.com/316498480
  
   ---
  
   -
   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: reloading of properties/resources file

2003-10-10 Thread James Mitchell
You can't.  This subject gets beaten to death about once a month.


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



- Original Message - 
From: Richard Raquepo [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, October 10, 2003 6:55 AM
Subject: reloading of properties/resources file


how can i force the reloading of my properties/resource file
in struts?

thanks.

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



Re: JavaServer Faces

2003-10-09 Thread James Mitchell
Yes, I have an opinion.  While some people might not agree with me, it is
still my opinion.

I believe that you should read the spec, try the examples, and see for
yourself.


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



- Original Message - 
From: Horky Adam G A1C 805 CSPTS/SCBE [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 08, 2003 3:28 PM
Subject: JavaServer Faces


Does anyone know enough about Struts and JavaServer Faces to provide an
opinion about the superiority of one over the other?





A1C Adam G Horky

Application Development Programmer, SCBE

(618)256-2300





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



Re: iterator indexID

2003-10-08 Thread James Mitchell
Try indexId
   ^


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



- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 08, 2003 1:38 PM
Subject: iterator indexID


when trying to use the logic:iterator indexID property I get an error
stating

Attribute indexID invalid according to the specified TLD

but I see it as a listed property in the api.

Any suggestions?

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: Struts (with JavaMail)

2003-10-06 Thread James Mitchell
For starters, don't hijack threads.


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



- Original Message - 
From: Martin Gainty [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, October 06, 2003 9:09 AM
Subject: Struts (with JavaMail)


 I am trying to implement a JavaMail form that uses Struts
 Any advice?

 Thanks,
 -Martin

 - Original Message - 
 From: Mark Galbreath [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Monday, October 06, 2003 8:34 AM
 Subject: Craig: Tomcat 5.0 WAR Deployment


  Craig,
 
  I'm writing a simple Struts standalone app to Tomcat 5.0 (trying to
learn
  Struts + JDO) and Tomcat is not auto-deploying the WAR after Ant
compiles,
  assembles, and puts it in the webapps root.  Auto-deploy is set to
true
 in
  server.xml...anything else I am missing?
 
  Thx,
  Mark
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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


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



Re: Compiling jsps/Tiles with ant?

2003-10-03 Thread James Mitchell
I don't do it myself (yet), but here's a few places to start with...

http://www.google.com/search?hl=enlr=ie=UTF-8oe=UTF-8q=taskdef+name%3D%22jasper%22btnG=Google+Search



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



- Original Message - 
From: Mick Knutson [EMAIL PROTECTED]
To: struts [EMAIL PROTECTED]
Sent: Friday, October 03, 2003 6:53 PM
Subject: Compiling jsps/Tiles with ant?


 I am wondering if anyone has any examples of using ant to build their
jsp's?

 I am using Tiles extensively, and keep getting NPE on jspc.
 Also, jspc keeps wanting me to add /WEB-INF/web.xml to my root build
path.
 Currently it is not there, it is in ./src/web/WEB-INF/web.xml


 ---
 Thanks
 Mick Knutson

 The world is a playground...Play Hard, Play Smart.
 Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
 Contact System can help you Play Smart.


 +00 1 (877) SoS-9119
 +00 1 (708) 570-2772 Fax
 ---

 -
 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: Editorial on Struts vs JSF

2003-10-01 Thread James Mitchell
- Original Message - 
From: Vic Cekvenic [EMAIL PROTECTED]

snip/

 Feel free to read the JSF spec and form an opinion for yourself.

+1


 
 .V
 




--
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: message-resources in Struts 1.0?

2003-09-30 Thread James Mitchell
It is only possible if you have the source code ;)


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



- Original Message - 
From: Bob Lee [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 2:50 PM
Subject: message-resources in Struts 1.0?


 Is it possible to cleanly patch Struts 1.0 to use a custom message 
 resources factory?
 
 Thanks,
 Bob
 
 
 -
 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: [Question] Image path - Best way?

2003-09-27 Thread James Mitchell
Are you talking about something like this?

bean:define id=myImg
  bean:message key=my.img/
/bean:define

html:img page=%=myImg%/



...where you have something like this in your .properties file

my.img   = /images/logo.gif




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



- Original Message - 
From: Rajesh M Vasudevan [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, September 27, 2003 2:32 AM
Subject: Re: [Question] Image path - Best way?


 Hi guys,

 I tried the following, and it seems to work good:
 img src=%=request.getContextPath()%/images/leiste_oben.jpg
width=430
 height=80 border=0 alt=

 Is this the right way?  Is there a way to specify it as a Resource? Can
you
 give me a tutorial link of how to do that..

 Thanks
 Rajesh

  Hi
 
  What is the best way to give image paths in JSP pages?  I see that an
 image
  path given in a certain way works for .jsp files, but the same path
fails
  for pages loaded through a .do and vice versa.
 
  Is there a standard way that struts instructs by which images can be
 defined
  in a resource configuration file and refer to them in the jsp pages as
  resource strings, just like application resources?  OR Is there a way to
  refer to an image which works well for both .do or .jsp.
 
  Please advise..
 
  Regards,
  Rajesh
 
 
 
  -
  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: Urgent: Changing URLs for existing struts project

2003-09-25 Thread James Mitchell
If you have developed your application in struts friendly way, this should
be as easy as changing

  servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
  /servlet-mapping

to

  servlet-mapping
servlet-nameaction/servlet-name
url-pattern/javapps/*.do/url-pattern
  /servlet-mapping



 or (for path mapping)

  servlet-mapping
servlet-nameaction/servlet-name
url-pattern/myapp/*/url-pattern
  /servlet-mapping

  servlet-mapping
servlet-nameaction/servlet-name
url-pattern/javapps/myapp/*/url-pattern
  /servlet-mapping


...in the web.xml


I just tested this on the project I am currently working on and it works
fine.  My login page now posts to /javapps/harland/security whereas it
used to be /harland/security.  I can also change it back and forth from
extension mapping to path mapping by simply modifying the url-patter to
any of the above values.

Best I can tell you is to make the change (as noted above) and run your test
suite.  You did build a test suite right?



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



- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 11:30 AM
Subject: Urgent: Changing URLs for existing struts project


 Hi All
 I am currently running tomcat4.1.27 and apache1.3.x. I am using struts. I
 used call my webapplication xyz using www.abc.org/xyz. Now company has
 decided that pople should be able to access this webapplication through
 the URL

 www.abc/javapps/xyz. Do i need to change the whole architecture now or
 should i be able to do it easily. I have tried to create a directory under
 /var/tomcat4/webapps/ as japps/xyz and pointed my .war file to this
 directory. But tomcat is not able to map this URL at all. Please help me
 find a solution to this problem.


 Thanx in advance

 --Mohan




 -
 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: HELP using struts1.1 and iplanet4.1 sp7

2003-09-24 Thread James Mitchell
Any chance you can upgrade to 6.1?  iPlanet now uses Tomcat.


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



- Original Message - 
From: Adolfo Miguelez [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 6:49 AM
Subject: Re: HELP using struts1.1 and iplanet4.1 sp7


 Hi Juan Pedro,

 --- cant remove Attributes from request scope
 
 (uri=/logon.jsp): javax.servlet.ServletException: cant remove Attributes
 from request scope, stack:
 javax.servlet.ServletException: cant remove Attributes from request scope
 at

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextIm
pl.java:384)
 at _logon_jsp._jspService(_logon_jsp.java:429)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:826)
 at

com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.ja
va:507)
 , root cause: java.lang.IllegalArgumentException: cant remove Attributes
 from request scope
 at

org.apache.jasper.runtime.PageContextImpl.removeAttribute(PageContextImpl.j
ava:236)
 at org.apache.struts.taglib.html.FormTag.doEndTag(FormTag.java:668)

 I found a very similar problem under VisualAge because a different
 implementation in IBMs JVM and Sun.
 It needed a path. Do not why it should apply to your iPlanet, but maybe is
 worth testing. Replace in FormTag.doStartTag() the lines:

 pageContext.removeAttribute(org.apache.struts.taglib.html.BEAN,
 .);
 pageContext.removeAttribute(org.apache.struts.taglib.html.FORM,
 .);


 by:

 // Remove the page scope attributes we created
 pageContext.getRequest().removeAttribute(Constants.BEAN_KEY);
 pageContext.getRequest().removeAttribute(Constants.FORM_KEY);
 pageContext.removeAttribute(Constants.BEAN_KEY);
 pageContext.removeAttribute(Constants.FORM_KEY);

 and try again.

 --TAglibs no compatibles with jsp1.1?
 Unable to compile class for JSPc:\server4\https-
 asoria113\config\..\ClassCache\_jsps\_changePassword_jsp.java:69:
 Incompatible type for method. Can't
 convert java.lang.String to boolean.
  _jspx_th_html_html_0.setLocale(true);

 This seems a common compilation problem in JSPs. Make a toString() in the
 boolean.

 Without more info no idea about the other exceptions.

 Adolfo.

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


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


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



Re: SwitchAction not working - Help please

2003-09-24 Thread James Mitchell
It works fine for me, what container are you using?


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



- Original Message - 
From: Puneet Agarwal [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 4:01 AM
Subject: SwitchAction not working - Help please


We have a large application wnd the size of struts-config.xml has grown
big.
I am trying to divide it into modules.
It did not work.


Then I downloaded simple-modules-example.tar.gz from
http://sourceforge.net/projects/struts

But even that is not working for me...what could be the reason ?

Error is :
javax.servlet.jsp.JspException: Missing message for key
toDefaultModule.using.forward
 int org.apache.struts.taglib.bean.MessageTag.doStartTag()
  MessageTag.java:297
 void _mod1._index._jspService(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
 [/mod1/index.jsp]

I am using Struts-1.1

Please help.!!!

Regards,
Puneet Agarwal

Tata Consultancy Services,
C-56, Phase - II, NOIDA 201305 (India)
Phone: +91-120-2461001, 2, 7, 8, 9, 12, 13 (Ext. 1044)
FAX : +91-120-246 1521

Struts ... Action ... Struts in Action ... Action in Struts ...
DISCLAIMER: The information contained in this message is intended only and
solely for the addressed individual or entity indicated in this message and
for the exclusive use of the said addressed individual or entity indicated
in this message (or responsible for delivery of the message to such person)
and may contain legally privileged and confidential information belonging
to Tata Consultancy Services. It must not be printed, read, copied,
disclosed, forwarded, distributed or used (in whatsoever manner) by any
person other than the addressee. Unauthorized use, disclosure or copying is
strictly prohibited and may constitute unlawful act and can possibly
attract legal action, civil and/or criminal. The contents of this message
need not necessarily reflect or endorse the views of Tata Consultancy
Services on any subject matter. Any action taken or omitted to be taken
based on this message is entirely at your risk and neither the originator
of this message nor Tata Consultancy Services takes any responsibility or
liability towards the same. Opinions, conclusions and any other information
contained in this message that do not relate to the official business of
Tata Consultancy Services shall be understood as neither given nor endorsed
by Tata Consultancy Services or any affiliate of Tata Consultancy Services.
If you have received this message in error, you should destroy this message
and may please notify the sender by e-mail. Thank you.


-
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: [Poll] action mappings

2003-09-24 Thread James Mitchell
Did you look at the attached text file?


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



- Original Message - 
From: atta-ur rehman [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 12:59 PM
Subject: Re: [Poll] action mappings


 hi james,

 could you please explain, for a struts newbie, what do you mean by

 quote
 I'm using DispatchAction with 2 abstract base actions between my actions
and
 the dispatch action.  The first one has helper methods for functionality
not
 requiring authentication, and the second one (which extends the first)
does
 require authentication.
 /quote

 Thanks in advance!

 ATTA
 - Original Message - 
 From: James Mitchell [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Tuesday, September 23, 2003 9:17 AM
 Subject: Re: [Poll] action mappings


  #1 with a twist.
 
  I'm using DispatchAction with 2 abstract base actions between
  my actions and the dispatch action.  The first one has helper
  methods for functionality not requiring authentication, and
  the second one (which extends the first) does require authentication.
 
  By overriding the execute in the second one, it allows me
  additional base functionality (helper methods) and seamless
  session management in one place.
 
  I've attached a crude example of what I mean.
 
  --
  James Mitchell
  Software Engineer / Struts Evangelist
  http://www.struts-atlanta.org
  770.822.3359
  AIM:jmitchtx
 
 
 
  - Original Message - 
  From: Mainguy, Mike [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, September 23, 2003 11:05 AM
  Subject: [Poll] action mappings
 
 
   I have yet another opinion poll for struts-user...
  
   What are folks currently doing for action mappings in relation to CRUD
   operations?
   Are you:
  
   #1  creating a unique Action mapping for each atomic operation
   (potentially mapped to the same action class)
   /createUser.do -  UserAction.java
   /readUser.do   -  UserAction.java
   /updateUser.do -  UserAction.java
   /deleteUser.do -  UserAction.java
  
  
   #2  creating a unique Action mapping for each atmoic operation
   with each action having a unique class
   /createUser.do -  CreateUserAction.java
   /readUser.do   -  ReadUserAction.java
   /updateUser.do -  UpdateUserAction.java
   /deleteUser.do -  DeleteUserAction.java
  
   #3  creating an aggregate action class with a unique action mapping
with
   multiple operations and using form/request variable to accomplish
 CUD
   /editUser.do   - UserAction.java   (?OP=Update, ?OP=Create,
   ?OP=Delete)
   /displayUser.do- UserAction.java
  
  
   #4  creating an aggregate action class with a unique action mapping
with
   multiple operations
   /editUser.do   - EditUserAction.java
   /displayUser.do- DisplayUserAction.java
  
  
   Some other way (or a combination) ...
  
  
  
   This message and its contents (to include attachments) are the
property
 of
  Kmart Corporation (Kmart) and may contain confidential and proprietary
  information. You are hereby notified that any disclosure, copying, or
  distribution of this message, or the taking of any action based on
  information contained herein is strictly prohibited. Unauthorized use of
  information contained herein may subject you to civil and criminal
  prosecution and penalties. If you are not the intended recipient, you
 should
  delete this message immediately.
  
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 


 --
--
 


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



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


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



Re: log4j setup

2003-09-24 Thread James Mitchell
Step 2. http://www.catb.org/~esr/faqs/smart-questions.html#before


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



- Original Message - 
From: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 12:03 PM
Subject: Re: log4j setup


 
 Step 1.  RTFM
 
 
 
 
 Viral_Thakkar [EMAIL PROTECTED] on 09/24/2003 09:23:22 AM
 
 Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
 
 To:Struts Users Mailing List [EMAIL PROTECTED]
 cc:
 Subject:log4j setup
 
 
 Please let me know what are the steps one need to do to configure the
 log4j.
 
 
 
 -
 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]



[OT] Struts-Atlanta - (reminder) don't miss tonight's meeting.

2003-09-23 Thread James Mitchell

The Next Meeting...
  When: Tuesday, September 23, 2003 from 7PM to 9PM (THAT'S
TONIGHT!)
  Where:  Mirant
  1155 Perimeter Center Parkway
  (across from the Sandy Springs Marta station near Perimeter mall
  Click here for directions
  Presenter: Jason Chambers is an Advisory Developer at Delta Technology
where his responsibilities include delta.com and flysong.com. He has over 12
years development experience working in the software, telecom and airline
industries. In his spare time he maintains various small re- usable Java
components released as open source. He is a Sun Certified Java Developer and
Web Component Developer for the Java 2 platform. He maintains a blog at
http://jason.blog-city.com.
  Topic: Getting started with Struts
  Description: What do you need to get started with Struts? Well, you
need a lot more than just Struts itself. This presentation will show you
what components you need, where to get them from and how to get them working
together to build a basic yet productive development environment for your
web applications. Best of all, it is all free!



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




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



Re: [struts-atlanta] [OT] Struts-Atlanta - (reminder) don't miss tonight's meeting.

2003-09-23 Thread James Mitchell
Wow, that (formatting) sure looks like crap after the yahoo relay.  It
looked real nice before I sent itHONEST!!!

Anyway, I forgot to mention that for those interested in drinks/discussions
before our meeting, a few of us will get together at Max  Ermas around
6:30.  If you don't know how to get there, let me know and I'll meet you at
Mirant around 6:15 and we can all drive over together.

All are welcome.  See you tonight!!



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



- Original Message - 
From: James Mitchell [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 11:06 AM
Subject: [struts-atlanta] [OT] Struts-Atlanta - (reminder) don't miss
tonight's meeting.



 The Next Meeting...
   When: Tuesday, September 23, 2003 from 7PM to 9PM (THAT'S
 TONIGHT!)
   Where:  Mirant
   1155 Perimeter Center Parkway
   (across from the Sandy Springs Marta station near Perimeter mall
   Click here for directions
   Presenter: Jason Chambers is an Advisory Developer at Delta
Technology
 where his responsibilities include delta.com and flysong.com. He has over
12
 years development experience working in the software, telecom and airline
 industries. In his spare time he maintains various small re- usable Java
 components released as open source. He is a Sun Certified Java Developer
and
 Web Component Developer for the Java 2 platform. He maintains a blog at
 http://jason.blog-city.com.
   Topic: Getting started with Struts
   Description: What do you need to get started with Struts? Well, you
 need a lot more than just Struts itself. This presentation will show you
 what components you need, where to get them from and how to get them
working
 together to build a basic yet productive development environment for your
 web applications. Best of all, it is all free!



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




  Yahoo! Groups Sponsor -~--
 Upgrade to 128-Bit SSL Security!
 http://us.click.yahoo.com/p7cEmB/s7qGAA/yigFAA/nhFolB/TM
 -~-

 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]



 Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/



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



Re: [Poll] action mappings

2003-09-23 Thread James Mitchell
#1 with a twist.

I'm using DispatchAction with 2 abstract base actions between
my actions and the dispatch action.  The first one has helper
methods for functionality not requiring authentication, and
the second one (which extends the first) does require authentication.

By overriding the execute in the second one, it allows me
additional base functionality (helper methods) and seamless
session management in one place.

I've attached a crude example of what I mean.

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



- Original Message - 
From: Mainguy, Mike [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 11:05 AM
Subject: [Poll] action mappings


 I have yet another opinion poll for struts-user...

 What are folks currently doing for action mappings in relation to CRUD
 operations?
 Are you:

 #1  creating a unique Action mapping for each atomic operation
 (potentially mapped to the same action class)
 /createUser.do -  UserAction.java
 /readUser.do   -  UserAction.java
 /updateUser.do -  UserAction.java
 /deleteUser.do -  UserAction.java


 #2  creating a unique Action mapping for each atmoic operation
 with each action having a unique class
 /createUser.do -  CreateUserAction.java
 /readUser.do   -  ReadUserAction.java
 /updateUser.do -  UpdateUserAction.java
 /deleteUser.do -  DeleteUserAction.java

 #3  creating an aggregate action class with a unique action mapping with
 multiple operations and using form/request variable to accomplish CUD
 /editUser.do   - UserAction.java   (?OP=Update, ?OP=Create,
 ?OP=Delete)
 /displayUser.do- UserAction.java


 #4  creating an aggregate action class with a unique action mapping with
 multiple operations
 /editUser.do   - EditUserAction.java
 /displayUser.do- DisplayUserAction.java


 Some other way (or a combination) ...



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




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

MRBA == ManagedResourceBaseAction
AMRBA == AuthenticatedManagedResourceBaseAction

diclaimer
This diagram may seem crude, but I hope you get the idea.
The formatting will most likely be screwed up.
All actions (except login) must extend AMRBA.
/disclaimer

So, I have:

/createUser.do

DispatchAction   MRBAAMRBA  ManageUserAction
|
-execute()|
   |--,
   |  |
   | isLoggedIn?
   |  |
   |-'
   |
|-- super.execute() --|
|  
|/createUser--|
|  |
|  |--getService()---|
|  |   |
|  |   |
|  |   |--createUser()- 
Business
|  | 
Service
|  |   |


*Note* - I do not pass return boolean or some other crappy way of dealing 
 with invalid state.  My application takes advantage of declarative 
 exception handline


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

Re: how to replace bean:message key... in a JSTL tag attribute ?

2003-09-23 Thread James Mitchell
Like this.


bean:define id=someValue
 bean:message key=labels.global.something/
/bean:define

c:out value=${someValue}/


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



- Original Message - 
From: Dom [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 4:54 PM
Subject: how to replace bean:message key... in a JSTL tag attribute ?


 I want to use one of the attributes in ApplicationMessages.properties as
an
 attribute in a JSTL tag. How can I implement it in the jsp only ?

 Dom




 -
 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 do I mix html jsp files?

2003-09-22 Thread James Mitchell
You forgot to put [OT] and it's not Friday yet, so quit with the jokes
already.


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



- Original Message - 
From: David Thielen [EMAIL PROTECTED]
To: Struts-Users [EMAIL PROTECTED]
Sent: Monday, September 22, 2003 7:29 PM
Subject: How do I mix html  jsp files?


Hi;

I have a large web site that is all html running on IIS. It's all in
c:/inetpub/wwwroot/...

I need 2 jsp files. And I want the jsp files to use the same DreamWeaver
template files with the same menu bars, etc.

The problem is my application server wants the jsp files over in it's
directories. But all my links are relative. Any suggestions to get the jsp
file relative links to go back to the c:/inetpub/wwwroot? (I can't use
html:link.../ because the links come from a DreamWeaver template and is
used by all the html files.)

thanks - dave


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



RE: Application.properties

2003-09-16 Thread James Mitchell
Yes, I believe that is the latest version.  

BTW. Thank you for the help.

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




 -Original Message-
 From: Paananen, Tero [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, September 16, 2003 10:56 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Application.properties
 
 
  If anyone else has a free minute so spare,
  that would be great.
 
 Since I already implemented similar things with
 PropertyMessageResources, I could probably do this
 one fairly quickly as well. Might even be able to
 reuse the old code for it.
 
 James, could you point me to the right direction
 as to where's the latest version of the OJB
 Message Resources stuff?
 
http://sourceforge.net/project/showfiles.php?group_id=49385

Is that it?

-TPP

-
This email may contain confidential and privileged material for the sole
use of the intended recipient(s). Any review, use, retention,
distribution or disclosure by others is strictly prohibited. If you are
not the intended recipient (or authorized to receive for the recipient),
please contact the sender by reply email and delete all copies of this
message.  Also, email is susceptible to data corruption, interception,
tampering, unauthorized amendment and viruses. We only send and receive
emails on the basis that we are not liable for any such corruption,
interception, tampering, amendment or viruses or any consequence
thereof.


-
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 meeting for Struts-Atlanta....

2003-09-12 Thread James Mitchell
  

The Next Meeting...

When:Tuesday, Sepetember 23, 2003 from 7PM to 9PM   
Where:  
Mirant

1155 Perimeter Center Parkway
(across from the Sandy Springs Marta station near Perimeter mall
Click here http://www.struts-atlanta.org/meetings.do  for directions 
Presenter:   
 
Jason Chambers is an Advisory Developer at Delta Technology where his
responsibilities include delta.com and flysong.com. He has over 12 years
development experience working in the software, telecom and airline
industries. In his spare time he maintains various small re- usable Java
components released as open source. He is a Sun Certified Java Developer
and Web Component Developer for the Java 2 platform. He maintains a blog
at http://jason.blog-city.com http://jason.blog-city.com/ . 
Topic:   
 
Getting started with Struts
Description: 
What do you need to get started with Struts? Well, you need a lot more
than just Struts itself. This presentation will show you what components
you need, where to get them from and how to get them working together to
build a basic yet productive development environment for your web
applications. Best of all, it is all free!  





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






RE: struts-config - digester problem

2003-09-11 Thread James Mitchell
I'm guessing that you didn't bother to search google, the source code,
or web site documentation as this topic is covered very well in many
places.

http://www.google.com/search?hl=enlr=ie=UTF-8oe=UTF-8q=using+set-pro
perty+struts-configbtnG=Google+Search

From the first hit found on google:

The set-property element is used when you subclass the ActionMapping
class and add custom properties to it. Using set-property elements, you
can still benefit from the way the struts-config.xml file gets loaded
into ActionMapping instances by the Digester utility. With this element,
you can specify initial values for the specific properties on your
ActionMapping subclasses without having to alter the struts-config DTD
for every ActionMapping customization implemented.

The article continues with a small example.

That's only one of many hits found on google.

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





 -Original Message-
 From: Jan Zimmek [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, September 11, 2003 4:59 PM
 To: Struts Users Mailing List
 Subject: struts-config - digester problem
 
 
 Hi,
 
 I am developing an ui-component-extension for struts and have 
 to nest the set-property element inside an action element.
 
 According to the DTD of struts 1.1 this should be possible, 
 but when I specify something like this:
 
 action path=/Website type=de.gp.actions.WebsiteAction
  set-property property=uisystem value=main/set-property
 /action
 
 The commons-digester throws the following exception:
 
 java.lang.NoSuchMethodException: Bean has no property named system
 at 
 org.apache.commons.digester.SetPropertyRule.begin(SetPropertyRule.ja
 a:192)
 
 When I define the value as CDATA the an additional xerces 
 exception is thrown.
 
 Have I done something wrong ?
 
 I am using struts 1.1 final.
 
 Would be great if anyone could help me to solve my problem.
 
 
 
 greets
 Jan Zimmek
 


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



RE: Plugins to debug jsp with Eclipse

2003-09-09 Thread James Mitchell
?


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




 -Original Message-
 From: hari_s [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, September 09, 2003 9:05 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Plugins to debug jsp with Eclipse
 
 
 Setahuku gak ada ya, bagaimana kalo pake oracle jdeveloper 
 itu tool yang
 kumplit untuk develop aplikasi dengan teknologi java,dengan debugging
 yang bagus pula...
 
 Hai mungkin jawabannya gak memuaskan, tapi ingin Aku nyapa aja sesama
 orang Indonesia di milis ini.
 
 -Original Message-
 From: Kristanto Oetomo [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 10, 2003 5:44 AM
 To: 'Struts Users Mailing List'
 Subject: Plugins to debug jsp with Eclipse
 
 Does anyone know any plugins to debug jsp in Eclipse? As of now, there
 is a plugin to debug jsp after it's being converted into a 
 servlet. I am
 looking for a direct debugging tool for the jsp itself. Thanks.
 
 Kristanto Oetomo
 Software Engineer
 
 PT Sigma Karya Sempurna (BaliCamp)
 Jl. Raya Pacung No. 32A, Baturiti - Tabanan 82191
 Bali - Indonesia
 Tel: +62 368 21919 Fax: +62 368 21920
 http://www.balicamp.com
 --
 --
 
 Favorite Quote: The only stupid question is the one you never ask.
 --Anonymous--
 --
 --
 
 
 
 -Original Message-
 From: David Graham [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 10, 2003 1:21 AM
 To: Struts Users Mailing List
 Subject: Re: Tiles  html-taglib producing XHTML
 
 
 --- Adam Hardy [EMAIL PROTECTED] wrote:
  Thanks David.
  
  Sorry, didn't see it and it had never been talked about in the 
  archives.
  
  May I suggest though that it be added to the API docs for 
 html:html at
  http://jakarta.apache.org/struts/userGuide/struts-html.html#html
 
 That would be helpful.  Please open an enhancement request with the
 details so it doesn't get forgotten.
 
 David
 
  
  Thanks
  Adam
  
  
  On 09/09/2003 06:26 PM David Graham wrote:
   Add html:xhtml/ to each of your tiles.  Each page fragment must
  decide
   how it will be rendered, not the containing page.
   
   David
   
   --- Adam Hardy [EMAIL PROTECTED] wrote:
   
  I'm using the struts html taglib, well actually the 
 html-el taglib 
  but
  
  the problem is with both, and I am outputting XHTML, but the input
  taglib doesn't output XHTML when it's in a different Tile.
  
  I have my Tiles layout page with the doctype declaration and the
  
  html:html xhtml=true
  
  and the
  
  tiles:insert attribute=bodyContent /
  
  to include my content.
  
  Anything nested nicely inside the html:html 
 xhtml=true tags in 
  the
  
  layout tile is given proper XHTML syntax, but in the other tiles, 
  it's
  
  not. i.e. instead of:
  
  input type=image name= src=edit.png title=Edit 
 alt=Edit 
  /
  
  it gives:
  
  input type=image name= src=edit.png title=Edit 
 alt=Edit
  
  Before I go off to bugzilla, assuming I haven't 
 overlooked something
  important, what is it a bug of? html-taglib or tiles?
  
  Thanks,
  Adam
  
  --
  struts 1.1 + tomcat 4.1.27 + java 1.4.2
  Linux 2.4.20 RH9
  
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: 
 [EMAIL PROTECTED]
  
   
   
   
   __
   Do you Yahoo!?
   Yahoo! SiteBuilder - Free, easy-to-use web site design software 
   http://sitebuilder.yahoo.com
   
   
 
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED]
   
   
  
  --
  struts 1.1 + tomcat 4.1.27 + java 1.4.2
  Linux 2.4.20 RH9
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software
 http://sitebuilder.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



RE: Message resource as a String variable

2003-09-05 Thread James Mitchell
You mean like this?

bean:define id=myVar
 bean:message key=someKey/
/bean:define



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




 -Original Message-
 From: Suresh Addagalla [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 05, 2003 3:15 AM
 To: 'Struts Users Mailing List'
 Subject: Message resource as a String variable
 
 
 
 Hi,
 
 Is it possible to create a String variable out of a message resource
 defined in the resources files?
 
 bean:message doesn't seem to help.
 
 Thanks,
 Suresh
 
 
 **Disclaimer**
 **
 
 Information contained in this E-MAIL being proprietary to 
 Wipro Limited is 
 'privileged' and 'confidential' and intended for use only by 
 the individual
  or entity to which it is addressed. You are notified that 
 any use, copying 
 or dissemination of the information contained in the E-MAIL 
 in any manner 
 whatsoever is strictly prohibited.
 
 **
 *
 
 -
 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: getting at public static class constant field values in EL script

2003-08-30 Thread James Mitchell
You can take advantage of the Unstandard tags.

Here's a :

This doesn't directly answer your question, but I'm sure you are smart
enough to derive your answer from the following archived post on
taglib-users from July:


 I'm wondering if there is a way I could compare a scoped variable to a
 static constant variable that is in a class?

 For example in Const class I have some levels like:

 public static final int JVP_LEVEL = 3;

 It would be nice if in my JSP I could do (after the import up top)..

 c:if test=${myScopedVar == Const.JVP_LEVEL} /

 I know I could just do ..

 c:if test=${myScopedVar == 3} /

 But it is clearer in the code to use the Constant name. Is it possible
 to do this somehow?

 Thanks,


Unsure if JSTL 1.1 will allow this, but using the Unstandard taglib you
can do:

un:bind var=bob type=your.package.Const field=JVP_LEVEL/
c:if test=$myScopedVar == $bob
..
/c:if

http://jakarta.apache.org/taglibs/sandbox/doc/unstandard-doc/intro.html

(Henri Yandell)



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



- Original Message - 
From: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, August 30, 2003 12:35 PM
Subject: getting at public static class constant field values in EL script


 I am doing my error page and I want to test for the presence of an error
 collection, which struts puts in the request using a key string defined
 by org.apache.struts.Globals.ERROR_KEY

 It is actually org.apache.struts.action.ERROR

 I can't even work out how to do the simplest c:out/ tag to display the
 value of Globals.ERROR_KEY

 I have been trying this:

 c:out value=${org.apache.struts.Globals.ERROR_KEY} /

 but it doesn't work presumably since it's trying to find an object
 called org.

 Does anyone know?

 Thanks
 Adam


 -- 
 struts 1.1 + tomcat 4.1.27 + java 1.4.2
 Linux 2.4.20 RH9


 -
 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: ApplicationResources

2003-08-29 Thread James Mitchell
http://www.mail-archive.com/[EMAIL PROTECTED]/msg73159.html


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



- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 28, 2003 1:32 PM
Subject: ApplicationResources


 Hi,
 I was of the assumption that the application resources and localization
are
 implemented based on Java resource bundles. I was surprised that it did
 not. Can somebody explain why? Just curious.

 Thanks



 -
 The information contained in this communication (including any attachments
hereto) is confidential and is intended solely for the personal and
confidential use of the individual or entity to whom it is addressed.  The
information may also constitute a legally privileged confidential
communication.  If the reader of this message is not the intended recipient
or an agent responsible for delivering it to the intended recipient, you are
hereby notified that you have received this communication in error and that
any review, dissemination, copying, or unauthorized use of this information,
or the taking of any action in reliance on the contents of this information
is strictly prohibited.  If you have received this communication in error,
please notify us immediately by e-mail, and delete the original message.
Thank you


 -
 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] As the Struts world turns [was: Re: DO NOT REPLY [Bug 22519] - Allow multiple MessageResources files to be loaded under one key]

2003-08-28 Thread James Mitchell
Someone posted a link on another thread that might actually help in
situations like this:

http://www.originalicons.com/smile



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



- Original Message - 
From: James Mitchell [EMAIL PROTECTED]
To: Struts Developers List [EMAIL PROTECTED]
Sent: Thursday, August 28, 2003 2:42 AM
Subject: [OT] Re: DO NOT REPLY [Bug 22519] - Allow multiple MessageResources
files to be loaded under one key


 Vic, what's your problem?

 I think I've heard enough of your ramblings as well.  I've tried to
 sympathize with your views hoping that somewhere (in some unknown galaxy)
 you actually knew what you were talking about.

 If you don't know what I mean, tell me if this sounds familiar to you (or
 anyone):

 (fictitious, but you get the idea)

  On 8/16, Message Message [EMAIL PROTECTED] wrote:
 
  Dear Struts group,
  What is the best practice for using Struts with EJB?
 
 Vic replied:
 Don't use EJB, it sucks.
   
Message Message replied:
How can you justify saying that?
   
   Vic replied:
   Because I know these words
   Model View Controller / Master Detail and Multirow / DAO / XLM / XSL
  
   Message Message replied:
  Wow.  You must be right, cause I don't even know all them werds.
 

 Craig wrote:
 Vic, you misspelled XML.






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



 - Original Message - 
 From: Craig R. McClanahan [EMAIL PROTECTED]
 To: Struts Developers List [EMAIL PROTECTED]
 Sent: Thursday, August 28, 2003 1:33 AM
 Subject: Re: DO NOT REPLY [Bug 22519] - Allow multiple MessageResources
 files to be loaded under one key


  Vic,
 
  Please go away.
 
  I'm sat on the sidelines watching you make a fool of yoursself in
multiple
  forums, and enjoyed laughing at you.  But I'm absolutely NOT going to
put
  up with YOU thinking you have any RIGHT to change the status on Struts
bug
  reports and enhancement requests.
 
  If you've got patches to propose that actually implement some of the
  suggested enhancements or bug fixes, that's a different story.  But all
I
  see you doing is trying to be negative and disruptive (and childish as
  well -- my kids outgrew name calling before the were in middle school --
  sheesh).
 
  You do not, and NEVER WILL speak for any Struts developer community that
I
  am a part of.  Now get your hands off of our bug tracking system or
you're
  going to be banned.
 
  Craig McClanahan
 
 
  On Wed, 28 Aug 2003 [EMAIL PROTECTED] wrote:
 
   Date: 28 Aug 2003 02:46:43 -
   From: [EMAIL PROTECTED]
   Reply-To: Struts Developers List [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Subject: DO NOT REPLY [Bug 22519]  - Allow multiple
MessageResources
   files to be loaded under one key
  
   DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
   RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
   http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22519.
   ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
   INSERTED IN THE BUG DATABASE.
  
   http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22519
  
   Allow multiple MessageResources files to be loaded under one key
  
   [EMAIL PROTECTED] changed:
  
  What|Removed |Added
 

 --
 --
Status|NEW |RESOLVED
Resolution||LATER
  
  
  
   --- Additional Comments From [EMAIL PROTECTED]
2003-08-28
 02:46 ---
   Delay until after resource refactoring?
   .V
  
   -
   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: [OT] Re: Small request...

2003-08-26 Thread James Mitchell

Are you sure?

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




 -Original Message-
 From: Keith Pemberton [mailto:[EMAIL PROTECTED] 
 Sent: Monday, August 25, 2003 4:47 PM
 To: Struts Users Mailing List
 Subject: Re: [OT] Re: Small request...
 
 
 One person sent a post to the list with a sent date of Aug 21, 2004. 
 This obviously hasn't happened yet.
 
 On Mon, 2003-08-25 at 15:24, Michael Ruppin wrote:
  What is it that makes you think our dates  time are
  not correct?
  
  --- Keith Pemberton [EMAIL PROTECTED] wrote:
   I know that this is way off topic but it would be a
   bit help for my
   inbox.  Could the people associated with this list
   please check the
   clock on there computers and set the correct date
   and time?  I really
   would appreciate this small request.
   
   -- 
   Keith Pemberton [EMAIL PROTECTED]
   
   
  
  
 -
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
   
  
  
  __
  Do you Yahoo!?
  Yahoo! SiteBuilder - Free, easy-to-use web site design software
  http://sitebuilder.yahoo.com
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 -- 
 Keith Pemberton [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] Free 2 hour presentation - Introduction to Struts 1.1

2003-08-26 Thread James Mitchell
If you are new to Struts, or just want to know more about it, join us
this Thursday evening from 7PM to 9PM for An introduction to Struts
1.1 presentation by Java Guru and Master ChefChuck Cavaness.

Admission is free.

Also, for those who have some free time before the meeting, a few of us
get together just before the meeting (6:30) for a bit of social mingle
and networking (meet and greet).  We meet up at Max  Ermas (yes, they
have a bar), which is just around the corner from the Mirant building.  

For all the juicy details, go to:
http://www.struts-atlanta.org/


Detailed driving instructions to Mirant are available on our web site,
but if you want to meet and greet at Max  Ermas, and aren't sure
where it is, give me a call on my cell phone (see below my sig) and I'll
arrange to meet you at Mirant, then drive over.


Oh, just kidding about the Master Chef part ;)


--
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: [OT] RE: mesage message account

2003-08-26 Thread James Mitchell
laughter type=ROARING
DUDE  You actually believe that?!?!?
Anyone who believes that should be banned for stupidity.
/laughter


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




 -Original Message-
 From: Bill Chmura [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, August 26, 2003 5:09 AM
 To: 'Struts Users Mailing List'
 Subject: [OT] RE: mesage message account 
 
 
 Is the list banning colored people?   That's bad.  
 
 +1 for ending this horrid policy
 
-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 26, 2003 3:12 AM
To: 'Struts Users Mailing List'
Subject: RE: mesage message account 


Don't think that you are a colored person message message.
Get a life.

Amin
-Original Message-
From: James Childers [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 20, 2003 2:25 AM
To: Struts Users Mailing List
Subject: RE: mesage message account 

Hi!

You are not special. There is not a conspiracy to get you 
because of your skin color, religion, or political beliefs. 
Your paranoid is unjustified, because you just aren't that 
important. You are simply a rude person, and most mailing 
lists have a low tolerance for rudeness. This one is no different.

Thanks for playing! Hope you learn to be nice to people and 
to not get your feelings so easily hurt. Buh-bye!

-= J

 -Original Message-
 From: object worlds [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 19, 2003 8:42 AM
 To: [EMAIL PROTECTED]
 Subject: mesage message account
 
 
 Did you take my message message account off the list ?
 Is that because that white shit Mark Galbreath
 said so and that shit Craig Mclanahan agreed.
 
 
 _
 Express yourself with cool emoticons - download MSN 
Messenger today!
 http://www.msn.co.uk/messenger
 
 
 

-
 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: [OT] Re: Small request...

2003-08-26 Thread James Mitchell
Yes, I was being silly (sort of).

I changed my system date to 2006 before sending that one, but it had no
effect on the date posted on the list.  I'm guessing that the date/time
is determined from the smtp server or some other piece of the chain from
me to you.

Later.


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




 -Original Message-
 From: Adam Hardy [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, August 26, 2003 4:38 AM
 To: Struts Users Mailing List
 Subject: Re: [OT] Re: Small request...
 
 
 Oh, come on James, now you're being silly. ;)
 
 On 08/26/2006 06:14 AM James Mitchell wrote:
  Are you sure?
  
  --
  James Mitchell
  Software Engineer / Struts Evangelist
  http://www.struts-atlanta.org
  678.910.8017
  AIM:jmitchtx
  
  
  
  
  
 -Original Message-
 From: Keith Pemberton [mailto:[EMAIL PROTECTED] 
 Sent: Monday, August 25, 2003 4:47 PM
 To: Struts Users Mailing List
 Subject: Re: [OT] Re: Small request...
 
 
 One person sent a post to the list with a sent date of Aug 
 21, 2004. 
 This obviously hasn't happened yet.
 
 On Mon, 2003-08-25 at 15:24, Michael Ruppin wrote:
 
 What is it that makes you think our dates  time are
 not correct?
 
 --- Keith Pemberton [EMAIL PROTECTED] wrote:
 
 I know that this is way off topic but it would be a
 bit help for my
 inbox.  Could the people associated with this list
 please check the
 clock on there computers and set the correct date
 and time?  I really
 would appreciate this small request.
 
 -- 
 Keith Pemberton [EMAIL PROTECTED]
 
 
 
 
 -
 
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software
 http://sitebuilder.yahoo.com
 
 
 
 
 -
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: 
 [EMAIL PROTECTED]
 
 -- 
 Keith Pemberton [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]
  
  
 
 -- 
 struts 1.1 + tomcat 4.1.27 + java 1.4.2
 Linux 2.4.20 RH9
 
 
 -
 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: Disallow user to modify URL in browser address bar

2003-08-22 Thread James Mitchell
What you are wanting is not possible.  
It's YOUR job (as a developer) to handle situations where they may have
done so.

Hint: unknown=true

Good Luck!!!

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




 -Original Message-
 From: sriram [mailto:[EMAIL PROTECTED] 
 Sent: Friday, August 22, 2003 2:16 AM
 To: 'Struts Users Mailing List'
 Subject: Disallow user to modify URL in browser address bar
 
 
 How to identify if user has manipulated the URL in Address 
 Bar of the browser?
 
 For ex., the application displays a page with the following URL:
 
 http://localhost:8080/app/str/testview_srchpost.do
 
 Now, the user modifies the URL in the address bard. Instead 
 of testview_srchpost.do, user types testtwoview_srchpost.do 
 and clicks ENTER.
 
 I want to restrict such types of URL modification Struts 
 application. I should take the user to a default access 
 denied page when ever user does such changes.
 
 How to identify this action of the user? Pl. give some ideas.
 
 


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



RE: how many concurent users on the system

2003-08-21 Thread James Mitchell
http://developer.java.sun.com/developer/EJTechTips/2003/tt0626.html

Scroll down to SERVLET LIFE CYCLE LISTENERS

That's a hint, the rest is up to you.

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




 -Original Message-
 From: Rachid Drissi [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, August 21, 2003 7:21 PM
 To: [EMAIL PROTECTED]
 Subject: how many concurent users on the system
 
 
 Hi All,
 
 anybody knows by chance a program(s) that  would show us 
 (statistics) how  many concurent users are on the application 
 at certain point of time
 
 Thanks,
 Rachid.
 


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



RE: Horizon: a view management plugin

2003-08-20 Thread James Mitchell
Tell me more about your plugin.  

How are the beans defined?
Can you specify validation with the beans?

How dependent is this project on being loaded within a servlet container
or more specifically, a Struts plugin?  (e.g. Can I use it in a
standalone app?)


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




 -Original Message-
 From: Robert Leland [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 20, 2003 10:06 PM
 To: Struts Users Mailing List
 Subject: Re: Horizon: a view management plugin
 
 
 Pedro Emanuel de Castro Faria Salgado wrote:
 
 Hi,
 
I have built a plugin for Struts that creates view beans using
 dynabeans that are defined on a xml file and i was wondering 
 if anyone
 in the Struts project/mailing list was interested on checking the use
 of it?
 
 When I see dynabean are you saying BeanUtils.DynaBean and what is a 
 'view bean',
 do you mean a Action Form ? If so what is the difference 
 between  your 
 plugin and  a DynaActionForm ?
 
 Given that your plugin is generally useful then there are 
 several options :
 
 1) Since web space can gotten for free now days you could 
 always post it 
 on a site with
 some documentation on how to use it.
 2) We are using the http://www.sf.net/projects/struts site as an 
 incubator for projects you can post there
  to see if there is interest.
 3) Find someone else with a struts web site, that would host it.
 
 Most importantly having an example, that is documented is key.
 
 
 
 
 -
 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: mailto in html:link

2003-08-20 Thread James Mitchell
Why aren't you just using a regular anchor for the outer link?

a href=mailto:mytag:map name=it key=email//a


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




 -Original Message-
 From: deepaksawdekar [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 20, 2003 1:49 AM
 To: Struts Users Mailing List
 Subject: mailto in html:link
 
 
 I want to send a email on click of some icon.
 I am doing this by using mailto in html:link tag, email id 
 has to be get from a property of bean,
 jsp is as follows 
 ..
 html:link href=mailto:mytag:map name=it 
 key=email/mytag:map/html:link
 
 mytag is a customised tag to get a value of key from hashmap.
 
 When i try the above i got the error
 org.apache.jasper.JasperException: 
 /pages/myContact.jsp(46,88) equal symbol expected
 
 Am i doing something wrong. Is there any better way to do this..
 
 
 TIA,
 Deepak
 
 -
 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: bean:message , reads only once the message from MessageResource, is it caching messages for later use?

2003-08-19 Thread James Mitchell
 -Original Message-
 From: Seyhan BASMACI (Internet Yazilimlari Yetkilisi) 
 
 
 thanks James, 
 
 is it cause a performance problem calling formats.clear() for 
 each message ,

I'm not sure how much of a performance hit you would take.  The 
bottleneck in most applications is typically the database call anyway.

Keep in mind that getting the message and formatting the 
message (replacing {0} with some value) are 2 separate actions.

The latter is handled in MessageResources so you pay the cost of
that replacement, plus the cost of clearing a HashMap (which should
be minimal).


 caching feature seems good, I must use this caching feature also , 

The DBMessageResources that I wrote
(http://sourceforge.net/projects/struts) uses the O/R tool OJB 
(http://db.apache.org/ojb/) for it's underlying data access.

OJB offers excellent, configurable, caching.


 it seems to me meaningful to call formats.clear() when the 
 my cache reloaded ,,
 my DAO code inside getMessage only reads messages from our cache,
 if it knows cache reloaded it may conditionally call formats.clear(),

If you don't clear the HashMap every time, it won't bother to call
your method the next time.

  if calling formats.clear() for each message does not cause 
 performance problem 
 I can simply put formats.clear() code inside getMessage method,,
 which way I must choose,,any suggestion? 
 
 



--
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: bean:message , reads only once the message from MessageResource, is it caching messages for later use?

2003-08-18 Thread James Mitchell
Yes, it is true that it is cached.  No, it is not configurable.  That's
just the way it was designed.

To get around it without actually changing the distribution, you'll need
to add something like this to your implementation's getMessage(Locale
locale, String key) method:


public String getMessage(Locale locale, String key) {
  formats.clear();   // - this clears the HashMap from super
  // the rest of your data access code
}


I know, it's a hack, but hey, it works for me.


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




 -Original Message-
 From: Seyhan BASMACI (Internet Yazilimlari Yetkilisi) 
 [mailto:[EMAIL PROTECTED] 
 Sent: Monday, August 18, 2003 10:06 AM
 To: Struts Users Mailing List
 Cc: Leyla TOLUN (Internet Yazilimlari Yonetmeni)
 Subject: bean:message , reads only once the message from 
 MessageResource, is it caching messages for later use? 
 
 
 
   We are using DB based Messages, 
 
 
   to do this we extended  MessageResources class such as 
 
   /*public class MyMessageResources extends 
 MessageResources implements Serializable { 
 
public String getMessage(Locale locale, String key)   {
 DAO class that reads messages from DB only once 
   }
   */
 
 
   im my page I am using bean:message to get page header message,
 
   /*
   bean:message key=header.mainpage/  */
 
   when the page accessed ,
   for first time, it gets message calling  
 MyMessageResources.getMessage method,
 
   but for the following acceses , it doesn't get message 
 from MyMessageResources.getMessage , in debug mode , 
   it enter only ONCE into MyMessageResources.getMessage 
 method , for the following acesses never enters into this method. 
   I think it CACHES message for later use, is that true?
   if so , how can cancel this  feature , because our DB 
 based message cache has reload feature , when the message 
 cache reloaded , all beans must show refreshed data ,,
 
 -
 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: PropertyMessageResources - have I outgrown it?

2003-08-16 Thread James Mitchell
You might also have a look at OJB.

There is a DBMessageResources which allows you to swap out your properties
files for a database table.  The underlying data access is handled via OJB.
This extension fully supports multiple keyed bundles and modules.

It is open source and you can find it here:
http://sourceforge.net/project/showfiles.php?group_id=49385release_id=15497
2




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



- Original Message -
From: Sgarlata Matt [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, August 15, 2003 6:56 PM
Subject: Re: PropertyMessageResources - have I outgrown it?


You have definitely outgrown PropertyMessageResources ;-)  You would be much
better off with some sort of object-to-relational mapping tool.  I use
Torque, but I have heard a lot of talk about Hibernate on this list.

Good luck,

Matt
- Original Message -
From: Sasha Borodin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 15, 2003 6:38 PM
Subject: PropertyMessageResources - have I outgrown it?


 Howdy,  I'd like to pose a design question to the web-developers using
 Struts, concerning the functionality and proper usage of MessageResources.

 This is a really cool out of the box feature - I love the ease with which
 one can maintain libraries of messages, and the seamless integration of
 these resources with html:message tags.  However, I've come across some
 functional requirements that I can's seem to negotiate without doing
 additional coding:

 1.  Getting message for a given key is great.  But I'd like to be able to
 extract collections of keys - this way I can use these lists as not only
 lookup tables, but also the control lists - one place to maintain
 values/options for pull-down lists and other similar applications.
Looking
 through the JavaDocs for MessageResources and PropertyMessageResources, I
 don't see this functionality; the implementing HashMap is protected, so
I'd
 have to subclass; is using a custom sub-class of MessageResources
supported
 in Struts (still being able to declare in struts-config, etc.)?

 1.  In other projects I'll eventually be migrating to Struts, the
key/value
 pairs for numerous lists are stored in a database.  Is there an existing
 variant of MessageResources, which can be declared in struts-config, which
 can be configured to extract messages out of a database (similar to
 DataSource realms in Tomcat)?

 In the future I'm foreseeing more and more customization needs (ex.
Sorting
 and extracting the collection of keys, extracting a sub-set of the sorted
 keys, etc.).  Giving the direction that I'm headed in, is MessageResources
 still an appropriate choice?  Or should I move to some custom data
 structures, and settle for the less specialized bean-like access to them?
 Any other suggestions?

 Thanks in advance,

 -Sasha


 -
 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: DigestingPlugIn [potential bug]

2003-08-14 Thread James Mitchell

Ok, I haven't dug in my heals to figure this out myself.  I downloaded
jgs-struts-0.2-dev.jar, then configured my plugin:

  plug-in className=com.jgsullivan.struts.plugins.DigestingPlugIn
set-property property=configPath value=/WEB-INF/config.xml/
set-property property=configSource value=servlet/
set-property property=digesterPath value=digester-menu.xml/
set-property property=digesterSource value=classpath/
set-property property=key value=MENUS_KEY/
  /plug-in


works fine.

I'm using the 1.1 final jar, so I simply added your new file to my own
project.

Now when I change the className from

com.jgsullivan.struts.plugins.DigestingPlugIn to
org.apache.struts.plugins.DigestingPlugIn

it fails and causes my app to be unavailable.


I'm not looking for a fix just yet.  I just thought you should know.


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




 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 07, 2003 9:35 PM
 To: Struts Users Mailing List
 Subject: RE: DigestingPlugIn



 I plan to use this extensively, thanks again!!!


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




  -Original Message-
  From: Joe Germuska [mailto:[EMAIL PROTECTED]
  Sent: Thursday, August 07, 2003 5:23 PM
  To: Struts Users Mailing List
  Subject: Re: DigestingPlugIn
 
 
  At 14:12 -0700 8/7/03, James Mitchell wrote:
  
  I noticed the check in of DigestingPlugIn and I want to try it out.
  
  Unless I missed it somewhere, it's not clear to me how to use it.
  If it actually does what I'm
  hoping/guessing (based on the name and comments),  I'll be one happy
  camper
  
  Can you give us a brief 'how to'?
 
  I wrote up an example last weekend based on the version in
  jgs-struts -- see
  http://demo.jgsullivan.com/struts/DigestingPlugIn.html
  and
  http://demo.jgsullivan.com/struts/DigestingPlugIn_Example.html
 
  Some of this may not apply directly to the version which was
  committed, but it should get you rolling.If there *are*
  discrepancies, we can discuss whether to adjust the version in CVS or
  adjust the docs.
 
  The xdocs for those two documentation pages are in the source
  distributions downloadable from
  http://demo.jgsullivan.com/struts/download.html
 
  Let me know if I can clarify anything...
 
  Joe
 
  --
  --
  Joe Germuska
  [EMAIL PROTECTED]
  http://blog.germuska.com
  If nature worked that way, the universe would crash all the time.
  --Jaron Lanier
 
  -
  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]



DigestingPlugIn

2003-08-14 Thread James Mitchell

I noticed the check in of DigestingPlugIn and I want to try it out.

Unless I missed it somewhere, it's not clear to me how to use it.  If it actually does 
what I'm
hoping/guessing (based on the name and comments),  I'll be one happy camper

Can you give us a brief 'how to'?

James Mitchell

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



RE: Nobody know how to replace a struts submit button by an image ?

2003-08-14 Thread James Mitchell
Did you actually look at html:image?

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



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




 -Original Message-
 From: Florent LOTHON [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 08, 2003 7:08 AM
 To: Struts
 Subject: Nobody know how to replace a struts submit button by an image ?


 Nobody know how to replace a struts submit button by an image ?

 -Message d'origine-
 De : Florent LOTHON [EMAIL PROTECTED]
 À : Struts [EMAIL PROTECTED]
 Date : jeudi 7 août 2003 15:17
 Objet : image instead button for submiting a struts form ?


 Hello,
 
 is there a simple way to make an image submiting a form with
 html:img / ,
 html:submit / or html:image / struts Tag ?
 
 Flo
 
 
 --
 Ce message est protege par les regles relatives au secret des
 correspondances ; il peut en outre contenir des informations a caractere
 confidentiel ou protegees par differentes regles et notamment le
 secret des
 affaires ; il est etabli a destination exclusive de son
 destinataire. Toute
 divulgation, utilisation, diffusion ou reproduction (totale ou
 partielle) de
 ce message, ou des informations qu'il contient, doit etre prealablement
 autorisee.
 Tout message electronique est susceptible d'alteration et son
 integrite ne
 peut etre assuree. Les AGF declinent toute responsabilite au titre de ce
 message s'il a ete modifie ou falsifie.
 Si vous n'etes pas destinataire de ce message, merci de le detruire
 immediatement et d'avertir l'expediteur de l'erreur de
 distribution et de la
 destruction du message.
 This message is protected by the secrecy of correspondence rules ;
 furthermore it may contain privileged or confidential information that is
 protected by law, notably by the secrecy of business relations
 rule ; it is
 intended solely for the attention of   the addressee . Any
 disclosure, use,
 dissemination or reproduction (either whole or  partial) of this
 message or
 the information contained herein is strictly prohibited without prior
 consent.
 Any electronic message  is susceptible to alteration  and  its integrity
 can not be assured.  AGF declines any  responsibility for  this message in
 the event of  alteration  or falsification..
 If you are not the intended  recipient, please destroy it immediately and
 notify the sender of the wrong delivery and the mail deletion.
 --
 
 



 --
 Ce message est protege par les regles relatives au secret des
 correspondances ; il peut en outre contenir des informations a
 caractere confidentiel ou protegees par differentes regles et
 notamment le secret des affaires ; il est etabli a destination
 exclusive de son destinataire. Toute divulgation, utilisation,
 diffusion ou reproduction (totale ou partielle) de ce message, ou
 des informations qu'il contient, doit etre prealablement autorisee.
 Tout message electronique est susceptible d'alteration et son
 integrite ne peut etre assuree. Les AGF declinent toute
 responsabilite au titre de ce message s'il a ete modifie ou falsifie.
 Si vous n'etes pas destinataire de ce message, merci de le
 detruire immediatement et d'avertir l'expediteur de l'erreur de
 distribution et de la destruction du message.
 This message is protected by the secrecy of correspondence rules
 ; furthermore it may contain privileged or confidential
 information that is protected by law, notably by the secrecy of
 business relations rule ; it is intended solely for the attention
 of   the addressee . Any disclosure, use, dissemination or
 reproduction (either whole or  partial) of this message or the
 information contained herein is strictly prohibited without prior consent.
 Any electronic message  is susceptible to alteration  and  its
 integrity can not be assured.  AGF declines any  responsibility
 for  this message in the event of  alteration  or falsification..
 If you are not the intended  recipient, please destroy it
 immediately and  notify the sender of the wrong delivery and the
 mail deletion.
 --


 -
 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: is there any way to load Message Resources from back-end database instead of properties files?

2003-08-14 Thread James Mitchell

Yes.  For Struts 1.1, I wrote an extension that gets data from a relational
database.

The files and demo app can be found here:
http://sourceforge.net/projects/struts


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




 -Original Message-
 From: Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
 [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 05, 2003 8:28 AM
 To: [EMAIL PROTECTED]
 Subject: is there any way to load Message Resources from back-end
 database instead of properties files?






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



RE: is there any way to load Message Resources from back-end database instead of properties files?

2003-08-14 Thread James Mitchell
 we have own tables that holds locations, resources and messages,
 I have a persistent class that gets all data from database.
 I need is a class that extends the class that reads messages
 from properties files, override the method that reads from disk file,

You need 2 classes minimum.

public class MyMessageResourcesFactory extends MessageResourcesFactory {
public MessageResources createResources(String config) {
return new MyMessageResources(this, config, this.returnNull);
}
}

public class MyMessageResources extends MessageResources
implements Serializable {
public MyMessageResources(MessageResourcesFactory factory, String
config) {
this(factory, config, false);
}
public MyMessageResources(MessageResourcesFactory factory, String
config, boolean returnNull) {
super(factory, config, returnNull);
}

public String getMessage(Locale locale, String key) {
   //call your DAO here
}
}

You would tell Struts to use your implementation by configuring it in the
struts-config:

  message-resources
factory=com.company.project.whatever.MyMessageResourcesFactory
   parameter={whatever you put here is passed to the
factory as 'config'}
  /message-resources


My hack for supporting multiple keys and Modules was to use the parameter to
designate alternate keys and/or modules.

Let me know if that helps you.


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





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



RE: [FRIDAY] [JOKE] Here is an old one

2003-08-14 Thread James Mitchell
The way I remember that joke, the word wasn't Mating ;)

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




 -Original Message-
 From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] 
 Sent: Friday, August 08, 2003 2:24 PM
 To: [EMAIL PROTECTED]
 Subject: [FRIDAY] [JOKE] Here is an old one
 
 
  
 
 Can anyone name the book the following joke appeared in?  
 
 I have cleaned it up a little (the punch line) and I am typing it from
 memory so it isn't exactly like the book.
 
  
 
  
 
 There once was a native American Chief who named everybody in 
 his tribe.
 One of the young boys who was a
 
 member of the tribe asked one day...
 
  
 
 Boy: How do you come up with all of the names of each member 
 of the tribe?
 
  
 
 Chief: At the moment of birth I look to our surroundings and 
 see what is
 happening in nature and that is how I know.
 
  For instance, if the weather is violent and restless 
 the name I
 give may be Thunder-Cloud.
 
  If the animals are at play the name may be Running-Deer
 
  
 
 So why do you ask, Two-Dogs-Mating???
 
  
 
 :-)
 
 


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



RE: sample struts w/ I18N and validator

2003-08-14 Thread James Mitchell
That's one of the purposes of the struts example application.

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




 -Original Message-
 From: David Thielen [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 06, 2003 11:15 PM
 To: [EMAIL PROTECTED]
 Subject: sample struts w/ I18N and validator
 
 
 Hi;
 
 Does anyone know of a simple sample struts page (like logon) that 
 includes Internationalization and validators so it shows how to 
 use everything?
 
 thanks - dave
 

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



RE: is there any way to load Message Resources from back-end database instead of properties files?

2003-08-14 Thread James Mitchell
Looks good to me.


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




 -Original Message-
 From: Seyhan BASMACI (Internet Yazilimlari Yetkilisi) 
 [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 07, 2003 10:18 AM
 To: James Mitchell
 Cc: Struts Users Mailing List
 Subject: RE: is there any way to load Message Resources from 
 back-end database instead of properties files?
 
 
 hi James , I am still working on it , but I have a simple question ,
 beside database based MessageResources, I still want to use 
 present file based  MessageResources feature of struts(in the 
 case of any problem with my message code), 
 I am using config parameter to specify which kind of 
 Message will be created , 
 if the config parameter is not database , to create
 struts message resources I am using 
 
 MessageResourcesFactory.createFactory().createResources(config)  ,
 
 is that correct or enough to do this ? 
 
 
 / here is code fragment /
 
 public class TebMessageResourcesFactory extends MessageResourcesFactory 
 
 
public MessageResources createResources(String config) {
 
 if (config == null || Database.equalsIgnoreCase(config)  )
 
 // return own MessageResources class that reads 
 messages from DATABASE
 
return new TebMessageResources(this, config, 
 this.returnNull);
 
 else 
 
// return struts MessageResources class that reads 
 messages from FILE SYSTEM

   return  
 MessageResourcesFactory.createFactory().createResources(config);
}
 
 
 
 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 06, 2003 2:12 PM
 To: Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
 Cc: Struts Users Mailing List
 Subject: RE: is there any way to load Message Resources from back-end
 database instead of properties files?
 
 
  we have own tables that holds locations, resources and messages,
  I have a persistent class that gets all data from database.
  I need is a class that extends the class that reads messages
  from properties files, override the method that reads from disk file,
 
 You need 2 classes minimum.
 
 public class MyMessageResourcesFactory extends MessageResourcesFactory {
 public MessageResources createResources(String config) {
 return new MyMessageResources(this, config, this.returnNull);
 }
 }
 
 public class MyMessageResources extends MessageResources
   implements Serializable {
 public MyMessageResources(MessageResourcesFactory factory, String
 config) {
 this(factory, config, false);
 }
 public MyMessageResources(MessageResourcesFactory factory, String
 config, boolean returnNull) {
 super(factory, config, returnNull);
 }
 
 public String getMessage(Locale locale, String key) {
//call your DAO here
 }
 }
 
 You would tell Struts to use your implementation by configuring it in the
 struts-config:
 
   message-resources
 factory=com.company.project.whatever.MyMessageResourcesFactory
parameter={whatever you put here is passed to the
 factory as 'config'}
   /message-resources
 
 
 My hack for supporting multiple keys and Modules was to use the 
 parameter to
 designate alternate keys and/or modules.
 
 Let me know if that helps you.
 
 
 --
 James Mitchell
 Software Engineer / Struts Evangelist
 http://www.struts-atlanta.org
 770-822-3359
 AIM:jmitchtx
 
 
 
 
 
 -
 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: method to get new Id to next action when old Id is in request?

2003-08-14 Thread James Mitchell
That's ridiculous.  If that were true, then just give up and go home.


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




 -Original Message-
 From: ansuman_behera [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 08, 2003 2:51 AM
 To: Struts Users Mailing List
 Subject: RE: method to get new Id to next action when old Id is in
 request?
 
 
 what if there is a restriction that the developers should not be 
 using hidden variables? what do you do in this case?
 
 -Original Message-
 From: Rohit Aeron [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 08, 2003 11:54 AM
 To: Struts Users Mailing List
 Subject: RE: method to get new Id to next action when old Id is in
 request?
 
 
 Try putting up id as a hidden variable...
 
 Eg:
 
 html:hidden name=FormBean property=id/
 
 
 it would work 
 
 regards
 Rohit
 
 -Original Message-
 From: Adam Hardy [mailto:[EMAIL PROTECTED] 
 Sent: Friday, August 08, 2003 2:56 AM
 To: Struts Users Mailing List
 Subject: method to get new Id to next action when old Id is in request?
 
 I have two actions chained together. They both take the same formbean. 
 The first is sectionInsert.do and the second, which sectionInsert 
 forwards to on success, is sectionEdit.do
 
 sectionInsert.do receives the properties of a Section in the request 
 parameters, including id=0 where it is 0 because it does not exist in 
 the DB yet. So it inserts the new Section into the DB and returns the 
 new id, which is needed by sectionEdit to put into the html for the edit 
 page.
 
 I originally thought I could save the new id to the formbean and this 
 would get passed on, but sectionEdit instantiates its own formbean and 
 fills it with the request parameters - include id=0.
 
 Is there an intuitive way of passing on the new id?
 
 I already use sectionEdit.do as a first action by calling it with an id 
 on a querystring, where the formbean picks it up. I would like to use a 
 method that is easy for both these situations.
 
 I'd appreciate any inspiration.
 Adam
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 *--
 This message and any attachment(s) is intended only for the use 
 of the addressee(s) and may contain information that is 
 PRIVILEGED and CONFIDENTIAL. If you are not the intended 
 addressee(s), you are hereby notified that any use, distribution, 
 disclosure or copying of this communication is strictly 
 prohibited. If you have received this communication in error, 
 please erase all copies of the message and its attachment(s) and 
 notify the sender or Kanbay postmaster immediately.
 
 Any views expressed in this message are those of the individual 
 sender and not of Kanbay.
 
 Although we have taken steps to ensure that this e-mail and any 
 attachment(s) are free from any virus, we advise that in keeping 
 with good computing practice the recipient should ensure they are 
 actually virus free.
 
 
 -
 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: DigestingPlugIn

2003-08-11 Thread James Mitchell

I plan to use this extensively, thanks again!!!


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




 -Original Message-
 From: Joe Germuska [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 07, 2003 5:23 PM
 To: Struts Users Mailing List
 Subject: Re: DigestingPlugIn
 
 
 At 14:12 -0700 8/7/03, James Mitchell wrote:
 
 I noticed the check in of DigestingPlugIn and I want to try it out.
 
 Unless I missed it somewhere, it's not clear to me how to use it. 
 If it actually does what I'm
 hoping/guessing (based on the name and comments),  I'll be one happy 
 camper
 
 Can you give us a brief 'how to'?
 
 I wrote up an example last weekend based on the version in 
 jgs-struts -- see
 http://demo.jgsullivan.com/struts/DigestingPlugIn.html
 and
 http://demo.jgsullivan.com/struts/DigestingPlugIn_Example.html
 
 Some of this may not apply directly to the version which was 
 committed, but it should get you rolling.If there *are* 
 discrepancies, we can discuss whether to adjust the version in CVS or 
 adjust the docs.
 
 The xdocs for those two documentation pages are in the source 
 distributions downloadable from 
 http://demo.jgsullivan.com/struts/download.html
 
 Let me know if I can clarify anything...
 
 Joe
 
 -- 
 --
 Joe Germuska
 [EMAIL PROTECTED]  
 http://blog.germuska.com
 If nature worked that way, the universe would crash all the time. 
   --Jaron Lanier
 
 -
 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: DigestingPlugIn [potential bug]

2003-08-09 Thread James Mitchell
Did my response ever make it?  I was using Yahoo web-mail and couldn't
remember if I flipped the from selector to use the address I'm
subscribed with.

If not, then here's basically what I said:

In my existing project, I added the complete source (per the cvs commit
message).  I figured that it should work fine with the existing 1.1
final jars that I already use.but I could be wrong.


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




 -Original Message-
 From: Joe Germuska [mailto:[EMAIL PROTECTED] 
 Sent: Friday, August 08, 2003 10:19 AM
 To: Struts Users Mailing List
 Subject: RE: DigestingPlugIn [potential bug]
 
 
 At 0:20 -0400 8/8/03, James Mitchell wrote:
 Ok, I haven't dug in my heals to figure this out myself.  I 
 downloaded
 jgs-struts-0.2-dev.jar, then configured my plugin:
 
plug-in 
 className=com.jgsullivan.struts.plugins.DigestingPlugIn
  set-property property=configPath 
 value=/WEB-INF/config.xml/
  set-property property=configSource value=servlet/
  set-property property=digesterPath 
 value=digester-menu.xml/
  set-property property=digesterSource value=classpath/
  set-property property=key value=MENUS_KEY/
/plug-in
 
 
 works fine.
 
 I'm using the 1.1 final jar, so I simply added your new file 
 to my own
 project.
 
 Now when I change the className from
 
 com.jgsullivan.struts.plugins.DigestingPlugIn to
 org.apache.struts.plugins.DigestingPlugIn
 
 it fails and causes my app to be unavailable.
 
 
 I'm not looking for a fix just yet.  I just thought you should know.
 
 Check me if I'm missing something -- but if you're using 1.1 final, 
 where will it find org.apache.struts.plugins.DigestingPlugIn?
 
 Joe
 
 -- 
 --
 Joe Germuska
 [EMAIL PROTECTED]  
 http://blog.germuska.com
 If nature worked that way, the universe would crash all the time. 
   --Jaron Lanier
 
 -
 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] - [TOPIC] - [VOTE]

2003-08-05 Thread James Mitchell
That doesn't surprise me.

IMO, the Jakarta Struts framework has become the de facto standard for web
based application development on the J2EE platform.  With more and more
companies (and government agencies) web-enabling their applications, I think
you'll see a steady increase in traffic here.  I still cling to the hope
that by being a Struts Evangelist somehow I helped us (even if only a
little) get where we are today.

Another off topic note - With the increased need for professional Struts
Training, I decided to begin offering Struts Training Classes for beginner
through advanced users.  This would be outside the scope of my involvement
with Struts-Atlanta.

Struts-Atlanta is (and always will be) FREE.  The training classes/packages
would not be free and probably not be cheap (costs for instructors and
classrooms are not cheap).  As I said, I haven't formalized the packages
yet, but more info on this will follow.  Email me privately if you (or your
company) are interested.


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




 -Original Message-
 From: message message [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 05, 2003 7:24 AM
 To: [EMAIL PROTECTED]
 Subject: RE: [OT] - [TOPIC] - [VOTE]




 I have noticed that this list alone has more postings then the
 all the Sun mailing postings put together  ?

 Why do you think that is the case  ?


 From: James Mitchell [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: RE: [OT] - [TOPIC] - [VOTE]
 Date: Tue, 5 Aug 2003 07:11:37 -0400
 
 When I'm in a hurry to get through my inbox, I rely on 2
 industry standard
 categories/criteria for sorting...
 
 [BEER]
 [OTHER]
 
 
 ;)
 
 --
 James Mitchell
 Software Engineer / Struts Evangelist
 http://www.struts-atlanta.org
 770-822-3359
 AIM:jmitchtx
 
 
 
 
   -Original Message-
   From: message message [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, August 05, 2003 7:07 AM
   To: [EMAIL PROTECTED]
   Subject: RE: [OT] - [TOPIC] - [VOTE]
  
  
  
   What is the criteria of the list ?
  
  
   From: James Mitchell [EMAIL PROTECTED]
   Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Subject: RE: [OT] - [TOPIC]  - [VOTE]
   Date: Tue, 5 Aug 2003 06:20:51 -0400
   
   -1
   
   We tried this a long time ago.  Fact is, it would be impossible to
   categorize discussions by any label.  Especially when you
 consider how
   topics can vary from one area to another or could be a mix
 of more than
 a
   few that you listed.
   
   Your best bet is to just go through what you can and delete the rest.
   There
   is a massive amount of knowledge transfer being spread among the
 threads
   here (and other lists), so it is up to you to get what you
 need or save
   what
   you might need in the future.  I have a technique where I
 save (what I
   consider) important discussions in subfolders within my mail
   client.  That
   makes for quicker searches among relevant messages.
   
   
   --
   James Mitchell
   Software Engineer / Struts Evangelist
   http://www.struts-atlanta.org
   770-822-3359
   AIM:jmitchtx
   
   
   
   
 -Original Message-
 From: Puneet Agarwal [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 05, 2003 1:08 AM
 To: [EMAIL PROTECTED]
 Subject: [OT] - [TOPIC] - [VOTE]


 With growing traffic on this mailing list, it has become
 difficult
 to
 search for mails to read or not to read.
 For better participation in the forum, we can have following norm.

 We can have the Subject of mails prefix any of the following
   categories.
 If all agree we could request ASF people to publish these on
   the struts
 site too.

 By doing so we can apply message filtering rules to sort
 the mails
 and
 read/answer those that interest you.
 I hope this would lead to better participation in the forum.

 [OT]  -Off Topic
 [FB]  -Form Bean
 [AF]  -Action Form
 [RP]  -Request Processor
 [AS]  -ActionServlet
 [SC]  -Scope Related mails
 [GE]  -General Error
 [DG]  -Design Consideration
 [PR]  -Problem in Struts
 [TL]  -Tiles
 [T-BE] -Bean Tag Library
 [T-HT] -HTML Tag Library
 [T-NS] -Nested Tag Library
 [T-LG] -Logic Tag Library

 etc

 Shall we start voting for this...!!!

 Regards,
 Puneet Agarwal

 Tata Consultancy Services,
 C-56, Phase - II, NOIDA 201305 (India)
 Phone: +91-120-2461001, 2, 7, 8, 9, 12, 13 (Ext. 1031)
 FAX  : +91-120-246 1521

 Struts ... Action ... Struts in Action ... Action in Struts

RE: [OT] - [TOPIC] - [VOTE]

2003-08-05 Thread James Mitchell
-1

We tried this a long time ago.  Fact is, it would be impossible to
categorize discussions by any label.  Especially when you consider how
topics can vary from one area to another or could be a mix of more than a
few that you listed.

Your best bet is to just go through what you can and delete the rest.  There
is a massive amount of knowledge transfer being spread among the threads
here (and other lists), so it is up to you to get what you need or save what
you might need in the future.  I have a technique where I save (what I
consider) important discussions in subfolders within my mail client.  That
makes for quicker searches among relevant messages.


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




 -Original Message-
 From: Puneet Agarwal [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 05, 2003 1:08 AM
 To: [EMAIL PROTECTED]
 Subject: [OT] - [TOPIC] - [VOTE]


 With growing traffic on this mailing list, it has become difficult to
 search for mails to read or not to read.
 For better participation in the forum, we can have following norm.

 We can have the Subject of mails prefix any of the following categories.
 If all agree we could request ASF people to publish these on the struts
 site too.

 By doing so we can apply message filtering rules to sort the mails and
 read/answer those that interest you.
 I hope this would lead to better participation in the forum.

 [OT]  -Off Topic
 [FB]  -Form Bean
 [AF]  -Action Form
 [RP]  -Request Processor
 [AS]  -ActionServlet
 [SC]  -Scope Related mails
 [GE]  -General Error
 [DG]  -Design Consideration
 [PR]  -Problem in Struts
 [TL]  -Tiles
 [T-BE] -Bean Tag Library
 [T-HT] -HTML Tag Library
 [T-NS] -Nested Tag Library
 [T-LG] -Logic Tag Library

 etc

 Shall we start voting for this...!!!

 Regards,
 Puneet Agarwal

 Tata Consultancy Services,
 C-56, Phase - II, NOIDA 201305 (India)
 Phone: +91-120-2461001, 2, 7, 8, 9, 12, 13 (Ext. 1031)
 FAX              : +91-120-246 1521

 Struts ... Action ... Struts in Action ... Action in Struts ...


 -
 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] - [TOPIC] - [VOTE]

2003-08-05 Thread James Mitchell
When I'm in a hurry to get through my inbox, I rely on 2 industry standard
categories/criteria for sorting...

[BEER]
[OTHER]


;)

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




 -Original Message-
 From: message message [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 05, 2003 7:07 AM
 To: [EMAIL PROTECTED]
 Subject: RE: [OT] - [TOPIC] - [VOTE]



 What is the criteria of the list ?


 From: James Mitchell [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: RE: [OT] - [TOPIC]  - [VOTE]
 Date: Tue, 5 Aug 2003 06:20:51 -0400
 
 -1
 
 We tried this a long time ago.  Fact is, it would be impossible to
 categorize discussions by any label.  Especially when you consider how
 topics can vary from one area to another or could be a mix of more than a
 few that you listed.
 
 Your best bet is to just go through what you can and delete the rest.
 There
 is a massive amount of knowledge transfer being spread among the threads
 here (and other lists), so it is up to you to get what you need or save
 what
 you might need in the future.  I have a technique where I save (what I
 consider) important discussions in subfolders within my mail
 client.  That
 makes for quicker searches among relevant messages.
 
 
 --
 James Mitchell
 Software Engineer / Struts Evangelist
 http://www.struts-atlanta.org
 770-822-3359
 AIM:jmitchtx
 
 
 
 
   -Original Message-
   From: Puneet Agarwal [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, August 05, 2003 1:08 AM
   To: [EMAIL PROTECTED]
   Subject: [OT] - [TOPIC] - [VOTE]
  
  
   With growing traffic on this mailing list, it has become difficult to
   search for mails to read or not to read.
   For better participation in the forum, we can have following norm.
  
   We can have the Subject of mails prefix any of the following
 categories.
   If all agree we could request ASF people to publish these on
 the struts
   site too.
  
   By doing so we can apply message filtering rules to sort the mails and
   read/answer those that interest you.
   I hope this would lead to better participation in the forum.
  
   [OT]  -Off Topic
   [FB]  -Form Bean
   [AF]  -Action Form
   [RP]  -Request Processor
   [AS]  -ActionServlet
   [SC]  -Scope Related mails
   [GE]  -General Error
   [DG]  -Design Consideration
   [PR]  -Problem in Struts
   [TL]  -Tiles
   [T-BE] -Bean Tag Library
   [T-HT] -HTML Tag Library
   [T-NS] -Nested Tag Library
   [T-LG] -Logic Tag Library
  
   etc
  
   Shall we start voting for this...!!!
  
   Regards,
   Puneet Agarwal
  
   Tata Consultancy Services,
   C-56, Phase - II, NOIDA 201305 (India)
   Phone: +91-120-2461001, 2, 7, 8, 9, 12, 13 (Ext. 1031)
   FAX  : +91-120-246 1521
  
   Struts ... Action ... Struts in Action ... Action in Struts ...
  
  
   -
   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]
 

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


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


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



Re: OT - Struts w/EJB

2003-08-01 Thread James Mitchell
Not sure.  I'm in this for the money ;)

--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx


- Original Message - 
From: message message [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 01, 2003 1:48 AM
Subject: Re: OT - Struts w/EJB




 How come there is so much free ware available especially from sourceforge
?


 From: James Mitchell [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: Struts w/EJB
 Date: Fri, 1 Aug 2003 00:38:17 -0400
 
 Download modelj from sourceforge and try it.  Supply the path to your
 j2ee.jar and build the sample app in 2 minutes.  Modelj will create a
 struts/ejb application for you from one single config file.  Using JBoss,
 all you have to do is setup a default data source and deploy your
 sample.ear.
 
 http://sourceforge.net/projects/modelj
 
 
 --
 James Mitchell
 Software Developer/Struts Evangelist
 http://www.struts-atlanta.org
 678-910-8017
 AIM:jmitchtx
 
 
 - Original Message -
 From: Martin Naskovski [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, July 31, 2003 7:01 PM
 Subject: Struts w/EJB
 
 
   Hello all. Is there an app that demonstrates the use of Struts  EJB
as
 a
   persistence layer? I checked out Struts-Resume from Matt Raible, but
it
   uses Hibernate... Is there anything available w/EJB's? Thanks.
  
   Martin
   --
  
  
   -
   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]
 

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


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


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



Re: simple - import

2003-08-01 Thread James Mitchell
Easy way:

You can always use the unstandard tags.  Works great for me:

un:bind type=com.company.project.Const field=SOME_CONST var=yourVar/
c:if test=${$yourVar == 'some value'}
 c:out value=${yourVar}/
/c:if


Not so easy way:
---
(by Kris Schneider on taglib-users)

Put something like this in a startup servlet or a plug-in:

public static Map getConstantFieldsAsMap(Class cls)
  throws IllegalAccessException {
Field[] allFields = cls.getDeclaredFields();
int numFields = allFields.length;
Map propMap = new HashMap(numFields);
for (int i = 0; i  numFields; i++) {
Field f = allFields[i];
int mods = f.getModifiers();
if (Modifier.isPublic(mods) 
Modifier.isStatic(mods) 
Modifier.isFinal(mods)) {
String name = f.getName();
Object value = f.get(null);
propMap.put(name, value);
}
}
return Collections.unmodifiableMap(propMap);
}

In JSP:

c:set var=responseMap

value=${applicationScope['javax.servlet.http.HttpServletResponse']}/
SC_NOT_FOUND: c:out value=${responseMap.SC_NOT_FOUND}/


Search the archives on taglib-user for more details.


--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx


- Original Message - 
From: Mike Whittaker [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 7:46 AM
Subject: RE: simple - import



 
 c:set var=yourVar%= Const.MY_CONST %/c:set
 

 Good grief is this the only way?

 a/ isn't the aim to do without scriptlets/expressions?

 b/ all the data exists, server side in the app, why do I have to jump
 through hoops, copying CONSTANTS over to another variable???

 :-(

 --
 Mike W


 -
 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 w/EJB

2003-07-31 Thread James Mitchell
Download modelj from sourceforge and try it.  Supply the path to your
j2ee.jar and build the sample app in 2 minutes.  Modelj will create a
struts/ejb application for you from one single config file.  Using JBoss,
all you have to do is setup a default data source and deploy your
sample.ear.

http://sourceforge.net/projects/modelj


--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx


- Original Message - 
From: Martin Naskovski [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 7:01 PM
Subject: Struts w/EJB


 Hello all. Is there an app that demonstrates the use of Struts  EJB as a
 persistence layer? I checked out Struts-Resume from Matt Raible, but it
 uses Hibernate... Is there anything available w/EJB's? Thanks.

 Martin
 --


 -
 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-atlanta] New file uploaded to struts-atlanta

2003-07-30 Thread James Mitchell
I also added this to the sourceforge site for easy download.

http://sourceforge.net/projects/struts


--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx


- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 8:55 PM
Subject: [struts-atlanta] New file uploaded to struts-atlanta



 Hello,

 This email message is a notification to let you know that
 a file has been uploaded to the Files area of the struts-atlanta
 group.

   File: /jstl-and-struts.PDF
   Uploaded by : bsiggelkow [EMAIL PROTECTED]
   Description : Bill's JSTL and Struts presentation

 You can access this file at the URL

 http://groups.yahoo.com/group/struts-atlanta/files/jstl-and-struts.PDF

 To learn more about file sharing for your group, please visit

 http://help.yahoo.com/help/us/groups/files

 Regards,

 bsiggelkow [EMAIL PROTECTED]






  Yahoo! Groups Sponsor -~--
 Free shipping on all inkjet cartridge  refill kit orders to US  Canada.
Low prices up to 80% off. We have your brand: HP, Epson, Lexmark  more.
 http://www.c1tracking.com/l.asp?cid=5510
 http://us.click.yahoo.com/GHXcIA/n.WGAA/ySSFAA/nhFolB/TM
 -~-

 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]



 Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/



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



Re: MessageResource

2003-07-29 Thread James Mitchell
The struts-example application shows how to do this.  Did you take a look at
that yet?

--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx


- Original Message - 
From: Nadja Senoucci [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 29, 2003 6:29 AM
Subject: MessageResource


Hello,

I have a question concerning the MessageResources. I would like to access
the (localised) messages within my application (not in the page getting
displayed but within my actually Java code) and I've looked up
MessageResource and MessageResourceFactory but I am still a bit confused as
to how to use it... Could someone please give me a simple example code? Or
point me to one?

All I need is to access the correct MessageResource file (depending on the
current local) and read out a few messages certain messages.

I'd greatly appreciate any kind of help.

Greetings,
Nadja

-
Nadja  Senoucci
Universitaet Hamburg
Zentrum für Molekulare Neurobiologie
Service-Gruppe EDV
Falkenried 94
20251 Hamburg
Germany
Tel.:040 - 428 - 03 - 6619
Fax.:040 - 428 - 03 - 6621


-
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: MessageResource

2003-07-29 Thread James Mitchell
I am assuming you want to get at your bundle from within your action class,
take a look at any of the actions that are there.

--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx


- Original Message - 
From: Nadja Senoucci [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, July 29, 2003 6:42 AM
Subject: Re: MessageResource


Hello,

The struts-example application shows how to do this.  Did you take a look
at
that yet?

Oh no, I forgot about it. I actually even forgot I *had* the example app in
the first place. Stupid me. ;) Thank you, but can you tell me in which of
the classes I can find that? There are quite a few... starts searching

Greetings,
Nadja

-
Nadja  Senoucci
Universitaet Hamburg
Zentrum für Molekulare Neurobiologie
Service-Gruppe EDV
Falkenried 94
20251 Hamburg
Germany
Tel.:040 - 428 - 03 - 6619
Fax.:040 - 428 - 03 - 6621


-
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] Reminder: Struts-Atlanta meeting this week.

2003-07-27 Thread James Mitchell
I hope everyone is as excited as I am.  Our next meeting (Tuesday evening)
promises to be spectacular.  The topic is on JSTL and Struts-EL.  I am, as
I'm sure many of you are, looking forward to this presentation.

In the past, a few of us get together before these our meetings to meet,
greet, drink, etc, so.in keeping with Tradition, I would like to extend
an invitation for this month as well.  All are welcome.  Please RSVP on the
Struts-Atlanta mailing list.

--
James Mitchell
Software Developer/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: expert group

2003-07-27 Thread James Mitchell
There are many talented and helpful people on this list.  There are also
some who spew false rumors and outrageous predictions.

You are free to form your own opinion(s), and I encourage you to do so.


--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx


- Original Message - 
From: message message [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, July 27, 2003 1:13 PM
Subject: expert group



 I was informed that the expert group can be found at Struts.

 Does that mean that as long I use struts Framework I will always be
 using a framework which is compliant to the various web standards.

 Does that also mean that  J2EE architects are not experts but a bunch of
 lame
 Sun Microsystems Salesman ?

 I just wondering.

 _
 Add photos to your messages with MSN 8. Get 2 months FREE*.
 http://join.msn.com/?page=features/featuredemail


 -
 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: StrutsDoc 0.3 Released

2003-07-26 Thread James Mitchell
Can we run this against the struts-example and put it up as a demo?

--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx


- Original Message - 
From: Nick [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, July 26, 2003 11:30 PM
Subject: StrutsDoc 0.3 Released


 StrutsDoc 0.3 Released
 
 StrutsDoc is an extension task for Ant that allows developers to
 generate Javadoc-like documentation based on their various Struts
 configuration files.  The 0.3 release provides support for Stxx and
 Tiles configurations, as well as Struts module configurations.
 
 This release has been tested with Ant 1.5.2 and 1.5.3, running on JDK
 1.4.x on Windows and Linux.  Earlier JDK versions will probably work
 with with no problem, but Xalan must be provided in the classpath as
 XSLT is used to generate the documentation.
 
 StrutsDoc 0.3 is released under the BSD license and can be obtained
 from the sourceforge.net site:
 
 http://struts.sf.net/projects/strutsdoc
 
 Thanks to Don Brown for being the release manager for this release.
 
 -- 
 Nick Heudecker
 SystemMobile, Inc.
 Email: [EMAIL PROTECTED]
 Phone: 734.604.9192
 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: URL changed by user - how to restrict?

2003-07-15 Thread James Mitchell
From what you've described, you don't need to pass any user number or id.
With the internet, being the stateless beast that it is, how will your
application know that any particular request is or isn't supposed to access
some particular user number?

I think you are going about this the wrong way.  If a user changing the
query string presents (what you describe as) a security breech, you're
security scheme is severely flawed.


--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx


- Original Message -
From: sriram [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 10:09 AM
Subject: URL changed by user - how to restrict?


 Hi,

 I am developing a web application in which some parameters are passed
through query string.

 I do not want to allow users to manipulate the query string. If they
manipulate, they should be logged off and taken to login page.

 For ex.., I have a page http://mymachine:8080/appln/test.jsp?user=1004
 In this page, user details are displayed.

 If a user changes the query string - from user=1004 to user=1005 - and
clicks ENTER, then the details of 1005 are being displayed. I want to avoid
this. In such cases, user should be logged off and taken to login screen.

 How can this be done using Struts? Any clue? I believe this can be done by
checking HTTP_REFERER, but I'm unable to get it right.

 Sriram

 -Original Message-
 From: Greg Hess [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 15, 2003 7:31 PM
 To: 'Struts Users Mailing List'
 Subject: RE: URL validation with struts???




 Hi Prashanth,

 I have done this using the Struts validator. I use the mask rule as
 follows:

 form name=serviceProviderForm
 field property=URL depends=required,mask
 msg name=mask
 key=error.invalid.ServiceProviderURL/
 arg0 key=serviceProvider.url/
 var
 var-namemask/var-name
 var-value^http:\/\/[^ ]*$/var-value
 /var
   /field
 /form

 There are great examples of using the validator in the Struts
distribution. With this my code need not be concerned with the validity of
the url string and is check by the validation framework on both client
side(JavaScript) and server side and I only worry about errors obtaining a
connection to the supplied url.

 Cheers,

 Greg

 -Original Message-
 From: Prashanth.S [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 15, 2003 9:36 AM
 To: [EMAIL PROTECTED]
 Subject: URL validation with struts???

 Hi all,
 I need to upload a resource present at a particular location by making
user enter a valid URL...How can i do URL name validation using struts???Is
there anything to do so??Do i need to do this in action form or action
class??[what User entered is a valid url i.e,both name as well as resource
present at that url) Thanks in advance Prashanth



 -
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!


 -
 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 do you access an application.properties value directly from within a class?

2003-07-15 Thread James Mitchell
You mean like this?

bean:define id=someKey
 bean:message key=some.key/
/bean:define

some:otherTag value=%=someKey%/

--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx


- Original Message -
From: Mike Deegan [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 1:53 PM
Subject: Re: How do you access an application.properties value directly from
within a class?


 Hey Matt / All,

 Do you have an elegant way -  in scriptlet form - at the JSP level to grab
 an application.properties value to then use as a JSP expression (
%=...%)
 in the value attribute of a tag.

 I had tried to use the bean:message tag to get the value to populate
into
 the value attribute of another tag - that is when trying to combine two
 tags - but the page fails to compile. Can't remember the exact error msg
but
 it was along the lines of  = expected ...

 I know you can use JSP expressions ( %=...%) in the value attribute of
 tags - but JSP compile fails when I try to use bean:message tag to
directly
 populate a tag's value attribute.

 So do you have an elegant way -  in scriptlet form - at the JSP level to
 grab an application.properties value to then use as a JSP expression (
 %=...%) in the value attribute of a tag.

 I searched for some time for an answer on this but got lost in the maze.
 Maybe the wording of my searches let me down.

 Or should I be attempting to do this in another way ... without scriptlets
 ... to get an application.properties value to populate into the value
 attribute of another tag.

 Any help appreciated ...
 Mike

 - Original Message -
 From: Raible, Matt [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Tuesday, July 15, 2003 10:53 AM
 Subject: RE: How do you access an application.properties value directly fr
 om within a class?


  I forgot to add the simplest way in an Action class:
 
  MessageResources resources = getResources(request);
 
  resources.getMessage(keyName);
 
 
  -Original Message-
  From: Raible, Matt
  Sent: Tuesday, July 15, 2003 10:51 AM
  To: 'Struts Users Mailing List'
  Subject: RE: How do you access an application.properties value directly
  fr om within a class?
 
 
  If you're just looking for the values, grab it as a resource bundle.
 Here's
  how I grab it in a Business Delegate:
 
  // Get the application's messages resources
  ResourceBundle resources =
  ResourceBundle.getBundle(ApplicationResources);
  String appDBVersion = resources.getString(webapp.db_version);
 
  And then of course, there's errors and messages - where it grabs it
  automagically:
 
  errors.add(ActionErrors.GLOBAL_ERROR,
 new ActionError(errors.existing.user,
 userForm.getUsername(),
 userForm.getEmail()));
 
  messages.add(ActionMessages.GLOBAL_MESSAGE,
   new ActionMessage(user.deleted,
  userForm.getEmail()));
 
  And lastly, you can get it from the servlet context in a servlet outside
 of
  struts:
 
  MessageResources resources =
  ((MessageResources)
  getServletContext().getAttribute(Globals.MESSAGES_KEY));
 
  resources.getMessage(userFormEx.username);
 
 
  HTH,
 
  Matt
 
  -Original Message-
  From: Mark Galbreath [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, July 15, 2003 10:28 AM
  To: 'Struts Users Mailing List'
  Subject: How do you access an application.properties value directly from
  within a class?
 
 
  When Struts load, it grabs application.properties and stores it's keys
and
  values somewhere.  From within an action class I need to access a value
in
  application.properties.  How could one do this?
 
  tia,
  mark
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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


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



Re: Using ResourceBundle's subclass in Struts

2003-07-14 Thread James Mitchell
On Monday 14 July 2003 03:26, Duan Qiang wrote:
 Hi,

 I posted a question but seems nobody replied. 

That usually indicated a lack of interest, not a lack of concern.

 Anyone tried to define a
 subclass of ResourceBundle and use it in Struts?

None that I'm aware of.  There are several reasons for Craig's decision not to 
use ResourceBundle for application messaging when he originally wrote Struts.  
For more details on that decision, search the archives.


 For a standalone program, it's straightforward to use sel-defined
 resourcebundle classes, for example,

 public class MyResourceBundle extends ResourceBundle
 {
 public Object handleGetObject()
 ...
 public Enumeration getKeys()
 }

 //use the subclass
 ResourceBundle bundle = ResourceBundle.getBundle(MyResourceBundle);

 However, when I specify the resource name as MyResourceBundle, Struts can
 not find the message bundle although my class MyResourceBundle is on
 classpath.

 It's possible to replace bean:message tag using my own methods, however,
 the action controller I uses is an instance of DispatchAction, which will
 match a method name with the message bundle key, for example, button.next
 matches to the function doNext and so on.

 So I can could totally avoid using struts message functionaliity, or how I
 can use my own ResourceBundle?

Writing your own extension of MessageResource is very simple.  Checkout these 
4 classes to see how its done:
org.apache.struts.util.MessageResourcesFactory.java
org.apache.struts.util.MessageResources.java
org.apache.struts.util.PropertyMessageResourcesFactory.java
org.apache.struts.util.PropertyMessageResources.java

Although, keep in mind that we will be deprecating this api and using 
Resources from Commons (it is currently in the sandbox, but will be 
released soon I'm sure)


 THx,

 Regards,

 dq



-- 
James Mitchell
Software Developer/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: c:import functionality in an Action class ?

2003-07-14 Thread James Mitchell
On Monday 14 July 2003 12:25, Ranjangaonkar, Vaibhav (HQP) wrote:
 I am looking for an Action class like IncludeAction but
 this class should be able to include contents from an external
 source and store it in request/session scope, much like the
 c:import  tag in JSTL. But, I want to use this functionality
 outside of a JSP. Is there something like that already ? If not,
 do we need an one or we can get away without it ?

Please ask user questions on the users list.


 Please advise,
 Thanks.

-- 
James Mitchell
Software Developer/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: [OT] Raj, please start a new message vs reply

2003-07-12 Thread James Mitchell
On Saturday 12 July 2003 11:46, Rick Reumann wrote:
 On Sat, Jul 12,'03 (08:20 AM GMT-0700), Rajat wrote:
  Hi,
 
  I am running the lesson 1( turorial by Rick Reumann)
  and am getting the foll. error:

 Also, Rajat, please start a new message (vs replying to a thread) if the
 subject has changed. Now this message as well as my previous one and
 yours is stuck in inappropriate thread. Thanks.

I notice that a lot of people do that.  Perhaps they are not used to threading 
since Outlook has no clue what it is.  Outlook is the only email client that 
I have used that doesn't support it.  

disclaimer
Group by Conversation Topic is NOT the same as threading!!
/disclaimer


-- 
James Mitchell
Software Developer/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: JBoss Problem

2003-07-11 Thread James Mitchell
You might try asking on the JBoss Users list.

--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx


- Original Message - 
From: Kristanto Oetomo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 11, 2003 7:19 AM
Subject: JBoss Problem


 I got the following error when I tried to start the service:
  
  Could not start the JBoss30 service on Local Computer. The service did
 not return an error. This could be an internal Windows Error or an
 internal service error. If the problem persists, contact your system
 administrator.
 
  
 I have run the following:
 run.bat -c all (under the bin directory of JBoss)
  
 And I have also installed JBoss using JavaService.exe successfully.
  
 Does anyone know a solution to this problem?
  
 Thanks a bunch
  
  
  
 
 


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



Re: [OT] Struts Developers Needed

2003-07-11 Thread James Mitchell
Actually, I believe the scale is more accurately portrayed like this:

 Quality %
  100 |   xxx
   90 | xx
   80 |x  x x
   70 |   x
   60 | x
   50 |   x
   40 | x
   30 |  x
   20 |   x
   10 |x
0 |_xxx_
  012
Beer (doz)

Individual results can vary.  You just need to find that Happy Medium for
maximum productivity ;)


--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx


- Original Message -
From: Shane Mingins [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 5:28 PM
Subject: RE: Struts Developers Needed


 Hm .

 Projected Project Quality Graph

  100 |
 |x
 |   x
 |  x
 | x
 Quality % |x
 |   x
 |  x
 | x
 |x
 |   x
 |  x
 |__
 012
   Beer (doz)



 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]
 Sent: Friday, 11 July 2003 9:19 a.m.
 To: Struts Users Mailing List
 Subject: Re: Struts Developers Needed

 Hey, I'll work for $0, as long as I get free beer!!!


 --
 James Mitchell
 Software Developer/Struts Evangelist
 http://www.struts-atlanta.org
 678-910-8017
 AIM:jmitchtx


 - Original Message -
 From: Steve Jovanovic [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Thursday, July 10, 2003 5:11 PM
 Subject: RE: Struts Developers Needed


  Hi Mark,
 
  laugh Us, too! :)
 
  Steve
 
  -Original Message-
  From: Mark Galbreath [mailto:[EMAIL PROTECTED]
  Sent: Thursday, July 10, 2003 4:07 PM
  To: 'Struts Users Mailing List'
  Subject: RE: Struts Developers Needed
 
  I certainly could use the vacation time!  I'll check out the project
  data.
 
  Mark
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


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

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


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



Re: [FRIDAY] What do you call a deer without eyes?

2003-07-11 Thread James Mitchell
Blinded deer  (Blind dead deer) 

--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx


- Original Message - 
From: Jing Zhou [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, July 11, 2003 12:23 PM
Subject: [FRIDAY] What do you call a deer without eyes?


No eye deer. (No idea :-)

What do you call a dead deer without eyes?


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



Re: access application scope object in execute

2003-07-11 Thread James Mitchell
On Friday 11 July 2003 12:24, martin hablak wrote:
 Hello,

 how can I access application scope object in Action's execute method?

The same way you would do it in a servlet.


 martin


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

-- 
James Mitchell
Software Developer/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]



[Struts-Atlanta] Next meeting

2003-07-11 Thread James Mitchell
As some of you may already be aware, the mid-month meeting (MDE Testdrive) 
scheduled for July 15th has been cancelled due to an unexpected business trip 
by our presenter David Zygmont.

However, we are still on for the JSTL presentation by Bill Siggelkow on July 
29, 2003.

I haven't updated the web site yet, but here's the vitals:

(Oh and don't forget to join us for a drink before the meeting!!!)

Presenter:
--
Bill Siggelkow is a senior technical lead with Mirant Corporation.  He has
over 18 years of applications development -- 7 of those years devoted to
Java/J2EE.  Bill pioneered the introduction of Struts at Mirant and helped
establish Struts as the preferred framework for Java-based web
applications.

Prior to joining Mirant, he served as technical architect and lead
developer for CoreCommerce -- playing a central role in the design and
development of the company's core product -- a J2EE-based
business-to-business software platform.  Bill holds a Bachelor's degree in
Industrial Engineering from Georgia Tech.


Synopsis:
-
JSTL, the JSP Standard Tag Library, provides a standard set of JSP actions
that will be useful to most any JSP-based web application.  JSTL's tag
libraries provides custom actions for conditional processing, looping,
internationalization, XML processing, and database access.  JSTL is
designed to relieve the JSP author from resorting to hard-to-maintain JSP 
scripting elements and embedded Java.  In addition, JSTL introduces a 
powerful new expression language known as EL.  The Struts-EL tag library 
provides an implementation of the Struts tags that support this new language.  
Bill will be providing a detailed overview of both JSTL and Struts-EL.


-- 
James Mitchell
Software Developer/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: newbie question - setting form parameter in Javascript

2003-07-11 Thread James Mitchell

You will need to create a hidden field named action, with a value of 
Lookup:

html:hidden property=action value=Lookup/

My question to you iswhy Lookup?  What does that have to do with your 
form?


Here's a sample:

SCRIPT language=JavaScript
function submitForm(form) {
 form.action.value=Lookup;
 form.submit();
 return true;
}
/SCRIPT

form name=frm action=? method=GET
 input type=hidden name=action value=
 select name=crn onclick=submitForm(this.form)
   option value=Test selectedTest/option   
   option value=Test2Test2/option   
 /select
/form


On Friday 11 July 2003 14:15, Shyam A wrote:
 Hi,

 I have an HTML form with Submit and Cancel buttons, and a drop down list,
 which when clicked submits the form. I use Javascript to submit the form
 when the dropdown list is clicked. I have a property called action
 defined in my ActionForm class that identifies the Submit and Cancel
 buttons in the HTML form. When the drop-down is clicked, I would like to
 set the value of this action property to Lookup.

 My Javascript function is given below:

 

 SCRIPT language=JavaScript
 function submitForm(form)
 {
 form.action.value=Lookup;
 form.submit();
 return true;
 }
 #

 and I invoke this function in my HTML form as shown below:

 #
  html:select property=crn onclick=submitForm(this.form)
html:option value=Test selectedTest/html:option
/html:select
 ###

 But, the value of the property action is not set to Lookup.

 Any help would be greatly appreciated.

 Thanks,
 Shyam


 -
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!

-- 
James Mitchell
Software Developer/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: Struts 1.1 Doc question

2003-07-11 Thread James Mitchell
On Friday 11 July 2003 14:40, Goel Shalab wrote:
 Hello Everyone

 I was wondering if there was a way for downloading the HTML as a package
 for User and Developer Guides for Struts 1.1.

Yes, the binary comes with struts-documentation.war, which is the complete 
documentation that used for the Struts web site.

 Also, is there a plan for having these guides in alternate printable format
 -- as a single document -- like Acrobat PDF
 or Microsoft Word.

Something is in the works for PDF, but I'm not sure of the status.  If you 
need it for MS Word, that's not going to happen any time soon.


 Appreciate your response.

 Regards
 Shalab


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

-- 
James Mitchell
Software Developer/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: Struts 1.1 Doc question

2003-07-11 Thread James Mitchell
On Friday 11 July 2003 14:51, Ted Husted wrote:
 James Mitchell wrote:
  Something is in the works for PDF, but I'm not sure of the status.  If
  you need it for MS Word, that's not going to happen any time soon.

 It's all in XML, so something that can do XML to PDF and be called from
 Ant could be made part of the build process.

Yes, and I have had that in my todo list for quite some time.  IIRC, someone 
mentioned that they were working on this, but that could be totally wrong.


 -Ted.

-- 
James Mitchell
Software Developer/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: [FRIDAY] What do you call a deer without eyes?

2003-07-11 Thread James Mitchell
On Friday 11 July 2003 14:43, Bailey, Shane C. wrote:
 What do you call a fish with two knees?



 A two knee fish!   (Tunafish!)

Oh my God, I can't believe I actually laughed at that .(smack 
forehead) :P


 -Original Message-
 From: Mark Galbreath [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 11, 2003 2:49 PM
 To: 'Struts Users Mailing List'
 Subject: RE: [FRIDAY] What do you call a deer without eyes?

 deer doesn't have is

 -Original Message-
 From: Chen, Gin [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 11, 2003 12:43 PM
 To: 'Struts Users Mailing List'
 Subject: RE: [FRIDAY] What do you call a deer without eyes?


 Dinner

 -Original Message-
 From: Mark Lowe [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 11, 2003 12:41 PM
 To: Struts Users Mailing List
 Subject: Re: [FRIDAY] What do you call a deer without eyes?


 Brian ?

 On Friday, July 11, 2003, at 05:39 PM, James Mitchell wrote:
  Blinded deer  (Blind dead deer) 
 
  --
  James Mitchell
  Software Developer/Struts Evangelist http://www.struts-atlanta.org
  678-910-8017
  AIM:jmitchtx
 
 
  - Original Message -
  From: Jing Zhou [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Friday, July 11, 2003 12:23 PM
  Subject: [FRIDAY] What do you call a deer without eyes?
 
 
  No eye deer. (No idea :-)
 
  What do you call a dead deer without eyes?
 
 
  -
  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]

-- 
James Mitchell
Software Developer/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: newbie question - setting form parameter in Javascript

2003-07-11 Thread James Mitchell
I think I see where you are goingtry setting the form action instead:

SCRIPT language=JavaScript
function submitForm(form) {
document.frm.action=lookup.do;   //  --Change this to not be hard-coded
form.submit();
return true;
}
/SCRIPT

form name=frm action=? method=GET
 input type=hidden name=action value=
 select name=crn onclick=submitForm(this.form)
   option value=Test selectedTest/option   
   option value=Test2Test2/option   
 /select
br
input type=submit name=action value=Submit

/form



On Friday 11 July 2003 15:00, Shyam A wrote:
 James,

 Thanks for your mail. I guess I need to elaborate a little bit. My HTML
 form can be submitted in 2ways. 1. Clicking the Submit button.
 2. Clicking the drop-down

 Clicking the drop-down triggers a different action than clicking the
 Submit button. Selecting a value in the drop-down would submit the form
 and populate some of the other fields in the form. This is done before the
 Submit button is clicked. So, I need to distinguish the action of
 clicking the drop-down from clicking the Submit button and I called it
 Lookup.

 Both actions would be identified with a single property in the ActionForm
 class - action.

 eg:
  html:submit property=action value=Submit/

 I would like to set this action property value to Lookup on clicking
 the drop-down using Javascript. I guess a hidden field would not serve the
 purpose as I already have action property defined for the Submit button.

 Look forward to your help/suggestions.

 Thanks,
 Shyam

 James Mitchell [EMAIL PROTECTED] wrote:

 You will need to create a hidden field named action, with a value of
 Lookup:



 My question to you iswhy Lookup? What does that have to do with your
 form?


 Here's a sample:


 function submitForm(form) {
  form.action.value=Lookup;
  form.submit();
  return true;
 }



  [input]
  Test Test2

 On Friday 11 July 2003 14:15, Shyam A wrote:
  Hi,
 
  I have an HTML form with Submit and Cancel buttons, and a drop down list,
  which when clicked submits the form. I use Javascript to submit the form
  when the dropdown list is clicked. I have a property called action
  defined in my ActionForm class that identifies the Submit and Cancel
  buttons in the HTML form. When the drop-down is clicked, I would like to
  set the value of this action property to Lookup.
 
  My Javascript function is given below:
 
  
 
 
  function submitForm(form)
  {
  form.action.value=Lookup;
  form.submit();
  return true;
  }
  #
 
  and I invoke this function in my HTML form as shown below:
 
  #
 
 Test
 
  ###
 
  But, the value of the property action is not set to Lookup.
 
  Any help would be greatly appreciated.
 
  Thanks,
  Shyam
 
 
  -
  Do you Yahoo!?
  SBC Yahoo! DSL - Now only $29.95 per month!

-- 
James Mitchell
Software Developer/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: [FRIDAY] What do you call a deer without eyes?

2003-07-11 Thread James Mitchell
On Friday 11 July 2003 16:34, Jing Zhou wrote:
 Alright, try the following *best* practice with any kids:

 What do you call a deer without eyes?
 No eye deer (No idea :-)

 Great! You get it right. Then what do you call a dead deer without eyes?
 Still no eye dear (Still no idea :-)

That's lame, I like dinner better.


 You get it right again!

 Jing

 - Original Message -
 From: Susan Bradeen [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Friday, July 11, 2003 2:54 PM
 Subject: Re: [FRIDAY] What do you call a deer without eyes?

  On 07/11/2003 03:31:10 PM Jing Zhou wrote:
   Hello, list,
  
   We haven't get the *simplest* answer to the second question:
   What do you call a dead deer without eyes?
  
   If no *correct* answer, I will publish it in an hour.
 
  Only in an hour? Hmm, what's the rush? ;-)
 
  Obviously putting it on dinner table is not the best practice :-)
 
  LOL! I thought Dinner was a great answer.
 
  Susan Bradeen
 
   Jing
  
  
   -
   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
678-910-8017
AIM:jmitchtx



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



Re: Multiple Application Modules

2003-07-10 Thread James Mitchell
It would help if you can send your message resources settings for each
module.

--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx




- Original Message -
From: Lloyd Wilson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 12:06 PM
Subject: Multiple Application Modules


Hello,

I have an urgent need to find a resolve to this problem.

First off, I sent a post about this the other day, but noone has yet to
reply, so I figure it could be either how I worded the question, or noone
has encountered the problem.

To describe the problem, I'll first start out by telling you my
configuration.

I have configured several struts config xml files to support multiple
application modules. The applications all work fine, however, I am unable to
define message resource bundles within the application module struts config
files? The forwards, actions, etc. all work fine.

I just want to know if anyone has encountered this kind of problem as I
can't seem to find anything relative to this subject. Would you consider
this to be a bug? Could it be that I may have a configuration problem?

As a workaround I can define all the message resouce bundles in the default
struts config file. Is this the only way to do it?

Thanks for your help in advance. Any direction on this matter would be
greatly appreciated.

Cheers,
Lloyd

-
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: Multiple Application Modules

2003-07-10 Thread James Mitchell
 - Original Message -
 From: Lloyd Wilson [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, July 10, 2003 12:24 PM
 Subject: RE: Multiple Application Modules


 The message resource settings only occur in the default struts config file
as I can't pick up the message resources from the other struts config
modules.

 Here is what i'm trying to do:

 Module A (default struts config)

   message-resources
 key=index
 parameter=resources.Index
 null=false /

 Module B

   message-resources
 key=test
 parameter=resources.moduleB.Test
 null=false /

 For some reason I cannot use the test message resource bundle
 when viewing a page from ModuleB unless I have defined it in ModuleA.

 Does that help at all?


Not really.  Typically, you wouldn't need to specify a key for Module B
(unless you
just want to).

When accessing a message from an action of a jsp, Struts should have already
switched modules.

How are your users navigating to and from the different Modules?


--
James Mitchell
Software Developer/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: Multiple Application Modules

2003-07-10 Thread James Mitchell
 - Original Message -
 From: Lloyd Wilson [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, July 10, 2003 1:53 PM
 Subject: RE: Multiple Application Modules


 How would I retrieve values from my message resource bundle without a
 key??

That's not what I meant.  Using key in the declaration is different than
using key when asking for a message/value.


 Currently, I use the following to access a message resource bundle for
 a given JSP page. For ie. If I want to access the message resource key
 index from the default struts config file I do the following in my
 JSP page:

 Assume index.jsp for moduleA. (moduleA being the default /)

 ...
 title
   bean:message bundle=index key=page.title /
 /tilte
 ...

 This snippet of code will look at the index message resource bundle
 defined in the default struts config file and get the key page.title.

That's right.

 This displays the title for that page. Within the same page in the body
 I have a link to the module b test page like so:

 html:link forward=modulebModuleB/html:link

 When the page renders, the forward moduleb becomes /moduleb/test.jsp
 for example which is defined as a forward within the default struts
 config file.

You cannot link directly to a jsp and expect Struts to change the Module.
It might seem that since you are using a forward from the struts-config
that it would be enough, but that's not the case.  You must explicitely
switch to Module B.

I wrote a small demo app that demonstrates 3 ways to do this.
It is here:
http://prdownloads.sourceforge.net/struts/simple-modules-example.tar.gz?down
load


 When the user clicks on the link, the switch occurs to the module b
 struts config file no problem and renders the page appropriately. The
 ONLY problem I have is defining the message resource bundle within the
 module b struts config file. Let's say for clarity I have within the
 test.jsp for module b the following code:

 ...
 title
   bean:message bundle=test key=page.title /
 /tilte
 ...

 If I attempt to render this page with the following code and the message
 resource bundle configured in the struts config file for module b it will
 NOT work. The only way it will work properly is if it's defined in the
 default struts config file (module a). I do have a workaround which is
 to define all the message resource bundles in the default struts config
 file, but I JUST want to know if this appears to be a problem that I am
 only having or if this should be reported as a bug?

 I'm not sure how to better clarify my problem. I hope the above helps.

 Cheers,
 Lloyd


 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 10, 2003 12:50 PM
 To: Struts Users Mailing List
 Subject: Re: Multiple Application Modules


 - Original Message -
 From: James Mitchell [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, July 10, 2003 12:42 PM
 Subject: Re: Multiple Application Modules


   - Original Message -
   From: Lloyd Wilson [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Sent: Thursday, July 10, 2003 12:24 PM
   Subject: RE: Multiple Application Modules
  
  
   The message resource settings only occur in the default struts config
 file
  as I can't pick up the message resources from the other struts config
  modules.
  
   Here is what i'm trying to do:
  
   Module A (default struts config)
  
 message-resources
   key=index
   parameter=resources.Index
   null=false /
  
   Module B
  
 message-resources
   key=test
   parameter=resources.moduleB.Test
   null=false /
  
   For some reason I cannot use the test message resource bundle
   when viewing a page from ModuleB unless I have defined it in ModuleA.
  
   Does that help at all?
  
 
  Not really.  Typically, you wouldn't need to specify a key for Module
B
  (unless you
  just want to).

 Sorry, meant to say that you don't need to specify a key for any Module
 unless you have more than one FOR THAT Module.

 
  When accessing a message from an action of a jsp, Struts should have
 already
  switched modules.
 
  How are your users navigating to and from the different Modules?
 
 
  --
  James Mitchell
  Software Developer/Struts Evangelist
  http://www.struts-atlanta.org
  678-910-8017
  AIM:jmitchtx
 


--
James Mitchell
Software Developer/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: Using JSTL tags instead of Struts tags

2003-07-10 Thread James Mitchell
Are you serious?

BTW.love your book!!!

--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx


- Original Message - 
From: David Geary [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 3:11 PM
Subject: Re: Using JSTL tags instead of Struts tags


 On Thursday, Jul 10, 2003, at 12:34 America/Denver, Yuan, Saul (TOR-ML) 
 wrote:
 
 
  I started using JSTL but found that it encouraged site builders to
  start embedding logic in JSP's.
 
  I'd sure be interested in some examples of this.  JSTL doesn't really
  provide anything more than what you could do yourself with scriptlets
  and
  runtime expressions -- indeed, it's a lot LESS than what you could do
  with
  those things, in addition to doing it much more succinctly.
 
  JSTL does have a few tags that deal with the backend, say the query 
  tag:
  sql:query ..., with this you can pull data directly in a Jsp page
  without going through a controller layer. But this doesn't necessarily
  mean JSTL encourage you to do it this way.
 
 JSTL's SQL tags are unfairly maligned, IMO. If you stay away from 
 sql:update and sql:transaction, which clearly break MVC protocol*, 
 your views can pull data from the model and display it (which is what 
 views are supposed to do) with sql:query and the param tags.
 
 
 david
 
 *because the views are modifying the model (database)
 
 
  Saul
 
 
  I guess you could say my viewpoint on this is exactly the opposite.
 
  Craig
 
  -
  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: [FRIDAY] Beware whom you think are your friends...

2003-07-10 Thread James Mitchell
That's lame dude.

--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx


- Original Message -
From: Mark Galbreath [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]; 'Rich
Barndt' [EMAIL PROTECTED]; [EMAIL PROTECTED]; 'Antoine Chahine'
[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 4:26 PM
Subject: [FRIDAY] Beware whom you think are your friends...


 ..and you thought the threat is coming from radical Muslims?

 http://www.standonguard.com/

 Mark



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


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



Re: [FRIDAY] Beware whom you think are your friends...

2003-07-10 Thread James Mitchell
LOL Gotcha!!

--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx


- Original Message -
From: Mark Galbreath [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 5:05 PM
Subject: RE: [FRIDAY] Beware whom you think are your friends...


Well, look who has a case of attitude today.  I think it's funny as hell.
So do the Europeans on the Linux IRC channel where I stole it from.

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 4:45 PM
To: Struts Users Mailing List
Subject: Re: [FRIDAY] Beware whom you think are your friends...


That's lame dude.

--
James Mitchell
Software Developer/Struts Evangelist http://www.struts-atlanta.org
678-910-8017 AIM:jmitchtx


- Original Message -
From: Mark Galbreath [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]; 'Rich
Barndt' [EMAIL PROTECTED]; [EMAIL PROTECTED]; 'Antoine Chahine'
[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 4:26 PM
Subject: [FRIDAY] Beware whom you think are your friends...


 ..and you thought the threat is coming from radical Muslims?

 http://www.standonguard.com/

 Mark



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


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



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


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



Re: Struts Developers Needed

2003-07-10 Thread James Mitchell
Hey, I'll work for $0, as long as I get free beer!!!


--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx


- Original Message - 
From: Steve Jovanovic [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 5:11 PM
Subject: RE: Struts Developers Needed


 Hi Mark,
 
 laugh Us, too! :)
 
 Steve
 
 -Original Message-
 From: Mark Galbreath [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, July 10, 2003 4:07 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Struts Developers Needed
 
 I certainly could use the vacation time!  I'll check out the project
 data.
 
 Mark
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: ModuleSwitching

2003-07-08 Thread James Mitchell
On Tuesday 08 July 2003 01:36, Madala, Srinivasa wrote:
 I've followed the same way what struts 1.1 says about module switching.But
 the thing is I couldn't succede in implementing that.I'm not able to move
 to other module using the SwitchAction.I've been using
 %=request.getContextPath()% to get the root context path.is there any
 alternate way to resolve the module switching in struts?

There is an example application that demonstrates how to switch between 
modules 3 different ways.

http://sourceforge.net/projects/struts/

Look under simple for Module Switching Examples



 Srinivas


 WARNING: 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
678-910-8017
AIM:jmitchtx



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



Re: ApplicationResources.properties from Database

2003-07-08 Thread James Mitchell
On Tuesday 08 July 2003 14:09, you wrote:
 James,

 Thank You very Much

Sure, no problem.  I'm actually working on an upgrade for this as I type.  It 
will use the latest and greatest from OJB instead of an older version.

Let me know if you need help with it.



 From: James Mitchell [EMAIL PROTECTED]

 To: Tonny Moon [EMAIL PROTECTED]
 Subject: Re: ApplicationResources.properties from Database
 Date: Mon, 7 Jul 2003 13:44:06 -0400
 
 On Tuesday 01 July 2003 17:09, you wrote:
   Hi,
  
   I saw the News of Struts dated 2002 Sep 10 taking about
   DBMessageResourcesand I want to know how can I get a copy of this
 
 class
 
   ??
  
   I working with struts-1.0 and very interesting on get message from
 
 DB
 
   table..
 
 The MessageResources implementation that I wrote only works with Struts
 1.1.
 You can find it at http://sourceforge.net/projects/struts/
 
   Thanks a Lot. !!
  
   _
   Protect your PC - get McAfee.com VirusScan Online
   http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
 
 --
 James Mitchell
 Software Developer/Struts Evangelist
 http://www.struts-atlanta.org
 770-822-3359
 AIM:jmitchtx

 _
 Add photos to your e-mail with MSN 8. Get 2 months FREE*.
 http://join.msn.com/?page=features/featuredemail

-- 
James Mitchell
Software Developer/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: bean:define to assign a different value to an existing variable

2003-06-27 Thread James Mitchell
On Friday 27 June 2003 09:26, [EMAIL PROTECTED] wrote:
 Hi James,

 So what does the name portion of the bean:define actually do ( I've done
 the RTFM but I'm still confused ).
 Is the name the name of the value in pageContext() and id the scripting
 value on the jsp page?

I know, the docs can be a little intimidating.

Here's (more or less) what you've provided us:

logic:iterate id=thread name=page_of_results indexId=index
 bean:define  id=hot_topic name=hot_topic value=false /
 logic:greaterThan name=thread property=replyCount value=100
bean:define id=hot_topic name=hot_topic value=true/
 /logic:greaterThan

 logic:equal name=hot_topic value=true
  img src=/midletsite/images/hot_topic.gif/
 /logic:equal
/logic:iterate

From this I am assuming:
 - You are iterating over a collection of beans.  
(I'll call them TopicBeans for now.)
 - You've placed this collection in the request (or some scope) under the name
   page_of_results.

Now you want to know if the number of replies to that thread are greater than 
100 (thread.getReplyCount()  100)
If so, then show the hot_topic.gif icon.

Am I on target so far?

If so, first thing I would do is pull that logic out of the tags.  Hell, pull 
it out of the page altogether.  Make this configurable via the bundle.  Add a 
boolean to your bean isHotTopic.  In your action, check to see if the number 
of threads is greater than 100 (or some parsed value from your properties 
file).

So you should be able to do this:
logic:iterate id=thread name=page_of_results indexId=index
 logic:equal name=thread property=hotTopic value=true
  html:img page=/images/hot_topic.gif/
 /logic:equal
/logic:iterate



 Thanks

 Ben


BTW. I also fixed your image tag, you should never hard-code your 
application's context in your pages.


-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
770-822-3359
AIM:jmitchtx



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



Re: Off Topic

2003-06-27 Thread James Mitchell
On Friday 27 June 2003 16:27, Yansheng Lin wrote:
 The other day I found a link to buy viagra online on sourceforge.net
 while setting up my first opensource prj.

 I don't know how I should comment.

Ever notice the huge flashing adds for Visual Studio?  Especially for projects 
that are Java related or belong to the Java Foundaries.



 -Original Message-
 From: Alex Shneyderman [mailto:[EMAIL PROTECTED]
 Sent: June 27, 2003 1:18 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Off Topic


 Hah, I was just about to say the same thing :-)

  -Original Message-
  From: Varun Garg [mailto:[EMAIL PROTECTED]
  Sent: Friday, June 27, 2003 3:17 PM
  To: 'Struts Users Mailing List'
  Subject: RE: Off Topic
 
  Who cares about those sponsored links, I don't even look at the ad

 space

  when doing a search. The real search results are all JAVA.
 
  Cheers
 
  -Original Message-
  From: Tim Jones [mailto:[EMAIL PROTECTED]
  Sent: Friday, June 27, 2003 2:01 PM
  To: Struts Users Mailing List
  Subject: Re: Off Topic
 
 
  Yeah!  That STINKS fer shure!  Just goes to show that if you throw
  enough money around, you can pretty much get whatever you want!
 
 
  Jamie M. Guillemette [EMAIL PROTECTED] wrote:
  Follow these steps. go to goole ( www.google.ca ) type in java and

 then

  enter.
 
  Is it not a real piss off that microsoft has the first link to come up
  directly targetting java programmers to move away from java.?
 
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  Do you Yahoo!?
  SBC Yahoo! DSL - Now only $29.95 per month!
 
 
 
  -
  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
770-822-3359
AIM:jmitchtx



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



Re: Message Resources example using OJB

2003-06-26 Thread James Mitchell
On Thursday 26 June 2003 11:25, Hookom, Jacob wrote:
 Check source forge www.sf.net,  I think James from this list created one
 about 6 months ago and he was very happy with the performance of it.

That is the one Srikanth is speaking about.  We had an off-line discussion 
about caching, and I just wasn't able to help.  I know enough about OJB to 
get this implementation to work.  Deeper configuration is up to the 
developer.

The only thing I can suggest is to change ObjectCacheClass to use 
org.apache.ojb.broker.cache.ObjectCacheDefaultImpl in your OJB.properties 
file.

Good luck with it.


 -Original Message-
 From: Srikanth Gubba [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 26, 2003 9:37 AM
 To: '[EMAIL PROTECTED]'
 Subject: Message Resources example using OJB

 Hi all,

 Has anyone tried and used Message Resources example using OJB  which can be
 used to place the application properties in a database instead of a
 properties file. If anyone has tried this, can u help me know what to do
 when a property is changed in the database, at present i am having to
 reload the application. Is there any way around this so that the
 application reads the properties dynamically.

 Thanks in adv,
 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]

-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
770-822-3359
AIM:jmitchtx



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



Re: Message Resources example using OJB

2003-06-26 Thread James Mitchell
On Thursday 26 June 2003 13:30, James Mitchell wrote:
 On Thursday 26 June 2003 11:25, Hookom, Jacob wrote:
  Check source forge www.sf.net,  I think James from this list created one
  about 6 months ago and he was very happy with the performance of it.

 That is the one Srikanth is speaking about.  We had an off-line discussion
 about caching, and I just wasn't able to help.  I know enough about OJB to
 get this implementation to work.  Deeper configuration is up to the
 developer.

 The only thing I can suggest is to change ObjectCacheClass to use
 org.apache.ojb.broker.cache.ObjectCacheDefaultImpl in your OJB.properties

...sorry, that was supposed to ObjectCacheEmptyImpl, but now that I think 
about it, you may need to upgrade OJB to a newer version to get that class.



 file.

 Good luck with it.

  -Original Message-
  From: Srikanth Gubba [mailto:[EMAIL PROTECTED]
  Sent: Thursday, June 26, 2003 9:37 AM
  To: '[EMAIL PROTECTED]'
  Subject: Message Resources example using OJB
 
  Hi all,
 
  Has anyone tried and used Message Resources example using OJB  which can
  be used to place the application properties in a database instead of a
  properties file. If anyone has tried this, can u help me know what to do
  when a property is changed in the database, at present i am having to
  reload the application. Is there any way around this so that the
  application reads the properties dynamically.
 
  Thanks in adv,
  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]

-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
770-822-3359
AIM:jmitchtx



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



Re: Message Resources example using OJB

2003-06-26 Thread James Mitchell
On Thursday 26 June 2003 14:48, Srikanth Gubba wrote:
 ObjectCacheEmptyImpl is not in the older version , so I have updated the
 OJB binary from their site, but the newer version doesnot have the classes
 org.apache.ojb.broker.query.QueryByExample;/// (the new one might be
 QueryByIdentity();//
 and
 PersistenceBrokerFactory.createPersistenceBroker(); /// (the new one might
 be defaultPersistenceBroker();//

 Even after changing, I could not get them to compile since it is giving me
 errors
  incompatible throws list; found:
 org.apache.ojb.broker.PersistenceBrokerException, required:
 java.lang.Throwable at line
 MessageResource m = (MessageResource)broker.getObjectByQuery(qry);

 i tried but could not figure out what to do.does anyone has any idea
 what this might be?

Sorry you're having trouble with it.  Right now I'm rewriting this extension 
to use the latest and greates from OJB.  I hope to finish by tonight.  I'll 
let you know.


 Thanks,
 srikanth.


 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 26, 2003 1:36 PM
 To: Struts Users Mailing List
 Subject: Re: Message Resources example using OJB

 On Thursday 26 June 2003 13:30, James Mitchell wrote:
  On Thursday 26 June 2003 11:25, Hookom, Jacob wrote:
   Check source forge www.sf.net,  I think James from this list created
   one about 6 months ago and he was very happy with the performance of
   it.
 
  That is the one Srikanth is speaking about.  We had an off-line
  discussion about caching, and I just wasn't able to help.  I know enough
  about OJB to get this implementation to work.  Deeper configuration is up
  to the developer.
 
  The only thing I can suggest is to change ObjectCacheClass to use
  org.apache.ojb.broker.cache.ObjectCacheDefaultImpl in your OJB.properties

 ...sorry, that was supposed to ObjectCacheEmptyImpl, but now that I think
 about it, you may need to upgrade OJB to a newer version to get that class.

  file.
 
  Good luck with it.
 
   -Original Message-
   From: Srikanth Gubba [mailto:[EMAIL PROTECTED]
   Sent: Thursday, June 26, 2003 9:37 AM
   To: '[EMAIL PROTECTED]'
   Subject: Message Resources example using OJB
  
   Hi all,
  
   Has anyone tried and used Message Resources example using OJB  which
   can be used to place the application properties in a database instead
   of a properties file. If anyone has tried this, can u help me know what
   to do when a property is changed in the database, at present i am
   having to reload the application. Is there any way around this so that
   the application reads the properties dynamically.
  
   Thanks in adv,
   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]

-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
770-822-3359
AIM:jmitchtx



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



Re: delay before redirect

2003-06-25 Thread James Mitchell
I would suggest staying with the meta tag approach.  This lessens the burden
on the container and let's them (basically) poll your app in the case where
they are waiting for some asynchronous process to complete.

Just my $.02

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


- Original Message -
From: Ionel Gardais [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 7:56 AM
Subject: delay before redirect


 Hi,

 is it possible to set a delay before a redirect ?
 I'd like to do that in order to display a result page for 5 seconds and
 then go to the welcome page.

 I am already using an http-equiv=refresh with a 300 seconds delay for
 the whole page but I want to bypass it with a redirection after 5 seconds.


 thanks,
 ionel


 -
 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: delay before redirect

2003-06-25 Thread James Mitchell
 C'est une énonciation commune.  En donnant un rapport qui est seulement de
mon propre avis, je donne ma valeur de 2 cents à la matière.


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


- Original Message -
From: Filip Polsakiewicz [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 9:06 AM
Subject: RE: delay before redirect




  -Original Message-
  From: James Mitchell [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, June 25, 2003 3:01 PM
  To: Struts Users Mailing List
  Subject: Re: delay before redirect
 
 
  I would suggest staying with the meta tag approach.  This lessens
  the burden
  on the container and let's them (basically) poll your app in the
  case where
  they are waiting for some asynchronous process to complete.

 What does

 
  Just my $.02

 mean?

 Filip
 
  --
  James Mitchell
  Software Developer/Struts Evangelist
  http://www.struts-atlanta.org
 
 
  - Original Message -
  From: Ionel Gardais [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Wednesday, June 25, 2003 7:56 AM
  Subject: delay before redirect
 
 
   Hi,
  
   is it possible to set a delay before a redirect ?
   I'd like to do that in order to display a result page for 5 seconds
and
   then go to the welcome page.
  
   I am already using an http-equiv=refresh with a 300 seconds delay
for
   the whole page but I want to bypass it with a redirection after
  5 seconds.
  
  
   thanks,
   ionel
  
  
   -
   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: delay before redirect

2003-06-25 Thread James Mitchell
What's the use case here?  What are you trying to do with your app?

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


- Original Message - 
From: Ionel Gardais [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 9:09 AM
Subject: Re: delay before redirect


 Hi James,
 
 Thanks for the reply.
 Can I had another refresh equiv in addition to the first ? (I would then 
 get two meta refresh, one set at 5 minutes and one at 5 seconds)
 The first meta refresh is hard coded in the tiles template I use for my 
 pages that's why I am looking for something to override it.
 
 BTW, I don't think Filip is a french talker (he is the one who asked 
 about your 2-cent bet) ;-)
 
 
 thanks,
 ionel
 
 
 -
 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: delay before redirect

2003-06-25 Thread James Mitchell
So what's stopping you from putting this

META HTTP-EQUIV=Refresh CONTENT=5; URL=html:rewrite
forward=someGlobalForward//

...in the head section of the page?


someGlobalForward would obviously be a global forward that is the entry
point into the application or as you put it app root and might just be
/index.jsp.


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


- Original Message -
From: Ionel Gardais [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 10:00 AM
Subject: Re: delay before redirect


 - the user asks for an edit page.
 - a form is displayed.
 - when the form is filled the user clicks on the validate button.
 - action is called and a server side computation is done.
 - when the computation is completed, a page display a success or failure
 message to the user
   - on success, the main page should be displayed after 5 seconds

 my problem is the whole site uses a tiles template with a autorefresh
 set to 5 minutes (meta refresh URL is javascript:location.reload())
 I would like to override this so the success page is only displayed for
 5 seconds and the URL to be the app root.

 thanks,
 ionel


 -
 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: delay before redirect

2003-06-25 Thread James Mitchell
Ok, so add a small script in the body of your page that does it's own (e.g.
overrides) the meta refresh.

Here's what I mean (change to your liking):

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN

html
head
 titleTest Page/title
 meta http-equiv=Refresh content=300;
URL='javascript:location.reload()'
 meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1
/head
body

 script
setTimeout(window.location='?',5000)
/script

/body
/html





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


- Original Message -
From: Ionel Gardais [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 10:47 AM
Subject: Re: delay before redirect


 James Mitchell wrote:

 So what's stopping you from putting this
 
 META HTTP-EQUIV=Refresh CONTENT=5; URL=html:rewrite
 forward=someGlobalForward//
 
 ...in the head section of the page?
 
 
 I already have a META HTTP-EQUIV=Refresh CONTENT=300;
 URL=javascript:location.reload() from the Tiles template.

 I am only overriding the body frame for each vue. As the meta equiv
 should be placed inside the head tag, I have no way to alter it.


 -
 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: ExceptionConfig bundle Attribute Using Multiple Message Resources.

2003-06-25 Thread James Mitchell
From the struts-config_1_1.dtd

!-- The exception element registers an ExceptionHandler for an exception
type.
 The following attributes are defined:

bundle   Servlet context attribute for the message resources
bundle
 associated with this handler. The default attribute is
the
 value specified by the string constant declared at
 Globals.MESSAGES_KEY.
 [org.apache.struts.Globals.MESSAGES_KEY]

classNameThe configuration bean for this ExceptionHandler
object.
 If specified, className must be a subclass of the
default
 configuration bean
 [org.apache.struts.config.ExceptionConfig]


So, by specifying bundle=AlternateApplicationResources, this would pull
the value specified by the key from AlternateApplicationResources.properties
instead of the default bundle.

While not specifically using this in the struts-example for ExceptionConfig,
it does show how to use it in the tags.

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


- Original Message -
From: Butash, Bob [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 2:57 PM
Subject: RE: ExceptionConfig bundle Attribute  Using Multiple Message
Resources.


 I have figured out how to use different message resources, based on a
 response to a previous post.

 I still have not found further information regarding the bundle attribute
on
 ExceptionConfig.

 ExceptionConfig has a bundle attribute:
 I have seen very little documentation as to what this is actually used
for.
 If I provide an actual ResourceBundle name here it is not used when
 formatting the message to the view.  Does anyone know what this is
intended
 to be used for?

 Any help would be appreciated.

 -Original Message-
 From: Butash, Bob [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 24, 2003 12:41 PM
 To: 'Struts Users Mailing List'
 Subject: ExceptionConfig bundle Attribute  Using Multiple Message
 Resourc es.


 We are trying to create an ExceptionHandler that has some built in logging
 capabilities and one of the items that we would like to log is the
Formatted
 message that is associated with the Error key.  So we are trying to
 determine a way to get visibility to the message resources.  The
 ExceptionHandler's execute method does not get the Action class therefore
 there is no visibility to the ServletContext.  Does anyone have any ideas
in
 this area?

 Also while we were investigating this we stumbled on a couple of questions
 that we have not been able to resolve.

 ExceptionConfig has a bundle attribute:
 I have seen very little documentation as to what this is actually used
for.
 If I provide an actual ResourceBundle name here it is not used when
 formatting the message to the view.  Does anyone know what this is
intended
 to be used for?

 Taking advantage of multiple message resources:
 It is clearly documented how you establish multiple message-resources, but
I
 have not been able to locate how you designate that you want to use a
 secondary message resource.  For example I want to create an ActionError
 with a message key that is obtained from a different message resource
file,
 how is this done?

 Any help would be great, thanks in advance.

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



<    1   2   3   4   5   6   7   8   9   10   >