Re: [OT] Hiding methods - a final remark

2006-02-20 Thread Tom Ziemer
Thanks to everybody who replied to my original post. I am currently
using spring/acegi and it's working great - as long as you use Spring to
create your beans:

// Spring - works like a charm: security via acegi and transactions via
 proxies
this.entityManager = (IEntityManager)getBean(SpringBean.MANAGER_ENTITY);

// standard java: will never work and AOP isn't an option either, since
Spring is bypassed and thus any declarative enhancements are non-functional
this.entityManager = new EntityManager();

I guess I'll just document, that all my classes are Spring-managed and
pray that a) somebody will actually read the documentation and b)
prospective users of my API will know about Spring.

Regards,
Tom

Laurie Harper wrote:
 Paul Benedict wrote:
 Spring can give you method-level security if you're interested in it.

 http://acegisecurity.org/

 It will use AOP to proxy your classes and make sure any thread has the
 proper credentials to
 access your code.
 
 And that's how to re-invent the wheel in chrome ;-) Seriously, Paul's
 right, this is a great application of AOP. Acegi's strength here is that
 it has a lot more power and flexibility than Java's built-in security
 model.
 
 L.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



html:option, how to print html characters in the label.

2006-02-20 Thread Robert Alexandersson
Hello, i want to output the String nbsp;Level 2 in my optionlists,
but the label attribute of options does not return this but the
transforemed amp;nbsp; mending it prints the text instead, is there any
way around this?


html:options collection=items property=id labelProperty=title /

Regards
Robert A


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



Re: html:option, how to print html characters in the label.

2006-02-20 Thread Nicolas De Loof


If you're looking for a way to indent options in a select box, you 
should use the optgroup HTML tag.


Nico.

Robert Alexandersson a écrit :

Hello, i want to output the String nbsp;Level 2 in my optionlists,
but the label attribute of options does not return this but the
transforemed amp;nbsp; mending it prints the text instead, is there any
way around this?


html:options collection=items property=id labelProperty=title /

Regards
Robert A


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


  


This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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



Re: Acessing TagHandlerPool for TagSupport

2006-02-20 Thread Steve Vanspall

Thanks will have a look,

yeah I figured reevaluation isn't the go.

as I said I know the action I want is already going to be configure din 
the struts-config file, so basically I need to look it up, then create a 
form for it.


I can fudge it by codig the HTML roughly as teh struts tage would do it, 
if only I could look up struts-config from a TagSupport extension.




Craig McClanahan wrote:


On 2/19/06, Steve Vanspall [EMAIL PROTECTED] wrote:
 


I know this isn't specifically struts realted, but am having trouble
finding a jasper mailing list.

Basically was wondering if I can have a custom tagsupport tag's
doStartTag() method acess the taghandlerpool.
   




There is no API for this.  Indeed, in JSP 2.0 if you use simple tags there
is no pooling of tag instances either.

Basically i want ot be able to create a form, where neccesary, with a
 


start tag.

but, like struts does, only know the action and parameters adn be able
to look up what form I should be using.

Also it would help if I knew how many form were laready in use, and if a
form tag was open, and hence can throw an error.

So basically, I could create a html:form within some code that this tag
creates.

Alternatively, although not the most desirable option, is the a way to
output html:form as part fo the start tag, and get the JSP to re
evaluated it again.

Theres' probably a simple, duh!, solution coming my way, just can't seem
to find the answer.
   




What you need to build forms like this dynamically is a component model like
the one provided by JavaServer Faces or Tapestry.  The Shale framework[1]
(also part of the Struts community), built on top of JSF, has an example of
building views dynamically that is somewhat different than your use case (it
lets you do SQL Browser queries, and dynamically decides what columns to
show in the output table based on which database columns were returned in
response to executing the query), but illustrates the principle.  It would
be straightforward, for example, to dynamically generate a set of field
labels and input fields based on the columns in a database, or the
properties of a JavaBean.

Trying to dynamically construct JSP code and then re-evaluate it is not
the right approach to this kind of problem.

Thanks
 


Steve
   




Craig

[1] http://struts.apache.org/struts-shale/


-
 


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: why my page can't redirect under Struts with Javascript?

2006-02-20 Thread Swapnil Patil
Hi,
I modify my Javascript like follows:
function goURL(tmp){
 document.forms[0].action=eval(/Log/log.do?action=First);
 document.forms[0].submit();
}

Is eval really needed? . Check whether you really need /Log in contexet
path?

Try wih following function.
function goURL(tmp){
 document.forms[0].action=/log.do?action=First;
 document.forms[0].submit();
}




On 2/20/06, red phoenix [EMAIL PROTECTED] wrote:

 I modify my Javascript like follows:
 function goURL(tmp){
 document.forms[0].action=eval(/Log/log.do?action=First);
 document.forms[0].submit();
 }

 But when I change the value of html:select,it still can't redirect. I am
 mad with it!


 On 2/20/06, Swapnil Patil [EMAIL PROTECTED] wrote:
 
  Hi red,
 
  html:link page=/log.do?action=FirstFirst Page/html:link
  this works with action parameter containing value= First NOT 0.
 
  Your 'tmp' variable in script function contains  value 0,1 or 2.  Your
  log.do action might be checking content of action parameter with values
  First, Second or Third
 
  Try it again with following manner.
 
  html:select property=pageID size=1 onchange=javascript:goURL(
  this.options[this.selectedIndex].value)
  option value=FirstFirst/option
  option value=SecondSecond/option
  option value=ThirdThird/option
  /html:select
 
  I hope it will work.
 
 
  On 2/20/06, red phoenix [EMAIL PROTECTED] wrote:
  
   I have try follows two method:
   function goURL(tmp){
   document.forms[0].action=eval(/Log/log.do?action=+tmp);
   alert(eval(/Log/log.do?action=+tmp));
   document.forms[0].submit();
   }
  
   and
  
   function goURL(tmp){
   var newAct = /Log/log.do?action=+tmp;
   document.forms[0].action = newAct;
   alert(newAct)
   document.forms[0].submit();
   }
  
   I find Javasript can alert right value,such as /Log/log.do?action=3
   but I find Javascript don't redirect any page,my action don't be
 called!
   Why?
  
  
   On 2/20/06, Saul Qunming Yuan [EMAIL PROTECTED] wrote:
   
A few things here,
   
1) I think you need build the action like the following;
   
document.forms[0].action=eval(/Log/log.do?action=+tmp);
   
or do it in two steps:
   
var newAct = /Log/log.do?action=+tmp;
document.forms[0].action = newAct;
   
2) how are you checking the action parameter in your Action class,
checking
action=First or action=0?
the above will give you action=0, or action=1 etc, but not
  action=First,
action=Second. The reason I ask the question is b/c you mentioned
html:link
page=/log.do?action=FirstFirst Page/html:link works for you,
 you
   are
passing a First to the action in this case.
   
   
Saul
   
- Original Message -
From: red phoenix [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Sunday, February 19, 2006 10:12 PM
Subject: Re: why my page can't redirect under Struts with
 Javascript?
   
   
My  web context is Log,so I add prefix before,like follows:
   
document.forms[0].action=/Log/log.do?action=+eval(tmp);
   
but when I change the value of html:select,it still can't
 redirect,I
   am
puzzled it for several days.I don't know why it don't redirect!!!
   
I want to use above code to make a pagination program,the
  html:select
shows all pages,such as 1st Page,2nd Page,3rd Page and so on,when
   selected
one of items of html:select,it will call Javascript and redirect
  page
   to
a
action.
   
Anybody can give me some adivce?
   
   
   
On 2/20/06, Saul Qunming Yuan [EMAIL PROTECTED] wrote:

 For the following:

 document.forms[0].action=/log.do?action=+eval(tmp);

 You'll need to prefix /log.do with your web context. Or you can
  use:
 html:rewrite page='/log.do' / in place of /log.do above.

 hope it helps.
 Saul


 - Original Message -
 From: red phoenix [EMAIL PROTECTED]
 To: user@struts.apache.org
 Sent: Sunday, February 19, 2006 6:48 PM
 Subject: why my page can't redirect under Struts with Javascript?


 I use Javascript in Struts,like follows:

 script language=JavaScript
 function goURL(tmp){
 alert(tmp);
 document.forms[0].action=/log.do?action=+eval(tmp);
 document.forms[0].submit();
 }
 /script

 html:form method=post action=log.do
 html:link page=/log.do?action=FirstFirst Page/html:link
 html:select property=pageID size=1
 onchange=javascript:goURL(
 this.options[this.selectedIndex].value)
 option value=0First/option
 option value=1Second/option
 option value=2Third/option
 /html:select
 /html:form

 when click First Page,I can redirect my page to log.do page,but
  when
   I
 change the value of select,and call goURL,I find my page don't
   redirect
to
 the log.do page,why? I am puzzled with it! Anybody can tell me how
  to
 redirect my page with Javascript under Struts?

 Thanks



  

I know this is wrong place to ask this question ..

2006-02-20 Thread Swapnil Patil
HI all,
  Can any body tell me the mailing list for core JAVA? just like this
mailing list.
I know this is wrong place to ask this question :-) but still i am expecting
positive reply.

Thanks  Regards
Swapnil Patil.

On 2/20/06, Robert Alexandersson [EMAIL PROTECTED]
wrote:

 Hello, i want to output the String nbsp;Level 2 in my optionlists,
 but the label attribute of options does not return this but the
 transforemed amp;nbsp; mending it prints the text instead, is there any
 way around this?


 html:options collection=items property=id labelProperty=title /

 Regards
 Robert A


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




--
Thanks  Regards
Swapnil Patil.


RE: html:option, how to print html characters in the label.

2006-02-20 Thread Robert Alexandersson
Yes, but the problem is that I use endless indents from an attribute called 
depth that makes hard to use optgroup (I think so, have not tried it though), 
this is how I use depth.
O1-Depth1
02-Depth2
O3-Depth3
O4-Depth1
And so on.

I think I found a solution using filter=off in the options tag.

/Robert A

-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 20, 2006 11:35 AM
To: Struts Users Mailing List
Subject: Re: html:option, how to print html characters in the label.


If you're looking for a way to indent options in a select box, you 
should use the optgroup HTML tag.

Nico.

Robert Alexandersson a écrit :
 Hello, i want to output the String nbsp;Level 2 in my optionlists,
 but the label attribute of options does not return this but the
 transforemed amp;nbsp; mending it prints the text instead, is there any
 way around this?


 html:options collection=items property=id labelProperty=title /

 Regards
 Robert A


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


   

This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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




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



Re: why my page can't redirect under Struts with Javascript?

2006-02-20 Thread Jari Fredriksson

Swapnil Patil wrote:

