Client-Side validation

2006-02-07 Thread elif akten
Hi, I try to use client-side validation in struts. but I have a problem. I have a actionform which I want to verify, in my first jsp some fields of the form is shown say username, usersurname,email, and in some other jsp other fields should be checked say gender. address..etc. I could not define v

RE: Saving a HTML screen data as a Word doc.

2006-02-07 Thread Anjishnu Bandyopadhyay
Hi, This approach is working fine. I have another problem. I am displaying an image thru the tag in the JSP. Now, I want to display this image in the MS Word document that is generated. Any idea how this can be accomplished? With best regards, Anjishnu. -Original Message- F

Accessing static methods from Struts/JSTL

2006-02-07 Thread Keith Fetterman
Folks, We are converting old JSP pages to Struts and JSTL and I am running into a problem. On the old JSP pages, we have some calls to static methods in scriptlets and runtime expressions. On the new JSP pages, we have disabled scriptlets and runtime expressions. Here is an example: The o

RE: Problem whith a arrayList and a html:option

2006-02-07 Thread Anjishnu Bandyopadhyay
Hi, Try this out: In the formBean, instead of an array list, try putting a String array. ActionForm: private String[] listEdad = null; public String[] getListEdad () { return listEdad; } public void setListEdad (String[] listEdad) { this.listEdad = listEdad; } With b

RE: Populate action

