Khp Virajith

Ranch Hand
+ Follow
since May 01, 2006
Merit badge: grant badges
For More
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 Khp Virajith

Does anyone know the due date of this beta exam? Was there any official annoucement on a due date (other than that 150 exam takers thing)?
Hi,

Thanks for replying. By the way, I'm not David, but I just took this thread up, as I have a similar issue.
Please not that I'm using JSP1.2 / Servlets 2.3 (An old system )




Here, I'm listing down my Tag implementation code. For the simplicity, I'm just listing down the method implementation. (Code compiles fine...)



13 years ago
JSP
I have the same issue (as above mentioned post). I just found this while searching through the forum before posting a new topic.
Can anyone answer this?

Isn't it possible to write a custom tag code into the bodyContent and get it evaluated?

Thanks.
13 years ago
JSP
Hi Tim,

Thanks a lot for the reply.

After playing around Spring MVC and JSF, I have come to a conclusion to mainly go with JSF-based presentation layer and using Spring MVC as a supporting presentation technology to handle stuff which need not rich UIs and AJAX-based communications. Anyway, the challenging thing is to do the separation on which should be handled by JSF and which should be handled by Spring MVC.

13 years ago
JSF
[Adding some ideas to above mentioned post.]

Will it be beneficial to go with pure JSF model (having mapped URL so that it will be directly served by Faces servlet, other than Spring dispatcher servlet) rather than mixing stuff with both JSF and Spring MVC contrller layer?

What would you think?

Anyone is welcome to share your ideas and suggestions.
13 years ago
JSF
Hi Tim,

Thanks a lot for your valuable response. Yes, you are right, it is pretty hard to mix both Spring MVC and JSF layer together as both have their own way of request handling.

I'm planning to use JSF together with Rich UI component library. And I want to use common JSF functionalities like validation, data conversion, etc. How would be the behaviour if I try to use a JSF page as a view of a request hanlder method in a Spring MVC controller? Will that JSF page behave as it is supposed to be? I mean, will validation, data conversion stuff work according to JSF spec? Will JSF lifecycle work with this approach properly? I'm trying to use following view resolver strategy. (Actually, I just tried this approach, but a NullPointerException is thrown unexpectedly when parsing the JSF page, So i just want to know if it does not work as my approach is wrong)



I would like to hear from you.

13 years ago
JSF
Hi guys,

I'm planning to integrate JSF2 technology to an existing Spring MVC 3 based web application in order to provide rich user experience to the users. As I don't have previous experience on working with JSF2, I would like to hear your ideas and suggestions. Generally, I want to have a set of views which are served in terms of JSPs (Non-JSF) and the others are in Facelets (JSF). How should I configure Spring and JSF to achieve this? How view resolutionn should be done? For an example, there can be scenarios where a Facelet should be rendered as a result of a Spring MVC controller method invocation.

Feel free to share your expertise on this matter.
13 years ago
JSF
Hi guys,

Has anyone got selected for the beta exam? Anyone here???
Hello,

I have encountered an unusual behaviour with respect to file upload capability in Struts 1 application.

I have configured the max upload file size limit using the <controller> tag in struts configuration file as follows.

<controller maxFileSize="500K" />

Struts uses common fileupload library to handle file uploading functionality by default and if the file being uploaded exceeds the max file size, it sets a request-scopedattribute in the type of Boolean, under the name of the constant value : MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED.

But I experienced an unusual behaviour with large file upload. When uploading a larger file which is 300MB in size, my page hangs as the browser keeps sending the request data (obviously the file data stream) . But from server side, as soon as it determines that the file size is greater than the size limit, it immediately sets the earlier mentioned request-scoped variable and jumps out of the Action layer. So I feel that the request processing is not hung at server side, but browser keeps sending file data to the server even though the server has finished processing the request. Is there any solution for that? Am I missing something?

I'm using Struts 1.2.7 and commons file upload 1.0 combination. Also I re-tested the same functionality in latest Struts version that is 1.3.10 with common file uploads 1.2, but the behaviour is same.

Does anyone have any idea on solving this?
14 years ago
Yes, both exams are almost same... If you have HF-SJ 1.4 book then you don't have to buy the newer version. As far as I can remember, newer book included only few amendments for <c:out> JSTL tag and dynamic attribute concept in custom tag development topic. If you can just follow the Spec and catch those 02 subtle topics, it is enough to have the old book.

Good luck!
You have already been answered.. So I confirm... Good luck...!
Hello Anujit,

Many thanks for your response.

Yes, but POCs will do up to some extent only. Because, there can be scenarios that we encounter in real production app development but not in a rapidly developed POC. And developing POCs and compare/contrast all the capabilities of both frameworks need much time. So that's why I just wanted to hear from the people those who have past experience in developing enterprise applications with these two technologies.

As of my analysis, Spring MVC seems to be more flexible with respect to front end features it provide and integration with Spring itself. Still this thread is open to share your views, guys!

14 years ago
Hi David,

Thanks David for your response.

Is anybody else to share thoughts?
14 years ago
Hi guys,

I just like to know your ideas on presentation layer technology to be used with Spring-based application. Struts has been leading among the other presentation layer technologies for many years. I have used Struts 1 with Spring and with my experience, I know Struts 1 lacks some essential features. I have not used Struts 2 in an enterprise application yet and I don't have much idea on its capabilities compared to Struts 1. Obviously. you guys must have experience on using them in your projects. Would you mind sharing them?

What about Spring MVC? With easy-to-configure annotation support, it looks promising. I wanna evaluate following 02 technology stacks.

01. Spring-Struts
02. Spring-Spring MVC

I know, it's hard to say which is the best. But share your experience and let me know their pros and cons...
Does anyone feel Spring MVC is feature-rich as same as Struts 2?

Open for discussion.
14 years ago