Hi,
I modify my Javascript like follows:
function goURL(tmp){
 document.forms[0].action=eval(/Log/log.do?action=First);
 document.forms[0].submit();
}

Is eval really needed? . Check whether you really need /Log in
contexet path?

Try wih following function.
function goURL(tmp){
 document.forms[0].action=/log.do?action=First;
 document.forms[0].submit();
}




Hmm. Why the action has to be inserted to the url in the first place?

Can't the log.do retrieve in as getAction() in the execute? It's the value 
of the combobox and should be readable from the form bean.




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



Error Message (setValue (java.lang.Object)) on Tomcat

2006-02-20 Thread starki78
Hi, we develop with Jdeveloper and embedded
server and after I deploy to tomcat
I get the following error:

symbol  : method setValue (java.lang.Object)
location: class org.apache.struts.taglib.html.HiddenTag
  _jspx_th_html_hidden_0.setValue(singleNumber);


html:hidden value=%=singleNumber% property=numberZBList/

I have to make singleNumber.toString()
then it works (local this is not necessary)

Can somebody explain this difference?

Nice greetings




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



Re: I know this is wrong place to ask this question ..

2006-02-20 Thread Thomas Joseph
Hi Swapnil,

You may like to visit http://archives.java.sun.com where you may find many
refined lists form many java / j2ee and other mailing lists.

Thanks and Regards,
 Thomas Joseph
 [EMAIL PROTECTED]
Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road | Cochin-682015 |
India
 www.kottsoftware.com
 ---
-
The secret of success in life is for you to be ready for your opportunity
when it comes.


 HI all,
   Can any body tell me the mailing list for core JAVA? just like this
 mailing list.
 I know this is wrong place to ask this question :-) but still i am
expecting
 positive reply.

 Thanks  Regards
 Swapnil Patil.



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



Returning ResultSet

2006-02-20 Thread chuanjiang lo
Hi guys,

I have this DBConnectionManager class that manages the connection pooling.
It has this method to get some results from the database.

So my action form make use of the method to get the resultset and tries to
display on the jsp page.
But the method would close the connection after i query the database thus my
resultset is lost.

What should be the correct way of returning a resultset to the action page?

Thanks.


Re: [Friday]

2006-02-20 Thread Emmanouil Batsis

Michael Jouravlev wrote:


On 2/17/06, Marco Mistroni [EMAIL PROTECTED] wrote:
 


Hello,
   


On Thu, February 16, 2006 4:51 pm, Michael Jouravlev said:

   


The last thing I can think of is a hook, a rope and some soap.
 


Uhmm.. you mean last resort is hanging? Or by soap you were really
Meaning SOAP  :)
   



Hehe, funny. No, I mean soap. Looks like its cultural thing. Soap to
kind of oil the rope, it slides better ;-)
 



The expression applies in greek as well and is used to point out a 
difficult situation where rope and soap is the obvious way out :-)


Cheers,

Manos



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



RE: Returning ResultSet

2006-02-20 Thread Vijaya S
You have to copy the resultset to an arraylist and return the arraylist.

Vijaya


-Original Message-
From: chuanjiang lo [mailto:[EMAIL PROTECTED]
Sent: Monday, February 20, 2006 6:22 PM
To: user@struts.apache.org
Subject: Returning ResultSet


Hi guys,

I have this DBConnectionManager class that manages the connection pooling.
It has this method to get some results from the database.

So my action form make use of the method to get the resultset and tries to
display on the jsp page.
But the method would close the connection after i query the database thus my
resultset is lost.

What should be the correct way of returning a resultset to the action page?

Thanks.



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



Re: Returning ResultSet

2006-02-20 Thread chuanjiang lo
is this the best way to handle this?
as my project is rather small scale..there isnt a need for me to use ORM..

On 2/20/06, Vijaya S [EMAIL PROTECTED] wrote:

 You have to copy the resultset to an arraylist and return the arraylist.

 Vijaya


 -Original Message-
 From: chuanjiang lo [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 20, 2006 6:22 PM
 To: user@struts.apache.org
 Subject: Returning ResultSet


 Hi guys,

 I have this DBConnectionManager class that manages the connection pooling.
 It has this method to get some results from the database.

 So my action form make use of the method to get the resultset and tries to
 display on the jsp page.
 But the method would close the connection after i query the database thus
 my
 resultset is lost.

 What should be the correct way of returning a resultset to the action
 page?

 Thanks.



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




[OT] Re: Returning ResultSet

2006-02-20 Thread Dave Newton
chuanjiang lo wrote:
 Hi guys,

 I have this DBConnectionManager class that manages the connection pooling.
 It has this method to get some results from the database.

 So my action form make use of the method to get the resultset and tries to
 display on the jsp page.
 But the method would close the connection after i query the database thus my
 resultset is lost.

 What should be the correct way of returning a resultset to the action page?
   
Not returning a ResultSet ;)

There are twice as many options as posters to this list, but in general
either using a full ORM tool (Hibernate, iBatis, Torque, etc.) or,
closer to your existing code, perhaps using RowSetDynaClass from the
Jakarta Commons beanutils would be the easiest.

http://jakarta.apache.org/commons/beanutils/
http://jakarta.apache.org/commons/beanutils/commons-beanutils-1.7.0/docs/api/
http://jakarta.apache.org/commons/beanutils/commons-beanutils-1.7.0/docs/api/org/apache/commons/beanutils/RowSetDynaClass.html

Dave



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



RE: [Friday]

2006-02-20 Thread Marco Mistroni
Hello,
 
The expression applies in greek as well and is used to point out a 
difficult situation where rope and soap is the obvious way out :-)

Sorry  for being so 'numb'... but I still don' tsee the connection between
A rope and the soap..
You can mail me privately ... I think we are off-topic big time...

Rgds
marco







Cheers,

Manos



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

2006-02-20 Thread David Delbecq
Marco Mistroni a écrit :

Hello,
 
  

The expression applies in greek as well and is used to point out a 
difficult situation where rope and soap is the obvious way out :-)



Sorry  for being so 'numb'... but I still don' tsee the connection between
A rope and the soap..
You can mail me privately ... I think we are off-topic big time...

Rgds
   marco


  

I think it's to clean the rope, so you don't get infected by any disease
when you get hung. It's like sterilizing material before doing the
lethal injection. :)

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



RE: [Friday]

2006-02-20 Thread Marco Mistroni
Hehe,
Thanx I got explanation off-line..
Hope I'll never have to resort to that 
are there any nicer expressions to say that you have no other solutions?

Regards
marco

-Original Message-
From: David Delbecq [mailto:[EMAIL PROTECTED] 
Sent: 20 February 2006 14:33
To: Struts Users Mailing List
Subject: Re: [Friday]

Marco Mistroni a écrit :

Hello,
 
  

The expression applies in greek as well and is used to point out a 
difficult situation where rope and soap is the obvious way out :-)



Sorry  for being so 'numb'... but I still don' tsee the connection between
A rope and the soap..
You can mail me privately ... I think we are off-topic big time...

Rgds
   marco


  

I think it's to clean the rope, so you don't get infected by any disease
when you get hung. It's like sterilizing material before doing the
lethal injection. :)

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

2006-02-20 Thread Leon Rosenberg
you soap the rope to make it slide well and you are sure the knot will
really break your neck.

On 2/20/06, Marco Mistroni [EMAIL PROTECTED] wrote:
 Hello,

 The expression applies in greek as well and is used to point out a
 difficult situation where rope and soap is the obvious way out :-)

 Sorry  for being so 'numb'... but I still don' tsee the connection between
 A rope and the soap..
 You can mail me privately ... I think we are off-topic big time...

 Rgds
 marco







 Cheers,

 Manos



 -
 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: Tiles + WebWork

2006-02-20 Thread Ted Husted
On 2/15/06, Matt Raible [EMAIL PROTECTED] wrote:
 I'd like to use Tiles with WebWork for reasons outlined on my blog:

 http://raibledesigns.com/page/rd?entry=large_sites_powered_by_java

From the blog comments
 IMO, there's not a single framework that is best for *everything*.

What would we need to put on the Action2/WebWork roadmap so that it is
the best for  everything?

 Instead, the needs for each application have to be evaluated, and then a 
 small prototype
 should be done in 2-3 frameworks.

+1 and an amen to that, brother.

BTW,  the blog also asks about large-volume sites done with Struts and
especially Struts with Tiles. What about JRoller? Is not Roller using
Struts 1.2 and Tiles?

-Ted.

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



Re: Help:Clay+dataTable

2006-02-20 Thread lisaan markuen
Hi..
  Thanks.. its working now. 



--- Gary VanMatre [EMAIL PROTECTED] wrote:

 From: lisaan markuen [EMAIL PROTECTED] 
 
  Hi., 
  I'm trying CLAY and fed up with displaying dynamic
 
  datatable (list) coming from my managed bean
 (already 
  went through the examples but no success yet). 
  Could anyone please give me an example snippet of
 how 
  to insert jsfid into the mock html code so that I 
  could achieve same like: 
  
  JSF code: 
 h:dataTable value=#{managedBean.list} 
 var=item
  h:outputText value=#{item.property}
 /h:dataTable
 
  
 
 
 I'll give you a couple options.  My first
 recommendation would be to use the tomahawk dataList
 component.
 
 Clay configuration definition for the tomahawk
 dataList:
  component jsfid=t:dataList
 componentType=org.apache.myfaces.HtmlDataList
 extends=baseHtml
   attributes
set name=id bindingType=VB /
set name=binding bindingType=VB /
set name=forceId bindingType=VB /
set name=forceIdIndex bindingType=VB /
set name=value bindingType=VB /
set name=var bindingType=VB /
set name=rows bindingType=VB /
set name=first bindingType=VB /
set name=enabledOnUserRole bindingType=VB /
set name=visibleOnUserRole bindingType=VB /
set name=layout bindingType=VB /
set name=rowIndexVar bindingType=VB /
set name=rowCountVar bindingType=VB /
   /attributes
  /component
 
 HTML using tomahawk dataList:
 span jsfid=t:dataList id=data1
  styleClass=standardList
  var=person
  value=[EMAIL PROTECTED]
  layout=simple
  rowCountVar=rowCount
  rowIndexVar=rowIndex
 allowBody=true
  
  span jsfid=outputText
 value=#{person.firstName}/nbsp;
  span jsfid=outputText
 value=#{person.lastName}/
  span jsfid=t:htmlTag value=br
 rendered=#{(rowIndex != (rowCount - 1))}/ 
  /span
 
 Another option is to use the clayForEach component.
 
 Clay configuration definition:
component jsfid=myItem extends=outputText
  attributes
 set name=value
 value=[EMAIL PROTECTED]/
  /attributes
