Re: Getting context properties

2007-11-30 Thread Pablo Vázquez Blázquez

Thank you very much for your help!

I want to know it as the following:

If the user types in the url box: http://localhost:8080/app/action.do; 
and is not logged-in and action.do requires authentication, then I 
redirect him/her to an authentication form. Well, I do this with an 
interceptor, in which I capture the URL he/she has typed. So, when 
he/she passes the authentication fase, I redirect him/her to the desired 
url (in this case, action.do). Maybe I don´t need to know my 
extension, but I have thought it in that way.


Regards.


Gary Affonso escribió:

Dave Newton wrote:

Why do you want it?


That's a good question for Dave to be asking.

Even though you now know how to get it, are you really sure you want 
it?  The framework shields you from this data for a reason. :-)


- Gary

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




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



2.x GA estimate

2007-11-30 Thread Marcos Mendonça
Hello all

Is there an ETA for the release of a 2.1 GA version?

Thanks.

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



portlet css

2007-11-30 Thread Brian Relph
Does anyone have experience using css in portlets, and more specifically,
using css to set background images?  I am unable to use css for images since
the url are not portlet urls ...


Re: zoning out on some basic LazyDynaMap usage for a text field property?

2007-11-30 Thread Rick Reumann
On Nov 30, 2007 8:57 PM, Vinny [EMAIL PROTECTED] wrote:

 Hmm,
 I've never tried using lazy inside a standard ActionForm, the ones that I
 have work inside of
 a DynaValidatorActionFom (say that 3 times fast). Don't feel like writing
 a
 reset method?


Unless I'm missing something, the reset method would have to know how deep
to the initialization (which it won't know for a request scoped form that
can be nested to N levels.) Typically I'd take the approach shown about half
way down here: http://wiki.apache.org/struts/StrutsCatalogLazyList  where
I'd decorate using ListUtils in my reset method, but that only works when
you know how deep you need to initialize things.

Maybe I'll just try out a DynaActionForm.. still using a DynaBean inside of
a regular ActionForm I'd think should work (assuming you populate all your
nested items with LazyDyna beans. At least I think it should. I'll have to
mess around more with it.

I just want to be able to populate a nested set of maps to any level that
will work with request scope. At this point, I don't even care about using
standard pojos in my maps so dynabeans will be fine if it makes things
easier.


Re: zoning out on some basic LazyDynaMap usage for a text field property?

2007-11-30 Thread Vinny
Hmm,
I've never tried using lazy inside a standard ActionForm, the ones that I
have work inside of
a DynaValidatorActionFom (say that 3 times fast). Don't feel like writing a
reset method? you are
getting old Rick.

On Nov 30, 2007 7:17 PM, Rick Reumann [EMAIL PROTECTED] wrote:

 I swore I used to be able to do this stuff... maybe it's Friday thing, but
 regardless I'm blanking on out on what I'm doing wrong with this...

 I have an ActionForm that has one property right now:
   private LazyDynaBean dynaBean = new LazyDynaMap();

 My goal is to be able to populate this DynaBean with any level of nested
 DynaMaps and have everything populate correctly using Request scope on my
 form. (Not shown here but an 'answer' as a map value can end up being
 another Map and so on - nested to any level.)

 I'm currently having trouble defining the property name correctly. Here is
 a
 summary

 Not working:
 html:text name=myForm property=dynaBean.map
 (question_1).map(answerString)/

 Error:
 Invalid argument looking up property:
 dynaBean.map(question_1).map(answerString)
 of bean: myForm

 Working fine:
 c:out value=${myForm.dynaBean.map['question_1'].map['answerString']}/


 I'm populating in my Action before the form as:

 //create some questions
 MyForm mForm = (MyForm)form;
 LazyDynaBean dynaBean1 = mForm.getDynaBean();
 Map map1 = dynaBean1.getMap();

 LazyDynaMap questionAnswer = new LazyDynaMap();
 questionAnswer.set(questionText, Pet's name:);
 questionAnswer.set(answerString, Fido);
 map1.put(question_1, questionAnswer);


 I've tried a few different ways defining the text field property all with
 no
 luck at the moment. What am I doing wrong? (I know I could also use a
 DynaActionForm defined in my struts-config, but this should work as well
 with a DynaBean in a standard ActionForm. I typically don't like using
 DynaActionForm because I end up usually having to create a reset method
 anyway so once I do that I might as well code the properties in that
 concrete class.)

 --
 Rick




-- 
The Street Programmer http://streetprogrammer.com


zoning out on some basic LazyDynaMap usage for a text field property?

2007-11-30 Thread Rick Reumann
I swore I used to be able to do this stuff... maybe it's Friday thing, but
regardless I'm blanking on out on what I'm doing wrong with this...

I have an ActionForm that has one property right now:
   private LazyDynaBean dynaBean = new LazyDynaMap();

My goal is to be able to populate this DynaBean with any level of nested
DynaMaps and have everything populate correctly using Request scope on my
form. (Not shown here but an 'answer' as a map value can end up being
another Map and so on - nested to any level.)

I'm currently having trouble defining the property name correctly. Here is a
summary

Not working:
html:text name=myForm property=dynaBean.map
(question_1).map(answerString)/

Error:
Invalid argument looking up property:
dynaBean.map(question_1).map(answerString)
of bean: myForm

Working fine:
c:out value=${myForm.dynaBean.map['question_1'].map['answerString']}/


I'm populating in my Action before the form as:

//create some questions
MyForm mForm = (MyForm)form;
LazyDynaBean dynaBean1 = mForm.getDynaBean();
Map map1 = dynaBean1.getMap();

LazyDynaMap questionAnswer = new LazyDynaMap();
questionAnswer.set(questionText, Pet's name:);
questionAnswer.set(answerString, Fido);
map1.put(question_1, questionAnswer);


I've tried a few different ways defining the text field property all with no
luck at the moment. What am I doing wrong? (I know I could also use a
DynaActionForm defined in my struts-config, but this should work as well
with a DynaBean in a standard ActionForm. I typically don't like using
DynaActionForm because I end up usually having to create a reset method
anyway so once I do that I might as well code the properties in that
concrete class.)

-- 
Rick


Exception raised while loading image in to application

2007-11-30 Thread vijay vijay
 i am loading the image from database(in  data base i used colom type
longraw)
in to my application...

in this image is loaded application sucessfully but i got this exception in
applet viewer.i don't understand why i am getting like this.



un.plugin.cache.DownloadException
 at sun.plugin.cache.CachedJarLoader.load(CachedJarLoader.java:178)
 at sun.plugin.cache.JarCache.get(JarCache.java:204)
 at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(
CachedJarURLConnection.java:121)
 at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(
CachedJarURLConnection.java:105)
 at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:858)
 at sun.misc.URLClassPath$JarLoader.init(URLClassPath.java:813)
 at sun.misc.URLClassPath$3.rtJarLoader(URLClassPath.java:588)
 at sun.misc.URLClassPath$3.run(URLClassPath.java:519)
 at java.security.AccessController.doPrivileged(AccessController.java:242)
 at sun.misc.URLClassPath.getLoader(URLClassPath.java:508)
 at sun.misc.URLClassPath.getLoader(URLClassPath.java:473)
 at sun.misc.URLClassPath.getResource(URLClassPath.java:322)
 at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:959)
 at java.security.AccessController.doPrivileged(AccessController.java:275)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:487)
 at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:179)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:601)
 at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:151)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:563)
 at java.lang.J9VMInternals.verifyImpl(Native Method)
 at java.lang.J9VMInternals.verify(J9VMInternals.java:59)
 at java.lang.J9VMInternals.initialize(J9VMInternals.java:120)
 at java.lang.Class.newInstanceImpl(Native Method)
 at java.lang.Class.newInstance(Class.java:1243)
 at sun.applet.AppletPanel.createApplet(AppletPanel.java:776)
 at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1765)
 at sun.applet.AppletPanel.runLoader(AppletPanel.java:705)
 at sun.applet.AppletPanel.run(AppletPanel.java:368)
 at java.lang.Thread.run(Thread.java:799)
