Re: dojo 1.1 in struts 2.0.11 portlets

2008-05-05 Thread Jeromy Evans
tom tom wrote: Thanks Jeromy, Is there any reason why YUI datagrid instead of dojo 1.1 grid, Isn't it risky to depend on YUI datagrid, Thanks Moving to YUI datagrid is no riskier than moving to Dojo 1.1. They're both good libraries. Dojo 1.1 is very different than 0.4 but not as diff

How to stop ArrayIndexOutOfBoundsException from being thrown when using DynaActionForm

2008-05-05 Thread venkat reddy
I'm using struts 1.2.7 struts-config.xml === When the number of choices in the jsp page exceed the size it's throwing ArrayIndexOutOfBoundsException. Please explain in detail how to stop it from being thrown.

Re: dojo 1.1 in struts 2.0.11 portlets

2008-05-05 Thread tom tom
Thanks Jeromy, Is there any reason why YUI datagrid instead of dojo 1.1 grid, Isn't it risky to depend on YUI datagrid, Thanks --- Jeromy Evans <[EMAIL PROTECTED]> wrote: > tom tom wrote: > > Thanks Jeromy, > > > > If we use direct dojo calls (dojo 1.1) without > using > > struts ajax tags,

Re: dojo 1.1 in struts 2.0.11 portlets

2008-05-05 Thread Jeromy Evans
tom tom wrote: Thanks Jeromy, If we use direct dojo calls (dojo 1.1) without using struts ajax tags, Will there be any issues linking these components with server side Struts Action and form classes, e.g if I have a dojo 1.1 Grib will I be able to utilize the serverside struts action classes,

Grid working with Stuts2 Serverside

2008-05-05 Thread tom tom
Hi, Has anyone got any editable grid e.g dojo 1.1 (supports CRUD) working with server side Struts2 action classes. or any other grid working with struts2, If so, will it be possible to share some samples, We are in the process of finding a intelligent AJAX based DATA grid working with struts2

Re: howto have a readonly on ?

2008-05-05 Thread Jeromy Evans
is just an , not a text field and a browse button. There is no browser-independent way to control one part and not the other. You may need to use a file upload library widget instead. Through browser detection they can obscure the text input so user's don't know it's there and can't tab

Re: Tree Component

2008-05-05 Thread Jeromy Evans
Mississippi John Hurt wrote: Anyone know of a Tree component that can be used where the web framework is not Struts nor JSF? We aren't using either framework but would like to use a tree component. Any suggestions? Thanks. Tree's are a client-library feature that can be used independently of

Re: struts2 migration

2008-05-05 Thread Jeromy Evans
kal stevens wrote: My company has migrated from struts1 to struts2, and we have had a few continual problems that we can not figure out how to deal with. First when we redeploy our application we have to remove everything in the work/Catalina directory, or the application may not be redeployed c

struts2 migration

2008-05-05 Thread kal stevens
My company has migrated from struts1 to struts2, and we have had a few continual problems that we can not figure out how to deal with. First when we redeploy our application we have to remove everything in the work/Catalina directory, or the application may not be redeployed correctly. we have tr

howto have a readonly on ?

2008-05-05 Thread xianwinwin
I wonder what is the "readonly" for I wish the user to specify the path only with the Browse button but will not be able to change the path on field. In other words, once the user has specified the path (by the browse) he will not be able to change it directly from the textfield as in make ch

Struts 1 - using POI and FormFile to read an excel file

2008-05-05 Thread bhaarat Sharma
Hello, I am currently using Struts 1 - FormFile to uplaod various documents. Now I have a requirement to read an excel file as the user uploads it. For this I am using Apache POI. this is how poi reads an excel sheet InputStream myxls = new FileInputStream("workbook.xls")); HSSFWorkbook wb

Re: [Struts2] Exception starting filter (Connection Timed Out)

2008-05-05 Thread KonTiki
The Spring context listener is needed only if you do use Spring. If you do not, then this might be causing the error as Tomcat was unable to find the Spring classes. Try removing this: org.springframework.web.context.ContextLoaderListener org.springframework.web.c

Re: Struts 2: Action chaining behaving differently when validations fire

2008-05-05 Thread egetchell
I just re-read my post and noticed that the Struts configuration for the testB action somehow got mangled. The correct configuration for TestB is testA display -- View this message in context: http://www.nabble.com/Struts-2%3A-Action-chaining-behaving-differently-when-validatio

RE: S2 - email client as action result

2008-05-05 Thread Jiang, Jane (NIH/NCI) [C]
Thanks a lot for the suggestions. I ended up with an updated version of option 1. I played with options 1 and 2. Option 2 is very simple with http redirect. However, it leaves a blank window that I cannot close. For option 1, I cannot get window.location="mailto:..."; to work. I had to us

Tree Component

2008-05-05 Thread Mississippi John Hurt
Anyone know of a Tree component that can be used where the web framework is not Struts nor JSF? We aren't using either framework but would like to use a tree component. Any suggestions? Thanks.

Re: Struts 1 "plugin" equivalent...

2008-05-05 Thread JeanNiBee
JeanNiBee wrote: > > Hi > > Is this available 'out of the box' for a standard Struts 2 running on say > Tomcat 5.5 / Jetty 6+. Unfortunately these are the limiting factors of the > environment I'm working in. > > Thanks. > Answering my own question. This available and usable in Jetty 6 with

Re: Struts 1 "plugin" equivalent...

