Generate docx, odt report with Struts2 XDocReport Result
Hi Struts2 User, If you need to generate docx (MS Word), odt (OpenOffice) report with Struts2 (like Jasper), you can use XDocReporthttp://code.google.com/p/xdocreport/ where you can design your odt, docx report with MS Word or OpenOffice by using Velocity/Freemarker syntax to set fields to replace (no need to write your report with XML like Jasper or use private designer, the designer of the report is MS Word or OpenOffice). Note just that XDocReport manages simple report (replace fields, manage loop, condition, etc). XDocReport provides org.apache.struts2.views.xdocreport.XDocReportResult which is a Struts2 Result to generate report with docx, odt and convert it to another format PDF/XHTML if you wish. For XDocReport Struts2 Result please read http://code.google.com/p/xdocreport/wiki/DocxReportingStruts2 We have used org.apache.struts2.views.xdocreport package name because if Struts2 is interested with the XDocReport Result, we can gives you the code (like you have done with Struts2 Jasper) Struts2 developers, if you are interested to host the code of the Struts2 Result XDocReport, don't hesitate to contact me. We use Maven to build XDocReport and you can use pom on the Maven central repository to have dependencies to XDocReport. Regards Angelo
Re: Rtf Templating
Hi Nick, I don't know the complexity of your report you want manage, but there is http://rtftemplate.sourceforge.net/ With RTFTemplate you can create your model with MS Word and use Velocity syntax with MERGEFIELD to set your field name. RTFTemplate provides a macro http://rtftemplate.sourceforge.net/userguide/design-rtfmodel/msword.htmlwhich give you a dialog page with your fields model. The only problem with RTFTemplate is that I have not time to support it (but it's very stable). I'm developping a new project which will support docx and odt files with Freemarker and Velocity. If you wish more information, I could tell you more. Regards Angelo 2011/2/8 Frans Thamura fr...@meruvian.org use the jasper with doc . it is rtf CMIIW On Tue, Feb 8, 2011 at 11:49 AM, Nick Broadhurst hou1...@gmail.com wrote: Hi Folks, A client provided me with a bunch of documents to serve up to users through the browser with fields populated from DB, some PDFs and some RTF/Word docs. I have the PDFs handled beautifully with iText, but was wondering if they are any options (open-source) for the RTF/Word docs? I found these: jRTF (small inde project): http://code.google.com/p/jrtf/ and Apache POI: http://poi.apache.org/ http://code.google.com/p/jrtf/and wondered if anyone has used these or anything like them before I start down the rabbit hole! Nick
Re: Struts2 IDE, eclipse plugins to manage struts2 xml file, areyou interested?
Hi Struts2 users, I have improved Struts2 plugins for serveral things like manage JSP taglib to have completion, validation, hyperlink for action and messages properties. If you wish you can see screen at https://tk-ui.svn.sourceforge.net/svnroot/tk-ui/cnaf.sidoc.ide/docs/org.appache.struts2.ide.odt I cannot create a distribution now, because I must improve it again (like manage XWork validator + search struts.xml from the JAR). Regards Angelo 2010/12/17 Angelo zerr angelo.z...@gmail.com Hi Johannes, Frans, Hansty, Thank a lot for your answer. Today it doens't exists Update Site for Struts2 IDE (I have developped that this Thursday in 2 hours). But if you know how test Eclipse Plugins you can get sources plugin from SVN (the attached doc tell you where you can find sources ): * https://tk-ui.svn.sourceforge.net/svnroot/tk-ui/cnaf.sidoc.ide/org.eclipse.wst.xml.search.core/ * https://tk-ui.svn.sourceforge.net/svnroot/tk-ui/cnaf.sidoc.ide/org.eclipse.wst.xml.search.ui/ * https://tk-ui.svn.sourceforge.net/svnroot/tk-ui/cnaf.sidoc.ide/org.eclipse.wst.xml.search.editor/ for generic WTP XML Search and * https://tk-ui.svn.sourceforge.net/svnroot/tk-ui/org.apache.struts2.ide/org.apache.struts2.ide.core/ * https://tk-ui.svn.sourceforge.net/svnroot/tk-ui/org.apache.struts2.ide/org.apache.struts2.ide.ui/ for Struts2 IDE. After you can open a MANIFEST.MF and run plugins which will open a new Eclipse with Struts2 IDE loaded and you will can test it. If you see last doc version at https://tk-ui.svn.sourceforge.net/svnroot/tk-ui/cnaf.sidoc.ide/docs/org.appache.struts2.ide.odt you will see that action/@method works now : you have completion, validation, hyperlink for Java method. Regards Angelo 2010/12/17 Hantsy Bai han...@gmail.com 于 2010/12/17 10:17, Frans Thamura 写道: Right Is the source available also? /m/ -Original Message- From: Johannes Geppert jo...@web.de Date: Thu, 16 Dec 2010 11:35:50 To: user@struts.apache.org Reply-To: Struts Users Mailing List user@struts.apache.org Subject: Re: Struts2 IDE, eclipse plugins to manage struts2 xml file, are you interested? Hi Angelo, this looks great. When do you think is this available? Is there a Beta version available for tests? Best Regards Johannes Geppert azerr wrote: Hi Struts2 Team, I introduce to me. I'm Angelo ZERR and I'm developping a generic XML search engine Eclipse plugins that I would like contribute to WTP Eclipse (please read bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=330576). This plugins give you the capability to : * search XML nodes with XPath from your workspace files. * develop your plugins to manage compeltion, validation, hyperlink for custom XML files. I have started to create plugins for Jetty and I have started to develop Struts2 IDE based on XML Search engine to manage struts2.xml (I have developped Struts2 IDE in 2 hours). On other words you benefit : * Java completion, validation, hyperlink for @class attribute in your struts.xml * XML completion, validation, hyperlink (ex : having completion for interceptor, interceptor-stack for interceptor-ref) You can see screenshot in (ODT) documentation that I have attached. If you can not read ODT, I have commited a RTF version at https://tk-ui.svn.sourceforge.net/svnroot/tk-ui/cnaf.sidoc.ide/docs I have stared Struts2 IDE to validate my XML Search engine, but I have another thing to manage (like Java method). If you are interested with Struts2 IDE, tell me and I will continue to improve it. Regards Angelo - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - --- web: http://www.jgeppert.com twitter: http://twitter.com/jogep Great news for Struts2 developers. As far as I know, there is no good open source Struts2 plugin for Eclipse. MyEclipse provides such one, but it is an commercial product, you need a subscription. NetBeans has a good plugin for Struts2 development, http://nbstruts2support.dev.java.net. Kind regards Hantsy - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts2 IDE, eclipse plugins to manage struts2 xml file, areyou interested?
Hi Johannes, Frans, Hansty, Thank a lot for your answer. Today it doens't exists Update Site for Struts2 IDE (I have developped that this Thursday in 2 hours). But if you know how test Eclipse Plugins you can get sources plugin from SVN (the attached doc tell you where you can find sources ): * https://tk-ui.svn.sourceforge.net/svnroot/tk-ui/cnaf.sidoc.ide/org.eclipse.wst.xml.search.core/ * https://tk-ui.svn.sourceforge.net/svnroot/tk-ui/cnaf.sidoc.ide/org.eclipse.wst.xml.search.ui/ * https://tk-ui.svn.sourceforge.net/svnroot/tk-ui/cnaf.sidoc.ide/org.eclipse.wst.xml.search.editor/ for generic WTP XML Search and * https://tk-ui.svn.sourceforge.net/svnroot/tk-ui/org.apache.struts2.ide/org.apache.struts2.ide.core/ * https://tk-ui.svn.sourceforge.net/svnroot/tk-ui/org.apache.struts2.ide/org.apache.struts2.ide.ui/ for Struts2 IDE. After you can open a MANIFEST.MF and run plugins which will open a new Eclipse with Struts2 IDE loaded and you will can test it. If you see last doc version at https://tk-ui.svn.sourceforge.net/svnroot/tk-ui/cnaf.sidoc.ide/docs/org.appache.struts2.ide.odt you will see that action/@method works now : you have completion, validation, hyperlink for Java method. Regards Angelo 2010/12/17 Hantsy Bai han...@gmail.com 于 2010/12/17 10:17, Frans Thamura 写道: Right Is the source available also? /m/ -Original Message- From: Johannes Geppert jo...@web.de Date: Thu, 16 Dec 2010 11:35:50 To: user@struts.apache.org Reply-To: Struts Users Mailing List user@struts.apache.org Subject: Re: Struts2 IDE, eclipse plugins to manage struts2 xml file, are you interested? Hi Angelo, this looks great. When do you think is this available? Is there a Beta version available for tests? Best Regards Johannes Geppert azerr wrote: Hi Struts2 Team, I introduce to me. I'm Angelo ZERR and I'm developping a generic XML search engine Eclipse plugins that I would like contribute to WTP Eclipse (please read bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=330576). This plugins give you the capability to : * search XML nodes with XPath from your workspace files. * develop your plugins to manage compeltion, validation, hyperlink for custom XML files. I have started to create plugins for Jetty and I have started to develop Struts2 IDE based on XML Search engine to manage struts2.xml (I have developped Struts2 IDE in 2 hours). On other words you benefit : * Java completion, validation, hyperlink for @class attribute in your struts.xml * XML completion, validation, hyperlink (ex : having completion for interceptor, interceptor-stack for interceptor-ref) You can see screenshot in (ODT) documentation that I have attached. If you can not read ODT, I have commited a RTF version at https://tk-ui.svn.sourceforge.net/svnroot/tk-ui/cnaf.sidoc.ide/docs I have stared Struts2 IDE to validate my XML Search engine, but I have another thing to manage (like Java method). If you are interested with Struts2 IDE, tell me and I will continue to improve it. Regards Angelo - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - --- web: http://www.jgeppert.com twitter: http://twitter.com/jogep Great news for Struts2 developers. As far as I know, there is no good open source Struts2 plugin for Eclipse. MyEclipse provides such one, but it is an commercial product, you need a subscription. NetBeans has a good plugin for Struts2 development, http://nbstruts2support.dev.java.net. Kind regards Hantsy - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: About the better way to implement a JSP in read/edit mode
Hi, IHMO I think the best solution is ONE JSP to manage any mode. When you have a lot of fields, it's very difficult to maintain your view. When you add/remove field into EDIT JSP you must add/remove filed into CREATE JSP, UPDATE JSP,...Imagine that you want manage roles too (display a field if user has some roles). This combinaison becomes awfull if you have a JSP per mode. That's why I have created FormView. Manage your CRUD form with ONE JSP. FormView capture the HTML generated by JSP and update it switch mode, roles... I had developped this project to manage any Taglib. But IHMO I think it should be very cool that Struts2.x manage edit mode into Taglib. You can find this idea into Struts-Layouthttp://struts.improve-technologies.com/features/displaymode.html(DisplayMode). You drive the display mode on server and taglib display the HTML switch the mode. The only diffuclty with this idea is to configure th etaglib to generate a string A country (HTML generated = A country) instead of a HTML select which display A country (HTML generated = selectoption selected=trueA country/optionoptionB country/option/select Regards Angelo 2010/3/11 Paweł Wielgus poulw...@gmail.com Hi all, no one's right. One file need more presentation logic - which is bad and harder to maintain also presenting edit and view in one place might not be the most ergonomic way for users. On the other hand, one file is less than two which might be good. Also with one file you will never forget to present in view file new field that just had been added to model in edit. The point here is that there is no simple answear for this question. Best greetings, Pawel Wielgus. 2010/3/10, Frederik Minatchy frederi...@yahoo.fr: many thanks :) I appreciate your response --- En date de : Mer 10.3.10, Alex Rodriguez Lopez alo...@flordeutopia.pt a écrit : De: Alex Rodriguez Lopez alo...@flordeutopia.pt Objet: Re: About the better way to implement a JSP in read/edit mode À: user@struts.apache.org Date: Mercredi 10 mars 2010, 10h24 I do tend to think that the less files the better. Here it's the same with the number of files for actions/jsp, one can use more actions, ore less actions but more methods inside. Same with jsp, I do think it's better with less files, but a colleague here also thinks the opposite, sometimes with less files you have to provide aditional checks or cases so one file fits all possible use cases. I think it's more elegant for me with same file for read and edit, but others might dissagree, not sure if a way is better than the other :) Alex Em 10-03-2010 09:43, Frederik Minatchy escreveu: I think I will think about that during my next Struts2 project :) But about my question Do I have to develop several interfaces with the same fields in read mode and edit mode? Does this mean that I should use the same JSP to do both? (that's already what I have done... but a colleague thinks that it is not the better way... who's right? :) ) --- En date de : Mer 10.3.10, Angelo zerrangelo.z...@gmail.com a écrit : De: Angelo zerrangelo.z...@gmail.com Objet: Re: About the better way to implement a JSP in read/edit mode À: Struts Users Mailing Listuser@struts.apache.org Date: Mercredi 10 mars 2010, 9h26 Hi Frederik, FormView can works with any HTML or JSP Taglib. It update HTML switch configuration and state of your HTML field. Formview works with Struts 1.x to use information about validation.xml (like required, date...). I don't know how works Struts 2.x validation but I think it's possible to develop that. Regards Angelo 2010/3/10 Frederik Minatchyfrederi...@yahoo.fr Hello... Thank you for your answer... Your tag seems usefull.. but it seems to have been developped for Struts 1.x --- En date de : Mar 9.3.10, Angelo zerrangelo.z...@gmail.com a écrit : De: Angelo zerrangelo.z...@gmail.com Objet: Re: About the better way to implement a JSP in read/edit mode À: Struts Users Mailing Listuser@struts.apache.org Date: Mardi 9 mars 2010, 21h04 Hi Frederick, I had created a project about this problem with http://formview.sourceforge.net/ With FormView, you develop ONE Jsp to manage CRUD form. It's old project but it works well (I have not time today to improve it). Regards Angelo 2010/3/9 Paweł Wielguspoulw...@gmail.com Hi Frederick, You can also add readonly or disabled property to textfields. But i don't think that there is a simple answear to your question about if it is good or bad. Best greetings, Paweł Wielgus. 2010/3/9 Frederik Minatchyfrederi...@yahoo.fr: Hello everybody... I wonder about the better way to implement a JSP which shows the same informations in readonly mode and in
Re: About the better way to implement a JSP in read/edit mode
Hi Frederik, FormView can works with any HTML or JSP Taglib. It update HTML switch configuration and state of your HTML field. Formview works with Struts 1.x to use information about validation.xml (like required, date...). I don't know how works Struts 2.x validation but I think it's possible to develop that. Regards Angelo 2010/3/10 Frederik Minatchy frederi...@yahoo.fr Hello... Thank you for your answer... Your tag seems usefull.. but it seems to have been developped for Struts 1.x --- En date de : Mar 9.3.10, Angelo zerr angelo.z...@gmail.com a écrit : De: Angelo zerr angelo.z...@gmail.com Objet: Re: About the better way to implement a JSP in read/edit mode À: Struts Users Mailing List user@struts.apache.org Date: Mardi 9 mars 2010, 21h04 Hi Frederick, I had created a project about this problem with http://formview.sourceforge.net/ With FormView, you develop ONE Jsp to manage CRUD form. It's old project but it works well (I have not time today to improve it). Regards Angelo 2010/3/9 Paweł Wielgus poulw...@gmail.com Hi Frederick, You can also add readonly or disabled property to textfields. But i don't think that there is a simple answear to your question about if it is good or bad. Best greetings, Paweł Wielgus. 2010/3/9 Frederik Minatchy frederi...@yahoo.fr: Hello everybody... I wonder about the better way to implement a JSP which shows the same informations in readonly mode and in creation/modification mode. So I have just designed the JSP' fields with s:textfield who can be dynamically shown in readonly mode with special css (background:transparent; border:none;...) specified in the action class. So the action class sets some attributes with certains values and than the html stream is generated in read mode or in edit mode. Is this the good way or should I developpe two JSP : one in read mode and an other one in edit mode? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: About the better way to implement a JSP in read/edit mode
Hi Frederick, I had created a project about this problem with http://formview.sourceforge.net/ With FormView, you develop ONE Jsp to manage CRUD form. It's old project but it works well (I have not time today to improve it). Regards Angelo 2010/3/9 Paweł Wielgus poulw...@gmail.com Hi Frederick, You can also add readonly or disabled property to textfields. But i don't think that there is a simple answear to your question about if it is good or bad. Best greetings, Paweł Wielgus. 2010/3/9 Frederik Minatchy frederi...@yahoo.fr: Hello everybody... I wonder about the better way to implement a JSP which shows the same informations in readonly mode and in creation/modification mode. So I have just designed the JSP' fields with s:textfield who can be dynamically shown in readonly mode with special css (background:transparent; border:none;...) specified in the action class. So the action class sets some attributes with certains values and than the html stream is generated in read mode or in edit mode. Is this the good way or should I developpe two JSP : one in read mode and an other one in edit mode? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts generate code
Hi, If you use Eclipse, you can see Akrogen http://akrogen.sourceforge.net/which is Eclipse plugin to describe your wizard with XML (XUL) and Javascript and link it to a template (XSL, Freemarker, Velocity...) Akrogen works wit catalog (folder which contains, XUL wiizard, templates..). You can find catalog for Struts1.x at http://akrogen.sourceforge.net/struts-catalog/struts1x.html But it's easy to write your own catalog to generate what you want. Regards Angelo 2009/2/27 Musachy Barroso musa...@gmail.com You can use Java APT: http://java.sun.com/j2se/1.5.0/docs/guide/apt/GettingStarted.html We use it for struts-annotations (internal tool to generate TLD files for tags): http://svn.apache.org/viewvc/struts/maven/trunk/struts-annotations/ musachy On Fri, Feb 27, 2009 at 12:59 PM, Mileidys Gonzalez Prieto mileidys.gonza...@i-frontier.net wrote: Hi, Im searching for tools that allows to generate some struts resources, like validation and app resources. I was looking around and I found the xDoclet annotations for to generate struts code, but my database is really so big, not so easy going to all the POJOs for to do that. Any other way, please? I was trying also to find ways to generate the POJOs with xDoclet annotations because anyway hibernate contains max-lenght and no-null values... Thank you, Mileidys Gonzalez Prieto - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Use Same JSP Page For Several Modes (View, Edit, Approve, Create)
Hi, I had worked several years ago about this feature. And I had created FormView http://formview.sourceforge.net/index.html project to manage that. FormView works with any taglib or with pur HTML because it update HTML code on server switch configuration (eg ; remove input HTML code if user has not he well role). *FormView* is enable to update HTML generated by JSP to add, replace new HTML content, in order to manage *state* (CREATE, UPDATE, READ...) of form and *fields characteristics* (DATE, MAXLENGTH, REQUIRED). With FormView you can : - render fields of form *according to state* by developing just *ONE JSP* . - render fields of form *according to fields characteristics* (Date, Required, Maxlength) by developing just *ONE JSP*. - *customize HTML render* which you want generate according to state and fields characteristics. - *manage your HTML field swith user role*. In according to user role, some HTML fields can be READ-ONLY, READ-WRITE, INVISIBLE - *test your HTML rendered* without WEB Application. You can develop class FormViewTest and test HTML rendered with simple HTML String. Regards Angelo 2008/11/19 Alberto Flores [EMAIL PROTECTED] The way I did was to override the backing components of the struts tags. I added logic there to simple control which template is used (depending on the role). I felt that I could use the Components (and Tag objects) as controllers for this purpose. Mississippi John Hurt wrote: Does anyone have sample JSP with a clean, easy way to utilize the same JSP page for multiple views, maybe even by users with different roles? Is there any best practice? I wonder if anyone has found a way to do it with as little hardcoding as possible, and also being able to handle multiple modes, with different submit buttons for users with different roles. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can i user Swing as V in the Struts MVC
Hi the topic is very interesting. For me the View can be : * HTML description of the view where the browser interpret HTML to displauy UI. * XML content, JSON content...and with Ajax we can update the UI or do another thing. I have read the tutorial http://javaboutique.internet.com/tutorials/Swing/ and I understnd that View is used as data and not to generate Swing UI. So my question is what do yout manage : 1. The server returns HTML content and Swing interface is generated? 2. The server some content (XML, JSON) and you use this content to populate UI but the Swing UI is built at hand? If you are interested with first point, perhaps you should be interested with my TK-UI project http://tk-ui.sourceforge.net/ where you can describe you UI with XHTML and XUL (or anther XML markup) and render it into Swing and SWT. My project is not finished but I start to manage XHTML basic description like XHTML element like input, XHTML Table, XUL widgets (textboxn listbox...) If you are interseted don't hesitate to contact me, we could think about Swing (or SWT) View with Struts2. Regards Angelo 2008/6/16 Frans Thamura [EMAIL PROTECTED]: there is a project called pendulum, using swing as V, but the project never grow up i think that will be cool if struts2 have a View in Swing F
Re: Plug in for Eclipse 3.2 to run struts applications
Hi, if you use struts1.x, you could use the Akrogen struts1.x cataloghttp://akrogen.sourceforge.net/struts-catalog/struts1x.htmlto generate Action, ActionForm, JSP, struts-config. Akrogen http://akrogen.sourceforge.net/index.html is plugin Eclipse whee you can write Eclipse wizard with XML/XUL. It is linked to template written into Freemarker, Velocity or XSL. So if the Akrogen struts1.x catalog don't please you (the wizard, the generated code), you can modifiy like you want. Regards Angelo 2007/9/30, Arunkumar Balasubramanian [EMAIL PROTECTED]: Hi Do any one have link where I can download plug in for eclipse 3.2 for running struts applications. I tried Easy Struts and it works only with eclipse 2.x and not with eclipse 3.2. I am running a application in my PC and need this plug in. If any one have link to download the plug in, that would be great. Thanks _ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+worldmkt=en-USform=QBRE
Re: Easier/simplier way to do read-only versions of pages?
Hi, You could use Formview Taglib. See at http://formview.sourceforge.net/ With Formview you can manage any fields mode (READONLY, READWRITE, INVISIBLE...) on server side. With Formview you must not use javascript or not use a lot of logic:equal. For instance of you have JSP, like this : formview:page !-- HTML input text -- input type=text name=project value=Struts Project / !-- Struts HTML input text -- html:text property=projectDate / other JSP taglib /formview:page You set READ state on server side with WEBFormViewUtil class (see documentation) and after HTML generated is : !-- HTML input text -- input type=text name=project value=Struts Project readonly=readonly/ !-- Struts HTML input text -- input type=text name=projectDate value= readonly=readonly/ With Formview you can mange * role http://formview.sourceforge.net/roles.html (display field switch role) * errors http://formview.sourceforge.net/errors.html (to set the brakground color of field with red color). With Formview you manage any state (CREATE, UPDATE..) and any mode (READONLY...). You choose the HTML generated that you want switch state ans mode and HTML element type (select, input...) See at http://formview.sourceforge.net/developer-guide.html Regards Angelo 2007/9/14, Geoffrey Gallaway [EMAIL PROTECTED]: Hello, I've been looking for a solution that allows me to create form and read-only versions of the same page. Each page will have a version where a logged-in user can enter the data and a version where a non logged in user will only be able to view the data. This is my current solution: logic:equal name=readOnly value=true bean:write name=myFormBean property=firstName/ /logic:equal logic:equal name=readOnly value=false html:text property=firstName maxlength=100 styleClass=textInput/ /logic:equal That's 6 lines of code for what only needs to be 1 or 2 lines of code. It would be 8 lines if I wrapped it in a logic:present tag to prevent errors if readOnly doesn't get set in the action. I've received suggestions such as just set the field to read-only or disabled but I don't want the user to see the form-elements. I've also been told to use javascript and spin through each field on page load. I don't like relying on javascript for this kind of problem. I've considered extending the standard struts html taglib to allow for a editMode tag but if someone has already come up with a good solution I'd like to hear about it. Thanks, Geoffeg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Darg n Drop in struts
Hi I don't think it exists taglib which generate the widget that you want. I answer you to use Javascript framework like DOJO or Scriptaculous to manage Drag/Drop. JSControlsTags is based on Scriptaculous. Into Scriptaculous you have Sortable widget (wich is used too into JSControlsTags) and it can manage drag/drop. You have puzzle demo at http://wiki.script.aculo.us/scriptaculous/page/print/SortableFloatsDemo If you want very good component, you could develop taglib wich generate the Sortable Javascript. You can see source of JSControlsTags to see how it manage that. And if you are interested (and you have time), you could contribute to JSControlsTags to add this new widget. Regards Angelo 2007/9/11, Kavita Mehta [EMAIL PROTECTED]: Hi, I have a requiremenet where i have to create draggable components in my JSP . Rather, draggable rectangle which can fit into a piece just like jigsaw puzzle and then I have to submit the page conveying the position of each draggable component. I have seen JS Controls Tags taglib but could only find list in that ...Anybdy has any other suggestion on how to achieve this. Thanks, Kavita *DISCLAIMER* This message and/or attachment(s) contained here are confidential, proprietary to HUGHES SYSTIQUE and its customers. Contents may be privileged or otherwise protected by law. The information is solely intended for the entity it is addressed to. If you are not the intended recipient of this message, it is strictly prohibited to read, forward, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately and delete the message.
Re: tabs (struts + tiles) How to do it ??
Hi robin tabs of JSPTabcontrol is customized with css. To customize it you must undersand HTML generated (see http://jsptabcontrol.sourceforge.net/developer-guide.html) and know css. What is your problem with css? Regards Angelo 2007/8/25, robinbajaj [EMAIL PROTECTED]: This thread is very relevant to me since I am currently trying to use JSPtabcontrol taglib and evaluating Struts-menu as well. (JSPtabcontrol) = Its working fine for me, except that I cannot change the tab look easily. For eg. If I have 8 tabs, (all of different size) then I have to create 8 different gifs (of proper size and label) and put them in the background of tab using css background-image property which is a maintenance burden (since those tabs labels could change during the dev phase of the project). b) also there does not seem to be any support (at the taglib level) for events like hover etc. to change the tab look when you click the tab or hover mouse over it. Do you know if there's some way around that.. ?? (Struts-Menu) = Similar question for Wendy Smoak (kindly answer please..!) about the Struts-Menu project. Can i easily change the look of my tabs ( I want to show nice gifs for the tabs and sub-tabs). Any help/pointers would be highly appreciated since I am really tired of finding some good nested (horizontal) tabs solution for my struts 1.x project. robin azerr wrote: Hello, if you want, you can ue JSPTabControl which is taglib which manage tabs in your JSP. JSPTabControl gives you several features like keep the last tabs selected after posting a form, Get the name of tab which is selected into your action struts,... You can set a state for a tab (READ, FORBIDDEN) to for instance display your FORBIDDEN tab with red color. You can find JSPTabControl at http://jsptabcontrol.sourceforge.net/ Regards Angelo 2006/5/27, Wendy Smoak [EMAIL PROTECTED]: On 5/26/06, A. Lotfi [EMAIL PROTECTED] wrote: How to use struts and tiles to have like this example : http://www.assortedinternet.com/tiles-documentation/examples/summariesTabs.jsp I used to use that layout, but I switched to Struts Menu a long time ago: http://struts-menu.sourceforge.net/ Also, search the user list archives for posts by Michael Jouravlev, who has another project with a nice tabbed layout. I think this is the source code for the tabbed Tiles layout you linked to: http://svn.apache.org/viewvc/struts/sandbox/trunk/tiles-documentation/src/webapp/layouts/tabsLayout.jsp?revision=328777view=markup HTH, -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/forms-in-struts-layout-tabstf1683389.html#a12329319 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Serious need
Hi, you can too download Eclipse (Europa) distribution *Eclipse IDE for Java EE Developershttp://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/20070702/eclipse-jee-europa-win32.zipr=1protocol=http * into http://www.eclipse.org/downloads/. There is several plugin already intstalled for develop J2EE web application (Tomcat, JSP...). Regards Angelo 2007/8/16, Andvar Woo [EMAIL PROTECTED]: *Download Plug-ins* Tomcat plug-in *check the parent link for the newest version.* http://www.sysdeo.com/eclipse/tomcatPluginV3.zip lomboz plug-in needs two parts,one is emf,the other is lomboz emf *check the parent link for the newest version.* http://eclipse.mirrors.tds.net/tools/emf/downloads/drops/2.0.1/R200409171617/emf- sdo-runtime-2.0.1.zip lomboz *check the parent link for the newest version.* http://download.forge.objectweb.org/lomboz/org.objectweb.lomboz_3.0.1.N2 0050106.zip assume we install eclipse at D:\eclipse upzip the tomcatPluginV3.zip,and copy the com.sysdeo.eclipse.tomcat_3.0.0to eclipse's puglins forder, here is D:\eclipse\plugins .Unzip the emf and lomboz and copy the feature and plugins to D:\eclipse\ *Configue Lomboz* *see the links below,if the links didn't help,google it with Configue Lomboz in Eclipse* http://weblogs.asp.net/jdanforth/articles/149111.aspx http://weblogs.asp.net/jdanforth/archive/2004/06/05/149125.aspx http://www.eclipseplugincentral.com/PNphpBB2-printview-t-861-start-15.html Good luck! 2007/8/16, meisam sarabadani [EMAIL PROTECTED]: Dear Friend I have tried this example while i was waiting for your reply : http://struts.apache.org/2.0.9/docs/struts-2-spring-2-jpa-ajax.html i have done the whole things and steps, but when i wanted to publish the project to Tomcat it did not publish it, and gave me no error, seems that tomcat is not able to do it , does tomcat need a plugin to talk to eclipse? but before the struts coming in I was working with tomcat and publishing my projects. :( On 8/16/07, Andvar Woo [EMAIL PROTECTED] wrote: That needs some plug-ins to support,you can try Lomboz how to install Lomboz ? should i only get it and put it in a eclipse plugins dir ? *A:just download it and put it in the eclipse plug-in, you can google it with key words: eclipse Lomboz for details* thirdly,configure the web.xml , below is a sample configure can i just copy and paste your sample ? or should i modify it? based on what i need to modify my web.xml ? *A: you can copy it to begin.* then,create a struts.xml in the src forder (src/struts.xml) and configure it,below is a sample. *A: If you create a action named MyAction,and the full package name is com.mycompany.action.MyAction ,then you should change the action name,class.* !--extends here is simlar to extends in Java language. you can inherit the configures from other packages or a default package .*see the doc's Guides about Configuration* -- package name=a name to distinguish with other packages extends=struts-default !--Configure action is similar to configure servlet and filter-- action name=a alias for MyAction,you can just use MyAction class=the full package path, here is com.mycompany.action.MyAction !-- the action's methods(the default is execute() ) return a String like SUCCESS,ERROR,INPUT, the result elements tell struts what to do if certain string returns. *see the doc's Guides about Configuration* -- **result name=success/success.jsp /result result name=input/Login.jsp/result /action /package *Just follow the docs's Getting started, code the examples one by one*. I'am a newbie too. On 8/16/07, Andvar Woo [EMAIL PROTECTED] wrote: Firstly,create a empty dynamic web project. That needs some plug-ins to support,you can try Lomboz sencondly,copy/import the following 5 essential jars to the /WEB-INF/lib folder struts2-core.jar xwork.jar ognl.jar freemarker.jar commons-logging.jar you can find these jars in the strtus pack you downloaded. thirdly,configure the web.xml , below is a sample configure --- web.xmlstart--- ?xml version=1.0 encoding=UTF-8? web-app version=2.5 xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; display-nameStruts2 configure sample/display-name filter-namestruts2/filter-name filter-class org.apache.struts2.dispatcher.FilterDispatcher /filter-class /filter filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern
Re: tree viewer help please!
Hi, if you use struts2.x, you should use s:tree I think or otherwise you could use http://jscontrolstags.sourceforge.net/controls/treeview/treeview.html You have demo at http://jscontrolstags.sourceforge.net/demo/treeview/treeview.html This tree is based on scriptaculous (to manage AJAX, editable, droppable node,...) Regards Angelo 2007/7/30, Session A Mwamufiya [EMAIL PROTECTED]: Hi All, Please help me build a tree viewer. I know that someone must have developed a web app that uses a tree viewer that loads data from a database. Please walk me through it or send me a tutorial link. Thanks, Session - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to make tabs in JSP
Hi, I think you can do that with CSS with overflow:auto, litke this http://www.domedia.org/oveklykken/css-div-scroll.php Before configuring CSS, you must underst and generated HTML by JSPTabControl http://jsptabcontrol.sourceforge.net/developer-guide.html to know the CSS to updating to add overflow Regards Angelo 2007/7/24, Kavita Mehta [EMAIL PROTECTED]: Hi Angelo, Do you have any idea how can I make the tabs scrollable . Actually, the height of one of the tabs is more which makes the other tabs look empty OR can the tabs be of different height ?? which I assume not cos height is the parameter of jsptabcontrol:tabControl and not jsptabcontrol:tabPage thanks Angelo zerr [EMAIL PROTECTED] 06/29/2007 06:13 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject Re: How to make tabs in JSP Hi thank you Wong dor your response. You have right. So in your url you must add parameter tabPageInputHiddenName into url like this : /status.do.do?tabPageInputHiddenName_PERSONNE_TABCONTROL=ADRESS_TABPAGE I have explain it at http://jsptabcontrol.sourceforge.net/user-guide.html#How%20manage%20tab%20page%20with%20runat%20server ? Regards Angelo 2007/6/29, Kavita Mehta [EMAIL PROTECTED]: But then that means that my tabbed JSP would have code for all the tabs ..How does it identify which tab code to open ?? WongTseng [EMAIL PROTECTED] 06/29/2007 05:28 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject Re: How to make tabs in JSP The action which is mapped to the url status.do should forward to the jsp in which you have used the JSPTagControl. In this way several actions can share a single tabbed jsp. So don't put the content of the a tab in a separate jsp. 2007/6/29, Kavita Mehta [EMAIL PROTECTED]: Hi Angelo, thanks for your help . I am using the JSPTagControl in my JSP as: jsptabcontrol:tabControl name=PERSONNE_TABCONTROL width=800px height=100% jsptabcontrol:tabPage name=IDENTITY_TABPAGE title=BSSMAP Stats width=100px BSSMAP Stats ...follows... /jsptabcontrol:tabPage jsptabcontrol:tabPage name=ADRESS_TABPAGE title=Call Control Stats href=/status.do /jsptabcontrol:tabPage /jsptabcontrol:tabControl My problem is that when I click the second tab, the page corresponding to /status.do is displayed as a full page JSP and not as a part of tabbed JSP page. Please help. Regards, Kavita -- Wong Tseng 王曾 *DISCLAIMER* This message and/or attachment(s) contained here are confidential, proprietary to HUGHES SYSTIQUE and its customers. Contents may be privileged or otherwise protected by law. The information is solely intended for the entity it is addressed to. If you are not the intended recipient of this message, it is strictly prohibited to read, forward, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately and delete the message. *DISCLAIMER* This message and/or attachment(s) contained here are confidential, proprietary to HUGHES SYSTIQUE and its customers. Contents may be privileged or otherwise protected by law. The information is solely intended for the entity it is addressed to. If you are not the intended recipient of this message, it is strictly prohibited to read, forward, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately and delete the message.
Re: How to make tabs in JSP
Hi thank you Wong dor your response. You have right. So in your url you must add parameter tabPageInputHiddenName into url like this : /status.do.do?tabPageInputHiddenName_PERSONNE_TABCONTROL=ADRESS_TABPAGE I have explain it at http://jsptabcontrol.sourceforge.net/user-guide.html#How%20manage%20tab%20page%20with%20runat%20server? Regards Angelo 2007/6/29, Kavita Mehta [EMAIL PROTECTED]: But then that means that my tabbed JSP would have code for all the tabs ..How does it identify which tab code to open ?? WongTseng [EMAIL PROTECTED] 06/29/2007 05:28 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject Re: How to make tabs in JSP The action which is mapped to the url status.do should forward to the jsp in which you have used the JSPTagControl. In this way several actions can share a single tabbed jsp. So don't put the content of the a tab in a separate jsp. 2007/6/29, Kavita Mehta [EMAIL PROTECTED]: Hi Angelo, thanks for your help . I am using the JSPTagControl in my JSP as: jsptabcontrol:tabControl name=PERSONNE_TABCONTROL width=800px height=100% jsptabcontrol:tabPage name=IDENTITY_TABPAGE title=BSSMAP Stats width=100px BSSMAP Stats ...follows... /jsptabcontrol:tabPage jsptabcontrol:tabPage name=ADRESS_TABPAGE title=Call Control Stats href=/status.do /jsptabcontrol:tabPage /jsptabcontrol:tabControl My problem is that when I click the second tab, the page corresponding to /status.do is displayed as a full page JSP and not as a part of tabbed JSP page. Please help. Regards, Kavita -- Wong Tseng 王曾 *DISCLAIMER* This message and/or attachment(s) contained here are confidential, proprietary to HUGHES SYSTIQUE and its customers. Contents may be privileged or otherwise protected by law. The information is solely intended for the entity it is addressed to. If you are not the intended recipient of this message, it is strictly prohibited to read, forward, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately and delete the message.
Re: How to make tabs in JSP
Hello, if you have questions about JSPTabControl don't hesitate to ask me. Regards Angelo 2007/6/27, Yoge [EMAIL PROTECTED]: I have used http://webfx.eae.net/dhtml/tabpane/tabpane.html in our site http://site24x7.com May be u can try that also -- Yoge, AdventNet, Inc. 925-965-6528 [EMAIL PROTECTED] site24x7.com On 6/27/07, Kavita Mehta [EMAIL PROTECTED] wrote: I'm using Struts 1.2 ... wd search more on JSPTabControl as you previously suggested. thanks Angelo zerr [EMAIL PROTECTED] 06/26/2007 06:17 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject Re: How to make tabs in JSP If you are using Struts2.x, you should use tabbedpanel as Adrian have you suggested. 2007/6/26, Adrian Ost [EMAIL PROTECTED]: Angelo zerr schrieb: Hi, perhaps you could be interest with JSPTabControl http://jsptabcontrol.sourceforge.net/ which generate tabs with ul/li HTML. Regards Angelo 2007/6/26, Kavita Mehta [EMAIL PROTECTED]: Hi, I want to code a JSP page with tabs . Does struts support an easy way of doing the same. Any link to the related resource would be helpful ...I have searched on Struts-Layout ...any other option ? Thanks Kavita *DISCLAIMER* This message and/or attachment(s) contained here are confidential, proprietary to HUGHES SYSTIQUE and its customers. Contents may be privileged or otherwise protected by law. The information is solely intended for the entity it is addressed to. If you are not the intended recipient of this message, it is strictly prohibited to read, forward, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately and delete the message. or u just go for the struts 2 tag tabbedpanel ... pretty easy to customize with new template. http://struts.apache.org/2.x/docs/tabbedpanel.html greets adi -- Adrian Ost MindMatics AG Marcel-Breuer-Str. 18 D-80807 München E-Mail: [EMAIL PROTECTED] Web: www.MindMatics.de Der Inhalt dieser E-Mail ist vertraulich. Sollte Ihnen die E-Mail irrtümlich zugesandt worden sein, bitten wir Sie, uns unverzüglich zu benachrichtigen und die E-Mail zu löschen. Ust-IdNr. DE211603599 Registergericht München: HRB 131369 Vorstand: Ingo Lippert, Christian Hinrichs, Oliver Beckmann, Armin Barbalata Aufsichtsrat: Martin Weber (Vorsitzender), Dr. Dirk Brückner (stellvertr. Vorsitzender) The contents of this e-mail are confidential. If you received this e-mail in error, please notify us immediately and delete the e-mail. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *DISCLAIMER* This message and/or attachment(s) contained here are confidential, proprietary to HUGHES SYSTIQUE and its customers. Contents may be privileged or otherwise protected by law. The information is solely intended for the entity it is addressed to. If you are not the intended recipient of this message, it is strictly prohibited to read, forward, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately and delete the message. -- --Yoge 91-9840425388
Re: How to make tabs in JSP
Hi, perhaps you could be interest with JSPTabControl http://jsptabcontrol.sourceforge.net/ which generate tabs with ul/li HTML. Regards Angelo 2007/6/26, Kavita Mehta [EMAIL PROTECTED]: Hi, I want to code a JSP page with tabs . Does struts support an easy way of doing the same. Any link to the related resource would be helpful ...I have searched on Struts-Layout ...any other option ? Thanks Kavita *DISCLAIMER* This message and/or attachment(s) contained here are confidential, proprietary to HUGHES SYSTIQUE and its customers. Contents may be privileged or otherwise protected by law. The information is solely intended for the entity it is addressed to. If you are not the intended recipient of this message, it is strictly prohibited to read, forward, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately and delete the message.
Re: How to make tabs in JSP
If you are using Struts2.x, you should use tabbedpanel as Adrian have you suggested. 2007/6/26, Adrian Ost [EMAIL PROTECTED]: Angelo zerr schrieb: Hi, perhaps you could be interest with JSPTabControl http://jsptabcontrol.sourceforge.net/ which generate tabs with ul/li HTML. Regards Angelo 2007/6/26, Kavita Mehta [EMAIL PROTECTED]: Hi, I want to code a JSP page with tabs . Does struts support an easy way of doing the same. Any link to the related resource would be helpful ...I have searched on Struts-Layout ...any other option ? Thanks Kavita *DISCLAIMER* This message and/or attachment(s) contained here are confidential, proprietary to HUGHES SYSTIQUE and its customers. Contents may be privileged or otherwise protected by law. The information is solely intended for the entity it is addressed to. If you are not the intended recipient of this message, it is strictly prohibited to read, forward, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately and delete the message. or u just go for the struts 2 tag tabbedpanel ... pretty easy to customize with new template. http://struts.apache.org/2.x/docs/tabbedpanel.html greets adi -- Adrian Ost MindMatics AG Marcel-Breuer-Str. 18 D-80807 München E-Mail: [EMAIL PROTECTED] Web: www.MindMatics.de Der Inhalt dieser E-Mail ist vertraulich. Sollte Ihnen die E-Mail irrtümlich zugesandt worden sein, bitten wir Sie, uns unverzüglich zu benachrichtigen und die E-Mail zu löschen. Ust-IdNr. DE211603599 Registergericht München: HRB 131369 Vorstand: Ingo Lippert, Christian Hinrichs, Oliver Beckmann, Armin Barbalata Aufsichtsrat: Martin Weber (Vorsitzender), Dr. Dirk Brückner (stellvertr. Vorsitzender) The contents of this e-mail are confidential. If you received this e-mail in error, please notify us immediately and delete the e-mail. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Making Fields editable depending on role
Hi, by default FormView doesn't manage a href. But you can configure it with displayer-config http://formview.sourceforge.net/developer-guide.html#How customize FormView DisplayerConfig (you can manage it like div) in your href you set id a id=myId href= .../a !-- HTML A HREF-- displayer name=a attributesName=id behaviour name=INVISIBLE replaceElement![CDATA[nbsp;]]/replaceElement /behaviour /displayer With this config if you set INVISIBLE state to the a href with id myId it will be replace with nbsp; Regards Angelo 2007/6/24, Pierre Goupil [EMAIL PROTECTED]: Hello, This tool looks great. But can you use it for links too ? I mean, to display or hide a link (or anything else) depending upon the role of the user ? I've browsed through the doc and it doesn't seem clear. Cheers, Pierre 2007/6/24, Archer [EMAIL PROTECTED]: Thank you very much for your help... Regards Viplav Kallepu On 6/22/07, Angelo zerr [EMAIL PROTECTED] wrote: Hi, I think you can be interested with FormView http://formview.sourceforge.net/which is taglib to manage state of your fields (hidden, visible,...). With FormView you can manage fields switch user role http://formview.sourceforge.net/roles.html Regards Angelo 2007/6/22, Archer [EMAIL PROTECTED]: Hi, I am using struts 1.3.8. I have text fileds in jsp which should be made editable and non-editable depending on the user role. I used container managed security for implementing the role based security. Can anyone please help me how to sort out this issue. I am new to security implementation. Thanks Archer -- Regards Archer -- Mon horizon était désormais les pétales courbés, Ma nouvelle demeure resplendissait de flèches d'herbes folles Et d'oreillers de pollens odorants. (Naïmah, le philosophe Fémereif)
Re: Making Fields editable depending on role
Hi, I think you can be interested with FormView http://formview.sourceforge.net/which is taglib to manage state of your fields (hidden, visible,...). With FormView you can manage fields switch user role http://formview.sourceforge.net/roles.html Regards Angelo 2007/6/22, Archer [EMAIL PROTECTED]: Hi, I am using struts 1.3.8. I have text fileds in jsp which should be made editable and non-editable depending on the user role. I used container managed security for implementing the role based security. Can anyone please help me how to sort out this issue. I am new to security implementation. Thanks Archer
{ANNONCE] Akrogen eclipse plugin Struts1.x
Hello, I mail you to announce there is new distribution of Akrogen Eclipse plugin. *Akrogen* is code generation Eclipse http://www.eclipse.org/ *Plugin*(version *3.2.**) oriented *components*. With Akrogen you can describe your *Eclipse Wizards pages* with XML/XULhttp://www.mozilla.org/projects/xul/which are linked to a template which is able to generate your components (Service, DAO, JSP, HTML...). I have wrote a Akrogen catalog Struts1.x to generate basic component of Struts 1.x, like Action, ActionForm,... http://akrogen.sourceforge.net/struts-catalog/struts1x.html You have screenshot of ActionForm wizard page Eclise here http://akrogen.sourceforge.net/struts-catalog/struts1x/actionform.html This wizard page is described with XML/XUL (no Java code). The logic of wizard page is managed with script (javascript syntax). So it's easy to write your own catalog of wizard page. I'm searching developerswhich are interested to help me to write catalog for Struts2.x With the Struts1.x catalog you can show what Akrogen can be do it for you. If you want new features for Akrogen don't hesitate to contact me. Thank you Regards Angelo
Re: [s2] eclipse plugin
Hi Today, I don't think there is Eclipse plugin which exist for struts2. But I'm developping Eclipse plugin Akrogen http://akrogen.sourceforge.net/for generate any component of framework. With Akrogen you can create your own components catalog. So you can write your Wizard page with XML/XUL description. If you are interested by topic and help me to write the struts component, you can write me. Regards Angelo 2007/4/15, Musachy Barroso [EMAIL PROTECTED]: Search the mail archives, I think somebody mentioned a plugin some time ago musachy On 4/15/07, Pedro Herrera [EMAIL PROTECTED] wrote: Is there an eclipse plugin for Struts 2 ? Thks Pedro Herrera -- View this message in context: http://www.nabble.com/-s2--eclipse-plugin-tf3579536.html#a10002404 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd
Re: [s2] eclipse plugin
hi musachy, thank you for having given the information about Eclipse plugin. Have you seen Akrogen plugin? Do you find the idea is good? Akrogen plugin is not finished, but I think today we can use for generate simple component. But if you want another features, tell me, and I will try to develop it. The documentation is not finsihed, but I'm writing documentation. Angelo 2007/4/15, Musachy Barroso [EMAIL PROTECTED]: that was it :) musachy On 4/15/07, Angelo zerr [EMAIL PROTECTED] wrote: Hi Today, I don't think there is Eclipse plugin which exist for struts2. But I'm developping Eclipse plugin Akrogen http://akrogen.sourceforge.net/for generate any component of framework. With Akrogen you can create your own components catalog. So you can write your Wizard page with XML/XUL description. If you are interested by topic and help me to write the struts component, you can write me. Regards Angelo 2007/4/15, Musachy Barroso [EMAIL PROTECTED]: Search the mail archives, I think somebody mentioned a plugin some time ago musachy On 4/15/07, Pedro Herrera [EMAIL PROTECTED] wrote: Is there an eclipse plugin for Struts 2 ? Thks Pedro Herrera -- View this message in context: http://www.nabble.com/-s2--eclipse-plugin-tf3579536.html#a10002404 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd -- Hey you! Would you help me to carry the stone? Pink Floyd
Re: [s2] eclipse plugin
Ok thank you for your answer. It's shame for me. But if you are interested by Akrogen, don't hesitate to write me. Regards Angelo 2007/4/15, Musachy Barroso [EMAIL PROTECTED]: I haven't really seen it working (just saw the website). I wrote eclipse plugins in another life so I don't want to feel the temptation of wanting to contribute :) musachy On 4/15/07, Angelo zerr [EMAIL PROTECTED] wrote: hi musachy, thank you for having given the information about Eclipse plugin. Have you seen Akrogen plugin? Do you find the idea is good? Akrogen plugin is not finished, but I think today we can use for generate simple component. But if you want another features, tell me, and I will try to develop it. The documentation is not finsihed, but I'm writing documentation. Angelo 2007/4/15, Musachy Barroso [EMAIL PROTECTED]: that was it :) musachy On 4/15/07, Angelo zerr [EMAIL PROTECTED] wrote: Hi Today, I don't think there is Eclipse plugin which exist for struts2. But I'm developping Eclipse plugin Akrogen http://akrogen.sourceforge.net/for generate any component of framework. With Akrogen you can create your own components catalog. So you can write your Wizard page with XML/XUL description. If you are interested by topic and help me to write the struts component, you can write me. Regards Angelo 2007/4/15, Musachy Barroso [EMAIL PROTECTED]: Search the mail archives, I think somebody mentioned a plugin some time ago musachy On 4/15/07, Pedro Herrera [EMAIL PROTECTED] wrote: Is there an eclipse plugin for Struts 2 ? Thks Pedro Herrera -- View this message in context: http://www.nabble.com/-s2--eclipse-plugin-tf3579536.html#a10002404 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd -- Hey you! Would you help me to carry the stone? Pink Floyd -- Hey you! Would you help me to carry the stone? Pink Floyd
Re: [JSP] drag drop capability in a jsp is this possible ?
No problem. I'm happy that JSControlsTags please you. Regards Angelo 2007/3/23, temp temp [EMAIL PROTECTED]: It works Thank you very much.Sorry for the complain It was my mistake i just downloaded src after ur reply i downloaded use cases i was able to run the jsp it works. Once again tahnk you very much. Thanks Regards Angelo zerr [EMAIL PROTECTED] wrote: There is not another documentation (it's my project). have you try to deploy the war jscontrolstags-usecases-1.0-b1.war? You sample with swap. I'm agree with you documentation is poor, I will try write it. See swap3.jsp. You have an sample. have you insert javascript and css in your page? src=../js/scriptaculous/prototype.js src=../js/scriptaculous/effects.js src=../js/scriptaculous/dragdrop.js src=../js/selectable/selectable.js src=../js/selectable/subsdraggable.js src=../js/jscontrolstags-swap.js type=text/css / Angelo 2007/3/22, temp temp : I downloaded all the required files but they donot have a sample application with which I can play make changes test results they have jsp code which is not complete and no tutorial on how to get started are there any other providers with good documentation and examples ? Thanks Regards Angelo zerr wrote: Have you download usecase jscontrolstags-usecases-1.0-b1? You can found it http://sourceforge.net/project/showfiles.php?group_id=175409 Swap document is here http://jscontrolstags.sourceforge.net/controls/swap/swap.html Angelo 2007/3/22, temp temp : I tried swap control in my application but it does not work the site has no documentation, no complte examples can I get more assistance with this ? Thanks Regards Angelo zerr wrote: Hi, you can see JSControlsTags project at http://jscontrolstags.sourceforge.net/ . There is Swap control (see at http://jscontrolstags.sourceforge.net/controls/swap/swap.html) which is enable to swap items select to another select with drag/drop. it is based on Scriptaculous and Proototype. You can see demo at http://jscontrolstags.sourceforge.net/demo/swap/swap.html Regards Angelo 2007/3/22, temp temp : I want a jsp page which should have the capability to drag and drop in the sense suppose I have a two list California -- CAColorado -- COConneticut -- CN C -- CAC -- CO Conneticut -- CN I want to shuffle the contents of the lists using mouse drag and drop is it possible ? and any hints of achieving this ? Thanks Regards - No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. - TV dinner still cooling? Check out Tonight's Picks on Yahoo! TV. - We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. - Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games.
Akrogen plugin eclipse to generate Struts 2.x components
Hi, I post my message in this forum, because perhaps somebody would be interset with my project. I'm developping plugin eclipse Akrogen http://akrogen.sourceforge.net/index.html which is able to generate code. With Akrogen you can write your wizard page with XML. But I'm developping new version of Akrogen to have capability to describes the wizard page with XUL by using Wazzabi library http://wiki.wazaabi.org/index.php/Main_Page which is able to transform XUL description into SWT. You can see screenshot at http://akrogen.sourceforge.net/1_0_2/index.htmlhttp://akrogen.sourceforge.net/fr/1_0_2/index.html Akrogen looks like EclipseWork, but with Akrogen you can : * describes your wizard page with XUL (DONE). * describe the wizard page with XML component (XUL) and after you can write XML Wizard which call XML component and synchronize parameters between several components (TODO). * customize template engine (add your own template engine). By default Akrogen support Velocity Freemarker and XSLT (DONE). * manage XML context (DONE), properties context (TODO) and JavaClass context(TODO) * generate Wizard page by using the selected file with loop marco (ex : you select hibernate mapping and you can loop on property to display a combo which display the property with checkbox) (TODO). * manage command (TODO). When you click into finsh button of the wizard, it launch Ant target (It avoid to edit a properties file). * manage listener (TODO) to update the value of the textbox with another value of the textbox (ex : you type package name, it update the textbox directory ou by replacing . with /) Akrogen use Catalog (Templates, Components, Wizards,...) which is linked with Eclipse project. So I would like create Struts 2.x catalog which will contain all the component used into Struts 2.x (Interceptor, Result, DOJO,...). So I'm searching somebody to write the template, component,... for Struts 2.x. If you have interest with my project you can install the current Akrogen version (see http://akrogen.sourceforge.net/plugin_installation.html) (You cannot describes the component with XUL with this version) BUT this version will change soon, as soon as I have stable 1.0.2 version. You can install it with local Site (Update manager) that you can found here http://sourceforge.net/project/showfiles.php?group_id=164259 If you are interested to help me giving some idea, developping the Akrogen plugin or writing templates, components for Struts 2.x, tell me. I hope that somebody will be interest with my post. Regards Angelo
Re: Akrogen plugin eclipse to generate Struts 2.x components
Sorry for my error, you can find WEB Site at http://akrogen.sourceforge.net/1_0_2/index.html 2007/3/23, Angelo zerr [EMAIL PROTECTED]: Hi, I post my message in this forum, because perhaps somebody would be interset with my project. I'm developping plugin eclipse Akrogen http://akrogen.sourceforge.net/index.html which is able to generate code. With Akrogen you can write your wizard page with XML. But I'm developping new version of Akrogen to have capability to describes the wizard page with XUL by using Wazzabi library http://wiki.wazaabi.org/index.php/Main_Page which is able to transform XUL description into SWT. You can see screenshot at http://akrogen.sourceforge.net/1_0_2/index.htmlhttp://akrogen.sourceforge.net/fr/1_0_2/index.html Akrogen looks like EclipseWork, but with Akrogen you can : * describes your wizard page with XUL (DONE). * describe the wizard page with XML component (XUL) and after you can write XML Wizard which call XML component and synchronize parameters between several components (TODO). * customize template engine (add your own template engine). By default Akrogen support Velocity Freemarker and XSLT (DONE). * manage XML context (DONE), properties context (TODO) and JavaClass context(TODO) * generate Wizard page by using the selected file with loop marco (ex : you select hibernate mapping and you can loop on property to display a combo which display the property with checkbox) (TODO). * manage command (TODO). When you click into finsh button of the wizard, it launch Ant target (It avoid to edit a properties file). * manage listener (TODO) to update the value of the textbox with another value of the textbox (ex : you type package name, it update the textbox directory ou by replacing . with /) Akrogen use Catalog (Templates, Components, Wizards,...) which is linked with Eclipse project. So I would like create Struts 2.x catalog which will contain all the component used into Struts 2.x (Interceptor, Result, DOJO,...). So I'm searching somebody to write the template, component,... for Struts 2.x. If you have interest with my project you can install the current Akrogen version (see http://akrogen.sourceforge.net/plugin_installation.html) (You cannot describes the component with XUL with this version) BUT this version will change soon, as soon as I have stable 1.0.2 version. You can install it with local Site (Update manager) that you can found here http://sourceforge.net/project/showfiles.php?group_id=164259 If you are interested to help me giving some idea, developping the Akrogen plugin or writing templates, components for Struts 2.x, tell me. I hope that somebody will be interest with my post. Regards Angelo
Re: [s2] Possibility to hide input fields if not empty?
I don't know XML validation for the Struts 2.x, but if it's the same than Struts 1.x, it would be works. FormView use XML validation to set information about field (required, date). If you have interested with FormView, you could explain me the XML validation used with Struts 2.x and I could develop the digester which parse this file to fill internal data of the FormView. Angelo 2007/3/21, Dave Newton [EMAIL PROTECTED]: --- Angelo zerr [EMAIL PROTECTED] wrote: if you want you can see http://formview.sourceforge.net/. FormView can manage your case and other. It works with Struts 1.x or without Struts. But not 2.0, which is what the question was? d, The fish are biting. Get more visitors on your site using Yahoo! Search Marketing. http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [JSP] drag drop capability in a jsp is this possible ?
Hi, you can see JSControlsTags project at http://jscontrolstags.sourceforge.net/ . There is Swap control (see at http://jscontrolstags.sourceforge.net/controls/swap/swap.html) which is enable to swap items select to another select with drag/drop. it is based on Scriptaculous and Proototype. You can see demo at http://jscontrolstags.sourceforge.net/demo/swap/swap.html Regards Angelo 2007/3/22, temp temp [EMAIL PROTECTED]: I want a jsp page which should have the capability to drag and drop in the sense suppose I have a two list select size=3 optionCalifornia -- CA/option optionColorado -- CO/option optionConneticut -- CN/option /select select size=3 optionC -- CA/option optionC -- CO/option option Conneticut -- CN/option /select I want to shuffle the contents of the lists using mouse drag and drop is it possible ? and any hints of achieving this ? Thanks Regards - No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started.
Re: [JSP] drag drop capability in a jsp is this possible ?
Have you download usecase jscontrolstags-usecases-1.0-b1? You can found it http://sourceforge.net/project/showfiles.php?group_id=175409 Swap document is here http://jscontrolstags.sourceforge.net/controls/swap/swap.html Angelo 2007/3/22, temp temp [EMAIL PROTECTED]: I tried swap control in my application but it does not work the site has no documentation, no complte examples can I get more assistance with this ? Thanks Regards Angelo zerr [EMAIL PROTECTED] wrote: Hi, you can see JSControlsTags project at http://jscontrolstags.sourceforge.net/ . There is Swap control (see at http://jscontrolstags.sourceforge.net/controls/swap/swap.html) which is enable to swap items select to another select with drag/drop. it is based on Scriptaculous and Proototype. You can see demo at http://jscontrolstags.sourceforge.net/demo/swap/swap.html Regards Angelo 2007/3/22, temp temp : I want a jsp page which should have the capability to drag and drop in the sense suppose I have a two list California -- CAColorado -- COConneticut -- CN C -- CAC -- CO Conneticut -- CN I want to shuffle the contents of the lists using mouse drag and drop is it possible ? and any hints of achieving this ? Thanks Regards - No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. - TV dinner still cooling? Check out Tonight's Picks on Yahoo! TV.
Re: [JSP] drag drop capability in a jsp is this possible ?
There is not another documentation (it's my project). have you try to deploy the war jscontrolstags-usecases-1.0-b1.war? You sample with swap. I'm agree with you documentation is poor, I will try write it. See swap3.jsp. You have an sample. have you insert javascript and css in your page? !-- include javascript scriptaculous -- script language=javascript type=text/javascript src=../js/scriptaculous/prototype.js/script script language=javascript type=text/javascript src=../js/scriptaculous/effects.js/script script language=javascript type=text/javascript src=../js/scriptaculous/dragdrop.js/script !-- include javascript for swap -- script language=javascript type=text/javascript src=../js/selectable/selectable.js/script script language=javascript type=text/javascript src=../js/selectable/subsdraggable.js/script script language=javascript type=text/javascript src=../js/jscontrolstags-swap.js/script !-- include CSS jscontrolstags autocomplete -- link rel=stylesheet href=../css/jscontrolstags.css type=text/css / Angelo 2007/3/22, temp temp [EMAIL PROTECTED]: I downloaded all the required files but they donot have a sample application with which I can play make changes test results they have jsp code which is not complete and no tutorial on how to get started are there any other providers with good documentation and examples ? Thanks Regards Angelo zerr [EMAIL PROTECTED] wrote: Have you download usecase jscontrolstags-usecases-1.0-b1? You can found it http://sourceforge.net/project/showfiles.php?group_id=175409 Swap document is here http://jscontrolstags.sourceforge.net/controls/swap/swap.html Angelo 2007/3/22, temp temp : I tried swap control in my application but it does not work the site has no documentation, no complte examples can I get more assistance with this ? Thanks Regards Angelo zerr wrote: Hi, you can see JSControlsTags project at http://jscontrolstags.sourceforge.net/ . There is Swap control (see at http://jscontrolstags.sourceforge.net/controls/swap/swap.html) which is enable to swap items select to another select with drag/drop. it is based on Scriptaculous and Proototype. You can see demo at http://jscontrolstags.sourceforge.net/demo/swap/swap.html Regards Angelo 2007/3/22, temp temp : I want a jsp page which should have the capability to drag and drop in the sense suppose I have a two list California -- CAColorado -- COConneticut -- CN C -- CAC -- CO Conneticut -- CN I want to shuffle the contents of the lists using mouse drag and drop is it possible ? and any hints of achieving this ? Thanks Regards - No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. - TV dinner still cooling? Check out Tonight's Picks on Yahoo! TV. - We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list.
Re: [s2] Possibility to hide input fields if not empty?
Hi, if you want you can see http://formview.sourceforge.net/. FormView can manage your case and other. It works with Struts 1.x or without Struts. Regards Angelo 2007/3/21, Piero Sartini [EMAIL PROTECTED]: Thanks, this will work. But I was not specific enough. If there is a way to use the Validators for this task, that would be really handy (if valid then do not display). Am Dienstag, 20. März 2007 schrieb joey: Just use condition tag to hide your fields,like this: s:if test=user.email==null s:textfield key=user.email name=user.email / /s:if On 3/20/07, Piero Sartini [EMAIL PROTECTED] wrote: Just wondering how you guys would make something like this: When a Field in a form is null or empty it should be displayed, if it is already filled it should disappear. Is there an easy way to do this with s2? Use-Case is to ask the user missing information after login. Piero. - 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: Howto Construct Editable Tree
Hi, you can see http://jscontrolstags.sourceforge.net/ too. There is treeview tag based on tafeltree (javascript treeview), prototype and scriptaculous. You have demo at http://jscontrolstags.sourceforge.net/demo/treeview/treeview.html (AJAX doesn't works at sourceforge). You can drag/drop node, edit node (with or without AJAX), copy/paste node. I have create a taglib which generate tafletree. If you have question about tafletree (javascript treeview) see at http://tafel.developpez.com/site/lang/en/index.php Regards Angelo 2007/3/19, Sarr, Nathan [EMAIL PROTECTED]: Hi Pete, You might want to try http://www.jenkov.com/prizetags/introduction.tmpl They have a tree tag that I have found very useful. Best, -Nate -Original Message- From: Peter Neu [mailto:[EMAIL PROTECTED] Sent: Monday, March 19, 2007 9:43 AM To: user@struts.apache.org Subject: Howto Construct Editable Tree Hello, I have a hierarchically organized data object which I need to display. The user may edit some of its attributes. I figured it must be a tree like structure with editable nodes. Is there an easy way to do this in Struts 1.x? I'm not very good at writing JavaScript code. :o( Has anybody done this before? Cheers, Pete - 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: Howto Construct Editable Tree
Hi pete, have you read http://jscontrolstags.sourceforge.net/controls/treeview/treeview.htmldocumentation ? Regards Angelo 2007/3/19, Peter Neu [EMAIL PROTECTED]: Hi, I just deployed the jscontrolstags war. This looks good to me. Is there some more documentation on how set it up in your own app? :o) Cheers, Pete -Ursprüngliche Nachricht- Von: Angelo zerr [mailto:[EMAIL PROTECTED] Gesendet: Montag, 19. März 2007 15:19 An: Struts Users Mailing List Betreff: Re: Howto Construct Editable Tree Hi, you can see http://jscontrolstags.sourceforge.net/ too. There is treeview tag based on tafeltree (javascript treeview), prototype and scriptaculous. You have demo at http://jscontrolstags.sourceforge.net/demo/treeview/treeview.html (AJAX doesn't works at sourceforge). You can drag/drop node, edit node (with or without AJAX), copy/paste node. I have create a taglib which generate tafletree. If you have question about tafletree (javascript treeview) see at http://tafel.developpez.com/site/lang/en/index.php Regards Angelo 2007/3/19, Sarr, Nathan [EMAIL PROTECTED]: Hi Pete, You might want to try http://www.jenkov.com/prizetags/introduction.tmpl They have a tree tag that I have found very useful. Best, -Nate -Original Message- From: Peter Neu [mailto:[EMAIL PROTECTED] Sent: Monday, March 19, 2007 9:43 AM To: user@struts.apache.org Subject: Howto Construct Editable Tree Hello, I have a hierarchically organized data object which I need to display. The user may edit some of its attributes. I figured it must be a tree like structure with editable nodes. Is there an easy way to do this in Struts 1.x? I'm not very good at writing JavaScript code. :o( Has anybody done this before? Cheers, Pete - 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: Howto Construct Editable Tree
No problem. I hope that JSControlsTags will please you. Angelo 2007/3/19, Peter Neu [EMAIL PROTECTED]: Sorry, I overlooked it. Thanks for the hint. -Pete -Ursprüngliche Nachricht- Von: Angelo zerr [mailto:[EMAIL PROTECTED] Gesendet: Montag, 19. März 2007 15:39 An: Struts Users Mailing List Betreff: Re: Howto Construct Editable Tree Hi pete, have you read http://jscontrolstags.sourceforge.net/controls/treeview/treeview.htmldocum entation ? Regards Angelo 2007/3/19, Peter Neu [EMAIL PROTECTED]: Hi, I just deployed the jscontrolstags war. This looks good to me. Is there some more documentation on how set it up in your own app? :o) Cheers, Pete -Ursprüngliche Nachricht- Von: Angelo zerr [mailto:[EMAIL PROTECTED] Gesendet: Montag, 19. März 2007 15:19 An: Struts Users Mailing List Betreff: Re: Howto Construct Editable Tree Hi, you can see http://jscontrolstags.sourceforge.net/ too. There is treeview tag based on tafeltree (javascript treeview), prototype and scriptaculous. You have demo at http://jscontrolstags.sourceforge.net/demo/treeview/treeview.html (AJAX doesn't works at sourceforge). You can drag/drop node, edit node (with or without AJAX), copy/paste node. I have create a taglib which generate tafletree. If you have question about tafletree (javascript treeview) see at http://tafel.developpez.com/site/lang/en/index.php Regards Angelo 2007/3/19, Sarr, Nathan [EMAIL PROTECTED]: Hi Pete, You might want to try http://www.jenkov.com/prizetags/introduction.tmpl They have a tree tag that I have found very useful. Best, -Nate -Original Message- From: Peter Neu [mailto:[EMAIL PROTECTED] Sent: Monday, March 19, 2007 9:43 AM To: user@struts.apache.org Subject: Howto Construct Editable Tree Hello, I have a hierarchically organized data object which I need to display. The user may edit some of its attributes. I figured it must be a tree like structure with editable nodes. Is there an easy way to do this in Struts 1.x? I'm not very good at writing JavaScript code. :o( Has anybody done this before? Cheers, Pete - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANNOUNCE] JSControlsTags add AjaxMessageQueue
Hello, I mail you to announce JSControlsTags add JSControlsTgas.AjaxMessageQueuecontrol which is able to poll messages from server. You can use this control to poll messages logged with log4j (by using AjaxAppender) or poll your custom messages. See documentation at http://jscontrolstags.sourceforge.net/controls/messagequeue/messagequeue.html and download jscontrolstags-usecases-1.0-b1http://sourceforge.net/project/showfiles.php?group_id=175409package_id=201809release_id=442053web application to see a demo of this control. Regards Angelo
Re: Input and results on the same JSP
Hi Prakash, If you can display the value of the textarea at readonly, you can use FormView. This taglib is enable to manage state in your JSP for your form HTML elements. Eg : generate textarea value=INPUT_VALUE /textarea (at READ-WRITE state) and INPUT_VALUE (at READ_ONLY state). You manage state into action. If you are interested you can found FormView at http://formview.sourceforge.net/ Regards Angelo 2006/11/9, Prakash Inuganti -X (pinugant - Digital-X, Inc. at Cisco) [EMAIL PROTECTED]: Hi, I am trying to display entry and results on the same screen. The idea is like this. I have a textarea where some values can be entered. On submitting this data, the same form refreshes displaying the data in a table. Can this be done? I create a bean with the values entered in textarea and use it to iterate and create table. Any pointers out there for this use case? Would appreciate any help. Thanks Prakash
Re: How to make a SELECT list readonly? If set disabled, loses the value when submit.
Hi, if you see HTML specification at http://www.w3.org/TR/html401/interact/forms.html#h-17.6, select has not readonly (just disabled, but you can't use it for submiut value). So proposition of Rafael, is the same solution that I use. But when you have several select in your JSP, it begin borring to manage it. So if you want you can see FormView project at http://formview.sourceforge.net/, which is a taglib which manage state (READ-ONLY,READ-WRITE,...) in your JSP, to render your inputs (eg : transform select into input hidden, without coding this case in your JSP). Regards Angelo http://formview.sourceforge.net/ 2006/11/1, Rafael Nami [EMAIL PROTECTED]: You can choose to maintain the value from this select in a hidden field, that will be submitted with your page. I was used to use another approach, making the select enabled in the submit, but it was a great meal to hackers. 2006/11/1, Mississippi John Hurt [EMAIL PROTECTED]: Help, I can make html:text readonly by setting readonly=true which works. html:select has no readonly attribute, only a disabled. If I use disabled attribute, then the value of the select is no longer recognized and my form validation says its required. How can I make the html:select disabled or readonly while keeping the values it has passing back to the action when form is submitted. Thanks.
Re: display only mode using struts tags
Hi martin, if your are intersted, you can see FormView Project at http://formview.sourceforge.net With Formview you can manage mode (READ-ONLY, READ-WRITE.) of your jsp fields in your action struts or with a XML file config Regards Angelo 2006/10/20, Martin Kindler [EMAIL PROTECTED]: I do not see any sensible way to do it without changing the JSPs. The user must see somehow that the fields are readonly and this must be done in the frontend. You could of course just choose to not evaluate the ActionForm in the readonly-case, but this would be not very user-friendly. But the Struts form-tag has an attribute diabled (beginning in 1.2.7) which sets all fields of a form to readonly. This could be a possibility requiring only a bit of work. Martin -Ursprüngliche Nachricht- Von: fea jabi [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 20. Oktober 2006 15:18 An: user@struts.apache.org Betreff: display only mode using struts tags Developed jsp using struts html tags. (html:text etc.) Now we have the requirement which should display the values only is display mode on a condition. user should not be able to edit any in some condition. Is there something in struts that can be used to get this functionality. I have seen that layout tag does have this. But use it we have to re-write the jsp's. is there any other option I can use to minimize the re-writting of code. Thanks. _ Get today's hot entertainment gossip http://movies.msn.com/movies/hotgossip?icid=T002MSN03A07001 - 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]
[ANNOUNCE] Add Swap control between two list into JSControlsTags
Hello, I announce that there is a new Swap control between two list into JSControlsTags. This control is able to manage swap items between two list with 2 button and/or with drag/drop. It's based on scriptaculous and prototype.js. You can found a demo of swap at http://jscontrolstags.sourceforge.net/demo/swap/swap.html# Regards Angelo
Re: Mapping disabled form fields
Hi Yariel, i's the standard behaviour of HTML input. See HTML sepcification at http://www.w3.org/TR/html4/interact/forms.html#h-17.12 You must not use disabled property but readonly property in your html input. Regards Angelo 2006/10/17, Yariel Ramos Moreno [EMAIL PROTECTED]: Hi all: I need to put some disabled form fields into my page. When I fill the components with the server data, not problem, everything goes well. But, when I submit the form the values of those components are not mapped to the ActionForm (it's value is the default one). What can I do to solve this issue??? Thanks in advance. __ XIII Convención Científica de Ingeniería y Arquitectura 28/noviembre al 1/diciembre de 2006 Cujae, Ciudad de la Habana, Cuba http://www.cujae.edu.cu/eventos/convencion
Re: Mapping disabled form fields
Hi Yariel, I know this problem, you can generate an input hidden with value of checkbox (to get value off the checkbox after a post) and generate the radio with disabled property (for display). For this case, you must manage two html fields in your JSP. Morever if you want mange html select, the problem will be more difficult. Your JSP will quickly be awfull! So if you wan manage state of your field in your JSP, you could use library Formview which is able to manage state (READ_WRITE, READ-ONLY,...) in your JSP. See at http://formview.sourceforge.net/ for more information if you have interested. Regards Angelo 2006/10/17, Yariel Ramos Moreno [EMAIL PROTECTED]: Thanks for your answer Angelo... The real dificult is with chechboxes and radios; the readonly property does't have any efect over them. Any suggestion or solution to this problem?? Best Regards. __ XIII Convención Científica de Ingeniería y Arquitectura 28/noviembre al 1/diciembre de 2006 Cujae, Ciudad de la Habana, Cuba http://www.cujae.edu.cu/eventos/convencion
[ANNOUNCE] JSControlsTags add AJAX SLIDER and TREEVIEW
Hello, I mail you to announce that JSControlsTags project include new controls : SLIDER (with or without AJAX) and TREEVIEW (with or without AJAX) control. JSControlsTags is a taglib to easily manage javascript controls on client side (without AJAX) or on server side (with AJAX) in your JSP. It is based on Prototype and Scriptaculous. It looks like AjaxTags, but it can manage javascript controls : * on client side. * on server side with JSON (Javascript Object Notation) which is the format used to pass messages between server and browser. Treeview is not finished, but it can be usable. You can find JSControlsTags Web Site at http://jscontrolstags.sourceforge.net/ and download JAR at http://sourceforge.net/projects/jscontrolstags. I hope that you will be interested by JSControlsTags project. See you later. Angelo ZERR
Re: getDataSource, DAO pattern, and Struts
Hello Darren, I'm aggree with Larry. If you want you can see Architecture shema with Service/DAO pattern in my open source project Gestcv at http://gestcv.sourceforge.net/fr/architecture.html (sorry it's in frensh). You can download the application WEB to see how I use Spring with Struts. Regards Angelo 2006/9/12, Larry Meadors [EMAIL PROTECTED]: On 9/11/06, Darren Hall [EMAIL PROTECTED] wrote: So, should I use the datasource functionality provided in struts, or should I roll my own database connection solution by creating a datasource factory that can be used to retrieve connections? I wouldn't do either. If you can, use Spring to do this, and to wire together not just the DAO, but also to wire your services to the actions, and the DAOs to the services. Spring will give you simple abstraction if that is all you want, or all sorts of things beyond just that simple abstraction if you want. Larry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FW: focus on first error
Hello, I was need to manage focus on the first field with error. With your solution, the problem is errors collection is sorted, so your focus will not go to the first field with error in your JSP. So I extends doErrorExist of TextTag to manage it, like this : protected boolean doErrorsExist() throws JspException { boolean errorExist = super.doErrorsExist(); ServletRequest request = pageContext.getRequest(); if (errorExist request.getAttribute(FIRST_FIELD_WITH_ERROR ) == null) { request.setAttribute(FIRST_FIELD_WITH_ERROR , super.getPropertyExpr()); } return errorExist; } So if field has error, request will be updated. After at end of your JSP, you write call function Javascript, like this c:if test=${requestScope.FIRST_FIELD_WITH_ERROR != null} setFocusToField('c:out value=${requestScope.FIRST_FIELD_WITH_ERROR} /'); c:if Here jaavscript function : function setFocusToField(fieldName, fieldIndex) { if (fieldIndex == null || fieldIndex.length 1) fieldIndex = 0; var listElementHTML = document.getElementsByName(fieldName); if (listElementHTML != null listElementHTML.length 0) { var elementHTML = listElementHTML[fieldIndex]; if (elementHTML.disabled == false) { /*if (elementHTML.type == text) elementHTML.select(); else */ elementHTML.focus(); } } } Regards Angelo 2006/9/12, Strachan, Paul [EMAIL PROTECTED]: maybe we could do something like this in the JSP - the idea is taken from the TextTag.java which knows to use the errorStyleClass when theres an error. ... %@ page import=java.util.Iterator % %@ page import=org.apache.struts.Globals % %@ page import=org.apache.struts.taglib.TagUtils % %@ page import=org.apache.struts.action.ActionMessages % % String errorKey = Globals.ERROR_KEY; ActionMessages errors = TagUtils.getInstance() .getActionMessages(pageContext, errorKey); Iterator iter = errors.properties(); String focusProperty = some_default_property; if (iter.hasNext()) { focusProperty = (String) iter.next(); // default to first property } % html:form focus=%= focusProperty % action=/someAction.do method=post ... /html:form Notes: 1. The default_property is the field you would normally focus on if there is no error. 2. It would be best to put this code in a tag library. 3. The javascript generated by the struts focus attribute may need to be improved (e.g. in a try...catch) just in case a property doesnt exist. Please let me know how this approach looks as I am also considering this for my app. Thanks, Paul ** This message is intended for the addressee named and may contain privileged information or confidential information or both. If you are not the intended recipient please delete it and notify the sender. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANNOUNCE] JSControlsTags taglib for manage javascript controls
Hello, I mail you to announce that JSControlsTags project is created on sourceforge. JSControlsTags is a taglib to easily manage javascript controls on client side (without AJAX) in your JSP. It is based on Prototype.js and Scriptaculous.js. It looks like AjaxTags, but it manages only controls on client side. Today controls available are Autocomplete TextBox. You can see demo at http://jscontrolstags.sourceforge.net/demo/autocomplete/autocomplete-test1.html I'm planning to develop taglib to manage slider. You can find JSControlsTags Web Site at http://jscontrolstags.sourceforge.net/ and download JAR at http://sourceforge.net/projects/jscontrolstags. I hope that you will be interested by JSControlsTags project. See you later. Angelo ZERR
Re: struts tags in a .js file?
Hello Ronald, when I must use variable comming from Server Side like Web Application context. I create a javascript variable which I initialize in my JSP and after in my Jsvacript I use this variable. For instance, in my JSP script var webApplicationContext = 'html:page src=/ /'; /script And afer in my function Javascript, I can use it : function displayWebApplicationContext() { alert(webApplicationContext); } Regards Angelo 2006/6/11, Ronald Traikovich [EMAIL PROTECTED]: Hi group, I was given a javascript file called operations.js that handles javascript events that load images. So this javascript file is included in my jsp page. The problem is that the image paths are hardcoded, so I want to rewrite these paths with some struts tags. So for example html:page src=/image/myimage/. instead of just a var pathToImage=/image/myimage; which is what they all are now. The problem I hit is that I can't include any struts html tags in a javascript file or maybe I just don't know how to do it? I figure there are two solutions. 1) take these .js files and turn them into .jsp files and include the javascript in the script tags or 2) create functions that take parms for the correct path from the caller(which is a jsp file). I think #1 is the best solution, but I wanted to ask the group to make sure there isn't an easier solution. Thanks a lot Ron
Re: AW: focus on first error
If you want you can use FormView. It manage the first error returned by validation. See use case of formview for manage errors with your fields at http://formview.sourceforge.net/errors.html Regards Angelo 2006/6/7, Truong Xuan Tinh [EMAIL PROTECTED]: Hi, AFAIK, Struts validation doesn't support this kind of behavior. It will: 1. Display all the errors (grouped by category) and focus the last error field. 2. Display the first error, focused on the first error field and stop validation. PS: You can make the error field's selected, just modify the validation script inside the struts distribution. Right after it focused the field, called the function to select the text of the text field. (make sure your field is text or textarea) marcus biel (innoWake gmbh) wrote: Hi, you can use validation framework of Struts, it's a plugin of Struts, remember to set the property stopOnFirstError to true, this make the first error field focused. No, this just displays the first error - (on a side note, this did not even work for me...) but I want to display all errors, but to focus on the first error, so that the user can directly start correcting the error, without having to click on the necessary field. Also, if possible, I would like to mark the entire value, so that the user doesn't need to delete the value but can directly type a new value. That's importanted, because the app will run on a touchscreen... Marcus - 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: [Fwd: Conditional display of components]
Hello, you can use FormView. With FormView you can set a state for a particulary HTML input (butto, text,...). State manage your render (hidden, visible, ,...) for your input. So it's not in your JSP taht you have your condition (logic:equal) but it's your Struts action which decide which input must be displayed,... You can find FormView at http://formview.sourceforge.net/ Reagrds Angelo 2006/6/6, I HARIKRISHNA [EMAIL PROTECTED]: put that contextdto in session I HARIKRISHNA [EMAIL PROTECTED] wrote: Create a contextDTO which holds the logged in user credentials like username etc Now in each jsp use logic:equal and decide whether to show or not Pankaj Gupta wrote: Hi, I wish to display some components like buttons and links conditionally meaning if the user is a basic operator, he should not see a submit button and a link on his page otherwise if a user is an advanced operator he should be allowed to see it. Can somebody please suggest how should I do it. regards, Pankaj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Be a chatter box. Enjoy free PC-to-PC calls with Yahoo! Messenger with Voice. - New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
[ANNOUNCE] new Version of FormView 1.0-b5 is available.
Hello there is a new version of Formview. This version is able to manage any HTML element like label, div,... that you can set a state. For instance when your input filed has ERROR (after validation), your label associated (with attribute for) can be RED too. You can too set a BOLD label when your input field is required. You can find FormView Web Site at http://formview.sourceforge.net/ and download JAR at http://sourceforge.net/projects/formview. Regards Angelo
Re: Custom tag
Hello, you could use FormView for manage your state (readonly, ...) for your input. With new version of formview you can too manage label to set RED color when input has ERROR. You can find FormView Web Site at http://formview.sourceforge.net/ and download JAR at http://sourceforge.net/projects/formview. Regards Angelo 2006/5/29, [EMAIL PROTECTED] [EMAIL PROTECTED]: If I understand what it is you are trying to do. I think you want to write out an input field with the name,value and a display property. What I normally do for simplicity sake is to create an object to represent a field and it's properties. In the action class I populate a collection with these objects setting there appropriate properties. In the jsp page I use a logic:iterate tag to loop over each object and apply the value of there properties to an input field. I might use input type=text name=bean:write name=o.name readonly=o.readonly where o is the object in each iteration of the collection. If it is necessary to write a custom tag, I think I would pass the form object to the tag and do all of the html work internally. Just my $0.02 Bryan LaPlante -- Original Message --- From: Hanmay Udgiri [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Mon, 29 May 2006 16:09:08 +0530 Subject: Custom tag Hi I have 100 fields for a JSP.And in the JSP a field can be mandatory/optiobal/read only. I am writing a custom tag to display the label bold for mandatory and non bold for optional. I am having a indicator for each field and I am passing this indicator to the custom tag. I am giving the sample code as below. In the form bean private String field1; private String field2; private boolean field1Indicator; private boolean field2Indicator; (set and get for all) In the JSP. myTag:indicatorStartDisplay indicatorType='bean:write name=myForm property=field1Indicator/'/ html:text name=myForm property=field1/ myTag:indicatorEndDisplay indicatorType='bean:write name=myForm property=field1Indicator/'/ myTag:indicatorStartDisplay indicatorType='bean:write name=myForm property=field2Indicator/'/ html:text name=myForm property=field2/ myTag:indicatorEndDisplay indicatorType='bean:write name=myForm property=field2Indicator/'/ Here I have two custom tags which writes b and /b in between the text field. As I have 100 field,with this approach I have to have 100 field indicator. Is there any other way to implement this??? -- Thanks and Regards Hanmayya Udgiri --- End of Original Message --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tabs (struts + tiles) How to do it ??
Hello, if you want, you can ue JSPTabControl which is taglib which manage tabs in your JSP. JSPTabControl gives you several features like keep the last tabs selected after posting a form, Get the name of tab which is selected into your action struts,... You can set a state for a tab (READ, FORBIDDEN) to for instance display your FORBIDDEN tab with red color. You can find JSPTabControl at http://jsptabcontrol.sourceforge.net/ Regards Angelo 2006/5/27, Wendy Smoak [EMAIL PROTECTED]: On 5/26/06, A. Lotfi [EMAIL PROTECTED] wrote: How to use struts and tiles to have like this example : http://www.assortedinternet.com/tiles-documentation/examples/summariesTabs.jsp I used to use that layout, but I switched to Struts Menu a long time ago: http://struts-menu.sourceforge.net/ Also, search the user list archives for posts by Michael Jouravlev, who has another project with a nice tabbed layout. I think this is the source code for the tabbed Tiles layout you linked to: http://svn.apache.org/viewvc/struts/sandbox/trunk/tiles-documentation/src/webapp/layouts/tabsLayout.jsp?revision=328777view=markup HTH, -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ANNOUNCE : new Version of JSPTabControl, taglib for manage tabs
Hello, I mail you to announce there is a new version of JSPTabControl. In this new version you can manage state and selection of tab page at client side. If you don't know JSPTabControl, here a description of this taglib : JSPTabControl is JSP taglib for manage tabs in your JSP. This taglib generate tabs with pure CSS tabs technique (using li and ul). JSPtabControl give you several features : 1. tab control (body and header) and tab page (body and header) can be easily customized with CSS. 2. titles of tab header page can be localized, by using Struts AplicationResources or Resource Bundle file properties. 3. select a tab with JAVA code (for example in your action struts). 4. keep last tab selected after posting form. 5. set a state (INVISIBLE, READ-ONLY, FORBIDDEN, ERROR, ...) with JAVA code for a particulary tab page : 5.1. to manage render of tab page (header and body) by using CSS. 5.2. to execute function javascript swith events (eg : when tab page has FORBIDDEN state, you could execute javascrit message alert You are not authorized to access this tab! when user click in this tab page). You can manage any states. States are configurate (Style class and Javascript to execute) into XML file. States can be used for exemple to manage role in your WEB Application. 6. use EL syntax (see JSTL specification) in JSPTabControl attributes taglib (with, height,...) to evaluate JSP expressions dynamically. You can find JSPTabControl WEB site at http://jsptabcontrol.sourceforge.net/ and download it at http://sourceforge.net/project/showfiles.php?group_id=161371 Regards Angelo
Re: - Design Issue with Struts Validation
Hi, Me, I use DispatchAction, and I prefer call validate in my action, instead of struts launch automaticaly validate (validate=true in action). So in my struts-config, I have just one mapping for an action (I set validate=false). After in my dispatchAction I design my DispatchAction with several dispatch : * display dispatch which load data which must be all time loaded (when you arrive for the first time in the page and after an error). Usually this date are list used in html:select. My dispatch return ActionForward to my JSP. All my dispatch in this action (load, create, update,...) call this dispatch. * load dispatch which load data (but not list for the combo). This dispatch is called just at first time. For example if you have UPDATE form, you want load the record to fill the form. * create/update... dispatch which validate form, and if there is error, return to display dispatch, otherwise save data in my Database, and after call load dispatch to reload record comming from database. I created an OpenSource project which design Actions Struts with display/load/ dispatch. It's an application whith Struts/Hibernate/Spring and AJAX called GestCV. If you want you can go at http://gestcv.sourceforge.net/index.html to download it. If you can read Frensh, I explained this design to http://gestcv.sourceforge.net/fr/architecture/struts.html#Action Struts. I'm sorry, it's in frensh, but I will translate it in english soon. Regards Angelo 2006/5/16, Frank W. Zammetti [EMAIL PROTECTED]: Hi, Create two different mappings, one for the initial view (which has validate set to false), one for the submission (with validate set to true). Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! On Tue, May 16, 2006 1:07 pm, J Gotsch wrote: When I go to a page for the 1st time, the validation takes affect. Obviously I don't want that, I only want to validate upon submitting. How do I get around this? My form extends ValidatorActionForm My Action Mapping in Struts-Config: action path=/request/callingcard/callingCardDeactivate type= com.its.action.request.callingcard.SubmitCallingCardDeactivateAction name=callingCardDeactivateForm scope=request validate=true input=callingCardDeactivate forward name=requestEntryPage path=callingCardDeactivate / forward name=draftCallingCard path=requestDeactivateCallingCardDraft / /action - How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rates. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: - Design Issue with Struts Validation
Hi Scott Mulligan, I use validator just with server side, and this solution works. I have never use it with javascript, but I think validator with javascript works like server side. I configure my validation XML where name of my form is the name of my path action and it works. Regards Angelo 2006/5/16, Mulligan, Scott H [EMAIL PROTECTED]: Angelo, I like your solution using the DispatchAction and setting validate=false. I am currently using multiple action mappings. However, will the client-side javascript validation be generated using that scheme? Does the html:javascript tag look at the validate attribute in the config? Scott Mulligan -Original Message- From: Angelo zerr [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 16, 2006 1:47 PM To: Struts Users Mailing List Subject: Re: - Design Issue with Struts Validation Hi, Me, I use DispatchAction, and I prefer call validate in my action, instead of struts launch automaticaly validate (validate=true in action). So in my struts-config, I have just one mapping for an action (I set validate=false). After in my dispatchAction I design my DispatchAction with several dispatch : * display dispatch which load data which must be all time loaded (when you arrive for the first time in the page and after an error). Usually this date are list used in html:select. My dispatch return ActionForward to my JSP. All my dispatch in this action (load, create, update,...) call this dispatch. * load dispatch which load data (but not list for the combo). This dispatch is called just at first time. For example if you have UPDATE form, you want load the record to fill the form. * create/update... dispatch which validate form, and if there is error, return to display dispatch, otherwise save data in my Database, and after call load dispatch to reload record comming from database. I created an OpenSource project which design Actions Struts with display/load/ dispatch. It's an application whith Struts/Hibernate/Spring and AJAX called GestCV. If you want you can go at http://gestcv.sourceforge.net/index.html to download it. If you can read Frensh, I explained this design to http://gestcv.sourceforge.net/fr/architecture/struts.html#Action Struts. I'm sorry, it's in frensh, but I will translate it in english soon. Regards Angelo 2006/5/16, Frank W. Zammetti [EMAIL PROTECTED]: Hi, Create two different mappings, one for the initial view (which has validate set to false), one for the submission (with validate set to true). Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! On Tue, May 16, 2006 1:07 pm, J Gotsch wrote: When I go to a page for the 1st time, the validation takes affect. Obviously I don't want that, I only want to validate upon submitting. How do I get around this? My form extends ValidatorActionForm My Action Mapping in Struts-Config: action path=/request/callingcard/callingCardDeactivate type= com.its.action.request.callingcard.SubmitCallingCardDeactivateAction name=callingCardDeactivateForm scope=request validate=true input=callingCardDeactivate forward name=requestEntryPage path=callingCardDeactivate / forward name=draftCallingCard path=requestDeactivateCallingCardDraft / /action - How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rates. - 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: Marking fields with background colour having errors
Hi, you wil be perhaps interested by FormView project. With FormView, you can easily set a styleClass to input which have errors by using ActionError Struts. see http://formview.sourceforge.net/errors.html for more information. Angelo 2006/5/5, Raghuveer [EMAIL PROTECTED]: Hi, Does struts has any facility to show fields having validation error in red color or mark it in some way? Not the error messages Could any one suggest using 'errorKey' 'errorStyle' 'errorStyleClass' and 'errorStyleId' attributes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jsp Tabs
Hello, If you want you can use JSPTabControl, which is JSP taglib which is able to manage Tabs. With this taglib you can use easily with ApplicationResources Struts (to set your title in your tabs). You can too set a state for particulary tab (eg :set sttate ERROR for particulary tab, Set FORBIDDEN state for particulary tab). You can configure any state (by adding javascript or set css in tab). You can find JSPTabcontrol at http://jsptabcontrol.sourceforge.net/ Regards Angelo 2006/5/5, Michael Jouravlev [EMAIL PROTECTED]: On 5/5/06, Patil, Sheetal [EMAIL PROTECTED] wrote: Hello friends I am using ditchnet tab taglib . However it works fine for normal text in tagPane tab:tabContainer id=foo-bar-container skin=wireframe tab:tagPane id=aa tabTitle=one Hello 1 /tag:tagPane tab:tagPane id=bb tabTitle=two Hello 2 /tag:tagPane tab:tagPane id=cc tabTitle=thr Hello 3 /tag:tagPane /tab:tagContainer This code works. when I enter some table in tab:tagPane it works fine But when I put this tab:tabPane in trtd of any table it dosent work. Means it only shows any one pane and rest dosent work Can anybody tell me that is there any problem in tabPane while writing in table rows/colemns. You probably should ask Todd Ditchendorf about this. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multi Profile web application and Validation
Hello Angel, I don't know your solution, but I think you will be perhaps interested with FormView project. This taglib is able to manage a behaviour for a field in your page. So you can define Role for a field and so your inputs will be READ-ONLY, READ-WRITE, INVISIBLE,... accoding to the role. It avoid to do in your JSP : % if user.hasrole(ADMIN) { % html:text ... % } % You can find FormView at http://formview.sourceforge.net/index.html. See section http://formview.sourceforge.net/roles.html for manage role. Regards Angelo 2006/4/19, Angel Navarro [EMAIL PROTECTED]: Hi, I have a web application with Struts 1.3. This application is multi profiles. For example, when the profile is Manager, the page have 3 inputs, but if the profile is User, the page have 2 inputs. In this case, how can I validate this form? How can I have a system validation that having an user profile in session, can it validate the form??? Thanks!
Re: Apply errorStyleClass to multiple fields using Validator
Hi christophe; If you want, you can use FormView, to manage your render of your fields which have error. See http://formview.sourceforge.net/errors.html FormView is able to manage a behaviour (READ-ONLY, INVISIBLE,ERROR,...) for each fields of your form. It can be plugged with validator to manage error and renderer (eg : add automaticly attribute maxlength (if your field is maxlength) , calendar.gif (if field is date),... Regards Angelo 2006/4/6, Christoph Olszowka [EMAIL PROTECTED]: Hi, I'm being troubled by the following issue: I have got 3 text input fields that are all being validated if they are holding int numbers with help of validators intRange. By default the fields are holding a 0. As a special condition, the sum of the fields must be larger than 0, e.g. at least one field must hold a number larger than 0. This is being validated by a validwhen-statement placed in the validation setup for the last input field looking something like var-value(((field3 0) or (field2 0)) or (field1 0))/var-value As the validation itself is concerned this works perfectly, but as a user of the styleClass and errorStyleClass-attributes possible with the html:text tag, I would like to tell struts to tag all the fields as incorrect, because the user does not have to neccessarily fill out field3, even if the applied errorStyleClass suggests this. Is there any way to solve this? Thanks in advance and greetings Christoph Olszowka - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Populate Collection values
Hello homas, To avoid this problem, I use String type in my getter/setter in my Struts form for any type (Integer, Date,...). So, you could do that : public class User { String age; public String getAge(){ return age; } public void setAge(String age){ this.age=age; } } After you must convert String age into Integer age in your action struts (after validation), to get values of list of ages. Regards Angelo 2006/3/27, Thomas Otto [EMAIL PROTECTED]: Hello, I have the following problem. I have an struts form with an Collection getter and want to let set struts the input values of an submit. public class UserForm extends ActionForm { // returns a collection of user beans Collection getUsers(){ ... } } public class User { Integer age; public Integer getAge(){ return age; } public void setAge(Integer age){ this.age=age; } } In the jsp- Page I use layout:collection with layout:text to show the input fields in a table. layout:form action=/save layout:collection property=users indexId=index layout:collectionItem title=Age layout:text property=users[${index}].age layout=false/ /layout:collectionItem /layout:collection /layout:form On submit struts fill also all values in the user bean, but struts set 0 into the age-Field and not null if the value is empty. How can I modify this? Regards Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Scriptlets cannot use inside the tabs, html:link problem
Hi, you can't use scriplet whith taglib. The aim of taglib is not use scriptlet. So, for your problem, tou can use EL syntax. With EL syntax, you wille able to do html:link action=${objectLink} But, if you want use EL syntax, you must use taglib of Struts EL see http://struts.apache.org/struts-el/index.html regards Angelo 2006/3/7, Sony Thomas [EMAIL PROTECTED]: Hi friends, I have a problem in displaying a link. I am using tabs in one of my jsp's. I have a link which is a property in my form bean. % TaskForm taskForm = (TaskForm) request.getAttribute(TaskForm); String *objectLink *= taskForm.getObjectLink(); % p align=right logic:notEmpty name=TaskForm property=objectLink html:link action=%=*objectLink*%bean:write name=TaskForm property=objectClassName /:bean:write name=TaskForm property=objectName //html:link /logic:notEmpty /p The above code is working. But this is outside the tabs. When I take inside the tab it is throwing an error. The problem is I can't use scriptlets. % % inside the tab. So I have my link value in the TaskForm, ie is my ActionForm. Is there is any way to place the objectLink value in the form, inside the html:link action= %=*objectLink*% I cannot use this. Some other ways ?? Please give some guidance. Thanks in advance, Sony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Some inputs are welcome ****
Hi thomas, which component do you use for generate your tabs? Do you use specific taglib, like struts-layout tabs or ditchnet tabs, or do you develop your own taglib ? Perhaps, your tabs can support EL tags. If so you could do c:if test=${myCondition} / myTab:tab . /c:if For information, I'm developping JSPTabControl component project. But today it doesn't exist. I will try to developp something which can support EL condition. Regards Angelo 2006/2/28, Sony Thomas [EMAIL PROTECTED]: Hi, I am using tabs in my JSP. Now when I display tabs I have to check for some conditions. But the tabs will not allow me to use Scriptlets % % inside the tabs. so is there is any struts tag library tags for shortcircuit logical operators. I mean for and || . If anyone has any idea please help. Thanks in advance, sony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: disabled form fields
Hi, yes it's normal. HTML input which are disabled can be not post by form. This behaviour is not because of Struts , with anywhere technologie (PHP, ...), HTML inputs which are disabled can be not post by form. See HTML specification at http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.12.1 Angelo 2006/2/8, [EMAIL PROTECTED] [EMAIL PROTECTED]: I've got a form where a bunch of fields are disabled. It appears that these disabled fields are not being autopopulated to my actionform. Is this possible? ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Saving a HTML screen data as a Word doc.
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 PROTECTED]: 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 create a Word file with Java: http://jakarta.apache.org/poi/index.html There are many libraries to create PDF documents, too, if that would be acceptable. -Max On Tue, 2006-02-07 at 19:18 +0530, Anjishnu Bandyopadhyay 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 pointers in this respect will be very much helpful. Thanks for your time. With best regards, Anjishnu. CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS End of Disclaimer INFOSYS*** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validation Issue
Hi, Name of form into validation.xml is the path of your Action and not the name of your Action : form name=/Control field property=strFirstName depends=required arg0 key=privacyPrefForm.strFirstName/ /field /form Declare in your AplicationResources (see example into validator-rules.xml) errors.required={0} is required. privacyPrefForm.strFirstName=First name Regards Angelo 2006/1/29, Karthik Manimaran [EMAIL PROTECTED]: This is the form definition form-bean name=privacyPrefForm type= com.bofa.ecomm.snf.web.privacy.PrivacyPreferencesBean /form-bean The JSP file is as follows: %@ page language=java % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % html:form action = Control.do?body=privacysecur_set_privacy_pref method=post logic:notPresent name=org.apache.struts.action.ERROR Errors Not Present /logic:notPresent html:errors/ html:text property=strFirstName size=30 maxlength=30 styleId=strFirstName/ /html:form On 1/29/06, Richard Yee [EMAIL PROTECTED] wrote: What is the form definition for privacyPrefForm? Where is the tag for your strFirstName field in your form? Are you using a debugger at all? -Richard Karthik Manimaran wrote: Hi, I am using the validator framework for form validation. Validation doesnt seem to happen and no error messages are displayed. However the form is getting pre-populated with the user input. Can anyone tell me what I am missing here? struts-config.xml - action path=/Control type=com.bofa.ecomm.snf.web.global.Control name=privacyPrefForm scope=request validate=true forward name=success path=/jsp/global/def.jsp/ forward name=failure path=/jsp/global/selectstate.jsp/ /action ... plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator- rules.xml , /WEB-INF/validation.xml/ /plug-in validation.xml - ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE form-validation PUBLIC -//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd form-validation formset form name=privacyPrefForm field property=strFirstName depends=required arg0 key=errors.required/ /field /form /formset /form-validation JSP file: --- %@ page language=java % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % html:form action = Control.do?body=privacysecur_set_privacy_pref method=post html:errors/ /html:form I am using the validator-rules.xml that comes with struts distribution. Thanks and regards, Karthik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Manage JSP View (READ-ONLY, READ-WRITE) with FormView
Hello, I mail you to announce that FormView project is created on sourceforge. FormView is JSP taglib to manage prerender of JSP according to state (CREATE, READ, UPDATE,...). With Formview you develop just ONE JSP to manage READ-ONLY and READ-WRITE form. For instance, on CREATE state HTML inputs will be READ-WRITE and on READ state inputs will be READ-ONLY. You can use FormView with HTML or any JSP taglib (struts, struts-layout, jsp...) that you want prerender by FormView. With FormView you can customize input according to state (add attribute readonly to HTML input or replace it by value when form must be displayed to READ state). Formview can be plugged with Struts Validator to use information about validation to update HTML according to validation (eg : add maxlength attribute to HTML input if form must be validate by maxlength, add calendar if input must be date). You can find FormView Web Site at http://formview.sourceforge.net/ and download JAR at http://sourceforge.net/projects/formview. I hope that you will be interested by FormView project. See you later. Angelo ZERR