/component
 
 The var attribute in the example below is like the
 JSTL var attribute. 
 It's the name of a map that will be placed in
 session scope.  It will be
 populated from the value EL, a value binding
 expression that returns a 
 Map, List or Object[].  The bodyJsfid attribute is
 the content that
 will be repeated for each item in the value list.
 span jsfid=clayForEach var=mySessionScopedMap
 value=[EMAIL PROTECTED]
 bodyJsfid=myItem/
 
 This is probably more helpful when the bodyJsfid is
 a html template.  
 table
 tr jsfid=clayForEach var=mySessionScopedMap
 value=[EMAIL PROTECTED]
 bodyJsfid=/myItem.html/
 /table
 
 html template file myItem.html:
 trtd[EMAIL PROTECTED]/td/tr
 
 
 Gary
 
  
  Thank you. 
  
  __
 
  Do You Yahoo!? 
  Tired of spam? Yahoo! Mail has the best spam
 protection around 
  http://mail.yahoo.com 
  
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Value-ChangeEvent under Struts-Faces

2006-02-20 Thread Leila Carvalho
Dear Craig,

Thanks a lot, but I'm still a bit confused...
Is mybean an ActionForm, an Action or an adapter to Faces Backing Bean ???
Gracias!!

This kind of thing will work in Struts-Faces, but only if you correctly
 specify the expressions, and use an input field :-)

   h:inputText id=city value=#{mybean.city} valueChangeListener=#{
 mybean.cityChanged}/

 Craig


---


Problem about first page.

2006-02-20 Thread Joey Watson
Hi everybody.

I want to write a login module.
login.jsp-display userId , userName, password, company
infomation (a drop down box)
 LoginAction.java check login information
 LoginForm.java  --
some command class.  one of them will load company information from db.

When user open web site. the login page will be displayed. user need
to fill name, id, password and select a company from a drop down box.
So I need to load company list from before login page displayed. I
want to do this in Action class (it will call a command class). but my
problem is login.jsp is defined as   welcome-file-list  in web.xml .
So before it is been created . onliy ActionForm would be create, the
Action Class doesn't be created. and I don't want to do the load
comany actions in ActionForm. So my question is how could I can make
Action class to be create and do load actions before the login.jsp be
displayed.

Thanks..
Joey

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



Re: Problem about first page.

2006-02-20 Thread Bryan LaPlante
Could you make you welcome page different than login.jsp and have it forward
to login.jsp? If login is your front door, maybe all of your welcome pages
could forward to it.

- Original Message -
From: Joey Watson [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Monday, February 20, 2006 12:14 PM
Subject: Problem about first page.


 Hi everybody.

 I want to write a login module.
 login.jsp-display userId , userName, password, company
 infomation (a drop down box)
  LoginAction.java check login information
  LoginForm.java  --
 some command class.  one of them will load company information from
db.

 When user open web site. the login page will be displayed. user need
 to fill name, id, password and select a company from a drop down box.
 So I need to load company list from before login page displayed. I
 want to do this in Action class (it will call a command class). but my
 problem is login.jsp is defined as   welcome-file-list  in web.xml .
 So before it is been created . onliy ActionForm would be create, the
 Action Class doesn't be created. and I don't want to do the load
 comany actions in ActionForm. So my question is how could I can make
 Action class to be create and do load actions before the login.jsp be
 displayed.

 Thanks..
 Joey

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






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



Re: Problem about first page.

2006-02-20 Thread Joey Watson
yes. I think it is a good idea. but I don't know to do it. I can make
a jsp page as welcome page, but how could I make it can forward to
Login.jsp automatically. user don't need to click a link or a button.

On 2/21/06, Bryan LaPlante [EMAIL PROTECTED] wrote:
 Could you make you welcome page different than login.jsp and have it forward
 to login.jsp? If login is your front door, maybe all of your welcome pages
 could forward to it.

 - Original Message -
 From: Joey Watson [EMAIL PROTECTED]
 To: Struts Users Mailing List user@struts.apache.org
 Sent: Monday, February 20, 2006 12:14 PM
 Subject: Problem about first page.


  Hi everybody.
 
  I want to write a login module.
  login.jsp-display userId , userName, password, company
  infomation (a drop down box)
   LoginAction.java check login information
   LoginForm.java  --
  some command class.  one of them will load company information from
 db.
 
  When user open web site. the login page will be displayed. user need
  to fill name, id, password and select a company from a drop down box.
  So I need to load company list from before login page displayed. I
  want to do this in Action class (it will call a command class). but my
  problem is login.jsp is defined as   welcome-file-list  in web.xml .
  So before it is been created . onliy ActionForm would be create, the
  Action Class doesn't be created. and I don't want to do the load
  comany actions in ActionForm. So my question is how could I can make
  Action class to be create and do load actions before the login.jsp be
  displayed.
 
  Thanks..
  Joey
 
  -
  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]



Opening a MS Word from JSP/HTML

2006-02-20 Thread Anjishnu Bandyopadhyay

Hi all,



I have a static MS Word document, which I want to open on click of a
hyperlink in my JSP page.

I am trying like: window.open('abc.doc','',600,600);



But the Word doc is not properly opening.

In IE, the document opens in the browser itself.

In Mozilla, the Word doc opens along with a blank screen.





Thanks for your time.



With best regards,

Anjishnu.





 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not to copy, disclose, or distribute this e-mail or its contents to any other 
person and any such actions are unlawful. This e-mail may contain viruses. 
Infosys has taken every reasonable precaution to minimize this risk, but is not 
liable for any damage you may sustain as a result of any virus in this e-mail. 
You should carry out your own virus checks before opening the e-mail or 
attachment. Infosys reserves the right to monitor and review the content of all 
messages sent to or from this e-mail address. Messages sent to or from this 
e-mail address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***

Re: Problem about first page.

2006-02-20 Thread Joey Watson
Or I think maybe many project would meet this kind of quesition. Just
want to know how to deal with it when you need to display some
information loaded from db in you first page.


On 2/21/06, Joey Watson [EMAIL PROTECTED] wrote:
 yes. I think it is a good idea. but I don't know to do it. I can make
 a jsp page as welcome page, but how could I make it can forward to
 Login.jsp automatically. user don't need to click a link or a button.

 On 2/21/06, Bryan LaPlante [EMAIL PROTECTED] wrote:
  Could you make you welcome page different than login.jsp and have it forward
  to login.jsp? If login is your front door, maybe all of your welcome pages
  could forward to it.
 
  - Original Message -
  From: Joey Watson [EMAIL PROTECTED]
  To: Struts Users Mailing List user@struts.apache.org
  Sent: Monday, February 20, 2006 12:14 PM
  Subject: Problem about first page.
 
 
   Hi everybody.
  
   I want to write a login module.
   login.jsp-display userId , userName, password, company
   infomation (a drop down box)
LoginAction.java check login information
LoginForm.java  --
   some command class.  one of them will load company information from
  db.
  
   When user open web site. the login page will be displayed. user need
   to fill name, id, password and select a company from a drop down box.
   So I need to load company list from before login page displayed. I
   want to do this in Action class (it will call a command class). but my
   problem is login.jsp is defined as   welcome-file-list  in web.xml .
   So before it is been created . onliy ActionForm would be create, the
   Action Class doesn't be created. and I don't want to do the load
   comany actions in ActionForm. So my question is how could I can make
   Action class to be create and do load actions before the login.jsp be
   displayed.
  
   Thanks..
   Joey
  
   -
   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: Opening a MS Word from JSP/HTML

2006-02-20 Thread Bart Busschots
That's a client issue. As a webdesigner you have no control over that. 
All you can do is provide a simple link and let the clients save it or 
open it what ever way they want. You can't force word to open.


Bart.

Anjishnu Bandyopadhyay wrote:


Hi all,



I have a static MS Word document, which I want to open on click of a
hyperlink in my JSP page.

I am trying like: window.open('abc.doc','',600,600);



But the Word doc is not properly opening.

In IE, the document opens in the browser itself.

In Mozilla, the Word doc opens along with a blank screen.





Thanks for your time.



With best regards,

Anjishnu.





 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not to copy, disclose, or distribute this e-mail or its contents to any other 
person and any such actions are unlawful. This e-mail may contain viruses. 
Infosys has taken every reasonable precaution to minimize this risk, but is not 
liable for any damage you may sustain as a result of any virus in this e-mail. 
You should carry out your own virus checks before opening the e-mail or 
attachment. Infosys reserves the right to monitor and review the content of all 
messages sent to or from this e-mail address. Messages sent to or from this 
e-mail address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***
 




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



Re: Opening a MS Word from JSP/HTML

2006-02-20 Thread Jari Fredriksson

Anjishnu Bandyopadhyay wrote:

Hi all,



I have a static MS Word document, which I want to open on click of a
hyperlink in my JSP page.

I am trying like: window.open('abc.doc','',600,600);



But the Word doc is not properly opening.

In IE, the document opens in the browser itself.

In Mozilla, the Word doc opens along with a blank screen.


This issue has nothing to do with Stuts. However... You ask your browser to 
open a window, and the document into it. So IE does just what you ask it do.


Mozilla opens the window which you ask it to open, but the document opens in 
another window, WinWord, I guess.


How about just an ordinary link a href=abc.doc ? It all depends what you 
mean by properly. Now you ask for a window in browser...






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



Re: [OT] Hiding methods - a final remark

2006-02-20 Thread Laurie Harper

Tom Ziemer wrote:

Thanks to everybody who replied to my original post. I am currently
using spring/acegi and it's working great - as long as you use Spring to
create your beans:

// Spring - works like a charm: security via acegi and transactions via
 proxies
this.entityManager = (IEntityManager)getBean(SpringBean.MANAGER_ENTITY);

// standard java: will never work and AOP isn't an option either, since
Spring is bypassed and thus any declarative enhancements are non-functional
this.entityManager = new EntityManager();


Unless you adopt Spring 2.0 which, apparently, includes the ability to 
apply AOP-type advice to an object that's not Spring-managed. That 
should resolve this case for you.


L.


I guess I'll just document, that all my classes are Spring-managed and
pray that a) somebody will actually read the documentation and b)
prospective users of my API will know about Spring.

Regards,
Tom

Laurie Harper wrote:

Paul Benedict wrote:

Spring can give you method-level security if you're interested in it.

http://acegisecurity.org/

It will use AOP to proxy your classes and make sure any thread has the
proper credentials to
access your code.

And that's how to re-invent the wheel in chrome ;-) Seriously, Paul's
right, this is a great application of AOP. Acegi's strength here is that
it has a lot more power and flexibility than Java's built-in security
model.

L.


-
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: Acessing TagHandlerPool for TagSupport