sun.plugin.cache.DownloadException
 at sun.plugin.cache.CachedJarLoader.load(CachedJarLoader.java:178)
 at sun.plugin.cache.JarCache.get(JarCache.java:204)
 at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(
CachedJarURLConnection.java:121)
 at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(
CachedJarURLConnection.java:105)
 at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:858)
 at sun.misc.URLClassPath$JarLoader.init(URLClassPath.java:813)
 at sun.misc.URLClassPath$3.rtJarLoader(URLClassPath.java:588)
 at sun.misc.URLClassPath$3.run(URLClassPath.java:519)
 at java.security.AccessController.doPrivileged(AccessController.java:242)
 at sun.misc.URLClassPath.getLoader(URLClassPath.java:508)
 at sun.misc.URLClassPath.getLoader(URLClassPath.java:473)
 at sun.misc.URLClassPath.getResource(URLClassPath.java:322)
 at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:959)
 at java.security.AccessController.doPrivileged(AccessController.java:275)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:487)
 at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:179)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:601)
 at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:151)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:563)
 at java.lang.J9VMInternals.verifyImpl(Native Method)
 at java.lang.J9VMInternals.verify(J9VMInternals.java:59)
 at java.lang.J9VMInternals.initialize(J9VMInternals.java:120)
 at java.lang.Class.newInstanceImpl(Native Method)
 at java.lang.Class.newInstance(Class.java:1243)
 at sun.applet.AppletPanel.createApplet(AppletPanel.java:776)
 at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1765)
 at sun.applet.AppletPanel.runLoader(AppletPanel.java:705)
 at sun.applet.AppletPanel.run(AppletPanel.java:368)
 at java.lang.Thread.run(Thread.java:799)
sun.plugin.cache.DownloadException
 at sun.plugin.cache.CachedJarLoader.load(CachedJarLoader.java:178)
 at sun.plugin.cache.JarCache.get(JarCache.java:204)
 at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(
CachedJarURLConnection.java:121)
 at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(
CachedJarURLConnection.java:105)
 at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:858)
 at sun.misc.URLClassPath$JarLoader.init(URLClassPath.java:813)
 at sun.misc.URLClassPath$3.rtJarLoader(URLClassPath.java:588)
 at sun.misc.URLClassPath$3.run(URLClassPath.java:519)
 at java.security.AccessController.doPrivileged(AccessController.java:242)
 at sun.misc.URLClassPath.getLoader(URLClassPath.java:508)
 at sun.misc.URLClassPath.getLoader(URLClassPath.java:473)
 at sun.misc.URLClassPath.getResource(URLClassPath.java:322)
 at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:959)
 at 

Re: Struts 2.0.11 localization issue

2007-11-30 Thread Ted Husted
The request_local functionality is part of the Interceptor stack, and
so the request has to go through as a Struts Action. An ordinary JSP
isn't processed as a Action, any more than a HTML page would be.

Otherwise, once the locale is changed, it should stick as part of the
session. The two things that could defeat the locale would be losing
the session, or resetting it with another link. The MailReader example
is localized, so the first question would be whether that example
works on the target system or not.

-- HTH, Ted
http://www.husted.com/ted/blog/


