Well, the problem was just the lack of quoting. Be sure to quote all your attribute values. But using the EL and JSTL is modern practice. Scriptlets have been discredited for 10 years now and should no longer be used an any new JSP page.
Yeah, I've read they're hard and complicated to maintain. But as I have been in learning process of JSP, I tried scriptlets. But now onwards it'll be just EL and JSTL as I learn them. Anyway, its as always your help comes to my aid. Thank you Bear Bilbeault.!! :))
thor aniket wrote:But as I have been in learning process of JSP, I tried scriptlets
Bad idea. Why learn the wrong way to do things first?
When learning Java, would you start by using Java 1.1? Or modern Java 6 or 7?
Learn the JSTL and EL first as they are the modern way to create JSP pages. Then, if you find that you need to learn scriptlets in order to support legacy pages, learn that last, after you firmly understand how to do things the right way.
Yes, Bear Bileault!! You're absolutely right..!! I have to master right and standard things( EL and JSTL)first and would learn some legacy ways(Scriptlets) in the last. Actually Head first Servlet and JSP has a couple of pages on scriptlet topic on the way before actual EL and JSTL starts. But I haven't started to read EL and JSTL chapters. So I had been finding solutions just from scriptlets way( Ignoring Author's warning). But, now, I have to finish EL and JSTL them as soon as possible. and then I will be using EL n JSTL only. Thank you for your kindly mentoring.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: In jsp a request parameter (string value with white spaces)displayed only upto the first whitespace.