2006-02-20 Thread Craig McClanahan
On 2/20/06, Steve Vanspall [EMAIL PROTECTED] wrote:

 Thanks will have a look,

 yeah I figured reevaluation isn't the go.

 as I said I know the action I want is already going to be configure din
 the struts-config file, so basically I need to look it up, then create a
 form for it.

 I can fudge it by codig the HTML roughly as teh struts tage would do it,
 if only I could look up struts-config from a TagSupport extension.


I should have been a bit more clear.  You *do* have access to the
configuration information that Struts read from the
struts-config.xmlfiles.  They are stored (if you only have one module)
under a servlet
context attribute named by symbolic constant Globals.MODULE_KEY (in a tag
handler you can call PageContext.getAttribute() to acquire it).

It's the create a JSP page dynamically and get it compiled part of the
problem that isn't going to work well.

Craig


init-param equivalent for action configuration?

2006-02-20 Thread Chris Cheshire
If I am reading the docs right, the parameter attribute of the
action element only allows you to define 1 generic parameter for the
action.

I need to be able to specify a few different parameters and their
values. Prior to converting to struts I would put these as init-params
in web.xml under each servlet declaration.

Is there a way to do this in the struts config without using global
context params in web.xml?

Thanks

Chris

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



Re: Problem about first page.

2006-02-20 Thread Bryan LaPlante
here you go.
http://java.sun.com/products/jsp/tags/11/syntaxref11.fm9.html

- Original Message -
From: Joey Watson [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Monday, February 20, 2006 12:38 PM
Subject: Re: Problem about first page.


 yes. I think it is a good idea. but I don't know to do it. I can make
 a jsp page as welcome page, but how could I make it can forward to
 Login.jsp automatically. user don't need to click a link or a button.

 On 2/21/06, Bryan LaPlante [EMAIL PROTECTED] wrote:
  Could you make you welcome page different than login.jsp and have it
forward
  to login.jsp? If login is your front door, maybe all of your welcome
pages
  could forward to it.
 
  - Original Message -
  From: Joey Watson [EMAIL PROTECTED]
  To: Struts Users Mailing List user@struts.apache.org
  Sent: Monday, February 20, 2006 12:14 PM
  Subject: Problem about first page.
 
 
   Hi everybody.
  
   I want to write a login module.
   login.jsp-display userId , userName, password, company
   infomation (a drop down box)
LoginAction.java check login information
LoginForm.java  --
   some command class.  one of them will load company information
from
  db.
  
   When user open web site. the login page will be displayed. user need
   to fill name, id, password and select a company from a drop down box.
   So I need to load company list from before login page displayed. I
   want to do this in Action class (it will call a command class). but my
   problem is login.jsp is defined as   welcome-file-list  in web.xml .
   So before it is been created . onliy ActionForm would be create, the
   Action Class doesn't be created. and I don't want to do the load
   comany actions in ActionForm. So my question is how could I can make
   Action class to be create and do load actions before the login.jsp be
   displayed.
  
   Thanks..
   Joey
  
   -
   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: Problem about first page.

2006-02-20 Thread Michael Jouravlev
On 2/20/06, Joey Watson [EMAIL PROTECTED] wrote:
 Or I think maybe many project would meet this kind of quesition. Just
 want to know how to deal with it when you need to display some
 information loaded from db in you first page.

Define a startup  JSP page in web.xml. Redirect from it to an action
that actually does something.

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



Re: Problem about first page.

2006-02-20 Thread Joey Watson
Thanks  Bryan and Michael. I have solved this problem.
Thanks you very much.

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



[OT] Ruby on rails VS Java Based Web Applications

2006-02-20 Thread Garner, Shawn
Can anyone give me pros and cons of using Ruby on Rails verses a Java Base
Web Application (Struts, JSF, etc)?

Seems like Rails is moving towards less or no configuration files while
JSF/Shale is leaning towards more.

 

Shawn

 


 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 



Re: [OT] Ruby on rails VS Java Based Web Applications

2006-02-20 Thread Leon Rosenberg
Well RoR is a wonderful thing if you are playing. But you can't
develop and you have no chance to maintain a serious application with
it. So the proper question would be RoR or php and php would probably
win :-)

Leon

On 2/20/06, Garner, Shawn [EMAIL PROTECTED] wrote:
 Can anyone give me pros and cons of using Ruby on Rails verses a Java Base
 Web Application (Struts, JSF, etc)?

 Seems like Rails is moving towards less or no configuration files while
 JSF/Shale is leaning towards more.



 Shawn




 
 This email may contain confidential material.
 If you were not an intended recipient,
 Please notify the sender and delete all copies.
 We may monitor email to and from our network.
 



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



Re: [OT] Ruby on rails VS Java Based Web Applications

2006-02-20 Thread James Mitchell
Struts (right now!) let's you setup a single action mapping (wild  
card mapping) and a single LazyDynaBean, and then you can add as many  
Actions and JSPs as you like (at runtime no doubt) and your changes  
are instantly available without ever rebooting or touching xml again.


Between that and the Spring/Hibernate/Middlegen love boat and you'll  
think twice about Rails.



--
James Mitchell
EdgeTech, Inc.
http://edgetechservices.net/
678.910.8017
Skype: jmitchtx

On Feb 20, 2006, at 2:10 PM, Garner, Shawn wrote:

Can anyone give me pros and cons of using Ruby on Rails verses a  
Java Base

Web Application (Struts, JSF, etc)?

Seems like Rails is moving towards less or no configuration files  
while

JSF/Shale is leaning towards more.



Shawn




** 
**

This email may contain confidential material.
If you were not an intended recipient,
Please notify the sender and delete all copies.
We may monitor email to and from our network.
** 
**



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



RE: [OT] Ruby on rails VS Java Based Web Applications

2006-02-20 Thread Garner, Shawn
But you can't develop and you have no chance to maintain a serious
application with it.

Can you go more into this?

Shawn

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 20, 2006 2:03 PM
To: Struts Users Mailing List
Subject: Re: [OT] Ruby on rails VS Java Based Web Applications

Well RoR is a wonderful thing if you are playing. But you can't
develop and you have no chance to maintain a serious application with
it. So the proper question would be RoR or php and php would probably
win :-)

Leon

On 2/20/06, Garner, Shawn [EMAIL PROTECTED] wrote:
 Can anyone give me pros and cons of using Ruby on Rails verses a Java Base
 Web Application (Struts, JSF, etc)?

 Seems like Rails is moving towards less or no configuration files while
 JSF/Shale is leaning towards more.



 Shawn






 This email may contain confidential material.
 If you were not an intended recipient,
 Please notify the sender and delete all copies.
 We may monitor email to and from our network.





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

 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 


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



RE: [OT] Ruby on rails VS Java Based Web Applications

2006-02-20 Thread Garner, Shawn
Can you elaborate on Spring and Middlegen?
I've looked at their websites (Spring a couple times before) but I fail to
see how they are beneficial to use.

Shawn
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 20, 2006 2:26 PM
To: Struts Users Mailing List
Subject: Re: [OT] Ruby on rails VS Java Based Web Applications

Struts (right now!) let's you setup a single action mapping (wild  
card mapping) and a single LazyDynaBean, and then you can add as many  
Actions and JSPs as you like (at runtime no doubt) and your changes  
are instantly available without ever rebooting or touching xml again.

Between that and the Spring/Hibernate/Middlegen love boat and you'll  
think twice about Rails.


--
James Mitchell
EdgeTech, Inc.
http://edgetechservices.net/
678.910.8017
Skype: jmitchtx

On Feb 20, 2006, at 2:10 PM, Garner, Shawn wrote:

 Can anyone give me pros and cons of using Ruby on Rails verses a  
 Java Base
 Web Application (Struts, JSF, etc)?

 Seems like Rails is moving towards less or no configuration files  
 while
 JSF/Shale is leaning towards more.



 Shawn




 ** 
 **
 This email may contain confidential material.
 If you were not an intended recipient,
 Please notify the sender and delete all copies.
 We may monitor email to and from our network.
 ** 
 **


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

 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 


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



Re: [OT] Ruby on rails VS Java Based Web Applications

2006-02-20 Thread Dave Newton
James Mitchell wrote:
 Struts (right now!) let's you setup a single action mapping (wild card
 mapping) and a single LazyDynaBean, and then you can add as many
 Actions and JSPs as you like (at runtime no doubt) and your changes
 are instantly available without ever rebooting or touching xml again.

 Between that and the Spring/Hibernate/Middlegen love boat and you'll
 think twice about Rails.
The AppFuse stack is also pretty nice. AppFuse? Trails? Now I don't
remember which is which.

Dave



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



Re: [OT] Ruby on rails VS Java Based Web Applications

2006-02-20 Thread Dave Newton
Leon Rosenberg wrote:
 Well RoR is a wonderful thing if you are playing. But you can't
 develop and you have no chance to maintain a serious application with it.
I'm having zero issues maintaining several, although they are not
high-load apps yet.

The thing I dislike most about it is moving back to scriptlets, although
this is largely optional and there are ways around it.

Dave



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



Re: [OT] Ruby on rails VS Java Based Web Applications

2006-02-20 Thread James Mitchell
Elaborating on the benefits of IOC is way beyond the scope of a  
simple email on a simple mailing list.  There are books for that  
purpose.  Once you've decided to use Spring, it provides first class  
integration with Hibernate.  I won't bore you with the benefits of  
choosing Hibernate either, that's why we have books and articles on  
that end as well.


Among the wonderful things you can do with Middlegen, I have had  
great success with the plugin for generating Hibernate mapping files  
from a JDBC source:

http://www.hibernate.org/98.html

On a recent project, the core developers extended Middlegen to  
generate both the DAO and initial shell of a service layer.  Combine  
that with a rather thorough and complete set of unit tests and they  
are able to move the project along as requirements grew and the  
project matured,  all the while guaranteeing 100% test coverage and  
100% backward compatibility with the changing API.  As I was  
implementing the front end and facades, it was trivial to hook into  
any of the generated service objects and get whatever I wanted on the  
back end.  I just love autowiring!


It is a rather impressive stack and it would take a lot to convince  
me that there is a better solution.



--
James Mitchell
EdgeTech, Inc.
http://edgetechservices.net/
678.910.8017
Skype: jmitchtx

On Feb 20, 2006, at 3:35 PM, Garner, Shawn wrote:


Can you elaborate on Spring and Middlegen?
I've looked at their websites (Spring a couple times before) but I  
fail to

see how they are beneficial to use.

Shawn
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Monday, February 20, 2006 2:26 PM
To: Struts Users Mailing List
Subject: Re: [OT] Ruby on rails VS Java Based Web Applications

Struts (right now!) let's you setup a single action mapping (wild
card mapping) and a single LazyDynaBean, and then you can add as many
Actions and JSPs as you like (at runtime no doubt) and your changes
are instantly available without ever rebooting or touching xml again.