On Nov 30, 2007 9:42 AM, Andrew Stepanenko [EMAIL PROTECTED] wrote:
 I have something similar like this. If I append request_locale=uk to a
 JSP there is no effect, and still the default locale from
 struts.properties is displayed. If I append request_locale=uk to an
 .action link, than the locale is changed, but only for this current
 HTTP request. Next clicks on links cause the default locale to be
 displayed again.

 Did anyone experience anything similar to the above?

 Thanks,
 Andrew


 On Nov 30, 2007 4:34 PM, giglian [EMAIL PROTECTED] wrote:
 
  my web app display message in jsp page ( using s:text name=.../)
  always in one language.
  I have two localization files (package.properties and package_it.properties
  in the same folder), and I always get the messages in Italian language even
  if the client language is English (en-us).
  Rather in my production environment (O.S. Windows Server 2003 English), the
  same web app always displaying the same messages in English language even if
  the client language (IE 6) is Italian (it).
  I tried to do everythings but with any result.
  Please help me to solve this issue.
  Thanks in advance for your time.
 
  Andrea

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



RE: [S2] Checkboxes

2007-11-30 Thread Dave Newton
A single checkbox, AFAIK, only expects to check a
single value, not an array or collection.

I would consider using a modified version of the
checkboxlist tag if it's just a matter of the rendered
HTML you're having an issue with.

d.