2008-05-05 Thread JeanNiBee
Wendy Smoak-3 wrote: > > It's not Struts-specific-- consider using a ServletContextListener for > this. > > http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContextListener.html > > -- > Wendy > Hi Is this available 'out of the box' for a standard Struts 2 running on say

Re: Struts 1 "plugin" equivalent...

2008-05-05 Thread Wendy Smoak
On Mon, May 5, 2008 at 10:24 AM, JeanNiBee <[EMAIL PROTECTED]> wrote: > New to Struts 2 and just trying to make the changes. In Struts 1 we had a > plug in mechanism that would be executed when the application started up. > This was a good place to configure pools and log files and such. What d

Struts 1 "plugin" equivalent...

2008-05-05 Thread JeanNiBee
Hi New to Struts 2 and just trying to make the changes. In Struts 1 we had a plug in mechanism that would be executed when the application started up. This was a good place to configure pools and log files and such. What does Struts 2 has to handle this same feature. Thanks. P.S. I realize that

Struts 2: Action chaining behaving differently when validations fire

2008-05-05 Thread egetchell
All, I’m experiencing some interesting behavior when forwarding via action chaining as a result of input validation. In a non-error situation, action chaining works as expected – that is the service method of the chained action is invoked as expected. However, what I am noticing is that when a

Re: S2 Losing Session in interceptor

2008-05-05 Thread Musachy Barroso
If the session is expired, adding the messages to it won't help much. Why don't you forward to the login page, instead of redirecting, and put those messages in the request context? musachy On Mon, May 5, 2008 at 11:09 AM, JRD <[EMAIL PROTECTED]> wrote: > > Hey there, I have built an interceptor

S2 Losing Session in interceptor

2008-05-05 Thread JRD
Hey there, I have built an interceptor to store and retrieve ActionErrors using the session for redirect-action results. The weird thing is I seem to lose the values the first time it is run through. private static final String KEY="org.etc..."; public String intercept(ActionInvocation actionIn

Re: How to get dynamic number of arguments into ActionForm

2008-05-05 Thread maestro
I accomplished this without using the DynaActionForm. Its somewhat a crude way but it works. When stuck with constraints what is one to do? Here is an example, in the JSP I have coded the form element: Once rendered in the HTML: In the form bean: private List beneficiaries = new ArrayList();

Re: Plz help not getting o/p when changed to validator form

2008-05-05 Thread maestro
Did you restart the application? I believe that config file gets loaded at startup. - Glenn On Mon, May 5, 2008 at 10:25 AM, Raghu varma bhupathiraju < [EMAIL PROTECTED]> wrote: > > Hi I have the following application done successfully with out validation > > HomePage.jsp > /

Message arguments with v1.2.7

2008-05-05 Thread maestro
Hi, Using v1.2.7 of struts is there any way to determine if a message obtained from the resource file has any arguments? Example: This message has {0} of {1} arguments. I'd like to know that this message has 2 arguments. Many thanks, Glenn

Plz help not getting o/p when changed to validator form

2008-05-05 Thread Raghu varma bhupathiraju
Hi I have the following application done successfully with out validation HomePage.jsp // <%@ taglib uri="/tags/struts-bean" prefix="bean" %> <%@ taglib uri="/tags/struts-html" prefix="html" %> <%@ taglib uri="/tags/struts-logic" prefix="logic" %> <[EMAIL PROTECTED] import="j

Re: How to get dynamic number of arguments into ActionForm

2008-05-05 Thread venkat reddy
First thing is I can't use Struts 2.0. I think you didn't understand my problem. So i'm giving all the details from struts-config.xml file onwards... struts-config.xml pollsForm.jsp == If

RE: Redirect-Action type result warns of caught exception when passing param

2008-05-05 Thread KonTiki
Hello Brad, Excellent! Precise and clear. Regards, Kety. Brad A Cupit wrote: > >> I'm of the opinion that an exception in my >> console means something is amiss though... > > you've stumbled upon a little wart in the code. First things first, the > exception is harmless and can be safely ign

Re: how to confirm eclipse wtp contain struts 2.x?

2008-05-05 Thread sribeyron
Hi all. I have released an eclipse plugin for struts2, available here: http://mvcwebproject.sourceforge.net/ It is not just a plugin for struts 2: it may be used as a basis to develop plugins for other MVC frameworks, but it is currently working for Struts2 only. It is still far not complete,

Re: Question: Freemarker and Tiles?

2008-05-05 Thread Antonio Petrelli
2008/5/5 Marc Eckart <[EMAIL PROTECTED]>: > Hi, > > we try to use Freemarker with styles but we don't know how :-) > > I found the struts2 showcase > > http://www.planetstruts.org/struts2-showcase/tiles/freemarkerLayout.action > > But I don't know how the tiles.xml should look like for this. >

Question: Freemarker and Tiles?

2008-05-05 Thread Marc Eckart
Hi, we try to use Freemarker with styles but we don't know how :-) I found the struts2 showcase http://www.planetstruts.org/struts2-showcase/tiles/freemarkerLayout.action But I don't know how the tiles.xml should look like for this. Can the source be downloaded or checked out from a svn or som

Re: dojo 1.1 in struts 2.0.11 portlets

2008-05-05 Thread tom tom
Thanks Jeromy, If we use direct dojo calls (dojo 1.1) without using struts ajax tags, Will there be any issues linking these components with server side Struts Action and form classes, e.g if I have a dojo 1.1 Grib will I be able to utilize the serverside struts action classes, are there any bes