Between that and the Spring/Hibernate/Middlegen love boat and you'll
think twice about Rails.


--
James Mitchell
EdgeTech, Inc.
http://edgetechservices.net/
678.910.8017
Skype: jmitchtx

On Feb 20, 2006, at 2:10 PM, Garner, Shawn wrote:


Can anyone give me pros and cons of using Ruby on Rails verses a
Java Base
Web Application (Struts, JSF, etc)?

Seems like Rails is moving towards less or no configuration files
while
JSF/Shale is leaning towards more.



Shawn




* 
*

**
This email may contain confidential material.
If you were not an intended recipient,
Please notify the sender and delete all copies.
We may monitor email to and from our network.
* 
*

**



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

** 
**

This email may contain confidential material.
If you were not an intended recipient,
Please notify the sender and delete all copies.
We may monitor email to and from our network.
** 
**


-
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: Recharge resource without stop server

2006-02-20 Thread Laurie Harper

Angel Navarro wrote:

Hi,

I have a web application based on Struts 1.3.
I have a problem, I need change resources (internationalition) without stop
the server. It's possible?


You mean you want to be able to update your resource bundles dynamically 
at run-time? If so, you'll need to define a MessageResourcesFactory in 
the message-resources section of your struts-config, and have your 
factory return resource bundles that support whatever update semantics 
you need.


L.


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



Re: Action forms and numeric coercion

2006-02-20 Thread Laurie Harper

Scott Van Wart wrote:
I'm new to struts and am setting up some form beans.  I'm using 
hibernate, and one of my tables has a lot of foreign keys.  The target 
tables are pretty much just lookup tables, which I use to populate a 
good number of drop-downs on my web page.  Most of the foreign keys are 
optional, and I'm storing the values in the action form as java.lang.Long.


The optional dropdowns all have option value=None/option, but when 
the form is submitted, and the empty string is coerced to a 
java.lang.Long, it gives me a value of 0 instead of null.  Am I going 
about this the right way?  Should I just suck it up and handle the 0 
value, or is there a better way to lay out my form bean's class?


That's one of the many reasons why it's strongly recommended that you 
use String-type properties in your form beans. Alternatively, if you 
really don't want to use strings, you can configure BeanUtils (which 
Struts is using under the covers to populate the form bean) to give you 
the null value you're expecting.


To do that, you need to construct a replacement converter with 'new 
LongConverter(null)' and register it as the converter for Long.TYPE and 
Long.class. [Note, I haven't tested if specifying a default value of 
null will work; you may have to specify an actual instance of Long, 
instead.]


L.


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



Hosting problem , the Host provider tomcat does not understand .do

2006-02-20 Thread Legolas Woodland

Hi
Thank you for reading my post.
I get a hosting package from a provider ,
Now all jsp files works but when i press some buttons or links that lead 
to a .do (Action)

it return *error 404  *file not found
is there any other configuration that i should do in my hosting package ?
it is on linux and tomcat 5.5.9

Thanks


Re: [HELP] i80n :(

2006-02-20 Thread Laurie Harper

Pham Anh Tuan wrote:

Hi all,

I got a problem, so I need all your help :(

i18n,

I want my Struts app to have default language is Vietnamese, but I couldn't :(

I have 3 files below:
+ mylanguage.properties --- Vietnamese file
+ mylanguage_ja.properties --- Japanese file
+ mylanguage_en.properties --- English file

I have a action which include these code:

.
Local myLocal = getLocale(request);

locale = new Locale(request.getParameter(language);

HttpSession session = request.getSession();
session.setAttribute(Globals.LOCALE_KEY, locale);


in struts-config.xml
message-resources parameter=properties.mylanguage/

but my webapp still use English language default :( ...

I want my webapp use Vietnamese language by default, how can I do that, help me 
:(

thanks in advance

bowlkhin


You can set the system-wide default locale with Locale.setDefault(). You 
would want to call that once during startup, probably. Alternatively, 
you can configure your execution environment appropriately so that Java 
starts up with the default locale already set to what you want.


L.


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



Re: i18n with javascript validations

2006-02-20 Thread Laurie Harper

Kalra, Ashwani wrote:

Hi,
My project is using javascript validations generated through struts
validator. I want to do some currency validations based on the
language/country. Is it possible?


Yes, it's possible, though Struts / Commons Validator don't include 
currency validation rules. You can specify your validation rules using 
'mask', if you can express them with regular expressions. Otherwise 
you'll need to create your own validation rule(s) and add them to the 
base set in validator-rules.xml.


L.


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



Re: [OT] Ruby on rails VS Java Based Web Applications

2006-02-20 Thread Leon Rosenberg
On 2/20/06, Dave Newton [EMAIL PROTECTED] wrote:
 Leon Rosenberg wrote:
  Well RoR is a wonderful thing if you are playing. But you can't
  develop and you have no chance to maintain a serious application with it.
 I'm having zero issues maintaining several, although they are not
 high-load apps yet.


how many developers are/were working on each?
Leon

 The thing I dislike most about it is moving back to scriptlets, although
 this is largely optional and there are ways around it.

 Dave



 -
 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: init-param equivalent for action configuration?

2006-02-20 Thread Laurie Harper

Chris Cheshire wrote:

If I am reading the docs right, the parameter attribute of the
action element only allows you to define 1 generic parameter for the
action.

I need to be able to specify a few different parameters and their
values. Prior to converting to struts I would put these as init-params
in web.xml under each servlet declaration.

Is there a way to do this in the struts config without using global
context params in web.xml?

Thanks

Chris


Is the set-property element what you're looking for?

  action ...
set-property property=myProperty value=.../
  /action

L.


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



Re: [OT] Ruby on rails VS Java Based Web Applications

2006-02-20 Thread Dave Newton
Leon Rosenberg wrote:
 On 2/20/06, Dave Newton [EMAIL PROTECTED] wrote:
   
 Leon Rosenberg wrote:
 
 Well RoR is a wonderful thing if you are playing. But you can't
 develop and you have no chance to maintain a serious application with it.
   
 I'm having zero issues maintaining several, although they are not
 high-load apps yet.
 how many developers are/were working on each?
   
Most of them are a three-person team but we have one that has a Small
Wad (about a dozen total) working in fits and starts as the mood strikes
them, under Subversion.

I'm far more concerned about scalability than anything else; we've had
essentially zero issues related to team size. One of the apps is going
to be converted into a Spring/J2EE stack for sure; wait-and-see on the rest.

I guess I don't see what the big deal is, but we are a fairly
disciplined group of developers, several of us with large-scale Lisp
experience, which might help, I dunno.

Dave



Re: [OT] Ruby on rails VS Java Based Web Applications

2006-02-20 Thread Leon Rosenberg
Ok, before I get into that I must admin that I never developed one,
just read through the
http://www.rubyonrails.org/ - documentations and looked at example
apps. So I of course might be completely wrong. In any case it's just
a personal opinion...

But... from reading the docs, the language itself is as outdated as
prolog or perl. You have almost no oo-concepts, and all co-concepts
are missing completely. Sure you can write a webapp in perl, but who
does it? Only people who are already programming perl for years, and
even they are giving it up. Alone the fact that you have no chances
for proper getter and setter (and the hidden overriding concept will
be a debugging disaster :-) ) disqualifies RoR for usage in teams. And
for a one man show... if you are a java expert you will be better with
java, otherwise take php, it's easier to learn, has more features,
more support, more examples, more whatsoever... So where is the place
of RoR in the web-world?

just my 2cents :-)

leon




On 2/20/06, Garner, Shawn [EMAIL PROTECTED] wrote:
 But you can't develop and you have no chance to maintain a serious
 application with it.

 Can you go more into this?

 Shawn

 -Original Message-
 From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 20, 2006 2:03 PM
 To: Struts Users Mailing List
 Subject: Re: [OT] Ruby on rails VS Java Based Web Applications

 Well RoR is a wonderful thing if you are playing. But you can't
 develop and you have no chance to maintain a serious application with
 it. So the proper question would be RoR or php and php would probably
 win :-)

 Leon

 On 2/20/06, Garner, Shawn [EMAIL PROTECTED] wrote:
  Can anyone give me pros and cons of using Ruby on Rails verses a Java Base
  Web Application (Struts, JSF, etc)?
 
  Seems like Rails is moving towards less or no configuration files while
  JSF/Shale is leaning towards more.
 
 
 
  Shawn
 
 
 
 
 
 
  This email may contain confidential material.
  If you were not an intended recipient,
  Please notify the sender and delete all copies.
  We may monitor email to and from our network.
 
 
 
 

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

 
 This email may contain confidential material.
 If you were not an intended recipient,
 Please notify the sender and delete all copies.
 We may monitor email to and from our network.
 

 -
 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] Ruby on rails VS Java Based Web Applications

2006-02-20 Thread Leon Rosenberg
well... maybe you are a totally cool development team, maybe I'm
completely wrong either... I just had the feeling that making code
reviews, following call stacks, debugging... distribution and so on
would be a real mess... but, as I told before, I never tried myself.
But
what are the benefits for you to use ror?

leon

On 2/20/06, Dave Newton [EMAIL PROTECTED] wrote:
 Leon Rosenberg wrote:
  On 2/20/06, Dave Newton [EMAIL PROTECTED] wrote:
 
  Leon Rosenberg wrote:
 
  Well RoR is a wonderful thing if you are playing. But you can't
  develop and you have no chance to maintain a serious application with it.
 
  I'm having zero issues maintaining several, although they are not
  high-load apps yet.
  how many developers are/were working on each?
 
 Most of them are a three-person team but we have one that has a Small
 Wad (about a dozen total) working in fits and starts as the mood strikes
 them, under Subversion.

 I'm far more concerned about scalability than anything else; we've had
 essentially zero issues related to team size. One of the apps is going
 to be converted into a Spring/J2EE stack for sure; wait-and-see on the rest.

 I guess I don't see what the big deal is, but we are a fairly
 disciplined group of developers, several of us with large-scale Lisp
 experience, which might help, I dunno.

 Dave




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



Re: [OT] Ruby on rails VS Java Based Web Applications

2006-02-20 Thread Dave Newton
Leon Rosenberg wrote:
 well... maybe you are a totally cool development team, 
A yeah.

Okay, not really ;)
 following call stacks, debugging... distribution and so on
 would be a real mess... but, as I told before, I never tried myself.
   
Call stacks are no issue. If you know the API and the chain of events I
really haven't had any problems.
 But what are the benefits for you to use ror?
   
_Extremely_ fast development cycles, _substantially_ smaller codebase.
You see numbers like 10x thrown around; I wouldn't go that far, but at a
minimum I personally see 4-8x in general and about a third the codebase.

Code reviews are the same as in any language.