2006-02-07 Thread George.Dinwiddie
I would use a UserCredentials interface that gets passed down to the DAO. My action would be more like: public void execute(...) { // marshall the input UserCredentials userCredentials = new PresentationLayerUserCredentials(request); // invoke the business layer PapersList list

Populate action

2006-02-07 Thread Joel Alejandro Espinosa Carra
Hi all, I think this is more a design question than a struts question, but I want to know who is the struts-way to do this. I have a requeriment of listing some items (in my case, scientific papers) in a html table view. Another requirement is that users can see diferent listing of data depend

Re: Saving a HTML screen data as a Word doc.

2006-02-07 Thread Angelo zerr
Hi, If you want generate RTF Word with Java, you could too use RTFTemplate see at http://rtftemplate.sourceforge.net/index.html. With RTFTemplate, you design your RTF model with MS Word and after you can merge your model with context JAVA object . Regards Angelo 2006/2/7, Max Cooper <[EMAIL PROTE

Re: Saving a HTML screen data as a Word doc.

2006-02-07 Thread Max Cooper
In general, there is no way to save an HTML file as a Word doc, or at least no way that is reasonable to ask your users to carry out manually. So, while you can re-use the basic *design* of the page, you won't be able to re-use the JSP itself for this purpose. Here is a library that allows you to

Re: servlets filters

2006-02-07 Thread Max Cooper
Filters are common to all, just like servlets. -Max On Tue, 2006-02-07 at 13:06 -0800, temp temp wrote: > Filters in web application. > Are servlet filters similar to session ie each session will have its own > filter or its like sevlet context ie common to all sessions . > Thanks & Re

Re: DispatchAction question !

2006-02-07 Thread kalpesh modi
In that case, you can create a method like private void initailization(HttpServlet Request){ .. initialization code } In you dispatchaction methods, you can check for the session variable, and not found call this method. - Relax. Yahoo! Ma

Re: DispatchAction question !

2006-02-07 Thread digant . k . joshi
I put it into session and request. kalpesh modi <[EMAIL PROTECTED]> 02/07/2006 03:52 PM Please respond to "Struts Users Mailing List" To: Struts Users Mailing List cc: Subject:Re: DispatchAction question ! What do you do with the sectors retrieved? Do

servlets filters

2006-02-07 Thread temp temp
Filters in web application. Are servlet filters similar to session ie each session will have its own filter or its like sevlet context ie common to all sessions . Thanks & Regards - Yahoo! Mail - Helps protect you from nasty

Re: DispatchAction question !

2006-02-07 Thread kalpesh modi
What do you do with the sectors retrieved? Do you put it in any scope? - Relax. Yahoo! Mail virus scanning helps detect nasty viruses!

Re: DispatchAction question !

2006-02-07 Thread digant . k . joshi
What changes do I make in struts-config to initialization method is called like constructor of DispathAction . from index.jsp I call subsequent jsp has following lines to call another action My struts config looks

Re: IE Caching problem..Struts Application Working fine in Firefox

2006-02-07 Thread bradyh
I'm sorry to get your hopes up but the problem I had was related to IE caching mime-types and must be different from yours. I thought it might be related but that seems unlikely now since the change in IE settings didn't have any effect. Here's the link if you're curious: http://groups.google.com

Re: DispatchAction question !

2006-02-07 Thread kalpesh modi
Put your initialization code in method public ActionForward initialize(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { sectService = new SectorDaoService(request); sectOwnerService = new SectorOwnerDaoService(); sectServ

DispatchAction question !

2006-02-07 Thread digant . k . joshi
How do I make sure first time DispatchAction is invoked it calls some initialization code ! I have Business object Dao service class which I want to instantiate before any of the action forward or any methods from myDispathAction is called . My current dispatchAction look like this ... public

Re: IE Caching problem..Struts Application Working fine in Firefox

2006-02-07 Thread zahid mohammed
Thanks Leticia.I have tried to deceive the browser by appending a parameter which has a random number this way /GetOtherSet.do?rand='+parseInt(Math.random()*); BUT IT DOES'NT HELP..Surprisingly when I print the elements on the console using System.out.println in the jsp..

Re: IE Caching problem..Struts Application Working fine in Firefox

2006-02-07 Thread Letícia Álvares Barbalho
I had a similiar problem with IE. Here goes how I solved it: * * /MyApp/getPedido.do?id=** The first line is obviously including the bean, while the second is what comes in my link, calling the action. As you see I created a auxiliar parameter to make IE think that something new is coming. Tha

Re: IE Caching problem..Struts Application Working fine in Firefox

2006-02-07 Thread zahid mohammed
Thanks for the reply BradyI have cleared the cache and tried all the options for "Check for newer versions of stored settings." "Every visit to page" and "Automatically". Even then its not working. If its the Apache setting problem then why is it working fine in Firefox. Could you pleas

RFC2268 compliant providers

2006-02-07 Thread Martin Gainty
Good Afternoon All I am attempting to locate RFC2268 (RC2) java security providers for J2SDK 1.42 Suggestions??? Thanks, Martin-

Re: Validator Skipping Action

2006-02-07 Thread Michael Jouravlev
On 2/7/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > On 2/7/06, Tom Ansley <[EMAIL PROTECTED]> wrote: > > I guess the big thing I do not understand here is why validator is being > > called when the form has not even had time to initialize. > > > > In my application I rely on the action.execut

Re: Validator Skipping Action

2006-02-07 Thread Michael Jouravlev
On 2/7/06, Tom Ansley <[EMAIL PROTECTED]> wrote: > I guess the big thing I do not understand here is why validator is being > called when the form has not even had time to initialize. > > In my application I rely on the action.execute() method being the first to > be called because it allows me to

Re: Validator Skipping Action

2006-02-07 Thread Tom Ansley
I guess the big thing I do not understand here is why validator is being called when the form has not even had time to initialize. In my application I rely on the action.execute() method being the first to be called because it allows me to prepopulate the form associated with the action. This mak

Re: Validator Skipping Action

2006-02-07 Thread Tom Ansley
Hey Dave, Referring to this: > path="/jsp/camper/addCamper.do" redirect="true"/> > The "path" attribute strikes me as being very suspicious, but you might just be doing something... unexpected with how your application is set up. Why does the path look a little suspicious to you? I was thinki

Re: Validator Skipping Action

2006-02-07 Thread Nick Sophinos
The initially easiest solution is to have a init version of that action. Note that it is a Forward Action, thus bypassing the need for a nearly empty backing Java class. ie: Alternatively, MappingDispatchAction is good here too, where one Action class can handle all cases, including the init case

Re: Validator Skipping Action

2006-02-07 Thread Tom Ansley
Hey Hubert, But how is anything going to ever validate correctly if I have not had time to initially populate the form. The action which is being skipped allows me to prepopulate the form before sending it to the user for them to add information. I get the feeling the workflow is something like

Re: Validator Skipping Action

2006-02-07 Thread Hubert Rabago
On 2/7/06, Tom Ansley <[EMAIL PROTECTED]> wrote: > > > > > type="com.camp.actions.camper.addCamperAction" > > > name="CamperForm" > > > scope="session" > > > validate="true" > > > parameter="submit" > > > input="/addCamper.jsp"> > > So, it's looking for getFirst

Re: Validator Skipping Action

2006-02-07 Thread Tom Ansley
Hey Nick, Here is an excerpt of my CamperForm: public final class CamperForm extends ValidatorForm { private Camper camper = null; public String getLastName() { return camper.getLastName(); } public String getFirstName() { return camper.getFirstName(); } He

Re: Validator Skipping Action

2006-02-07 Thread Dave Newton
Tom Ansley wrote: > Does validator somehow alter the work flow in struts? Only that it will return to the "input" attribute on a validation error. > My action doesn't get completely skipped because it does attempt to load a > jsp page, but I have no idea how it gets this jsp page and why it doesn'

Re: Validator Skipping Action

2006-02-07 Thread Nick Sophinos
I guess that the big question is: "What about CamperForm?, what does it look like?" If it is a Java class that you created, what does the validate() method look like? If it is a DynaValidatiorForm (make sure that it is not a DynaActionForm), what does the XML look like? - Nick On 2/7/06, Tom An

Validator Skipping Action

2006-02-07 Thread Tom Ansley
Hi all, I am trying to validate server side. I have an action which forwards to another action. If the original action has validate="true" then the forward doesn't happen and the validation tries to validate a null form. If validate="false" in the original action then everything works but no va

Custom tags in JSP files & Struts forms

2006-02-07 Thread Dave Newton
This should probably be marked OT, but I'm not sure yet. I have a custom tag for JSP form fields (consist of a with two , one for the prompt and one for the input field). The tag will inject error messages and do some other stuff depending on whether or not there's errors etc. In order to make i

validating mutiple html:checkbox values

2006-02-07 Thread Christopher Becker
I have a form in a Struts 1.2.7 app that displays a dynamic list of html:checkbox fields, all having the same property value (property=choseRole), which I present using a c:forEach tag.  I wish to apply validation to this set of checkboxes, and I am currently using the Validator plugin on all for

Re: [ANN] WebWork 2.2.1: Released and Ready for Struts!

2006-02-07 Thread Ted Husted
On 2/7/06, Pilgrim, Peter <[EMAIL PROTECTED]> wrote: > You due to teach a course in the UK, but I see it was canceled > with James Holmes has taking over the spot. > Are you coming over to the UK in the future anyway? > I know you wanted to come to JAVAWUG meet up. Yes, sadly, I developed a confli

Re: [ANN] WebWork 2.2.1: Released and Ready for Struts!

2006-02-07 Thread Ted Husted
On 2/7/06, Raghu Kanchustambham <[EMAIL PROTECTED]> wrote: > I can start off yet another holy war on merits of "special frameworks" > for special purposes vs. a utopian one framework for all purposes! But > instead let me just ask a few simple question: > What does this integration mean to a develo

show single html:error message for multiple fields validation

2006-02-07 Thread fea jabi
I have a table. Have editors in it. and when the user doesn't enter I am displaying the editors with different border color. hence would like to display only one message of below above the table. In message resources I have defined a key lbl.errormsg=Enter all required fields. validation.xml

RE: [ANN] WebWork 2.2.1: Released and Ready for Struts!

2006-02-07 Thread Pilgrim, Peter
Ted Congratulations You due to teach a course in the UK, but I see it was canceled with James Holmes has taking over the spot. Are you coming over to the UK in the future anyway? I know you wanted to come to JAVAWUG meet up. > -Original Message- > From: Ted Husted [mailto:[EMAIL PROTECT

SV: [shale] Clayforeach tag

2006-02-07 Thread Hermod Opstvedt
Hi Great. That was what I was hoping for. Med vennlig hilsen Hermod Opstvedt Webmaster Seiling.org/Norlys.org -Opprinnelig melding- Fra: Gary VanMatre [mailto:[EMAIL PROTECTED] Sendt: 7. februar 2006 15:30 Til: Struts Users Mailing List Emne: RE: [shale] Clayforeach tag >From: <[EMA

Re: [ANN] WebWork 2.2.1: Released and Ready for Struts!

2006-02-07 Thread Raghu Kanchustambham
Hi Ted, While ideally an announcement like this should bring across "joy", ironically enough it brings some "concerns" to developers like me! I am uninitiated in WebWork yet. I have just learnt a bit of struts some 4 months ago. Just when I thought I learnt a little the "floor (read framework)" mo

Re: Saving a HTML screen data as a Word doc.

2006-02-07 Thread Ranganathan Srinivasan
Just try putting this in the jsp <[EMAIL PROTECTED] contentType="application/vnd.ms-word" %> On 2/7/06, Anjishnu Bandyopadhyay <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > > I am generating a HTML screen through JSP. Now, I need to save/export > the data in the JSP to a Word document. > > Any

Problem whith a arrayList and a html:option

2006-02-07 Thread José María Tristán
Hello, Sorry by the text but I speak a little english. I have a problem with a struts application. I want capture data to a multiple select. I use a Arraylist into a Bean. This is a part of my code of the actionform: private List listEdad = new ArrayList(); public List getListEdad() { ret

RE: [shale] Clayforeach tag

2006-02-07 Thread Gary VanMatre
>From: <[EMAIL PROTECTED]> > > Hi > > So in the case where bodyJsfid is a html template, I could do something like > this: > > >template jsdid=/news.xml: > > > Oh, right. I forgot the other half of the story. The snippet will use the managed-bean-name symbol. So, you should code: templ

Saving a HTML screen data as a Word doc.

2006-02-07 Thread Anjishnu Bandyopadhyay
Hi all, I am generating a HTML screen through JSP. Now, I need to save/export the data in the JSP to a Word document. Any pointers in this respect will be very much helpful. Thanks for your time. With best regards, Anjishnu. CAUTION - Disclaimer * T

RE: [shale] Clayforeach tag

2006-02-07 Thread hermod.opstvedt
Hi So in the case where bodyJsfid is a html template, I could do something like this: template jsdid=/news.xml: and then do something like this: bla bla ?? Hermod -Original Message- From: Gary VanMatre [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 07, 2006 2:30 PM To: Struts

Re: [shale] Clayforeach tag

2006-02-07 Thread Gary VanMatre
>From: <[EMAIL PROTECTED]> < > Hi > > I was wondering about the usage of this tag. I see it has a > shapeValidator,but I > was wondering what the intended syntax for this tag is, and if the current > var > value is somehow passed along to it? > The clayForEach uses the "var" attribute lik

[ANN] WebWork 2.2.1: Released and Ready for Struts!

2006-02-07 Thread Ted Husted
See * http://blogs.opensymphony.com/webwork/2006/02/webwork_221_released.html A companion release of XWork 1.1 is also available * http://forums.opensymphony.com/thread.jspa?threadID=16919&tstart=0 -Ted. - To unsubscribe, e-mail

RE: Regarding time setting in jsp

2006-02-07 Thread Vidya \(Suvarna\) Mahavadi
I think it can work for the second scenario also because every time the page is refreshed it sends a request to the server. So in the jsp we can compare the timestamp in session/request with actual time and print it. -Original Message- From: Vilpesh Mistry [mailto:[EMAIL PROTECTED] Sent

[HELP] Problem when update 1 unicode form

2006-02-07 Thread Pham Anh Tuan
hi all, I got a problem when I update unicode form :( so, I have already tested my web application (Struts-ibatis-velocity-tiles) on my PC (tomcat 5.5.12, mysql 4.1 - utf8 default, JDK 5.0), everything was okie. I could update 1 unicode form (the form which contains unicode characters - firstn

Re: How to use checkbox in struts.

2006-02-07 Thread Vilpesh Mistry
hi Use boolean. --- Joey Watson <[EMAIL PROTECTED]> wrote: > Hello everybody. > > I think this is a old question. but I can not find a > good and complete > example in Google. > My question is : > > I have a Jsp page which will list some datas for > user. user can choose(by > click the checkbox

Re: Regarding time setting in jsp

2006-02-07 Thread Vilpesh Mistry
Hello, Scenario 1> Time 2:00 pm at which request for page1 was received. Time 2:01 pm at which request for page2 was received. If u are talking to show the difference 1 minute(2:01 - 2:00)pm then u will as obvious will have to store request time of page1 in session/in hidden variable which u woul

[shale] Clayforeach tag

2006-02-07 Thread hermod.opstvedt
Hi I was wondering about the usage of this tag. I see it has a shapeValidator,but I was wondering what the intended syntax for this tag is, and if the current var value is somehow passed along to it? Hermod * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This emai

Regarding time setting in jsp

2006-02-07 Thread gomathi
hi I am working in struts based project. I want to calculate time of from page1 to page2.I want to display the time in page2.Once again i refresh the page its also display the time .how to get this - To unsubscribe, e-mail: [E