Struts EJB 3 tutorial
Hello, I have just finished a EJB 3 - Struts tutorial and put it on my website. It is available for free as HTML and PDF at http://www.laliluna.de/EJB-3-tutorials.html As far as I remember, I have not yet announced tutorials in this mailing list. The smart-questions site and your mailing list information did not explain if I am allowed to announce free tutorials. Please, contact me if this is not appreciated by the common sense and I will refrain from further anouncements. Best Regards / Viele Grüße Sebastian Hennebrueder - http://www.laliluna.de * Tutorials for JSP, JavaServer Faces, Struts, Hibernate and EJB * Seminars and Education at reasonable prices * Get professional support and consulting for these technologies - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts tags for link /
Le Goff, Yoann schrieb: Does anybody know how i can replace my link / tag by a struts one ? Y. Have a look in the guide http://struts.apache.org/userGuide/dev_html.html -- Best Regards / Viele Grüße Sebastian Hennebrueder http://www.laliluna.de Tutorials for JSP, JavaServer Faces, Struts, Hibernate and EJB Get support, education and consulting for these technologies - uncomplicated and cheap. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: actionForm class
Balkan Guler schrieb: Hello. There is something I could not understand with actionForms. Suppose that I have 2 pages and a action. In first page I want to take student number and call the business objects in action to fetch the student details from database and show them in the second page. there is a studentNumberForm declared in the action-mapping block with the studentAction. So struts will fill the studentNumber field of the studentNumberForm with the first page parameter and send it to the studentAction. The question is after taking the student detail from DB where will I place them to show in the last page? There is only one action form... a) You may use hidden fields in the different pages b) Save the values or the complete actionForm in the session -- Best Regards / Viele Grüße Sebastian Hennebrueder http://www.laliluna.de Tutorials for JSP, JavaServer Faces, Struts, Hibernate and EJB Get support, education and consulting for these technologies - uncomplicated and cheap. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Slightly OT] Intuitive way of multi-select?
What about to lists the first one is the source list, the second one the selected list. You can select an item and send it via javascript to the second list. On submit everything is updated. Regards Sebastian Hennebrueder http://www.laliluna.de Tutorials for JSP, JavaServer Faces, Struts, Hibernate and EJB Vamsee Kanakala wrote: Hello, I have been mulling over how to provide a simple way of multi-select. Some how, I'm not very comfortable with providing the normal way of enlarged drop down list, which the users have use Ctrl+click to select. The reason is that this becomes messy when they come back to edit their selections. The only other option I see is to provide bunch of checkboxes. Is there any other way of providing a simple way of doing multi-select in an edit-friendly way? TIA, Vamsee. - 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: Struts DB Access :: Best Practices
Struts using Hibernate. Hibernate is quite easy to learn and has a large community. Regards Sebastian Hennebrueder http://www.laliluna.de Tutorials for JSP, JavaServer Faces, Struts, Hibernate and EJB karthikeyan balasubramanian wrote: Hi all, I am planning to use Tomcat/Struts/MySQL in my project. Database operation's can involve more selects and little bit of update/insert operations. I want to know what is the best way to access database using struts. I did a research and found few good ways: 1. Struts using Castor. 2. Struts using JDO. I found Struts with Castor easy to use. What you guys/gals think on What is the best practices to access DB from Struts?. Any inputs here would enable me to make good decision :) Looking forward for yours response. Have a great day. Karthikeyan B - 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: [Help] I need tutorial which tells us how to integrate Struts and Hibernet
On my Website there is a simple Struts Hibernate tutorial using JBOSS as application Server. Regards Sebastian Hennebrueder http://www.laliluna.de Tutorials for JSP, JavaServer Faces, Struts, Hibernate and EJB Pham Anh Tuan wrote: Hi all, Who can help me or show me where I can get tutorial which tells me how to integrate Struts and Hibernet. thanks for advance Anh Tuan - 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: Struts DB Access :: Best Practices
I do not completely agree here. You can choose from where you come and to where you go using Hibernate. As other approach I only know EJB and here it depends on the tools you have. With xDoclet your start with the class and go to the db over the mappings. Regards Sebastian Hennebrueder http://www.laliluna.de Tutorials for JSP, JavaServer Faces, Struts, Hibernate and EJB Günther Wieser wrote: i prefer to use OJB for persistence, because i like the approach of coming from the object world and define the mapping to the database, while hibernate (and others) tend to come from the database and help you generate classes. OJB is very easy to use, and you won't see anything related like PK-FK or id within your java code which makes it easy to read and has nothing database related in it. but if you have the need to tune performance etc. OJB gives you access to everything, inluding using stored procedures. kr, guenther -- Günther Wieser creative-it Guglgasse 6/1/11/1 A-1110 Wien Austria http://www.creative-it.com -Original Message- From: karthikeyan balasubramanian [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 09, 2005 9:19 AM To: user@struts.apache.org Subject: Struts DB Access :: Best Practices Hi all, I am planning to use Tomcat/Struts/MySQL in my project. Database operation's can involve more selects and little bit of update/insert operations. I want to know what is the best way to access database using struts. I did a research and found few good ways: 1. Struts using Castor. 2. Struts using JDO. I found Struts with Castor easy to use. What you guys/gals think on What is the best practices to access DB from Struts?. Any inputs here would enable me to make good decision :) Looking forward for yours response. Have a great day. Karthikeyan B - 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: Hibernate Struts Example
You may also try this one. Sorry, that it was unfindable. ;-) http://www.laliluna.de/struts-hibernate-integration-tutorial-en.html Regards Sebastian Hennebrueder http://www.laliluna.de Tutorials for JSP, JavaServer Faces, Struts, Hibernate and EJB Daniel Watrous wrote: I have written a very simple shopcart application using Struts and Hibernate. I looked quite a bit for a decent tutorial and example but found nothing, so I put this together. For anyone else wondering how to integrate Hibernate and Struts, here is an example: http://www.simplecart.org The source is available under a BSD license. THIS IS NOT PRODUCTION QUALITY SOFTWARE. It is simply for learning, which is why I did it. Hopefully it is useful to someone more than me! - 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: Convert nl to br
You could write a special getter in your bean providing this feature. Example if you have getTextField then add getTextFieldBR Regards Sebastian Hennebrueder http://www.laliluna.de Tutorials for JSP, JavaServer Faces, Struts, Hibernate and EJB Ole Hildebrandt wrote: Hi, I know this is a stupid question, but I couldn't find any solution. Is there any documentation available on how to specify a format-String in the bean:write tag so that native linefeeds are converted to br-Tags? Kind regards Ole - 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: Speaking of the Wiki, what lang is this?
Yes it is, but it is rather nonsense. It is a kind of listing words Regards Sebastian Hennebrueder http://www.laliluna.de Tutorials for JSP, JavaServer Faces, Struts, Hibernate and EJB David G. Friedman wrote: http://wiki.apache.org/struts/LocalSpellingWords Is that German? Do we have many other multi-lingual struts Wiki pages that I've never noticed before? -- This could be a rhetorical question if there are lots of them on the Wiki. Regards, David: bald, tired, and apparently not very funny - 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: a *simple* tiles tutorial
You may try this one, it it a working example. http://www.laliluna.de/first-steps-struts-tiles-tutorial.html This tutorial is using Eclipse with the MyEclipse plugin. If you do not have this plugin, you may do the web project configuration and deployment in a different way. Kind Regards Sebastian - http://www.laliluna.de/tutorials.html Tutorials for Java, Struts, JavaServer Faces, JSP, Hibernate, EJB and more. David Johnson schrieb: All I'm searching for (as the title suggests) a simple Tiles tutorial. I have found the one by Cedric D, but I think it's assuming more knowledge than I have (http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf) Can anyone point me? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Welcome file problem
Normally I forward to an default action from the page xy.de/myProjekt/index.jsp The index.jsp is in the Home directory and all other JSPs are located in a JSP directory which is protected. The home directory is not protected. Regards Sebastian Hennebrueder http://www.laliluna.de Tutorials for JSP, JavaServer Faces, Struts, Hibernate and EJB Erik Weber wrote: I am restricting *.jsp in web.xml. ActionServlet is mapped to /foo/*. I would like to use a welcome file so that a URL of http://host:port/app will resolve to the index page. However, the index page is a JSP, so it's not accessible directly. So basically what I need is a welcome file that actually resolves to an unprotected Action mapping. Something like this: welcome-file-list welcome-file/foo/index.html/welcome-file /welcome-file-list . . . action-mappings action path=/index.html forward=/index.jsp/ /action-mappings How can I accomplish this (assuming no Apache Web Server in front)? Thanks, Erik - 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: how to integrate struts project with hibernate?
We have a basic tutorial showing a possible way of combining Struts and Hibernate. It could serve you as a starter, more advanced solutions will include a Cash Implementation. Regards Sebastian Hennebrueder http://www.laliluna.de Tutorials for JSP, JavaServer Faces, Struts, Hibernate and EJB Metin Erksan wrote: hi i try to integrate my struts project with hibernate.i m newbie about hibernate.i use jdeveloper10g. i googled but i found a few samples that use hibernate plugin for struts . is there any document or startup sample for struts-hibernate? at the beginning i searched for struts-spring comparison but i couldnot find .i want to know experienced users with hibernate.do they use hibernate with struts or spring ? and why ? i m at the beginning of project. your sincerely __ Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. http://info.mail.yahoo.com/mail_250 - 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: how to integrate struts project with hibernate?
Sorry, I wanted to write cache implementation or better cache usage. ;-) Regards Sebastian Hennebrueder http://www.laliluna.de Tutorials for JSP, JavaServer Faces, Struts, Hibernate and EJB Sebastian Hennebrueder wrote: We have a basic tutorial showing a possible way of combining Struts and Hibernate. It could serve you as a starter, more advanced solutions will include a Cash Implementation. Regards Sebastian Hennebrueder http://www.laliluna.de Tutorials for JSP, JavaServer Faces, Struts, Hibernate and EJB Metin Erksan wrote: hi i try to integrate my struts project with hibernate.i m newbie about hibernate.i use jdeveloper10g. i googled but i found a few samples that use hibernate plugin for struts . is there any document or startup sample for struts-hibernate? at the beginning i searched for struts-spring comparison but i couldnot find .i want to know experienced users with hibernate.do they use hibernate with struts or spring ? and why ? i m at the beginning of project. your sincerely __ Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. http://info.mail.yahoo.com/mail_250 - 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: newbie problem
Hallo Robin, you can save the values from the first form in hidden fields on the second JSP. With this you will only need one formBean saving all values. I think it depends on the application which approach is better. If you have to save the data at the end of both forms, I prefered one form and hidden fields. If the first select box is only the entrance to forms, then I prefered your approach. Regards Sebastian Hennebrüder http:///www.laliluna.de Tutorials for JSP, JavaServer Faces, Struts, Hibernate and EJB Robin Ericsson wrote: Hi, I'm new to struts and trying to understand all the new things, but this is my problem right now. I have two forms, one form used for a select-list, and another form that will be dynamically build based on the value selected in the first list. So, how would I go on doing this? I've come so far that the first form is working through an action-class, but how should I request information from the form in the action and how should I save the dynamic data so it can be used by the view (jsp-page)? One idea might be to save the data from the first form on http-session, and then in the viewprepareaction I store the dynamic generated data on the request as a Collection ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbie problem
Yes and No. I think that there is a risk to fill the session with a lot of formBeans which rest as trash. At least you should keep it in mind, that 1) you empty the session when the user follows the normal dialog path. 2) when you have a large application with lots of users and long sessions, you should think about a strategy to clean up the session. Regards Sebastian Hennebrueder http://www.laliluna.de Tutorials for JSP, JavaServer Faces, Struts, Hibernate and EJB Rick Reumann wrote: Sebastian Hennebrueder wrote the following on 1/25/2005 10:37 AM: If you have to save the data at the end of both forms, I prefered one form and hidden fields. Yuk, just give the form bean Session scope. Much cleaner in my opinion. Way too much of a headache to keep track of which hidden fields you need to have on the page as requirements change as the application develops. Session scoped forms make sense for situations when the user is going to have to move from page to page populating data that needs to later be handled. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Java IDE's
I use MyEclipse the support for web development (struts) is really good. jsp preview and it is quite cheap. EJB development is using xDoclet, which is sometimes a bit slow compared to jbuilder EJB visual ejb development Regards Sebastian Ashutosh Satyam wrote: Hi, Though this is an off topic question, but still I'm posting it here as I have found this mailing list to be active and members try to furnish the information as much as possible. Q) Could you suggest some Java IDE's 1. What are the top 3 good features you seen in this IDE 2. What are the top 3 negatives of those IDEs. As for me I'm a VI/EMAC user. But I feel usage of an IDE undoubtedly increases efficieny and productivity of development cycle. All inputs are welcome. Thanks in advance, Ashutosh - 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: i18n (internazionalization) tutorial need
You could try our message ressource tutorial at http://www.laliluna.de/tutorials.html It is explains the use of message ressources which are the base for multi language apps. Regards Sebastian [EMAIL PROTECTED] wrote: hi all i need a good tutorial (for free) for managing internazionalization with struts. any help? regards Libero ADSL: 3 mesi gratis e navighi a 1.2 Mega. E poi hai l'Adsl senza limiti a meno di 1 euro al giorno. Abbonati subito senza costi di attivazione su http://www.libero.it - 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: Any good struts tutorials online?
I made some tutorials using eclipse with myeclipse plugin. There is one for struts basic struts tiles struts and ejb www.laliluna.de/tutorials.html It is best to try them to decide if your like them. Regards Sebastian Donie Kelly wrote: Hi all I've been given a half finished struts project to develop further and I havn't used struts before. Is there any good resources where I can learn how to get up to speed quickly. Overviews are especially important to me as it help me to learn quicker. Is there any good books that lead me in at the right pace. I've been programming java for a long while now but struts seems slightly convoluted to me. Basically I need help and I am a a quick learner. I just need better resources than what I'm finding... Thanks in advance Donie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Any good struts tutorials online?
OK ;-) Niall Pemberton wrote: I've added a Tutorials page on the wiki - feel free to update. Niall - Original Message - From: Sebastian Hennebrueder [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, November 26, 2004 5:50 PM Subject: Re: Any good struts tutorials online? I made some tutorials using eclipse with myeclipse plugin. There is one for struts basic struts tiles struts and ejb www.laliluna.de/tutorials.html It is best to try them to decide if your like them. Regards Sebastian Donie Kelly wrote: Hi all I've been given a half finished struts project to develop further and I havn't used struts before. Is there any good resources where I can learn how to get up to speed quickly. Overviews are especially important to me as it help me to learn quicker. Is there any good books that lead me in at the right pace. I've been programming java for a long while now but struts seems slightly convoluted to me. Basically I need help and I am a a quick learner. I just need better resources than what I'm finding... Thanks in advance Donie - 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: struts and caching
It is just an idea but may be it helps When you implement your form bean as class, you could create two more fields with two boolean fieldTempAIsSet String fieldTempB boolean fieldTempBIsSet in the setter of fieldTempB you check if fieldTempAIsSet is true, if so you write to origFieldA and origFieldB in the setter of origFieldB you can check if fieldTemB is allready set, if so write your origfielda first and than your origFieldB Regards Sebastian http://www.laliluna.de ejb tutorials David G. Friedman wrote: Same goes for an alternative O/R and query mapper named Hibernate. :) At http://www.hibernate.org Regards, David -Original Message- From: Paul Woods [mailto:[EMAIL PROTECTED] Sent: Friday, October 15, 2004 11:53 AM To: Struts Users Mailing List Subject: Re: struts and caching Have you seen iBatis? It lets you configure how the cache works on a per query basis if you want. You can put your sql into xml files as well, very handy. http://www.ibatis.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Seeking advice for buying a Struts book
I liked the book Struts Survival Guide which is available here http://www.objectsource.com/ It is not a basic book but provides solutions for typical problems. Regards Sebastian www.laliluna.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need example of using DynaActionForm with ArrayList (1.1)
Hallo, I struggled with the same problem for many days and found finally a workaround. Arron pointed me to a much better workaround for the problem. I compiled a tutorial explaining the background and possible workarounds. The tutorial is on my website http://www.laliluna.de/tutorial/struts-dynamic-forms/struts-dynamic-forms-tutorial.html You will find the problem quite offen related to *java.lang.IndexOutOfBoundsException* when using at org.apache.commons.beanutils.BeanUtils.populate or *java.lang.ArrayIndexOutOfBoundsException* dynamic forms Regards Sebastian Antony Paul wrote: Thanks for the reply. I scraped the original code and replaced it with my own implementation using Map. I will experiment your suggestions in the next opportunity. rgds Antony Paul - Original Message - From: Matt Bathje [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, September 14, 2004 7:14 PM Subject: Re: Need example of using DynaActionForm with ArrayList (1.1) Antony Paul wrote: Hi all, Sorry if it is a repost. Using Struts 1.1. I have an ActionForm in which displays an array of items. I want to use DynaValidatorForm here which uses ArrayList as property holders. I am able to pre-populate the form. I have trouble in displaying the values and on submission nothing is populated. If somebody can give an example it will be very useful to me. Struts-config.xml -- form-bean name=PriceForm type=org.apache.struts.validator.DynaValidatorForm form-property name=productid type=java.util.ArrayList/ form-property name=productdesc type=java.util.ArrayList/ /form-bean JSP --- logic:iterate name=PriceForm property=productid id=pid indexId=index tr //html:hidden property='%=productid[+index+]%'/ tdhtml:text property=productdesc indexed=true/ td//html:text property='%=productdesc[+index+]%'/ /tr /logic:iterate I tried using indexed attribute. Then HTML generated is input type=text name=org.apache.struts.taglib.html.BEAN[0].productdesc value=[product desc 0] See the value is in braces. If I use html:text property=productdesc indexed=true/ I get java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 What is wrong ?. rgds Antony Paul Antony - I've never done this with an arraylist myself, just arrays - but in my experience the error you are getting comes up when struts can't figure out the length of the collection you are trying to iterate over. This usually happens when the form is being put in the request scope and not in the session scope. Is it possible you could post the relevant portions of your loader class, as well as the action mappings for the loader and submit forms? The other alternative you may have is to look into using Niall's LazyList implementation. It is supposed to get rid of a lot of headache's like that. (Just google for struts lazylist and you'll see what you need.) Matt - 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]