--- Hoying, Ken [EMAIL PROTECTED] wrote:

 Thank you for the response.
 
 I had looked at the example, but it really appears
 to only push the
 checkbox results to the action.  I am not sure that
 it would repopulate
 the checkbox with the values.
 
 I do not believe that checkbox list is going to work
 for me as it does
 not give me control on where to put the checkboxes. 
 I need one in each
 row.
 
 It appears that my understanding of how the checkbox
 works is not
 correct.
 
 I am expecting that the checkbox control will call
 the
 getSelectedContracts() method and see if any of
 these values in the
 array it returns matches the value specified in the
 fieldValue attribute
 specified in the checkbox tag.  If there is a match
 then check the box,
 if not don't check it.  However, all of my
 checkboxes are always being
 selected no matter what.
 
 I am also expecting that when submitting the form,
 setSelectedContracts() will be called with an array
 of the values that
 were selected.  This does appear to be working with
 one caveat. If
 nothing is selected then I get the error: Invalid
 field value for field
 selectedContracts.
 
 This obviously does not work the way I thought and I
 was hoping someone
 could maybe explain how it does work as I am really
 struggling on
 gaining an understanding of this tag and its usage.
 
 Thanks in advance,
 Ken
 
 -Original Message-
 From: Martin Gainty [mailto:[EMAIL PROTECTED] 
 Sent: Friday, November 30, 2007 11:09 AM
 To: Struts Users Mailing List
 Subject: Re: [S2] Checkboxes
 
 Hi Ken-
 
 struts.xml has this definition of EmployeeAction
 where results populate
 editEmployee.jsp
 action name=delete

class=org.apache.struts2.showcase.action.EmployeeAction
 method=delete
 result
 name=error/empmanager/editEmployee.jsp/result
 result

type=redirectedit-${currentEmployee.empId}.action/result
 /action
 
 looking at the results jsp
 /empmanager/editEmployee.jsp has a checkbox defined
 as s:checkbox
 fieldValue=true label=Married
 name=currentEmployee.married/
 
 The EmployeeAction is defined as
 package org.apache.struts2.showcase.action;
 public class EmployeeAction extends
 AbstractCRUDAction implements
 Preparable {  private Employee currentEmployee;
 
 whereas Employee is defined as
 package org.apache.struts2.showcase.model;
 public class Employee implements IdEntity {
 private boolean married; //checkbox
 
 so the individual checkbox works fine for setting
 booleans
 http://struts.apache.org/2.0.11/docs/checkbox.html
 
 For handling a list of checkboxes you may want to
 implement with
 checkboxlist?

http://struts.apache.org/2.0.11/docs/checkboxlist.html
 
 M--
 - Original Message -
 From: Hoying, Ken [EMAIL PROTECTED]
 To: user@struts.apache.org
 Sent: Friday, November 30, 2007 8:45 AM
 Subject: [S2] Checkboxes
 
 
 I am having a difficult time getting checkboxes to
 work in the following
 scenario and am not sure what I am doing wrong.  Any
 help or guidance
 would be greatly appreciated.
 
 I have table which displays several rows.  In the
 first column of each
 row, I have a check box to select that row.  I am
 keeping track of user
 selections so when they return to the page, the
 checkboxes are
 prepopulated with their previous selections.
 
 
 My Action contains the following:
 
 public Long[] getSelectedContracts()
 {
 return setSelectedContracts.toArray(new Long[0]); }
 // end
 getSelectedContracts
 
 /**
 * This setter takes the provided String[] of
 selected contract ids.
 */
 public void setSelectedContracts(Long[]
 palngSelectedContracts)
   {
 

setSelectedContracts.addAll(Arrays.asList(palngSelectedContracts));
 } // end setSelectedContracts
 
 My JSP contains the following:
 
 s:checkbox name=selectedContracts
 fieldValue=${contract.npcContractId}/
 
 
 
 
 
 
 -
 ***Note:The information contained in this message
 may be privileged and
 confidential and protected from disclosure. If the
 reader of this
 message is not the intended recipient, or an
 employee or agent
 responsible for delivering this message to the
 intended recipient, you
 are hereby notified that any dissemination,
 distribution or copying of
 this communication is strictly prohibited. If you
 have received this
 communication in error, please notify the Sender
 immediately by replying
 to the message and deleting it from your computer.
 Thank you. Premier
 Inc.
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 -
 ***Note:The information contained in this message
 may be 

Re: portlet css

2007-11-30 Thread Randy Burgess
Thanks for the info but actually it wasn't me that was asking. Images work
fine for me in ALUI. In my implementation the imageserver is at
/imageserver/ and there are many directories underneath that, such as
/imageserver/publisher, etc. So I would have to say that my original
statement was correct, it is implementation specific. :-)

Regards,
Randy Burgess
Web Applications Developer
Nuvox Communications



 From: Martin Gainty [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List user@struts.apache.org
 Date: Fri, 30 Nov 2007 16:11:30 -0500
 To: Struts Users Mailing List user@struts.apache.org
 Subject: Re: portlet css
 
 Hi Randy
 http://edocs.bea.com/alui/devdoc/docs60/Customizing_the_Portal_UI/PlumtreeDe
 vDoc_Customizing_Images.htm
 to quote
 
 /ptimages/imageserver/plumtree/portal has 3 folders which you can use
 
   a.. Anything within a \public directory can be considered available for
 use.  A public component may change slightly throughout the release cycle of
 the related product, but it will always be there.
 
   b.. A \private directory contains implementation-specific components that
 should not be accessed by developers; the content within a \private
 directory can be changed or removed in a future release.
 
   c.. Any new content added for UI customization should be stored in a
 \custom folder at the same level as the \public and \private directories in
 the appropriate area to ensure that the files will not be modified by the
 installer in a future release. Adding custom images is explained next.
 
   Feel free for post offline as this is O/T to struts
 
   HTH/
   M--
 
 - Original Message -
 From: Randy Burgess [EMAIL PROTECTED]
 To: Struts Users Mailing List user@struts.apache.org
 Sent: Friday, November 30, 2007 12:38 PM
 Subject: Re: portlet css
 
 
 I think it is portal implementation specific. I'm using AquaLogic UI and
 it
 has an image server. I put the images there and then reference them using
 image server links. So suppose my portal is located at http://myportal.com
 then my image src look like
 http://myportal.com/imageserver/mydirectory/myimg.gif.
 
 Regards,
 Randy Burgess
 Web Applications Developer
 Nuvox Communications
 
 
 
 From: Brian Relph [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List user@struts.apache.org
 Date: Fri, 30 Nov 2007 11:25:43 -0600
 To: Struts Users Mailing List user@struts.apache.org
 Subject: portlet css
 
 Does anyone have experience using css in portlets, and more
 specifically,
 using css to set background images?  I am unable to use css for images
 since
 the url are not portlet urls ...
 
 
 
 This email and any attachments (Message) may contain legally privileged
 and/or confidential information.  If you are not the addressee, or if this
 Message has been addressed to you in error, you are not authorized to read,
 copy, or distribute it, and we ask that you please delete it (including all
 copies) and notify the sender by return email.  Delivery of this Message to
 any person other than the intended recipient(s) shall not be deemed a waiver
 of confidentiality and/or a privilege.
 
 -
 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]
 



This email and any attachments (Message) may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

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



Re: portlet css

2007-11-30 Thread Martin Gainty
Hi Randy
http://edocs.bea.com/alui/devdoc/docs60/Customizing_the_Portal_UI/PlumtreeDe
vDoc_Customizing_Images.htm
to quote

/ptimages/imageserver/plumtree/portal has 3 folders which you can use

  a.. Anything within a \public directory can be considered available for
use.  A public component may change slightly throughout the release cycle of
the related product, but it will always be there.

  b.. A \private directory contains implementation-specific components that
should not be accessed by developers; the content within a \private
directory can be changed or removed in a future release.

  c.. Any new content added for UI customization should be stored in a
\custom folder at the same level as the \public and \private directories in
the appropriate area to ensure that the files will not be modified by the
installer in a future release. Adding custom images is explained next.

  Feel free for post offline as this is O/T to struts

  HTH/
  M--

- Original Message -
From: Randy Burgess [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Friday, November 30, 2007 12:38 PM
Subject: Re: portlet css


 I think it is portal implementation specific. I'm using AquaLogic UI and
it
 has an image server. I put the images there and then reference them using
 image server links. So suppose my portal is located at http://myportal.com
 then my image src look like
 http://myportal.com/imageserver/mydirectory/myimg.gif.

 Regards,
 Randy Burgess
 Web Applications Developer
 Nuvox Communications



  From: Brian Relph [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List user@struts.apache.org
  Date: Fri, 30 Nov 2007 11:25:43 -0600
  To: Struts Users Mailing List user@struts.apache.org
  Subject: portlet css
 
  Does anyone have experience using css in portlets, and more
specifically,
  using css to set background images?  I am unable to use css for images
since
  the url are not portlet urls ...



 This email and any attachments (Message) may contain legally privileged
and/or confidential information.  If you are not the addressee, or if this
Message has been addressed to you in error, you are not authorized to read,
copy, or distribute it, and we ask that you please delete it (including all
copies) and notify the sender by return email.  Delivery of this Message to
any person other than the intended recipient(s) shall not be deemed a waiver
of confidentiality and/or a privilege.

 -
 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: 2.x GA estimate

2007-11-30 Thread Ted Husted
Much depends on feedback from the community. We distribute the builds
for wider testing, and if the feedback is positive, then we decide on
a quality grade.

It usually takes between four to six builds to reach a new GA. We've
cut one test build so far. Right now, there's a backlog of outstanding
patches to apply. With the holidays, it's hard to tell if anyone will
have much time to get to those.

I wish I could give you a better answer, but Struts is still an
all-volunteer project, and the time any of can devote to getting a
release out-the-door fluctuates.

 * http://struts.apache.org/helping.html#release_help
 * 
http://www.nabble.com/-S2--2.1.0-Test-Build-Available-tf4712874.html#a13471367

-Ted.

On Nov 30, 2007 11:27 AM, Marcos Mendonça [EMAIL PROTECTED] wrote:
 Hello all

 Is there an ETA for the release of a 2.1 GA version?

 Thanks.

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



Re: localization

2007-11-30 Thread mgainty
http://struts.apache.org/2.x/docs/localization.html

M--
- Original Message -
Wrom: VZCMHVIBGDADRZFSQHYUCDDJBLVLMHAALPTCXLYRWTQT
To: user@struts.apache.org
Sent: Friday, November 30, 2007 8:30 AM
Subject: localization



 my web app display message in jsp page ( using s:text name=.../)
 always in one language.
 I have two localization files (package.properties and
package_it.properties
 in the same folder), and I always get the messages in Italian language
even
 if the client language is English (en-us).
 Rather in my production environment (O.S. Windows Server 2003 English),
the
 same web app always displaying the same messages in English language even
if
 the client language (IE 6) is Italian (it).
 I tried to do everythings but with any result.
 Please help me to solve this issue.
 Thanks in advance for your time.

 Andrea
 --
 View this message in context:
http://www.nabble.com/localization-tf4909438.html#a14057085
 Sent from the Struts - User mailing list archive at Nabble.com.


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




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



Re: FW: Tiles (Struts 1.3) standalone not working

2007-11-30 Thread Antonio Petrelli
2007/11/30, Todd Prickett [EMAIL PROTECTED]:
 I'm trying to implement Tiles ( from Struts 1.3 ) into a web that is NOT 
 using Struts.
...
 Can anyone please point me in the correct direction?

Yes, Tiles 2:
http://tiles.apache.org/

Ciao
Antonio

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



RE: [S2] Checkboxes

2007-11-30 Thread Hoying, Ken
Thank you for the response.

I had looked at the example, but it really appears to only push the
checkbox results to the action.  I am not sure that it would repopulate
the checkbox with the values.

I do not believe that checkbox list is going to work for me as it does
not give me control on where to put the checkboxes.  I need one in each
row.

It appears that my understanding of how the checkbox works is not
correct.

I am expecting that the checkbox control will call the
getSelectedContracts() method and see if any of these values in the
array it returns matches the value specified in the fieldValue attribute
specified in the checkbox tag.  If there is a match then check the box,
if not don't check it.  However, all of my checkboxes are always being
selected no matter what.

I am also expecting that when submitting the form,
setSelectedContracts() will be called with an array of the values that
were selected.  This does appear to be working with one caveat. If
nothing is selected then I get the error: Invalid field value for field
selectedContracts.

This obviously does not work the way I thought and I was hoping someone
could maybe explain how it does work as I am really struggling on
gaining an understanding of this tag and its usage.

Thanks in advance,
Ken

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 30, 2007 11:09 AM
To: Struts Users Mailing List
Subject: Re: [S2] Checkboxes

Hi Ken-

struts.xml has this definition of EmployeeAction where results populate
editEmployee.jsp
action name=delete
class=org.apache.struts2.showcase.action.EmployeeAction
method=delete
result name=error/empmanager/editEmployee.jsp/result
result
type=redirectedit-${currentEmployee.empId}.action/result
/action

looking at the results jsp
/empmanager/editEmployee.jsp has a checkbox defined as s:checkbox
fieldValue=true label=Married
name=currentEmployee.married/

The EmployeeAction is defined as
package org.apache.struts2.showcase.action;
public class EmployeeAction extends AbstractCRUDAction implements
Preparable {  private Employee currentEmployee;

whereas Employee is defined as
package org.apache.struts2.showcase.model;
public class Employee implements IdEntity {
private boolean married; //checkbox

so the individual checkbox works fine for setting booleans
http://struts.apache.org/2.0.11/docs/checkbox.html

For handling a list of checkboxes you may want to implement with
checkboxlist?
http://struts.apache.org/2.0.11/docs/checkboxlist.html

M--
- Original Message -
From: Hoying, Ken [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Friday, November 30, 2007 8:45 AM
Subject: [S2] Checkboxes


I am having a difficult time getting checkboxes to work in the following
scenario and am not sure what I am doing wrong.  Any help or guidance
would be greatly appreciated.

I have table which displays several rows.  In the first column of each
row, I have a check box to select that row.  I am keeping track of user
selections so when they return to the page, the checkboxes are
prepopulated with their previous selections.


My Action contains the following:

public Long[] getSelectedContracts()
{
return setSelectedContracts.toArray(new Long[0]); } // end
getSelectedContracts

/**
* This setter takes the provided String[] of selected contract ids.
*/
public void setSelectedContracts(Long[] palngSelectedContracts)
  {

setSelectedContracts.addAll(Arrays.asList(palngSelectedContracts));
} // end setSelectedContracts

My JSP contains the following:

s:checkbox name=selectedContracts
fieldValue=${contract.npcContractId}/






-
***Note:The information contained in this message may be privileged and
confidential and protected from disclosure. If the reader of this
message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, you
are hereby notified that any dissemination, distribution or copying of
this communication is strictly prohibited. If you have received this
communication in error, please notify the Sender immediately by replying
to the message and deleting it from your computer. Thank you. Premier
Inc.


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


-
***Note:The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader of
this message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify the Sender
immediately by replying to the message and deleting it from 

Re: portlet css

2007-11-30 Thread Nils-Helge Garli Hegvik
Which portlet server are you running? Most portlet containers don't
encode resource urls in a specific manner. I have not tried, but I
guess you can dynamically generate the css using a JSP or a servlet,
or embed the styles directly in your JSP.

Nils-H

On Nov 30, 2007 6:25 PM, Brian Relph [EMAIL PROTECTED] wrote:
 Does anyone have experience using css in portlets, and more specifically,
 using css to set background images?  I am unable to use css for images since
 the url are not portlet urls ...


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



Re: [S2] Checkboxes

2007-11-30 Thread Martin Gainty
Hi Ken-

struts.xml has this definition of EmployeeAction where results populate
editEmployee.jsp
action name=delete
class=org.apache.struts2.showcase.action.EmployeeAction method=delete
result name=error/empmanager/editEmployee.jsp/result
result
type=redirectedit-${currentEmployee.empId}.action/result
/action

looking at the results jsp
/empmanager/editEmployee.jsp has a checkbox defined as
s:checkbox fieldValue=true label=Married
name=currentEmployee.married/

The EmployeeAction is defined as
package org.apache.struts2.showcase.action;
public class EmployeeAction extends AbstractCRUDAction implements Preparable
{
 private Employee currentEmployee;

whereas Employee is defined as
package org.apache.struts2.showcase.model;
public class Employee implements IdEntity {
private boolean married; //checkbox

so the individual checkbox works fine for setting booleans
http://struts.apache.org/2.0.11/docs/checkbox.html

For handling a list of checkboxes you may want to implement with
checkboxlist?
http://struts.apache.org/2.0.11/docs/checkboxlist.html

M--
- Original Message -
From: Hoying, Ken [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Friday, November 30, 2007 8:45 AM
Subject: [S2] Checkboxes


I am having a difficult time getting checkboxes to work in the following
scenario and am not sure what I am doing wrong.  Any help or guidance
would be greatly appreciated.

I have table which displays several rows.  In the first column of each
row, I have a check box to select that row.  I am keeping track of user
selections so when they return to the page, the checkboxes are
prepopulated with their previous selections.


My Action contains the following:

public Long[] getSelectedContracts()
{
return setSelectedContracts.toArray(new Long[0]);
} // end getSelectedContracts

/**
* This setter takes the provided String[] of selected contract
ids.
*/
public void setSelectedContracts(Long[] palngSelectedContracts)
  {

setSelectedContracts.addAll(Arrays.asList(palngSelectedContracts));
} // end setSelectedContracts

My JSP contains the following:

s:checkbox name=selectedContracts
fieldValue=${contract.npcContractId}/






-
***Note:The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader of
this message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify the Sender
immediately by replying to the message and deleting it from your
computer. Thank you. Premier Inc.


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



FW: Tiles (Struts 1.3) standalone not working

2007-11-30 Thread Todd Prickett





Hi all,
I'm trying to implement Tiles ( from Struts 1.3 ) into a web that is NOT using 
Struts.  I've found and followed instruction on doing this and the docs I've 
found don't seem to work.  The latest docs I've been able to find to do this, 
BTW, are for 1.1.
 
The problem I'm having is that tiles isn't finding my tiles-defs.xml file.  At 
least that is what I assume this error means:
 
javax.servlet.jsp.JspException: Can't get definitions factory from context. at 
org.apache.struts.tiles.taglib.InsertTag.processDefinitionName(Ljava.lang.String;)Lorg.apache.struts.tiles.taglib.InsertTag$TagHandler;(Unknown
 Source) at 
org.apache.struts.tiles.taglib.InsertTag.createTagHandler()Lorg.apache.struts.tiles.taglib.InsertTag$TagHandler;(Unknown
 Source) at org.apache.struts.tiles.taglib.InsertTag.doStartTag()I(Unknown 
Source)
 
How do I configure my app to see the tiles-defs.xml?  I've tried each of the 
following entries (the one currently uncommented and the one that is currently 
commented) in my web.xml file:
 
?xml version=1.0 encoding=UTF-8?
 
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 
2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;web-app
 
context-paramparam-name  
org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG
/param-nameparam-value  
/WEB-INF/tiles-defs.xml,/org/apache/tiles/classpath-defs.xml
/param-value/context-param
 
!-- Uncommented and tried - did not work - TilesServlet doesn't exist in 
any of the Struts jars --!-- servletservlet-nameTiles 
Servlet/servlet-name
servlet-classorg.apache.struts.tiles.TilesServlet/servlet-class
init-paramparam-namedefinitions-config/param-name
param-value/WEB-INF/tiles-defs.xml/param-value/init-param
init-paramparam-namedefinitions-parser-validate/param-name
param-valuetrue/param-value/init-param
load-on-startup2/load-on-startup/servlet --
 
/web-app 
 
Note:  Using the servlet definition ( Tiles Servlet ) failed because 
TilesServlet doesn't seem to be exist since Struts 1.1.
 
Can anyone please point me in the correct direction?  TIA
_
Connect and share in new ways with Windows Live.
http://www.windowslive.com/connect.html?ocid=TXT_TAGLM_Wave2_newways_112007

Re: JSP EL on struts2 tags

2007-11-30 Thread Ing. Andrea Vettori

mi dispiace ma non ho mai usato le funzioni di localizzazione.

Consiglio pero' di controllare i linguaggi consentiti dal browser.  
Probabilmente viene usato il primo (se ce n'e' piu' di uno) e forse il  
default per il primo e' l'inglese.



Il giorno 30/nov/07, alle ore 16:47, giglian ha scritto:



vedo che stai utilizzando Struts 2.
io ho un problema con la localization.
praticamente pur avendo due files di properties (package.properties
(inglese) e package_it.properties (italiano)) le pagine jsp (dove  
utilizzo

il tag s:text name=../ ) mi compaiono sempre nella lingua del
sistema operativo anzichè nella lingua del client (IE 6).
ti comunico il mio recapito telefonico, eventualmente ci possiamo  
sentire.

saluti

Andrea Gigliotti
(tel. 0583 700275)


Andrea Vettori wrote:


Hi,

It's long time I was away from this list.

I've found with big surprise that JSP EL is not available in JSP tags
anymore. I've looked at the release notes and found it was because of
a security problem similar to one I've discovered some time ago.

What I haven't understand is :

If in the JSP page I use ONLY page variables into EL (that is don't
use request variables) do the problem still exist ?

Thank you

--
Ing. Andrea Vettori
Consulente per l'Information Technology



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





--
View this message in context: 
http://www.nabble.com/JSP-EL-on-struts2-tags-tf4897752.html#a14074290
Sent from the Struts - User mailing list archive at Nabble.com.


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



--
Ing. Andrea Vettori
Consulente per l'Information Technology



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



Re: JSP EL on struts2 tags

2007-11-30 Thread giglian

vedo che stai utilizzando Struts 2.
io ho un problema con la localization.
praticamente pur avendo due files di properties (package.properties
(inglese) e package_it.properties (italiano)) le pagine jsp (dove utilizzo
il tag s:text name=../ ) mi compaiono sempre nella lingua del
sistema operativo anzichè nella lingua del client (IE 6).
ti comunico il mio recapito telefonico, eventualmente ci possiamo sentire.
saluti

Andrea Gigliotti
(tel. 0583 700275)


Andrea Vettori wrote:
 
 Hi,
 
 It's long time I was away from this list.
 
 I've found with big surprise that JSP EL is not available in JSP tags  
 anymore. I've looked at the release notes and found it was because of  
 a security problem similar to one I've discovered some time ago.
 
 What I haven't understand is :
 
 If in the JSP page I use ONLY page variables into EL (that is don't  
 use request variables) do the problem still exist ?
 
 Thank you
 
 --
 Ing. Andrea Vettori
 Consulente per l'Information Technology
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/JSP-EL-on-struts2-tags-tf4897752.html#a14074290
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Configuring Struts to use UTF-8 character encoding

2007-11-30 Thread Adam Gordon

I didn't know that page existed though it's essentially what I wound up doing.  
My only concern now is that it affects our entire webapp and while QA was going 
to do a full regression anyway, I'm wondering what potential problems are now 
lurking in the deep, dark corners of our web forms...

Thanks for the link.

--adam

Ted Husted wrote:


On Nov 28, 2007 10:53 AM, Adam Gordon [EMAIL PROTECTED] wrote:
  

What about the use of a filter to set the character encoding?  Is this
the only way to go for Struts?



I'd say so. It might be possible to add something to the
ActionServlet, but the solution wouldn't be any less heavy handed
than using a filter. This sort of thing is why filters were invented
:)

There's a page on the Tomcat wiki that talks about setting up a UTF
filter, if you haven't seen it.

 * http://wiki.apache.org/tomcat/Tomcat/UTF-8

-Ted.

-
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: Get the list of all action names defined in struts.xml

2007-11-30 Thread Gary Affonso

George Dadulescu wrote:

Hi.
Is there any possibility to get the list of all the action names defined in
struts.xml ?


It's in the RunTimeConfiguration.  Something like...


RuntimeConfiguration runtimeConfiguration = 
ConfigurationManager.getConfiguration().getRuntimeConfiguration();


ActionConfig actionConfig = 
runtimeConfiguration.getActionConfig(, 
actionInvocation.getInvocationContext().getName());



The above is a copy-and-paste from a WebWork app, might need some 
tweaking for S2.  But it should get you pointed in the right direction.


- Gary

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



Re: [struts2] Prevent dojo scripts from loading

2007-11-30 Thread Dave Newton
Don't include them? They come from the s:head/
tag.

d.

--- Marcos Mendonça [EMAIL PROTECTED] wrote:

 Hi
 
 Is there a way to keep dojo scripts from loading on
 a jsp?
 
 I have some pages where this scripts are not used,
 so for performance
 reasons I'd like to stop them from beeing loaded by
 the browser.
 
 Thanks.
 

-
 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: 2.x GA estimate

2007-11-30 Thread Andrea Rizzini
Not that i know, but if you check In JIRA the 2.1 version has less that
20 bus report still open.


Marcos Mendonça wrote:
 Hello all

 Is there an ETA for the release of a 2.1 GA version?

 Thanks.

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



Ajax effective with 2.1

2007-11-30 Thread stanlick
What is the disposition of dojo going forward with S2?  I thought I heard a
rumor awhile back where Ajax support was being moved into the plug-in
architecture.  We have a discussion in our shop concerning a few different
libraries and I would like to offer meaningful advice.

Peace,

Scott
[EMAIL PROTECTED]


[struts2] Prevent dojo scripts from loading

2007-11-30 Thread Marcos Mendonça
Hi

Is there a way to keep dojo scripts from loading on a jsp?

I have some pages where this scripts are not used, so for performance
reasons I'd like to stop them from beeing loaded by the browser.

Thanks.

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



executing twice of action execute method

2007-11-30 Thread giglian

My web app have an action to delete one row in a MS Access table (access
though sun.jdbc.odbc.JdbcOdbcDriver).
The method return the number of rows deleted.
The first time it's executed, it return the right number of deleted rows: 1.
The action after reading the method result, it return SUCCESS, but rather to
call the result page (jsp page), the controller, with no reason, call once
again, the same method.
This time, of course, it return 0 because the row is already deleted and the
action return ERROR.
Finally, even if the delete operation execute succesfully, the web app
display the error message.
I have other action with methods that insert and update rows and they work
fine!
All methods have the same program logic except for the sql statement
(INSERT, UPDATE, DELETE, ...).
Really I don't know what the reason can be.
Please help me.
Thanks in advance

Andrea
-- 
View this message in context: 
http://www.nabble.com/executing-twice-of-action-execute-method-tf4909517.html#a14057256
Sent from the Struts - User mailing list archive at Nabble.com.


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



localization

2007-11-30 Thread giglian

my web app display message in jsp page ( using s:text name=.../)
always in one language.
I have two localization files (package.properties and package_it.properties
in the same folder), and I always get the messages in Italian language even
if the client language is English (en-us).
Rather in my production environment (O.S. Windows Server 2003 English), the
same web app always displaying the same messages in English language even if
the client language (IE 6) is Italian (it).
I tried to do everythings but with any result.
Please help me to solve this issue.
Thanks in advance for your time.

Andrea
-- 
View this message in context: 
http://www.nabble.com/localization-tf4909438.html#a14057085
Sent from the Struts - User mailing list archive at Nabble.com.


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



Get the list of all action names defined in struts.xml

2007-11-30 Thread George Dadulescu

Hi.
Is there any possibility to get the list of all the action names defined in
struts.xml ?
Struts must have a map or something where it keeps all the action names I
presume ...

Thanks.
George
-- 
View this message in context: 
http://www.nabble.com/Get-the-list-of-all-action-names-defined-in-struts.xml-tf4904545.html#a14047033
Sent from the Struts - User mailing list archive at Nabble.com.


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



[s2] Changing target-attribute-value in action class?

2007-11-30 Thread Adrian Ost

hi,

is there a way to change the target, set in struts 2 ajax tags, within 
the corresponding action class?


thanks in advance.


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



Easy way to obtain an action's full url?

2007-11-30 Thread Thilo Ettelt

Hello,

is there a simple way to obtain a full url for an Action mapping?
Something like this:

public String urlForActionMapping(String mapping) {
// mapping = myaction/wildcardhere/view
// returns http://host:port/context/myaction/wildcardhere/ 
view.action

...
}


- Thilo

--
Mit freundlichen Grüßen,

Thilo Ettelt  Telefon: +49-421-6265-111
Carmunity.com GmbHTelefax: +49-421-6265-100
Mary-Astell-Strasse 2 E-Mail: [EMAIL PROTECTED]
28359 Bremen  http://www.carmunity.de/

Developer (YourVids)

Handelsregisternummer: HRB 19256 beim AG Bremen
Geschäftsführer:
Dipl.-Wirt.-Ing. W. Schlösser
Dipl-Ing. Frank Rothgänger
Bennet Bock


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



Re: Application initialization at startup

2007-11-30 Thread Gabriel Belingueres
you could use a servlet context listener.

Gabriel

2007/11/30, Shyamal Mehta [EMAIL PROTECTED]:
 For struts 2 what is the recommended/best way of executing any
 application specific code at application startup?
 In struts 1.x we used to create a plugin and configure its
 startOnLoad property to true.

 Thanks,
 SM

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



Application initialization at startup

2007-11-30 Thread Shyamal Mehta
For struts 2 what is the recommended/best way of executing any
application specific code at application startup?
In struts 1.x we used to create a plugin and configure its
startOnLoad property to true.

Thanks,
SM

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



Re: portlet css

2007-11-30 Thread Randy Burgess
I think it is portal implementation specific. I'm using AquaLogic UI and it
has an image server. I put the images there and then reference them using
image server links. So suppose my portal is located at http://myportal.com
then my image src look like
http://myportal.com/imageserver/mydirectory/myimg.gif.

Regards,
Randy Burgess
Web Applications Developer
Nuvox Communications



 From: Brian Relph [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List user@struts.apache.org
 Date: Fri, 30 Nov 2007 11:25:43 -0600
 To: Struts Users Mailing List user@struts.apache.org
 Subject: portlet css
 
 Does anyone have experience using css in portlets, and more specifically,
 using css to set background images?  I am unable to use css for images since
 the url are not portlet urls ...



This email and any attachments (Message) may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

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



Re: Ajax effective with 2.1

2007-11-30 Thread Dave Newton
Ajax via Dojo is now a plugin.

d.

--- [EMAIL PROTECTED] wrote:

 What is the disposition of dojo going forward with
 S2?  I thought I heard a
 rumor awhile back where Ajax support was being moved
 into the plug-in
 architecture.  We have a discussion in our shop
 concerning a few different
 libraries and I would like to offer meaningful
 advice.
 
 Peace,
 
 Scott
 [EMAIL PROTECTED]
 


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



[S2] Checkboxes

2007-11-30 Thread Hoying, Ken
I am having a difficult time getting checkboxes to work in the following
scenario and am not sure what I am doing wrong.  Any help or guidance
would be greatly appreciated.

I have table which displays several rows.  In the first column of each
row, I have a check box to select that row.  I am keeping track of user
selections so when they return to the page, the checkboxes are
prepopulated with their previous selections.  


My Action contains the following:

public Long[] getSelectedContracts() 
{
return setSelectedContracts.toArray(new Long[0]);
} // end getSelectedContracts

/**
 * This setter takes the provided String[] of selected contract
ids.
 */
public void setSelectedContracts(Long[] palngSelectedContracts)
  {

setSelectedContracts.addAll(Arrays.asList(palngSelectedContracts));
} // end setSelectedContracts
 
My JSP contains the following:

s:checkbox name=selectedContracts
fieldValue=${contract.npcContractId}/






-
***Note:The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader of
this message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify the Sender
immediately by replying to the message and deleting it from your
computer. Thank you. Premier Inc.  

Re:Tiles (Struts 1.3) standalone not working

2007-11-30 Thread Todd Prickett
--Forwarded Message Attachment--Date: Fri, 30 Nov 2007 20:44:02 +0100From: 
[EMAIL PROTECTED]: [EMAIL PROTECTED]: Re: FW: Tiles (Struts 1.3) standalone not 
working2007/11/30, Todd Prickett [EMAIL PROTECTED]: I'm trying to implement 
Tiles ( from Struts 1.3 ) into a web that is NOT using Struts Can 
anyone please point me in the correct direction? Yes, Tiles 
2:http://tiles.apache.org/ CiaoAntonioThanks for the reply.  Unfortunately, 
our company is using Struts/Tiles 1.3, not Tiles 2.0, so that is not an option.
_
Your smile counts. The more smiles you share, the more we donate.  Join in.
www.windowslive.com/smile?ocid=TXT_TAGLM_Wave2_oprsmilewlhmtagline

Re: Tiles (Struts 1.3) standalone not working

2007-11-30 Thread Antonio Petrelli
2007/12/1, Todd Prickett [EMAIL PROTECTED]:
CiaoAntonioThanks for the reply.  Unfortunately, our company is
using Struts/Tiles 1.3, not Tiles 2.0, so that is not an option.


You said that you did not need Struts 1, so why don't you think about
using Tiles 2?
If you are worried about stability, Tiles 2.0.5 has been declared GA
(general availability) and, IMHO, it is more stable than previous
versions of Tiles 1.

Antonio

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