Programmatic code checking in completely non-existent :(

Refactoring support essentially non-existent, although I tend to need
less, and with the smaller codebase they are less painful.
Dynamically-typed languages may be harder to deal with in that regard.

_Completely_ moving target: stuff is happening WAY too fast to keep up with.

I do quite a bit of functional prototyping in RoR and then convert to
J2EE, which makes some of my concerns go away since I'm using it
primarily as a specifications document rather than an implementation model.

Dave



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



Re: [OT] Ruby on rails VS Java Based Web Applications

2006-02-20 Thread Dave Newton
Leon Rosenberg wrote:
 But... from reading the docs, the language itself is as outdated as
 prolog or perl. You have almost no oo-concepts, and all co-concepts
 are missing completely. 
Uh, how do you figure that?

It's largely modeled around SmallTalk. It's quite a bit more OOP than
most things one runs across. That said, it still pales in comparison to
CLOS.
 for a one man show... if you are a java expert you will be better with
 java, otherwise take php, it's easier to learn, has more features,
 more support, more examples, more whatsoever... So where is the place
 of RoR in the web-world?
   
I don't think I'm a Java expert, but I ain't bad... I'm more
productive until Ruby/RoR simply because the language doesn't handcuff
me: I spend more time working on the problem than the code.

Granted, I am a SmallTalk and Lisp oldbie from way back (sure wish Ruby
had macros :/ so it seems a much more natural language to me than most
others have.

Dave



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



yet wnother localization question

2006-02-20 Thread Daniel Blumenthal
So, I'm in the midst of localizing my app, and the first thing that's clear
is that localizing the MessageResources is a snap (pats self on back for
choosing Struts).

My question, though, is whether there's a standard method for choosing one
.jsp or another based on language.  Also, is there a standard directory
layout?  My guess is that something like this would be indicated:

/myservlet
/pages
/en
/jp
/fr

Is there a simple way of making this happen (with this or some other
directory structure), or do I have to roll my own solution?

Thanks!

Daniel



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



Re: Hosting problem , the Host provider tomcat does not understand .do

2006-02-20 Thread Bryan LaPlante
Have a look at this example web.xml file. You will see what you need in the
url-pattern*.do/url-patternhttp://www.javaranch.com/newsletter/Mar2002/l
isting1.htmlBryan LaPlante- Original Message -
From: Legolas Woodland [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Monday, February 20, 2006 4:20 PM
Subject: Hosting problem , the Host provider tomcat does not understand .do


 Hi
 Thank you for reading my post.
 I get a hosting package from a provider ,
 Now all jsp files works but when i press some buttons or links that lead
 to a .do (Action)
 it return *error 404  *file not found
 is there any other configuration that i should do in my hosting package ?
 it is on linux and tomcat 5.5.9

 Thanks




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



Re: Hosting problem , the Host provider tomcat does not understand .do

2006-02-20 Thread Legolas Woodland
It works on my local computer in same Configuration (just it is windows 
machine , so my web.xml is OK or at least i think it is ok because it 
works on local computer.)


Bryan LaPlante wrote:

Have a look at this example web.xml file. You will see what you need in the
url-pattern*.do/url-patternhttp://www.javaranch.com/newsletter/Mar2002/l
isting1.htmlBryan LaPlante- Original Message -
From: Legolas Woodland [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Monday, February 20, 2006 4:20 PM
Subject: Hosting problem , the Host provider tomcat does not understand .do


  

Hi
Thank you for reading my post.
I get a hosting package from a provider ,
Now all jsp files works but when i press some buttons or links that lead
to a .do (Action)
it return *error 404  *file not found
is there any other configuration that i should do in my hosting package ?
it is on linux and tomcat 5.5.9

Thanks






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


  




Re: init-param equivalent for action configuration?

2006-02-20 Thread Chris Cheshire
Thanks Laurie

On 2/20/06, Laurie Harper [EMAIL PROTECTED] wrote:
 Chris Cheshire wrote:
  If I am reading the docs right, the parameter attribute of the
  action element only allows you to define 1 generic parameter for the
  action.
 
  I need to be able to specify a few different parameters and their
  values. Prior to converting to struts I would put these as init-params
  in web.xml under each servlet declaration.
 
  Is there a way to do this in the struts config without using global
  context params in web.xml?
 
  Thanks
 
  Chris

 Is the set-property element what you're looking for?

action ...
  set-property property=myProperty value=.../
/action

 L.


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



Re: [OT] Ruby on rails VS Java Based Web Applications

2006-02-20 Thread Leon Rosenberg
On 2/20/06, Dave Newton [EMAIL PROTECTED] wrote:
 Leon Rosenberg wrote:
  well... maybe you are a totally cool development team,
 A yeah.

 Okay, not really ;)
  following call stacks, debugging... distribution and so on
  would be a real mess... but, as I told before, I never tried myself.
 
 Call stacks are no issue. If you know the API and the chain of events I
 really haven't had any problems.

I rather ment things like interception/reflection or/and AOP :-)

  But what are the benefits for you to use ror?
 
 _Extremely_ fast development cycles, _substantially_ smaller codebase.
 You see numbers like 10x thrown around; I wouldn't go that far, but at a
 minimum I personally see 4-8x in general and about a third the codebase.

Pardon me for being devils advocate, but how do you measure it?
Talking about the codebase, are you talking about functional code or
whole code? I agree that 20-30% of java code is dump (getters/setters
and so on) but dump code is generated by an IDE so it's not an issue.
How fast are fast development cycles?


 Code reviews are the same as in any language.

 Programmatic code checking in completely non-existent :(

As far as I understand you have no strong typing, right?


 Refactoring support essentially non-existent, although I tend to need
 less, and with the smaller codebase they are less painful.
 Dynamically-typed languages may be harder to deal with in that regard.

 _Completely_ moving target: stuff is happening WAY too fast to keep up with.

 I do quite a bit of functional prototyping in RoR and then convert to
 J2EE, which makes some of my concerns go away since I'm using it
 primarily as a specifications document rather than an implementation model.

 Dave


Leon



 -
 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: init-param equivalent for action configuration?

2006-02-20 Thread Chris Cheshire
OK I am still lost. I found reference to this in the DTD, so that
covers the config file.

However, I cannot find any mention of how to retrieve these properties
in the Action subclass. I took a look at the javadocs for Action,
ActionConfig, ActionMapping and I do not see anything relating to the
set-property element of the configuration file.

Are these translated by the struts framework into servlet context parameters?

Is there anything in the struts documentation that describes this?

Chris

On 2/20/06, Laurie Harper [EMAIL PROTECTED] wrote:
 Chris Cheshire wrote:
  If I am reading the docs right, the parameter attribute of the
  action element only allows you to define 1 generic parameter for the
  action.
 
  I need to be able to specify a few different parameters and their
  values. Prior to converting to struts I would put these as init-params
  in web.xml under each servlet declaration.
 
  Is there a way to do this in the struts config without using global
  context params in web.xml?
 
  Thanks
 
  Chris

 Is the set-property element what you're looking for?

action ...
  set-property property=myProperty value=.../
/action

 L.

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



Re: yet wnother localization question

2006-02-20 Thread Laurie Harper
Firstly, you really shouldn't post a totally unrelated question in the 
middle of a long, off-topic thread that's likely not being followed by 
everyone. Post a new topic as a new message, not a reply to something else.


Now, to the question:

Daniel Blumenthal wrote:

So, I'm in the midst of localizing my app, and the first thing that's clear
is that localizing the MessageResources is a snap (pats self on back for
choosing Struts).

My question, though, is whether there's a standard method for choosing one
..jsp or another based on language.  Also, is there a standard directory
layout?  My guess is that something like this would be indicated:

/myservlet
/pages
/en
/jp
/fr

Is there a simple way of making this happen (with this or some other
directory structure), or do I have to roll my own solution?


Tiles supports doing this. You can set up your base tile definitions, 
then add per-locale definitions that override the path to the JSP.


Unless you have substantially different page requirements for each 
locale, you'll probably want to look at factoring out just those parts 
of each page that need to vary into separate tiles, too, to reduce the 
amount of duplication.


L.


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



Re: Tiles + WebWork

2006-02-20 Thread Ted Husted
Posted by Matt Raible (24.9.148.67) on February 16, 2006 at 09:06 AM MST #
 IMO, there's not a single framework that is best for *everything*. Instead, 
 the needs for
 each application have to be evaluated, and then a small prototype should be 
 done in 2-3
 frameworks.

On 2/20/06, Matt Raible [EMAIL PROTECTED] wrote:
 Marketing, marketing and more marketing.  Articles in eWeek,
 BusinessWeek, etc. so all the CIOs of all the companies feel they
 *need* to be using this framework. ;-)

:) Ummm, so you recommend that a  small prototype should be done in
2-3  frameworks because no single framework dominates the ~marketing~
landscape? :)

Seriously, hype aside, engineer to engineer, if we can use the new
standalone Tiles with WebWork, and use Ajax to store the state of UI
controls, what else do we need to do to make WebWork/Action 2 the best
framework for *everything*?

-Ted.

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



Re: Value-ChangeEvent under Struts-Faces

2006-02-20 Thread Craig McClanahan
On 2/20/06, Leila Carvalho [EMAIL PROTECTED] wrote:

 Dear Craig,

 Thanks a lot, but I'm still a bit confused...
 Is mybean an ActionForm, an Action or an adapter to Faces Backing Bean ???
 Gracias!!


Technically, mybean would be a Faces backing bean, but it *could* be any
of the above ... JSF does not care whether or not backing beans implement a
particular interface, or subclass a particular base class.  But you have to
be careful of one particular scenario.  Struts only creates one instance of
an Action class for the entire application, so that is not a good place to
put request-specific event handlers.

By the way, are you writing a new application, or trying to adapt something
that already exists?  If it is a new work, you'll find it a *lot* simpler to
just go with JSF, or use JSF+Shale, rather than trying to use the
integration library.  The library fits best when you are trying to
incrementally add JSF based facilities to an existing Struts based webapp.

Craig



This kind of thing will work in Struts-Faces, but only if you correctly
  specify the expressions, and use an input field :-)
 
h:inputText id=city value=#{mybean.city} valueChangeListener=#{
  mybean.cityChanged}/
 
  Craig


 ---




Re: why my page can't redirect under Struts with Javascript?

2006-02-20 Thread red phoenix
I tried follows:
function goURL(tmp){
  document.forms[0].action=eval(/Log/log.do?action=First);
  document.forms[0].submit();
 }

and
function goURL(tmp){
  document.forms[0].action=eval(/log.do?action=First);
  document.forms[0].submit();
 }

My page also can't redirect!

And I try
function goURL(tmp){
  document.forms[0].submit();
 }

I find my page still can't redirect!!!
but I can use following statement to redirect page,
html:submit property=c value=go/

