Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2006

Tip: Looking for answers? Try searching our database.

New to JSP. Can I do this?

Thread view: 
bravesplace@yahoo.com - 06 Nov 2006 15:21 GMT
I need to add an image to the top left hand corner of a webpage. If it
was HTML, then no problem.

<p><img src="imagename.gif"></p>

However, this is a .jsp page, and the only person who knows less about
JSP is the person asking me to do this. So my question is... How can I
do this?

Thanks for the time.
Daniel Pitts - 06 Nov 2006 15:29 GMT
> I need to add an image to the top left hand corner of a webpage. If it
> was HTML, then no problem.
[quoted text clipped - 6 lines]
>
> Thanks for the time.

JSP is a way to create a servlet that will serve HTML.
JSP's have special ways to process your HTML template, but if you need
to do flat HTML, you can.

So, do it the same way.
bravesplace@yahoo.com - 06 Nov 2006 15:42 GMT
Thanks for the reply. Just to verify, are you saying I can just add the
tag as I would with HTML. If so, that is great!! Thanks for taking the
time to reply.

On Nov 6, 10:29 am, "Daniel Pitts" <googlegrou...@coloraura.com>
wrote:
> bravespl...@yahoo.com wrote:
> > I need to add an image to the top left hand corner of a webpage. If it
[quoted text clipped - 11 lines]
>
> So, do it the same way.
Mark Jeffcoat - 06 Nov 2006 17:08 GMT
> Thanks for the reply. Just to verify, are you saying I can just add the
> tag as I would with HTML. If so, that is great!! Thanks for taking the
> time to reply.

That is correct. A well-written JSP will look almost
exactly like a normal HTML file, with the occasional
<% %> intrusion.

(This is a statement of opinion, but it's also The Truth.
If your JSP looks more like a Java program with occasional
HTML tags, you're doing it the hard way.)

Signature

Mark Jeffcoat
Austin, TX

bravesplace@yahoo.com - 06 Nov 2006 17:30 GMT
Thank you so much for your help, and advise.

> bravespl...@yahoo.com writes:
> > Thanks for the reply. Just to verify, are you saying I can just add the
[quoted text clipped - 10 lines]
> Mark Jeffcoat
> Austin, TX
Daniel Pitts - 06 Nov 2006 20:35 GMT
> > Thanks for the reply. Just to verify, are you saying I can just add the
> > tag as I would with HTML. If so, that is great!! Thanks for taking the
[quoted text clipped - 11 lines]
> Mark Jeffcoat
> Austin, TX

Actually, a well-written JSP will look like XHTML with namespaced
action tags such as "<c:if test='${something}'>Something is
true</c:if>"
:-)
aflat362 - 07 Nov 2006 21:14 GMT
> > > Thanks for the reply. Just to verify, are you saying I can just add the
> > > tag as I would with HTML. If so, that is great!! Thanks for taking the
[quoted text clipped - 16 lines]
> true</c:if>"
> :-)

Actually, a well-written JSP would work - bug free - regardless of
whether you use scriptlets or tag libraries or EL.  Nothing is wrong
with scriptlets.
Daniel Pitts - 07 Nov 2006 21:21 GMT
> > > > Thanks for the reply. Just to verify, are you saying I can just add the
> > > > tag as I would with HTML. If so, that is great!! Thanks for taking the
[quoted text clipped - 20 lines]
> whether you use scriptlets or tag libraries or EL.  Nothing is wrong
> with scriptlets.

Nothing is "wrong" with them, but they tend to be abused.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.