Solved

Quick overview questions

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

While it may be true that the internet is a place of possibilities, it is also a hostile environment lurking with many dangers. By clicking on the wrong link, trusting the wrong person or using a weak password, you are virtually inviting hackers to …
Read  the original post  on Monitis Blog. Hi.  My name is Erik Dietrich, and this is the first time I’ve posted on the Monitis blog.  By way of introduction, I thought it would make sense to talk about my initial experience with Monitis.   Befo…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

730 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