why javascript can't redirect under Struts,and html:submit can redirect in
the same page? It puzzled me for a very long time. It almost mad me mad.




On 2/20/06, Jari Fredriksson [EMAIL PROTECTED] wrote:

 Swapnil Patil wrote:
  Hi,
  I modify my Javascript like follows:
  function goURL(tmp){
   document.forms[0].action=eval(/Log/log.do?action=First);
   document.forms[0].submit();
  }
 
  Is eval really needed? . Check whether you really need /Log in
  contexet path?
 
  Try wih following function.
  function goURL(tmp){
   document.forms[0].action=/log.do?action=First;
   document.forms[0].submit();
  }
 


 Hmm. Why the action has to be inserted to the url in the first place?

 Can't the log.do retrieve in as getAction() in the execute? It's the value
 of the combobox and should be readable from the form bean.



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




Re: [OT] Ruby on rails VS Java Based Web Applications

2006-02-20 Thread Dave Newton
Leon Rosenberg wrote:
 I rather ment things like interception/reflection or/and AOP :-)
   
Ah.

Lots of reflection. AOP is being actively discussed for Ruby2. Pure-Ruby
implementations for simple AOP exist but I've not used them.
 Pardon me for being devils advocate, but how do you measure it?
 Talking about the codebase, are you talking about functional code or
 whole code? I agree that 20-30% of java code is dump (getters/setters
 and so on) but dump code is generated by an IDE so it's not an issue.
 How fast are fast development cycles?
   
Well, I have measured things in various ways.

Codebase size: yep, my IDE will generate a lot, and this makes Java
bearable. But the code is still there; just because I don't type it
doesn't mean I don't have to comprehend it. Character-wise my Ruby/RoR
code is about 1/3-1/2 the size of feature-comparable J2EE apps. That's a
lot less stuff I have to look at even if it was auto-generated.

Development time: I've coded both J2EE=RoR and RoR=J2EE. I've coded
just RoR and just J2EE apps. It usually takes me about 1/2 the time to
code an RoR application, but that's just an average.

If I was more adept with AppFuse (or Trails, I still don't remember
which is which) I suspect the timing would be more similar.
 As far as I understand you have no strong typing, right?
   
That is correct at this point. Obviously you can check types within a
method.

Dynamic- vs. strong-typing is one of those arguments that has gone, and
will go, on forever.

I think strong typing is great for large, distributed teams of generally
average programmers. I think dynamic typing is great for smaller,
better development teams, and compiler optimization. For instance, in
Common Lisp I'll often write stuff with no thought of typing then as
development progresses I'll add typing info.

The canonical Languages for the Masses vs. Languages for Smart
People article is at:

http://www.paulgraham.com/vanlfsp.html

It's somewhat deliberately provocative, but interesting.

Another consideration for me, at least, is that Ruby feels better.
Part of that is simply personality, part of it is that it's quite a bit
more like what I'm used to (SmallTalk, Lisp, Forth). I have a LOT more
fun programming in Ruby than Java. This is an intangible, but an
important one for me.

Bear in mind that I still recommend PHP for large-scale production
sites, but I am slowly using RoR for more small-ish sites.

Dave



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



Re: init-param equivalent for action configuration?

2006-02-20 Thread Chris Cheshire
After a lot of browsing javadocs and scratching my head in confusion,
I have something that appears to be working.

In struts-config.xml I have a few set-property ... elements for an
action. For the action mapping element of that action I have
className=my mapping class.

I have created a class that extends ActionMapping that provides get
and set methods for these properties.

These are then accessible inside the action by casting the provided
action to the right class.

Now that I have spent 2 hours looking at javadocs, I understand what
is going on (I hope!) but this could REALLY do with an entry in the
descriptive documentation. The javadocs only provide subtle hints
about what is going on with that particular class and nothing ties any
of it together.

Have I missed something? Do I need to do anything else?

Chris

On 2/20/06, Laurie Harper [EMAIL PROTECTED] wrote:
 Chris Cheshire wrote:
  If I am reading the docs right, the parameter attribute of the
  action element only allows you to define 1 generic parameter for the
  action.
 
  I need to be able to specify a few different parameters and their
  values. Prior to converting to struts I would put these as init-params
  in web.xml under each servlet declaration.
 
  Is there a way to do this in the struts config without using global
  context params in web.xml?
 
  Thanks
 
  Chris

 Is the set-property element what you're looking for?

action ...
  set-property property=myProperty value=.../
/action

 L.


 -
 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: why my page can't redirect under Struts with Javascript?

2006-02-20 Thread Dave Newton
red phoenix wrote:
 I tried follows:
 function goURL(tmp){
   document.forms[0].action=eval(/Log/log.do?action=First);
   document.forms[0].submit();
  }

 and
 function goURL(tmp){
   document.forms[0].action=eval(/log.do?action=First);
   document.forms[0].submit();
  }

 My page also can't redirect!
   
Why are you eval-ing a string? Since /log.do?action=First is not a
valid JavaScript statement, this will fail.

Pay attention to JavaScript errors.

Dave



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



Re: why my page can't redirect under Struts with Javascript?

2006-02-20 Thread Martin Gainty

Dave-
If you are looking for a way for JavaScript to dynamically change targetting 
action based on Javascript code take a look at

