how to confirm eclipse wtp contain struts 2.x?

2008-03-30 Thread Tan [EMAIL PROTECTED]
I'm a new user in sruts and wtp. may i know is wtp all in one contained struts 2.x ? if no. how can i import it as a plug-in?

Re: dojo is not defined error message in firefox console.

2008-03-30 Thread Jeromy Evans
Are you deliberately mixing Dojo 0.40 with Dojo 1.x? The s:head theme=ajax tag includes resources for Dojo 0.40. In addition to that you're referenced a local dojo installation that includes Digit (1.x) The dojo undefined message implies neither worked so there's a major error. Use FireBug

Eroor Message display

2008-03-30 Thread aum strut
Hi all, i am facing a problem while validating the login form.. i have to validate it in two ways: 1) Have to check if the requiredinput fields are filled and are in line with the laid procedure. for this i am using the server side validation.i have developed a xml for validating the fields

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

2008-03-30 Thread stanlick
Hey Tan -- I doubt WTP contains Struts2, but you can get it herehttp://struts.apache.org/2.x/ . On Sun, Mar 30, 2008 at 5:54 AM, Tan [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm a new user in sruts and wtp. may i know is wtp all in one contained struts 2.x ? if no. how can i import it as a

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

2008-03-30 Thread tanmh
hi stanlick, yes, I did go to the site. but, i'm not sure on how to make it as a plugin to deploy in eclipse 3.3. i did downloaded the war file and import into eclipse 3.3, it 's working fine. is it every project I just need to copy 5 files to Web App Libraries, commons-logging-1.0.4.jar

Re: Initializing Actions from Spring

2008-03-30 Thread mgainty
pls display contents of your xwork.xml and the configuration of the spring listener you are referencing in web.xml http://www.opensymphony.com/webwork/wikidocs/Other%20Spring%20Integration.ht ml Thanks Martin- - Original Message - Wrom: TLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBR To:

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

2008-03-30 Thread Piero Sartini
yes, I did go to the site. but, i'm not sure on how to make it as a plugin to deploy in eclipse 3.3. There is no plugin for Eclipse or any other IDE that I know. There is the beginning of a NetBeans plugin... but I did not look at it yet. i did downloaded the war file and import into eclipse

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

2008-03-30 Thread tanmh
Thank you :). I will work on it. Piero Sartini wrote: yes, I did go to the site. but, i'm not sure on how to make it as a plugin to deploy in eclipse 3.3. There is no plugin for Eclipse or any other IDE that I know. There is the beginning of a NetBeans plugin... but I did not look at

Re: Eroor Message display

2008-03-30 Thread Dave Newton
--- aum strut [EMAIL PROTECTED] wrote: 2) Second case is where i have to check if the useris valid with respect to the database, and in my action class i am using a addFieldError(UserID, Either User name or Password is Wrong); and *Where* are you doing that? You need to explain *how* you're

Re: Validation

2008-03-30 Thread Rodrigo Pereira
Hi, the problem is that I have a lot of fields and I'd like to position 2 fields in a row, but xhrml theme is not letting me do that. Also, some of the fields are poputated by an action based on the value of one of the fields in the form (using xhtml triggers form's action vs link's). I was

Re: Initializing Actions from Spring

2008-03-30 Thread georgievh
Thank you for the reply. I am new to both Spring and Struts2 and I apologise in advance should my mistake is a silly one. Please find the relevant code bellow: web.xml: ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN

Re: Initializing Actions from Spring

2008-03-30 Thread Dave Newton
Did you say the problem was that the message property wasn't being initialized? I see a ctor arg in the Spring config, but I don't see any ctors in the action class itself; is Spring able to do the right thing in this case? I've always either used explicit ctors or set properties directly. Dave

Re: Initializing Actions from Spring

2008-03-30 Thread georgievh
Sorry for the misleading. I have a constructor. The class is actually as follows: package com.gbsoft.belfin.communitypages.actions.mainpage; import java.lang.Exception; import org.apache.struts2.config.Result; import org.apache.struts2.views.tiles.TilesResult; import

LazyValidatorForm Problem

2008-03-30 Thread puneet duggal
frnds I am Using LazyValidatorForm and it dont resets when i reloads My application thts My form bean form-bean name=auditorMasterbean type=org.apache.struts.validator.LazyValidatorForm form-property name=searchresult

Re: LazyValidatorForm Problem

2008-03-30 Thread Dave Newton
--- puneet duggal [EMAIL PROTECTED] wrote: [...] action path=/search type=searchaudit input=/auditormaster.jsp name=auditorMasterbean forward name=success path=/auditormaster.jsp/ /action

Re: Validation

2008-03-30 Thread Kibo
Hi I had the same problem. The simplest is use the qxhtml theme. See: http://www.vitarara.org/cms/struts_2_cookbook/creating_a_theme You can download the theme and use in Struts. You can combine it with theme simple. See the source jsp page with form. The second possibility is extend the

Re: how to refresh only included pages

2008-03-30 Thread Kibo
Hi In Struts2 I use the ajax DIV tag See: http://struts.apache.org/2.x/docs/dojo-div.html But You write: qI am also using a form bean uploadActionForm/q ... and it look like you use Struts1x. Tomas Jurman Czech Republic -- View this message in context:

Re: Possible to unit test actions through type converters?

2008-03-30 Thread Jeromy Evans
I think it is possible but haven't tried it myself. If you extend StrutsTestCase you'll have access to a Configuration object and the ActionProxyFactory. You should be able to setup your action and invoke it through the parameters interceptor. I couldn't find any example unit tests that do

Re: s2: Including Freemarker templates from JSP

2008-03-30 Thread Jeromy Evans
The Struts2 Component tag may be sufficient: http://struts.apache.org/2.x/docs/component.html hernan gonzalez wrote: I have some freemarker templates (general purpose, i.e. not specifically for struts2) that generate html fragments, which I would like to include in some jsp pages (in a struts2

Re: Initializing Actions from Spring

2008-03-30 Thread Laurie Harper
So what *is* the problem? Is Spring not loading the action? Is Struts not finding the action? Something else? The code/configuration you've posted looks basically OK. L. georgievh wrote: Sorry for the misleading. I have a constructor. The class is actually as follows: package

Re: Running a prepare method before the assigned action method

2008-03-30 Thread Kedar Choudhary
meeboo wrote: Still no solution to this problem. How come parameters in actions with wildcards (for example myapp/modelObject/*) aren't parsed in the prepare method? They work fine when I parse them in my assigned action method :( meeboo wrote: Hey again I'm posting via nabble, and it