Bug 116794 - Struts JSP coding problem.
Summary: Struts JSP coding problem.
Status: RESOLVED WORKSFORME
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: jst.jsp (show other bugs)
Version: 0.7   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nitin Dahyabhai CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2005-11-17 01:54 EST by WONG Wing Ki, Rock CLA
Modified: 2008-03-03 13:21 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description WONG Wing Ki, Rock CLA 2005-11-17 01:54:43 EST
 
Comment 1 WONG Wing Ki, Rock CLA 2005-11-17 02:13:11 EST
When I coding Struts(version: 1.2.4) JSP, I need to copy the tag libary files
(*.tld) to the WEB-INF folder. But with this version, I should not need to do 
such action.

When I have not copy the tag libary files to the WEB-INF folder, all the 
Struts tag will be reverse like "<lmth", and other tags character will change 
colour like black or grey. When I delete a character, a NullPointerException 
will show, paste also show such exception.

My colleague do not need to copy the tag libary files to WEB-INF folder, they 
use the universal uri like "http://struts.apache.org/tags-html" will be fine.

My cooleague is using Windows 2000, and my OS is Windows XP, will it cause 
such bug?
Comment 2 David Williams CLA 2005-11-17 02:37:19 EST
I can guess at some possible factors, especially for the "backwards typing" you
are seeing: "<lmth". We found, and I think fixed in 0.71 version. Have you tried
that small upgrade? This backwards typing was releated to exceptions that
occurred, at the worst time, thus messing up the precise timing on the UI tread.
Our fix was to catch and handle the exceptions elsewhere, so wouldn't impact
typing. 

Plus, there were/are problem finding the tag libs, which I think has been fixed
some in M8, and more in M9. 

Windows XP vs. 2000 would not be a factor. There could also be issues if one is
connected to the internet and the other note? 

So, please try upgrading to 071 if you haven't yet, as a first step, and see if
that helps. 
Comment 3 WONG Wing Ki, Rock CLA 2005-11-17 21:28:45 EST
I can't solve the problem by upgrade the web tool to 0.7.1 version, in 0.7.1 
version, the tag character will not type backwardly, but all of the tag 
including standard html tag and Struts tag can not be identify by the Eclipse.

Please notes that my workstation and my colleague's workstation also have 
connect to the internet, and they do not need to copy the tag library files to 
the project folder and they are use the universal uri to use the tag library 
directly.
Comment 4 Nitin Dahyabhai CLA 2005-11-18 11:34:49 EST
(In reply to comment #1)
> When I coding Struts(version: 1.2.4) JSP, I need to copy the tag libary files
> (*.tld) to the WEB-INF folder. But with this version, I should not need to do 
> such action.
...
> My colleague do not need to copy the tag libary files to WEB-INF folder, they 
> use the universal uri like "http://struts.apache.org/tags-html" will be fine.

If the Struts *jar* files aren't located within the project itself, your
colleague may have it installed somewhere so that it still appears on the
project's build path (does he see listed it in the Project Explorer.  If that's
the case, then both WTP and most servers will be able to find it.
Comment 5 Nitin Dahyabhai CLA 2008-03-03 13:21:08 EST
Please reopen if it is still not working, but the jar files need to either be in the project or preferably somewhere on the Java Build Path.  The universal URI only works when the jars are local.