RE: Commons validation framework and struts
Hello Robert, Thanks for your reply. It's a typo in my email. My form has fields operand1, operand2 and operator. I have defined the same in the validation.xml still the validation does not occur. Please tell me what am I going wrong. Regards, Abhishek. -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 8:21 PM To: Struts Users Mailing List Subject: RE: Commons validation framework and struts Your field names aren't the same. operator1 != operand1 operator2 != operand2 They must be the same or validation on those fields won't occur. robert > -Original Message- > From: Abhishek Srivastava [mailto:[EMAIL PROTECTED] > Sent: Friday, December 12, 2003 9:35 AM > To: [EMAIL PROTECTED] > Subject: Commons validation framework and struts > > > Hello All, > > I am trying to learn the new validation framework provided with struts > 1.1 and am facing a few problems. > > I have a form object which I have derived from ValidatorForm class. In > this form I have fields like operator1, operator2. I have created a > file called validation.xml where I have made entries like > > > > > > > > > > > > > The entry for action in my struts config is > >type='com.abhi.CalcAction' > scope='request' > name='calcForm' > parameter='action' > input='/calc.jsp' > validate='true'> > > > > name="calcForm" > type="com.abhi.CalcForm" > /> > > The application is working fine. Except that when I leave the fields > operator1 or operator2 empty then no error is reported. > > Is there some step which I have missed out? Please help me out. > > Regards, > Abhishek. > > - > 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Commons validation framework and struts
Hello Ben, I am not using Dynamic forms. I have defined my own form object which derives from ValidatorForm. Are you saying that I must switch to dynamic forms if I want to use the validator framework? Or define my own validtors? One thing which I couldn't find in the validation framework was how to do validation only for a specific value. In my example I have operand1, operand2 and operator. If the operand2 is 0 and the operator is "/", then I would like to check this and raise an error "division by 0 not allowed" for other operators 0 is allowed for operand2. Actually with this prototype I was trying to find out how useful the validation framework is. Also, last time when I worked on struts the validation logic was put inside the form class itself. Is that still allowed? I also have some concerns regarding the use of the XML based validation framework. For my application, validation can get very complex. If I try to do everything via XML then the XML will get bloated and perhaps more complex than the java code. I would need advise from people who have used this framework for complex data validation to confirm whether it can easily be achieved and whether the xml code is easily understandable. Regards, Abhishek. -Original Message- From: Ben Anderson [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 8:21 PM To: [EMAIL PROTECTED] Subject: RE: Commons validation framework and struts You need to decide if you want to use Struts validation or define your own class. You're example below is inconsistent: If you want to use Struts validation(which you probably do): struts-config.xml --- If you are writing your own validation class, you'll want something along these lines: validation.xml You could also implement DynaValidatorActionForm if you want to validate per action rather than per form. hth, Ben >From: "Abhishek Srivastava" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Subject: Commons validation framework and struts >Date: Fri, 12 Dec 2003 20:04:36 +0530 > >Hello All, > >I am trying to learn the new validation framework provided with struts >1.1 and am facing a few problems. > >I have a form object which I have derived from ValidatorForm class. In >this form I have fields like operator1, operator2. I have created a >file called validation.xml where I have made entries like > > > > > > > > > > > > >The entry for action in my struts config is > >type='com.abhi.CalcAction' > scope='request' > name='calcForm' > parameter='action' > input='/calc.jsp' > validate='true'> > > > > name="calcForm" > type="com.abhi.CalcForm" > /> > >The application is working fine. Except that when I leave the fields >operator1 or operator2 empty then no error is reported. > >Is there some step which I have missed out? Please help me out. > >Regards, >Abhishek. > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > _ Cell phone 'switch' rules are taking effect - find out more here. http://special.msn.com/msnbc/consumeradvocate.armx - 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: [OT] Date problerm
very basic jdbc. as each db vendor is bound to have a different format for their dates, especially compounded with locale, let the driver handle the abstraction for you: PreparedStatement pstmt = con.prepareStatement("insert into [table] values (?)"); pstmt.setDate(1, myDateValue); int retval = pstmt.executeUpdate(); always check the API does. they're there to help you - Original Message - From: "Raj Yadav" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, December 13, 2003 7:06 PM Subject: [OT] Date problerm > Hi All, > The dates stored in database is with full time format till seconds. > I > have a SQL query to give dates by every hour and I get date for > every > hour. Basically, I get 24 rows for each day. > > Now, I need to insert this into another date column in a seprate > table > thru a Java Program. I need to know how to set the Date format in > JDBC > for insert it. I tried "MM/dd/ HH" does not works. > > > > thanks in advance > > > > -raj > > > - > 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]
[OT] Date problerm
Hi All, The dates stored in database is with full time format till seconds. I have a SQL query to give dates by every hour and I get date for every hour. Basically, I get 24 rows for each day. Now, I need to insert this into another date column in a seprate table thru a Java Program. I need to know how to set the Date format in JDBC for insert it. I tried "MM/dd/ HH" does not works. thanks in advance -raj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What goes where?
I would say JDBC drivers should not be in the WAR file (WEB-INF/lib) but should go to container. I am wondering, why would you not use a DAO, for my own reasons, since there are questions on user list regarding JDBC, when I think DAO should be used (unless people using DAO just have no problems) and not JDBC; like why would once decide to use JDBC? (vs SQL based DAO like iBatis for example; but any DAO is much better than JDBC). .V Eric SCHULTZ wrote: Good afternoon... I've looked around this list a bit and read the web sites (Tomcat, Struts) and I know a bit about class loaders, but I'm still perplexed. The blank Struts 1.1 app WEB-INF/lib has a bunch of jar files in, some overlap with Tomcat 4.1.27's common/lib directory (namely the commons libraries collections, dbcp, logging, and pool). This leaves commons digester, fileupload, lang, and validator uniquely in the WEB-INF/lib, along with struts.jar, struts-legacy.jar, and jakarta-oro.jar. As I understand struts.jar needs to remain in the WEB-INF/lib directory; I assume struts-legacy.jar should stay there too. But can all my commons jars go in the common/lib directory? Should those not already in common/lib go in shared/lib? I realise some people advocate putting everything the app needs in its WEB-INF/lib directory; and I agree with that if I have version dependancies, but I don't. And I already have to put my JDBC drivers in common/lib to use Tomcat's JNDI datasources so I've already started down that path. Thanks. Eric Schultz. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What goes where?
Hi Eric, On Sat, 2003-12-13 at 16:16, Eric SCHULTZ wrote: > As I understand struts.jar needs to remain in the WEB-INF/lib directory; I > assume struts-legacy.jar should stay there too. But can all my commons jars > go in the common/lib directory? Should those not already in common/lib go > in shared/lib? > > I realise some people advocate putting everything the app needs in its > WEB-INF/lib directory; and I agree with that if I have version dependancies, > but I don't. And I already have to put my JDBC drivers in common/lib to use > Tomcat's JNDI datasources so I've already started down that path. > I'm not sure what the real answer is, but the fact that you're using JNDI apparently reduces your choices a bit. The JNDI-DataSources-Howto explicitly says to put all your commons connection pooling stuff in common/lib and not WEB-INF/lib. Where that leaves some of the other apparently common (and commons-) things isn't clear to me. HTH, Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What goes where?
Good afternoon... I've looked around this list a bit and read the web sites (Tomcat, Struts) and I know a bit about class loaders, but I'm still perplexed. The blank Struts 1.1 app WEB-INF/lib has a bunch of jar files in, some overlap with Tomcat 4.1.27's common/lib directory (namely the commons libraries collections, dbcp, logging, and pool). This leaves commons digester, fileupload, lang, and validator uniquely in the WEB-INF/lib, along with struts.jar, struts-legacy.jar, and jakarta-oro.jar. As I understand struts.jar needs to remain in the WEB-INF/lib directory; I assume struts-legacy.jar should stay there too. But can all my commons jars go in the common/lib directory? Should those not already in common/lib go in shared/lib? I realise some people advocate putting everything the app needs in its WEB-INF/lib directory; and I agree with that if I have version dependancies, but I don't. And I already have to put my JDBC drivers in common/lib to use Tomcat's JNDI datasources so I've already started down that path. Thanks. Eric Schultz. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Repopulation fails after validation
You might have somehow cleared the loginForm bean at the beginning of the jsp, then when it is reshown, it is cleared. Remember that the logonForm was created automatically, and should still have your data. If you do a back, your data should also still be present on the original submit. Stefan Berger wrote: > > Hi, > > I work Struts 1.1. > I have a login.jsp, LoginForm extends ActionForm, LoginAction - > construction. > > When the user make an error in the jsp, the LoginAction validate and > filles the errors (ActionErrors) > The login.jsp is reshown mit all errors but the input data are missing. > > I have no glue why iam losing this data specially when i use the method > saveError(errors, request) > > Can somebody help. I am really confused. > > Best regards > Munot - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] I didn't know Struts was an "antipattern"
A coworker sent me this link and said it was an interesting read. http://today.java.net/pub/a/today/2003/12/11/mvc.html?page=1 Personally I don't think the author put much research into Struts or Java Server Faces (which he doesn't mention at all) before writing this article which has some interesting points and history about MVC, but basically is written to support his new ground breaking Shocks Servlet Framework. robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.29 & Struts
Mukund, What was your problem? Was it specifying your DTD with periods instead of underscores in the appropriate places as I pointed out? Or was there another problem? Regards, David -Original Message- From: Mukund Ramadoss [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 2:29 PM To: 'Struts Users Mailing List' Subject: RE: Tomcat 4.1.29 & Struts Hi David, Thanks for your mail. Actually I don't still know what is causing the problem. Now based on your mail, I've tried with both the following DTDs: http://jakarta.apache.org/struts/dtds/struts-config_1.0.dtd";>struts-conf ig_1_1.dtd http://jakarta.apache.org/struts/dtds/struts-config_1.0.dtd";>struts-conf ig_1_0.dtd The result is same: org.apache.jasper.JasperException: Cannot find message resources under key org.apache.struts.action.MESSAGE Actually when I reload the webapp, I get the following error in my log: 2003-12-08 11:26:07 StandardWrapper[/strutsShop:default]: Loading container servlet default 2003-12-08 11:26:08 StandardWrapper[/strutsShop:action]: Marking servlet action as unavailable 2003-12-08 11:26:08 StandardContext[/strutsShop]: Servlet /strutsShop threw load() exception javax.servlet.UnavailableException: Parsing error processing resource path at org.apache.struts.action.ActionServlet.handleConfigException(ActionServl et.java:1035) at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServl et.java:1014) at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.ja va:955) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav a:935) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j ava:3422) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3623 ) at org.apache.catalina.startup.HostConfig.checkWebXmlLastModified(HostConfi g.java:614) at org.apache.catalina.startup.HostConfig.run(HostConfig.java:854) at java.lang.Thread.run(Thread.java:536) I'm attaching web.xml and struts_config.xml below: ---struts-config.xml - http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";> --web.xml http://java.sun.com/dtd/web-app_2_3.dtd";> action org.apache.struts.action.ActionServlet application config /WEB-INF/struts-config.xml debug 2 detail 2 validate true 2 action /do/* invoker /servlet/* index.jsp index.html /WEB-INF/struts-bean.tld /WEB-INF/struts-bean.tld /WEB-INF/struts-html.tld /WEB-INF/struts-html.tld /WEB-INF/struts-logic.tld /WEB-INF/struts-logic.tld /WEB-INF/struts-template.tld /WEB-INF/struts-template.tld Thanks for your help. Regards Mukund -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Saturday, December 06, 2003 2:39 PM To: Struts Users Mailing List Subject: RE: Tomcat 4.1.29 & Struts Mukund, What was your Tomcat 4.1.29 problem? Was the wrong DTD part of the problem? Regards, David -Original Message- From: Mukund Ramadoss [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 7:06 PM To: 'Struts Users Mailing List' Subject: Tomcat 4.1.29 & Struts Is anyone working with Struts on Tomcat 4.1.29? If yes, can you provide me some inputs on the installation. I'm getting org.apache.jasper.JasperException: Cannot find message resources under key org.apache.struts.action.MESSAGE, when executing in the jsp. Thanks Mukund -Original Message- From: Mukund Ramadoss [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 9:00 AM To: 'Struts Users Mailing List' Subject: RE: org.apache.struts.action.MESSAGE My attachment got denied. I'm enclosing it here. Thanks - Mukund - struts-config.xml http://jakarta.apache.org/struts/dtds/struts-config_1.0.dtd";> - web.xml http://java.sun.com/dtd/web-app_2_3.dtd";> action org.apache.struts.action.ActionServlet application config /WEB-INF/struts-config.xml debug 2 detail 2 validate true application 2 action /do/* invoker /servlet/* index.jsp index.html /WEB-INF/struts-bean.tld /WEB-INF/struts-bean.tld /WEB-INF/struts-html.tl
Re: Newbie can't get saveErrors() working
Instead using try to use: Em SÃb, 2003-12-13 Ãs 08:56, Sheldon Hearn escreveu: > Hi folks, > > I'm in love with the validation framework included with Struts. The > fact that I can do validation with regular expressions and have > client-side JavaScript created for me automatically is fantastic. > > However, there's one error that I have to catch on the server-side in > some cases: an attempt to create a duplicate entity. In this case, I'd > like an error message to appear close to the form input for which it > applies. > > So I'm creating an ActionError in my Action and saving it as follows: > > } catch (DuplicateDomainAliasError e) { > ActionErrors errors = new ActionErrors(); > ActionError error = new ActionError("error.domainAliasName.exists"); > errors.add("domainAliasName", error); > saveErrors(request, errors); > } > > I have error.domainAliasName.exists in my message bundle: > > error.domainAliasName.exists=A domain alias with that name already exists. > > Because domainAliasName is a property of the ActionForm associated with > the I have in my JSP, I expect the message to be displayed > with the following tag: > > > > However, that tag renders the empty string. > > Can someone point out what I'm doing wrong here? I can get the error > displayed at the top of the page by using declarative exception > handling, but the page has a lot of stuff on it, and I'd like the error > displayed close to the form input that it relates to. > > Thanks, > Sheldon. > > - > 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: AW: [OT] Best HTML book for Beginners
Thanks Oliver, purchased it today! Craig W. Tataryn From: "Oliver Thiel" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Subject: AW: [OT] Best HTML book for Beginners Date: Fri, 12 Dec 2003 23:03:24 +0100 Hi Craig, I would recommend: creative html design.2 (2nd Edition) by Lynda Weinman (Author), William Weinman (Author) http://www.htmlbook.com/ An easy to read step-by-step guide. Another opportunity would be the video ;) Learning HTML CD-ROM http://www.lynda.com/products/videos/htmlcd/ Oliver -Ursprüngliche Nachricht- Von: Craig Tataryn [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 12. Dezember 2003 22:33 An: [EMAIL PROTECTED] Betreff: [OT] Best HTML book for Beginners Bought my uncle a domain name for Christmas and I want to get him an HTML book to compliment it. For the absolute beginner, is there a book you would recommend over all others? Thanks, Craig W. Tataryn P.S. reply to my tiles question >:) _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin .msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - 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] _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie can't get saveErrors() working
My (newbie also) I'd suggest that in your struts-config.xml you mess with the null property for your message resource. Configured the right way, instead of null results, you'll see what message resource it was trying for. > -Original Message- > From: Sheldon Hearn [mailto:[EMAIL PROTECTED] > Sent: Saturday, December 13, 2003 5:56 AM > To: [EMAIL PROTECTED] > Subject: Newbie can't get saveErrors() working > > > Hi folks, > > I'm in love with the validation framework included with > Struts. The fact that I can do validation with regular > expressions and have client-side JavaScript created for me > automatically is fantastic. > > However, there's one error that I have to catch on the > server-side in some cases: an attempt to create a duplicate > entity. In this case, I'd like an error message to appear > close to the form input for which it applies. > > So I'm creating an ActionError in my Action and saving it as follows: > > } catch (DuplicateDomainAliasError e) { > ActionErrors errors = new ActionErrors(); > ActionError error = new > ActionError("error.domainAliasName.exists"); > errors.add("domainAliasName", error); > saveErrors(request, errors); > } > > I have error.domainAliasName.exists in my message bundle: > > error.domainAliasName.exists=A domain alias with that name > already exists. > > Because domainAliasName is a property of the ActionForm > associated with the I have in my JSP, I expect > the message to be displayed with the following tag: > > > > However, that tag renders the empty string. > > Can someone point out what I'm doing wrong here? I can get > the error displayed at the top of the page by using > declarative exception handling, but the page has a lot of > stuff on it, and I'd like the error displayed close to the > form input that it relates to. > > Thanks, > Sheldon. > > - > 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]
nested root
hi! i'm doing nested statements for the first time so please tell me where i am wrong. can i write as would they give the same output? i'd think yes but my results dont seem to agree. thanks ajay _ Hot chart ringtones and polyphonics. Go to http://ninemsn.com.au/mobilemania/default.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
display tree structure
hi! i am using the following code to display a tree structure treenode.jsp goes as newUser has the a property functions that references a Tree strcture the Tree structure itself has properties nodeName and children, nodeName is just a String, children is a arraylist of other Tree structures however when i run the above code i dont get anything printed at all. can someone please point out the error? thanks Ajay _ Get less junk mail with ninemsn Premium. Click here http://ninemsn.com.au/premium/landing.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbie can't get saveErrors() working
Hi folks, I'm in love with the validation framework included with Struts. The fact that I can do validation with regular expressions and have client-side JavaScript created for me automatically is fantastic. However, there's one error that I have to catch on the server-side in some cases: an attempt to create a duplicate entity. In this case, I'd like an error message to appear close to the form input for which it applies. So I'm creating an ActionError in my Action and saving it as follows: } catch (DuplicateDomainAliasError e) { ActionErrors errors = new ActionErrors(); ActionError error = new ActionError("error.domainAliasName.exists"); errors.add("domainAliasName", error); saveErrors(request, errors); } I have error.domainAliasName.exists in my message bundle: error.domainAliasName.exists=A domain alias with that name already exists. Because domainAliasName is a property of the ActionForm associated with the I have in my JSP, I expect the message to be displayed with the following tag: However, that tag renders the empty string. Can someone point out what I'm doing wrong here? I can get the error displayed at the top of the page by using declarative exception handling, but the page has a lot of stuff on it, and I'd like the error displayed close to the form input that it relates to. Thanks, Sheldon. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Form and Session
If you're determinted to do this in jsp rather than an action servlet then might do the job. I haven't tried it but I reckon it should work. On 13 Dec 2003, at 06:44, Caroline Jen wrote: The statement below in my JSP can write out the value of the "creator" property in the articleForm: I want to pass the value of the "creator" in a session object. What should I do in my JSP? <% String creator = (String)articleForm.getCreator; session.setAttribute("creator", creator); %> Or, can I pass articleForm in a session object? <% session.setAttribute("articleForm", articleForm);%> __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.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]
form beans
hi! i have a page that shows user operations. Each user operation is represented as a userbean that includes info about the user and a Tree structure for functions that the user can make. the structure is eg: manage database agency table add edit delete this structure is managed through a TreeNode class. the action preceeding the page loads a list of user beans into session and in the page itself i iterate through the list. against each entry i have an edit and delete option. what i would like to know and do is that if someone clicks the edit button against a particular user, the values for that user are shows as editable form fields at the bottom of the same page.(the tree strutcure is displayed through checkboxes) how do i relate a an empty form at the bottom of the page to be filled with information depending upon the button clicked. i currently have an empty form to add a new user at the bottom. thanks ajay _ Hot chart ringtones and polyphonics. Go to http://ninemsn.com.au/mobilemania/default.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Shutdown notice functionality
On Fri, 12 Dec 2003, Wendy Smoak wrote: > Sounds like (yet another) job for a Filter! I have a similar thing, a > MaintenanceFilter that checks to see if the system is under maintenance, > and sends the user to a so-sorry-try-later page. How do you pass along the shutdown command? Through the request with container-authentication or something else? The filter could also be activated to record requests passing through and extracting a list of users who are active, I guess... > Letting them continue on is surely possible... Depends on what's in the > request. Form fields are easy enough to handle with hidden fields, then > the 'OK' button actually submits a new request, with an extra field > that'll let you through the filter. I tend to solve this sort of thing > by putting everything in session scope. Hidden fields are a little tricky since they would have to be generated dynamically (the user could come from any page) and I try not to overuse the session. Is there a JSP/Servlet mechanism for storing/serializing the request completely and passing it along when the user submits with the OK button? --- Nicklas "Nik" Karlsson, Murkiogatan 3 B 29 20740 Åbo, 040 9000 724 [EMAIL PROTECTED] ::: http://www.abo.fi/~nickarls ::: [EMAIL PROTECTED] "If a man speaks in the forest and there is no woman around to hear him - Is he still wrong?" - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]