http://husted.com/struts/tips/002.html
HTH,
Martin
- Original Message - 
From: Dave Newton [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Sent: Monday, February 20, 2006 8:17 PM
Subject: Re: why my page can't redirect under Struts with Javascript?



red phoenix wrote:

I tried follows:
function goURL(tmp){
  document.forms[0].action=eval(/Log/log.do?action=First);
  document.forms[0].submit();
 }

and
function goURL(tmp){
  document.forms[0].action=eval(/log.do?action=First);
  document.forms[0].submit();
 }

My page also can't redirect!


Why are you eval-ing a string? Since /log.do?action=First is not a
valid JavaScript statement, this will fail.

Pay attention to JavaScript errors.

Dave



-
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: why my page can't redirect under Struts with Javascript?

2006-02-20 Thread Saul Qunming Yuan
Sorry, my bad, I didn't even think about that. Right, you don't need the 
eval here.


Saul

- Original Message - 
From: Dave Newton [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Sent: Monday, February 20, 2006 7:17 PM
Subject: Re: why my page can't redirect under Struts with Javascript?



red phoenix wrote:

I tried follows:
function goURL(tmp){
  document.forms[0].action=eval(/Log/log.do?action=First);
  document.forms[0].submit();
 }

and
function goURL(tmp){
  document.forms[0].action=eval(/log.do?action=First);
  document.forms[0].submit();
 }

My page also can't redirect!


Why are you eval-ing a string? Since /log.do?action=First is not a
valid JavaScript statement, this will fail.

Pay attention to JavaScript errors.

Dave



-
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: why my page can't redirect under Struts with Javascript?

2006-02-20 Thread Dave Newton
Martin Gainty wrote:
 If you are looking for a way for JavaScript to dynamically change
 targetting action based on Javascript code take a look at
 http://husted.com/struts/tips/002.html
Uh, no, I was answering the OP with regards to his hosed up JavaScript :)

Dave



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



Re: [HELP] i80n :(

2006-02-20 Thread Pham Anh Tuan

thank you L, but ... hiz, more details plz :( ...

- Original Message - 
From: Laurie Harper [EMAIL PROTECTED]

To: user@struts.apache.org
Sent: Tuesday, February 21, 2006 4:25 AM
Subject: Re: [HELP] i80n :(



Pham Anh Tuan wrote:

Hi all,

I got a problem, so I need all your help :(

i18n,

I want my Struts app to have default language is Vietnamese, but I 
couldn't :(


I have 3 files below:
+ mylanguage.properties --- Vietnamese file
+ mylanguage_ja.properties --- Japanese file
+ mylanguage_en.properties --- English file

I have a action which include these code:

.
Local myLocal = getLocale(request);

locale = new Locale(request.getParameter(language);

HttpSession session = request.getSession();
session.setAttribute(Globals.LOCALE_KEY, locale);


in struts-config.xml
message-resources parameter=properties.mylanguage/

but my webapp still use English language default :( ...

I want my webapp use Vietnamese language by default, how can I do that, 
help me :(


thanks in advance

bowlkhin


You can set the system-wide default locale with Locale.setDefault(). You 
would want to call that once during startup, probably. Alternatively, you 
can configure your execution environment appropriately so that Java starts 
up with the default locale already set to what you want.


L.


-
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: Value-ChangeEvent under Struts-Faces

2006-02-20 Thread Leila Carvalho
 Craig,
First of all, congratulations for your Struts-Faces library!!
This library is what I have been looking for..

be careful of one particular scenario.  Struts only creates one instance of
 an Action class for the entire application, so that is not a good place to
 put request-specific event handlers.


--great!!!
I´m newbie in Faces, so I´m dissecting struts-faces' very good examples 1
and 2.
I´m sure that all run well for actionEvents and there are some backing beans
for that.
Please, is there some sample code for Value-change Events in
Struts-Faces???
I would like saving time not doing my own tests...

By the way, are you writing a new application, or trying to adapt something
that already exists?

--My Struts application already exists. All I need at first is avoiding
JavaScript when
relating 2 modal comboboxes. Can I apply Value-change Events instead??

Thanks!!
--


Re: why my page can't redirect under Struts with Javascript?

2006-02-20 Thread red phoenix
I try follows:
function goURL(tmp){
  document.forms[0].submit();
 }

I debug the Javascript,when running the statement
document.forms[0].submit();

Javascript raise a error:
Microsoft JScript running error:object can't support this attribute or
method

Why?


On 2/21/06, Dave Newton [EMAIL PROTECTED] wrote:

 red phoenix wrote:
  I tried follows:
  function goURL(tmp){
document.forms[0].action=eval(/Log/log.do?action=First);
document.forms[0].submit();
   }
 
  and
  function goURL(tmp){
document.forms[0].action=eval(/log.do?action=First);
document.forms[0].submit();
   }
 
  My page also can't redirect!
 
 Why are you eval-ing a string? Since /log.do?action=First is not a
 valid JavaScript statement, this will fail.

 Pay attention to JavaScript errors.

 Dave



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




Re: Acessing TagHandlerPool for TagSupport

2006-02-20 Thread Steve Vanspall

ok thanks,

that will solve my problem

Steve

Craig McClanahan wrote:


On 2/20/06, Steve Vanspall [EMAIL PROTECTED] wrote:
 


Thanks will have a look,

yeah I figured reevaluation isn't the go.

as I said I know the action I want is already going to be configure din
the struts-config file, so basically I need to look it up, then create a
form for it.

I can fudge it by codig the HTML roughly as teh struts tage would do it,
if only I could look up struts-config from a TagSupport extension.
   




I should have been a bit more clear.  You *do* have access to the
configuration information that Struts read from the
struts-config.xmlfiles.  They are stored (if you only have one module)
under a servlet
context attribute named by symbolic constant Globals.MODULE_KEY (in a tag
handler you can call PageContext.getAttribute() to acquire it).

It's the create a JSP page dynamically and get it compiled part of the
problem that isn't going to work well.

Craig

 






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



RE: i18n with javascript validations

2006-02-20 Thread Kalra, Ashwani

Hi Laurie,
It will be too difficult to use mask with javascript validations. How
javascript will handle locales.
For eg in some countries decimal is represented by comma

/Ashwani

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Tuesday, February 21, 2006 2:53 AM
To: user@struts.apache.org
Subject: Re: i18n with javascript validations

Kalra, Ashwani wrote:
 Hi,
 My project is using javascript validations generated through struts
 validator. I want to do some currency validations based on the
 language/country. Is it possible?

Yes, it's possible, though Struts / Commons Validator don't include
currency validation rules. You can specify your validation rules using
'mask', if you can express them with regular expressions. Otherwise
you'll need to create your own validation rule(s) and add them to the
base set in validator-rules.xml.

L.


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


This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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



Re: Value-ChangeEvent under Struts-Faces

2006-02-20 Thread Craig McClanahan
On 2/20/06, Leila Carvalho [EMAIL PROTECTED] wrote:

 Craig,
 First of all, congratulations for your Struts-Faces library!!
 This library is what I have been looking for..

 be careful of one particular scenario.  Struts only creates one instance
 of
  an Action class for the entire application, so that is not a good place
 to
  put request-specific event handlers.


 --great!!!
 I´m newbie in Faces, so I´m dissecting struts-faces' very good examples 1
 and 2.
 I´m sure that all run well for actionEvents and there are some backing
 beans
 for that.
 Please, is there some sample code for Value-change Events in
 Struts-Faces???
 I would like saving time not doing my own tests...

 By the way, are you writing a new application, or trying to adapt
 something
 that already exists?

 --My Struts application already exists. All I need at first is avoiding
 JavaScript when
 relating 2 modal comboboxes. Can I apply Value-change Events instead??


Here is an outline of one way to accomplish this task -- it's not by any
means the only possible pattern.

I need to start with an assumption -- that the relationship between the two
combo boxes is specific to a particular user?  If so, that means the backing
bean we are talking about will naturally fit into session scope.  Next, I'll
make one more assumption ... the set of options in the second checkbox
should depend on the user's choice in the first box.  If I'm correct so far,
let's pretend the first combobox is the set of US states, and the second one
changes to be the set of cities appropriate to that state.  This is just to
make the illustration clearer.

Now, assume you have a backing bean called geography that is defined to be
a managed bean in session scope.  On this bean, you'll have two methods:

// Return selection items for *all* states
public SelectItem[] getStates() { return this.states; }

// Return selection items for cities in the specified state
public SelectItem[] getCities() { return this.cities; }

With a couple of instance variables (by the way, SelectItem is the
representation of the label and value of a particular option to show in a
dropdown).

// Initialize the states list to all the state abbreviations and names
private SelectItem[] states = new SelectItem[] {
  new SelectItem(AL, Alabama),
  new SelectItem(AK, Alaska),
  ...
}

// Initialize the cities list to a zero-length arary
private SelectItem[] cities = new SelectItem[0];

In addition, this bean might have a value change listener method like this:

// Respond to changes in which state is selected
public void stateChanged(ValueChangeEvent event) {
String newState = (String) event.getNewValue();
cities = ... calculate array of cities based on the value of
newState ...
}

Putting this together into one page, you would have your two combo boxes
declared something like this:

h:selectOneMenu id=state value=#{formBean.state}
  valueChangeListener=#{geography.stateChanged}
f:selectItems value=#{geography.states}/
/h:selectOneMenu

h:selectOneMenu id=city value=#{formBean.city}
f:selectItems value=#{geography.cities}/
/h:selectOneMenu

There are a couple of issues still to deal with your comment about doing
this kind of thing without Javascript but the details really depend on how
seriously that is actually to be taken.  Making this work with Javascript
disabled in the browser, for example, is possible ... but you have to be
ready to deal with the fact that you need the entire form submitted for the
value change event to be fired, since it (like all the other events that JSF
defines) happen on the *server*, not on the *client*.

It's also possible to look for combo box components that are more
sophisticated than the one defined by the standard ... perhaps even one that
uses AJAX techniques to change the city list on the fly, without requiring a
form submit.  But any component like this is going to depend on being able
to execute Javascript in the client.

Thanks!!
 --


Craig


Struts 1.0 and new versions

2006-02-20 Thread Rakesh.Bhat
Hi,

 

Struts 1.0 and 1.1

 

The new features added to Struts 1.1 are 

 

RequestProcessor class   

Method perform() replaced by execute() in Struts base Action Class


Changes to web.xml and struts-config.xml

Declarative exception handling

Dynamic ActionForms

Plug-ins

Multiple Application Modules

Nested Tags

The Struts Validator

Change to the ORO package

Change to Commons logging

Removal of Admin actions

Deprecation of the GenericDataSource

 

Struts 1.2 to 1.3

 

Opt-In Cancel Handling

 

In Struts 1.2 and prior, any time the magic token generated by the
Cancel tag is found in the request, validation for the ActionForm is
skipped. Accordingly, in Struts 1.2 and prior, any Action that relies on
validation should always observe the isCancelled method. 

 

In Struts Action 1.3, the Cancel token is only honored if the new
property cancellable is set for the Action Mapping. If the Cancel
token is present, but cancellable is not set, then an
InvalidCancelException is thrown. The InvalidCancelExeption may be
caught by a Declarative Exception Handler, like any other Exception.

 

Jars

 

I guess its obvious to say you need to replace the jars, but the one
people might forget is the new commons-validator.jar for version 1.1.3
of validator. 

 

Also if you want to start using the new validwhen validation rule, then
you will need to deploy the antlr.jar as well.

 

New URI

 

Struts 1.1 %@ taglib uri=http://jakarta.apache.org/struts/tags-html
prefix=html %  

 

Struts 1.2.x %@ taglib uri=http://struts.apache.org/tags-html
prefix=html %

 

Specification Changes

 

The 1.3.x series of Struts Action Framework now has a minumum
requirement of the following specification versions: 

Java Servlet 2.3 and JavaServer Pages (JSP) 1.2 

Java 2 Standard Platform Edition (J2SE) 1.4

 

 

 

 

Kind regards,

 

Rakesh Bhat 



RE: i18n with javascript validations

2006-02-20 Thread Kalra, Ashwani

I got it. I think I can specify it for each formset which are based on
language and country.



-Original Message-
From: Kalra, Ashwani [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 21, 2006 10:44 AM
To: Struts Users Mailing List
Subject: RE: i18n with javascript validations


Hi Laurie,
It will be too difficult to use mask with javascript validations. How
javascript will handle locales.
For eg in some countries decimal is represented by comma

/Ashwani


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Tuesday, February 21, 2006 2:53 AM
To: user@struts.apache.org
Subject: Re: i18n with javascript validations

Kalra, Ashwani wrote:
 Hi,
 My project is using javascript validations generated through struts

 validator. I want to do some currency validations based on the

 language/country. Is it possible?

Yes, it's possible, though Struts / Commons Validator don't include
currency validation rules. You can specify your validation rules using
'mask', if you can express them with regular expressions. Otherwise
you'll need to create your own validation rule(s) and add them to the
base set in validator-rules.xml.

L.


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


This message contains information that may be privileged or confidential
and is the property of the Capgemini Group. It is intended only for the
person to whom it is addressed. If you are not the intended recipient,
you are not authorized to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all
copies of this message.


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


This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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



Resource bundle from Database

2006-02-20 Thread JEEVANATHAM P. /BPCRP/INFOTECH/VASHI
Hi all,

 

In my application, all labels, headers and titles and messages are comes
from database.

For this issue I have created a class that return messages, but it issues
performance way.

Is there any way to set messages in Resource bundle in dynamic / at
run-time?

 

Please let me know.

 

Have a nice day.

 

Regards,

JEEVANANTHAM PARAMASAMY, 



 

-- 
Greetings!

 


ICICI Infotech is now 3i Infotech.


The e-mail addresses of the company's employees have been changed to existing 
name@3i-infotech.com. You are requested to take note of this new e-mail ID and 
make use of the same in future

 
This e-mail message may contain confidential, proprietary or legally 
privileged information. It should not be used by anyone who is not the original 
intended recipient. If you have erroneously received this message, please 
delete it immediately and notify the sender. The recipient acknowledges that 3i 
Infotech or its subsidiaries and associated companies, (collectively 3i 
Infotech), are unable to exercise control or ensure or guarantee the integrity 
of/over the contents of the information contained in e-mail transmissions and 
further acknowledges that any views expressed in this message are those of the 
individual sender and no binding nature of the message shall be implied or 
assumed unless the sender does so expressly with due authority of 3i Infotech. 
Before opening any attachments please check them for viruses and defects.



RE: Resource bundle from Database

2006-02-20 Thread abdurrahman sahin
hi;
i strongly suggest you application level caching.
at startup; query all messages and other things that is immutable among user
sessions, then put all that things in a TreeMap/HashTable, per user session
you can query your application level TreeMap/HashTable class.

-Original Message-
From: JEEVANATHAM P. /BPCRP/INFOTECH/VASHI
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 21, 2006 8:31 AM
To: 'Struts Users Mailing List'
Subject: Resource bundle from Database
Importance: High


Hi all,



In my application, all labels, headers and titles and messages are comes
from database.

For this issue I have created a class that return messages, but it issues
performance way.

Is there any way to set messages in Resource bundle in dynamic / at
run-time?



Please let me know.



Have a nice day.



Regards,

JEEVANANTHAM PARAMASAMY,





--
Greetings!




ICICI Infotech is now 3i Infotech.


The e-mail addresses of the company's employees have been changed to
existing name@3i-infotech.com. You are requested to take note of this new
e-mail ID and make use of the same in future


This e-mail message may contain confidential, proprietary or legally
privileged information. It should not be used by anyone who is not the
original intended recipient. If you have erroneously received this message,
please delete it immediately and notify the sender. The recipient
acknowledges that 3i Infotech or its subsidiaries and associated companies,
(collectively 3i Infotech), are unable to exercise control or ensure or
guarantee the integrity of/over the contents of the information contained in
e-mail transmissions and further acknowledges that any views expressed in
this message are those of the individual sender and no binding nature of the
message shall be implied or assumed unless the sender does so expressly with
due authority of 3i Infotech. Before opening any attachments please check
them for viruses and defects.



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