This week's book giveaway is in the Artificial Intelligence and Machine Learning forum.
We're giving away four copies of Succeeding with AI and have Veljko Krunic on-line!
See this thread for details.
Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!

David Sappia

Greenhorn
+ Follow
since Dec 29, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by David Sappia

Hi everybody, I just would like to thank here what helped me to pass the exam, I highly recommend these:

1- The book Sun Certified Programmer & Developer for Java 2 Study Guide by Kathy Sierra, Bert Bates. I must confess I didn't buy it because a friend lent it to me, but I'm sure it worths the money!! It's perfect, clear and even funny to read (it has a lot of 'freaky' jokes, it's better to read that 'divide a float by zero doesn't cause a collapse in the reality as we know it' that a boring sentence)

2- The wonderful list of mock exams at http://www.javaranch.com/mock.jsp

3- Specially the best mock exam site (and I have used A LOT) for me is http://www.danchisholm.net/ It's so wonderful I wish I could speak better english to express my gratefulness for this site!!

15 years ago
Thank you for your reply!

I spent this time because I wanted to know if it could be useful for this project that is starting now!

Now I understand better the pourpose of Tiles but I have concluded is not useful for this project: the layout is well defined in the specification, and the complexity of using Tiles without Struts is a waste of time (in my opinion) even if there is a small possibility that the client will ask in the future for a change in the layout. In that case, a change of the position of the includes in all the jsps will be the only problem so it will probably be just a one day work (compared with the many days making the team learn and implement Tiles, the added complexity of the application, and whoknows problems with JavaScript or whatever that could appear).

See you!
15 years ago
JSP

This gives the whole app the same look and feel and all the developer needs to deal with is page content



But if I have a header.jsp and a footer.jsp and then pages like page1.jsp, page2.jsp with the same html structure (copy-paste, maybe from a simple html file that could be considered a layout...), and in these pages I insert at the beginning the header.jsp and at the end footer.jsp with includes, I have the same look and feel also.

With Tiles I have the same but the developer far from deal only with page content needs to create the layout, and with Struts she needs to deal with the xml definitions, create a nonoperational Action and deal with the configuration of Struts. More complex, more or less same results.

Consider a site that has a header, footer, and content -- each of which can be changed



In this case I think we could have in page1.jsp an if condition. If the parameter we receive is header=header1, we will put the include with header1. If the parameter is header2, we will put the include with header2. And neither these parameters nor others we could be getting from a form need to appear in the URL if we use POST

Simpler solutions, almost same results. Yes, Tiles could be more nice to see but I can't see real advantages in comparison with the added complexity. Maybe if you need to change everything in an application after all the development... but even then you could change the includes with no difficulty... and in Tiles maybe you will need to change the definitions and the layouts and the struts configuration, I suppose it's not so easy.

I really WANT to find a good advantage to introduce Tiles in the project (must be useful, if people have developed it) but I am not able to find any!
15 years ago
JSP
I wonder if the Tiles framework its really useful or not... I have been some hours trying to determine if its useful for a real production service to be developed in J2SE , but in comparison with the common "jsp:includes" I can't find a real advantage, specially since Struts is not used.

If anybody can figure any advantage of this way of arrange JSP layouts, please let me know! :-)
15 years ago
JSP
Hi!

Well, do you think that's a big drawback of Struts? You have that xml file with the client side validation javascript, you reuse this code, you have it stored very tidy... What's the problem? If the code was stored in a *.whatever file, it wouldn�t be better I suppose :-)

Of course as I haven't used the Validator very much, maybe there are a lot of things you can't do with it, but maybe not... And so far it seems very nice!!
15 years ago
JSP
Hi again!
Now Im a little confused. In fact I havent used a lot the Validator so I think Im probably confusing things: that JavaScript code that is in validator-rules.xml is for being inserted in JSPs pages, and therefore for client side validation, isnt it? That was what I thought, now I am not sure!
Thank you in advance! :-)
15 years ago
JSP
Hi!
Validation in Struts is made mainly with a xml file. That's really nice, and you can even define different files for different languages. The validations you specify (for example in JavaScript if you want to make validation in the client side) in that file can be used in different JSPs, but are stored in a single file!
It's like the flow control, its specified in a single xml file, struts-config...
I like Struts!! :-)
15 years ago
JSP