Solved

Quick overview questions

Posted on 2004-04-26
4
422 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
  • 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
html form inside div 3 96
password protect pdf 11 76
String format issue 13 91
SimpleDateFormat.parse examples 19 93
For months I had no idea how to 'discover' the IP address of the other end of a link (without asking someone who knows), and it drove me batty. Think about it. You can't use Cisco Discovery Protocol (CDP) because it's not implemented on the ASAs.…
This article outlines the process to identify and resolve account lockout in an Active Directory environment.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

776 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