Solved

Quick overview questions

Posted on 2004-04-26
4
424 Views
Last Modified: 2012-06-21
Hey Guys,

Just a quick question:

Under what circumstances do you embed inline Java in JSP pages?

What are the advantages and disadvantages of embedding inline Java versus not embedding it?

Whats the best JSP editor out there? Freeware?

I can see many of you jumping on the "homework help" thing, please dont. You can see that I've been here for quite a while and just wanna learn.

Thanks to all!
0
Comment
Question by:maxb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 32

Expert Comment

by:ldbkutty
ID: 10923796
Hi there,

Crimson editor is one of the best editor for JSP...JCreator might be useful for JAVA.

Do you mean to say this inline::java

http://inline.perl.org/java/home.html 

Or just embedding java files in a jsp page.

0
 

Author Comment

by:maxb
ID: 10923844
Yep, so what are the advantages and when would I use it?
0
 

Author Comment

by:maxb
ID: 10923872
Sorry I actually meant in JSP, not Perl.
0
 
LVL 32

Accepted Solution

by:
ldbkutty earned 50 total points
ID: 10924014
You can embed any valid Java language code inline within a JSP file between the <% and %> tags. Such embedded code is called a scriptlet. If you do not specify the method directive, the generated code becomes the body of the service method.
 
An advantage of embedding Java coding inline in JSP files is that the servlet does not have to be compiled in advance, and placed on the server. This makes it easier to quickly test servlet coding.

Some tutorials:
http://www-306.ibm.com/software/webservers/appserv/doc/v35/ae/infocenter/was/0402020303.html

Also, Including a JSP file into another can be done in several ways, JSP allows both dynamic and static includes. One example,
<jsp:include page="anyjspfile.jsp" flush="true"/>

Hope this helps...

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
This article explores several main social media platforms.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question