Solved

Quick overview questions

Posted on 2004-04-26
4
420 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
Comment Utility
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
Comment Utility
Yep, so what are the advantages and when would I use it?
0
 

Author Comment

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

Accepted Solution

by:
ldbkutty earned 50 total points
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
JTable - RowFilter & Columns Header. 3 136
tomcat users xml 7 100
immutable object concept 5 104
mask rule in struts validation.xml 5 68
HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
Find out what Office 365 Transport Rules are, how they work and their limitations managing Office 365 signatures.
This video discusses moving either the default database or any database to a new volume.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now