- This topic has 3 replies, 2 voices, and was last updated 18 years, 9 months ago by mhersee.
-
AuthorPosts
-
mherseeMemberHi,
I am experiencing several issues in my JSP development using myEclipse. any help with these would be very much appreciated. that must have been solved before as they are so simple.
1 – My JSPs are snippets, i.e. not full HTML docs. Hence The Validator complains about every tag (e.g. <p>, <ul> etc) as they are not enveloped by <html><body> etc.
2 – Code formatting. I am working on a large scale website conversion in which we have to dump masses on text into JSPs. The problem is that I can’t get the text to wrap in the JSP editors. E.g. I end up with
<h1>Title</h1> <p> this line goes on forever....this line goes on forever...this line goes on forever ...this line goes on forever </p>
This problem makes it excruiatingly diffucult to make any text changes within this editor.
Any other help on editing in JSPs would be a bonus.
Thanks for your time.
Matt
mherseeMember*** Date: Thu Feb 02 11:03:06 GMT 2006
*** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.5.0_04*** MyEclipse details:
MyEclipse Enterprise WorkbenchVersion: 4.0.200 M2
Build id: 20051205-4.1-Milestone2*** Eclipse details:
Eclipse SDKVersion: 3.1.0
Build id: I20050627-1435Eclipse Platform
Version: 3.1.0
Build id: I20050627-1435Eclipse RCP
Version: 3.1.0
Build id: I20050627-1435Eclipse Java Development Tools
Version: 3.1.0
Build id: I20050627-1435Eclipse Plug-in Development Environment
Version: 3.1.0
Build id: I20050627-1435Eclipse Project SDK
Version: 3.1.0
Build id: I20050627-1435Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-launcher
C:\eclipse3.1\eclipse\eclipse.exe
-name
Eclipse
-showsplash
600
-exitdata
fdc_58
-vm
C:\WINDOWS\system32\javaw.exe
GregMemberHello Matt,
1 – My JSPs are snippets, i.e. not full HTML docs. Hence The Validator complains about every tag (e.g. <p>, <ul> etc) as they are not enveloped by <html><body> etc.
Try using a .jspf extension on your jsp snippets that aren’t full HTML docs. Then your html tags that aren’t inside <body>etc shouldn’t be marked as warnings.
2 – Code formatting. I am working on a large scale website conversion in which we have to dump masses on text into JSPs. The problem is that I can’t get the text to wrap in the JSP editors.
Open up the HTML Source preference page Window > Preferences > MyEclipse > Editors > HTML > HTML Source, then set the Line width: field to something less than the default of 256. Then reformat your JSP to pick up the new line width.
mherseeMemberbrilliant,
thank you for your time on this
-
AuthorPosts