validation in actionform

2006-09-06 Thread Gomathi
hai, i am using validation in my application i am using LoginForm to bean this is ordinary action not a dynaactionform how to validate form fields using validation.xml

RE: validation in actionform

2006-09-06 Thread Rokariya, Raman
Perform following steps: 1. in Custom-forms.xml, put entries for all JSP fields with validators like maxlength,required,excludeKnownBad etc. 2. in Struts Action-Mapping put validate=true. 3. Use html:javascript form=formName/ where formName must be same as in actionMapping and in

Struts-Faces Version Compatible with Struts 1.1 and MyFaces

2006-09-06 Thread Colin Doyle
Hi, I've been trying without success over the last few days to get an application written using Struts 1.1 to use JSF by using myfaces-all.jar. I haven't been able to find an up-to-date released version of struts-faces, and was wondering whether this has been parked in favour of Shale? The

Model 3?

2006-09-06 Thread Artem Zhmurov
Hi everybody. What if we use struts to make XML with view data in it, and than use XSLT. Making XML with struts will be much easier than any other ways of making XML. There will be less or even no view-logic in action classes. And it's more convenient to make different *.xsl files for

RE: Checking the request attribute by using the Struts tags in the next jsp page..

2006-09-06 Thread Artem Zhmurov
Try logic:equals bean=po scope=request value=open ... /logic:equals logic:equals bean=po scope=request value=close ... /logic:equals -Original Message- From: SrinivasaReddy [mailto:[EMAIL PROTECTED] Sent: Saturday, September 02, 2006 3:30 PM To: user@struts.apache.org Subject:

AW: Model 3?

2006-09-06 Thread Martin Kindler
Hi Artem, this is an interesting question. Some years ago I was involved in the design of a system which used a XML and XSLT to translate the content to various output formats (not only XML-based). It was an elegant solution but also a hard way to go. I have been developing a multiclient site

Re: Model 3?

2006-09-06 Thread Antonio Petrelli
Artem Zhmurov ha scritto: Maybe someone already using that scheme (or have tried to use)? Check out StrutsCX and STXX: http://it.cappuccinonet.com/strutscx/index.php http://stxx.sourceforge.net/ These links are only to help you but I agree with the things Martin wrote. Ciao Antonio

Re: Model 3?

2006-09-06 Thread Leon Rosenberg
One note to what Martin and Antonio said. If you can live with what browsers make out of your xslt/xml then go for it. Having the rendering on your server is a huge performance break. But if you can let the browser do the rendering, than its a very cool alternative. regards Leon On 9/6/06,

RE: Action based client validation

2006-09-06 Thread Vaylee Mckenzie-Daniels \(VA\)
I am struggling to find resources on how to enable the validation only when submit is selected. Validation should not be done when cancel is selected. Please help. Thx Vaylee ~~ This e-mail and its contents are subject to

Retrieve Data List

2006-09-06 Thread Rokariya, Raman
Hi, I am developing Web Client using Struts framework. I am facing problem in following scenarios. My application has a Pop Up Window which refreshes after some regular interval (minutes). The first time when the window opens, the data which is displayed in Tabular Grid is fetched through the

Re: Model 3?

2006-09-06 Thread Frank W. Zammetti
And if your looking for an AJAX solution, AjaxParts Taglib (APT) in Java Web Parts (JWP) offers an XSLT response handler that does its work on the client, and as is typical with APT, it's all done without you writing any code yourself... http://javawebparts.sourceforge.net Click on the

Re: Retrieve Data List

2006-09-06 Thread David Durham
Rokariya, Raman wrote: Hi, I am developing Web Client using Struts framework. I am facing problem in following scenarios. My application has a Pop Up Window which refreshes after some regular interval (minutes). The first time when the window opens, the data which is displayed in Tabular Grid

RE: Action based client validation

2006-09-06 Thread Givler, Eric
Assuming you've turned off the automatic validation (validate=false in struts-config.xml), then you can programmatically determine which button was pressed in your execute() method, via request.getParameter(btn_cancel) for example, then decide not to call something. public ActionForward

Re: Model 3?

2006-09-06 Thread Michael Jouravlev
On 9/6/06, Martin Kindler [EMAIL PROTECTED] wrote: Hi Artem, this is an interesting question. Some years ago I was involved in the design of a system which used a XML and XSLT to translate the content to various output formats (not only XML-based). It was an elegant solution but also a hard way

EL Select

2006-09-06 Thread Neil Meyer
Hi All, I need some urgent help please. I have the following code which is working perfectly to get the data to my action. I'm using paging on this page so when I move around and come back to the page where I selected the select box the data should still be selected. I checked the action and

Re: Action based client validation

2006-09-06 Thread Michael Jouravlev
On 9/6/06, Vaylee Mckenzie-Daniels (VA) [EMAIL PROTECTED] wrote: I am struggling to find resources on how to enable the validation only when submit is selected. Validation should not be done when cancel is selected. If you use JSP for the view part of your app, then use html:cancel to

RE: Struts-Faces Version Compatible with Struts 1.1 and MyFaces

2006-09-06 Thread David Friedman
Colin, I remember trying to use MyFaces with Struts-Faces when I was first learning JSF. Unfortunately, it did not work. I had to use the Sun RI as mentioned in the early (Struts 1.1 Struts-Faces) README File but even then I didn't feel it: * Add the following JAR files from the JavaServer

Re: Struts-Faces Version Compatible with Struts 1.1 and MyFaces

2006-09-06 Thread Wendy Smoak
On 9/6/06, Colin Doyle [EMAIL PROTECTED] wrote: Before migrating my application from Struts 1.1 to 1.3, I would like to know roughly how close Release 1.3.X would be? Struts 1.3.5 has been released as Beta and there's a good chance it will be promoted to General Availability. Every report of

Re: EL Select

2006-09-06 Thread Gareth Evans
Use html:option rather than plain old option Neil Meyer wrote: Hi All, I need some urgent help please. I have the following code which is working perfectly to get the data to my action. I'm using paging on this page so when I move around and come back to the page where I selected the select

AW: Model 3?

2006-09-06 Thread Martin Kindler
Michael, What about translets? The work has to be done somewhere, so it takes time. Perhaps translets play in the same league as JSP compilers? But the gain of different (and more convenient for some) programming model may overweight extra effort. Sure. Although I do not see so much of a

exception

2006-09-06 Thread Tom Jerry
Why do I get an exception in creating bean

RE: exception

2006-09-06 Thread David Friedman
What is the full stack trace in your application server logs? -Original Message- From: Tom Jerry [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 06, 2006 12:48 PM To: user@struts.apache.org Subject: exception Why do I get an exception in creating bean

Sharing variables between Tiles

2006-09-06 Thread Gupta, Rahul
Hi, I have a page with three tiles. Is there a way to share a variable between these tiles? I want to set the variable in one tile and access its value in the other two tiles. I don't know if it is relevant - I am using tile controllers to populate data needed by each of the tiles to draw that

name Attribute in html:form tag

2006-09-06 Thread Ashish Vijaywargiya
Hi, Anybody of you know the specific reason of Why the name attribute is not provided in the html:form tag???. Thanks in advance. Regards Ashish Vijaywargiya - Get your email and more, right on the new Yahoo.com

Re: name Attribute in html:form tag

2006-09-06 Thread Scott Van Wart
Ashish Vijaywargiya wrote: Hi, Anybody of you know the specific reason of Why the name attribute is not provided in the html:form tag???. Thanks in advance. Regards Ashish Vijaywargiya Struts uses the name attribute to repopulate your form on submit. So if you have an action

DTD documentation (was: Re: What is action's parameter usage)

2006-09-06 Thread Wendy Smoak
On 9/5/06, David Friedman [EMAIL PROTECTED] wrote: But let's be serious: who actually reads the DTD? For a document few people probably ever check, it is full of enlightening information. I've been working with the DTDDoc developers to help get their Maven plugin ready to release, and we

Re: name Attribute in html:form tag

2006-09-06 Thread Ashish Vijaywargiya
Oh Nice Answer. I like it. Thanks for it Scott. Regards Ashish Vijaywargiya Scott Van Wart [EMAIL PROTECTED] wrote: Ashish Vijaywargiya wrote: Hi, Anybody of you know the specific reason of Why the name attribute is not provided in the tag???. Thanks

Can I Bypass using actionform? Cannot retrieve definition for form bean null on action...

2006-09-06 Thread Mississippi John Hurt
Is there some way to not use an actionform bean in your JSP. I get the error message... Cannot retrieve definition for form bean null on action when I do not include a name= in my struts config action. Thanks.

Re: Can I Bypass using actionform? Cannot retrieve definition for form bean null on action...

2006-09-06 Thread Adam Gordon
If your type attribute equals org.apache.struts.actions.ForwardAction (and there may be others) then you don't need the name attribute. You are getting that error because you are specifying a custom action and there's no associated form bean. You can use ForwardAction if you just want a URL

Re: name Attribute in html:form tag

2006-09-06 Thread Michael Rush
Struts uses the name attribute to repopulate your form on submit. So if you have an action /someAction mapped to a form bean named myForm, it should look like html:form action=/ someAction, and thus form name=myForm So in your JavaScript you can refer to document.myForm. unless of

fmt:formatDate question...

2006-09-06 Thread Adam Gordon
Ok, so not specifically a Struts question, but anway... I'm using the fmt:formatDate element in a JSP and it appears that when the value of my pattern attribute includes zz (the time zone, my full format is hh:mm a zz) then for US time zones (e.g. PST, PDT, MST, MDT, etc...) then the same

[HELP][S2] spring configuration of hibernate

2006-09-06 Thread Garner Shawn
I'm getting the following: SEVERE: Error listenerStart I know it's the spring file because if I comment everything out it works fine. ?xml version=1.0 encoding=UTF-8? !DOCTYPE beans PUBLIC -//SPRING//DTD BEAN//EN http://www.springframework.org/dtd/spring-beans.dtd; beans default-autowire=no

configuring tiles with struts 1.2.9

2006-09-06 Thread Darren Hall
Hello all, I am somewhat new to struts and I'm attempting to create an application that uses tiles. I obviously have something configured incorrectly because I get a 404 error when attempting to display my page. Here's what I've done so far: 1) Create a template jsp page called

How to access Static Data in jsp file

2006-09-06 Thread Ashish Vijaywargiya
Hello, I created an Interface as the code shown below : public interface StaticData { String[] minutes = { 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37,

Re: exception

2006-09-06 Thread Tom Jerry
Error 500--Internal Server Error javax.servlet.jsp.JspException: Exception creating bean of class code.LoginForm: {1} at org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:487) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:457) at

Re: exception

2006-09-06 Thread paz . periasamy
Tom, Can you post the JSP code? Are you using WebLogic Portal 4.0 or WebLogic Server 6.1 SP5 version??? If so, Struts bean:define doesnt work in that version of software based on my experience. Thanks and regards, Pazhanikanthan. P (Paz) Consultant for AXA, Senior Software Engineer, HCL

Re: exception

2006-09-06 Thread Tom Jerry
I am using Weblogic 8.1 SP3 %@ page language=java % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % html:html locale=true head titlebean:message key=index.title //title

Re: exception

2006-09-06 Thread Tom Jerry
This is the entire stack SEVERE: Error creating form bean of class code.LoginForm java.lang.NullPointerException at org.apache.struts.config.FormBeanConfig.createActionForm( FormBeanConfig.java:212) at org.apache.struts.util.RequestUtils.createActionForm( RequestUtils.java:292) at

Re: exception

2006-09-06 Thread paz . periasamy
The Error happens while instantiating the FormBean. Are you having something different while the formbean creation? like abstract class or something??? Do you do any database operations??? Thanks and regards, Pazhanikanthan. P (Paz) Consultant for AXA, Senior Software Engineer, HCL Australia

RE: exception

2006-09-06 Thread Rokariya, Raman
Pls Send your Struts-Config.xml. -Original Message- From: Tom Jerry [mailto:[EMAIL PROTECTED] Sent: Thursday, September 07, 2006 11:03 AM Cc: Struts Users Mailing List Subject: Re: exception This is the entire stack SEVERE: Error creating form bean of class code.LoginForm

RE: exception

2006-09-06 Thread Chandra.Ravinithala
Did you mention LoginForm in struts-config properly - I mean form-beans !-- Login form bean -- form-bean name=LoginForm type=xyz.yxz/ /form-beans And action ... Pls share your struts-config.xml. -Original Message- From: Tom Jerry