Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Improving jsp Skills

 
praveen shinde
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,
I want to improve upon my Jsp skills.
I have written a jsp to accept username & password. Then I have displayed the username and password on another jsp. Now I want to go forward. Can you give any suggestions what jsps to write?
Thanks & regards,
Praveen
 
Komal Renu
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Praveen,

You could try extending to displaying various input types like dropdowns, multiboxes, radio buttons, checkboxes.
Then start with displaying list of data in tables (display tags).
Go ahead then to explore logic tag library and so on.

Thanks and Regards,
-------------------------------------------------------------------------------------
Komal Renu | krenu@infocepts.com | www.infocepts.com
-------------------------------------------------------------------------------------
 
praveen shinde
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks ,

I will do the activities you have mentioned.
Praveen
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is still lot more to it like JSTL, EL, custom tag libraries, XML syntax,etc

But no matter what you do, make sure to stay away from scriptlets.
 
praveen shinde
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Amit,
I will do these one by one. I have used scriptlets.
They are to be avoided in jsp , I gather.
Regards,
Praveen
 
Harshavardhan Joshi
Greenhorn
Posts: 8
Java MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Amit Ghorpade wrote:There is still lot more to it like JSTL, EL, custom tag libraries, XML syntax,etc

But no matter what you do, make sure to stay away from scriptlets.


But how can we display dynamic data on the page without scriptlets?

eg.We need to populate a HTML combo at run time using Collection.

Please explain because I also need to improve upon my Jsp skills.

Thanks.
 
Minh Nam
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Harshavardhan Joshi wrote:
But how can we display dynamic data on the page without scriptlets?

eg.We need to populate a HTML combo at run time using Collection.

Thanks.


So you should see JSTL and custom tag libraries, as Amit Ghorpade mentioned above.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64683
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Harshavardhan Joshi wrote:But how can we display dynamic data on the page without scriptlets?

The JSTL and EL were introduced over 10 years ago to replace scriptlets. Do you not think it's time to catch up?

eg.We need to populate a HTML combo at run time using Collection.

There is no such thing as an "HTML combo". Please read this: HtmlHasNoComboBox

Please explain because I also need to improve upon my Jsp skills.

It's good that you realize that because your JSP skills are badly out of date.
 
Harshavardhan Joshi
Greenhorn
Posts: 8
Java MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know that maintaining jsp's with the scriplets is hard. And they look ugly.
But I just wanted to know that does scriplets in the jsp's cause performance issues.

And we need to use <SELECT> and <OPTION> tags of HTML to create the drop down list.
Sorry for mentioning it HTML COMBO

Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64683
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Harshavardhan Joshi wrote:But I just wanted to know that does scriplets in the jsp's cause performance issues.

As with any other code, you can write inefficient code that causes performance issues. Efficient code will be efficient -- inefficient code will be inefficient.
 
praveen shinde
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
i will post my updates shortly.
Praveen
 
Harshavardhan Joshi
Greenhorn
Posts: 8
Java MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That would be great Praveen!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic