| Author |
Message |
|
|
Post subject: Customization of JSP Templates
Posted: Mar 31, 2004 - 10:05 AM
|
|
Registered Member


Joined: Mar 16, 2004
Posts: 12
|
|
Hi Riyad:
This may be an Eclipse rather than a MyEclipse question. We would like to configure how the template
jsp page should look like since we need to use and include our own project taglib and stylesheets.
Right now we simply replace the contents of a new jsp page with our own template but we need to do this every time.
Is there a more permanent way of predefining this in Eclipse/ME?
Claudia |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Mar 31, 2004 - 01:07 PM
|
|
Registered Member

Joined: Jan 06, 2004
Posts: 23855
|
|
Hi Claudia,
Yes there is a way for you to do this, and in a future release we look to make editing the templates part of MyEclipse. Right now its a more manual Find/Replace process.
Go to this location on your computer:
<myeclipse install directory>\eclipse\plugins\com.genuitec.eclipse.wizards_2.7.1\Templates
The names of the files are pretty self explanitory, but you can do some trial-and-error to find out which ones you want to replace.
Let us know if you have anymore questions. |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Mar 31, 2004 - 02:05 PM
|
|
Registered Member


Joined: Mar 16, 2004
Posts: 12
|
|
| support-rkalla wrote: | Hi Claudia,
Yes there is a way for you to do this, and in a future release we look to make editing the templates part of MyEclipse. Right now its a more manual Find/Replace process.
Go to this location on your computer:
<myeclipse install directory>\eclipse\plugins\com.genuitec.eclipse.wizards_2.7.1\Templates
The names of the files are pretty self explanitory, but you can do some trial-and-error to find out which ones you want to replace.
Let us know if you have anymore questions. |
Hi Riyad:
This is great and pretty straightforward if we want to replace one of the existing templates. However, we need to have a list of templates to chooose from and we cannot find where ME defines this list so that we can simply add our own instead of doing a replace. Even if we can't do this we are very pleased to be able to define our own templates. Where is the list in the JSP wizard (Template to use) defined?
Claudia |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Mar 31, 2004 - 03:07 PM
|
|
Registered Member

Joined: Jan 06, 2004
Posts: 23855
|
|
I'll ask Michael to weigh in on this, as I am not sure. |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Apr 13, 2004 - 04:09 PM
|
|
Moderator


Joined: May 05, 2003
Posts: 1037
|
|
Here's the process:
0) Create a new folder named:<myeclipse install>/eclipse/plugins/com.genuitec.eclipse.wizards/UserTemplates/.
1) Create a new template file and store it in the new UserTemplates folder. Use any existing template from the <myeclipse install>/eclipse/plugins/com.genuitec.eclipse.wizards/Templates/ folder as a guide.
2) Add the new template to the template registry file, see <myeclipse install>/eclipse/plugins/com.genuitec.eclipse.wizards/templates.properties. Back up this file before making mods.
For example, I add Mike's new fangled JSP Template to the registry as follows:
jsp.template.5=UserTemplates/MyNewSuperJSPTemplate.jsp
jsp.template.5.label=Best template ever
Note the pattern jsp.template.#. Ensure that all entries that you add/delete are sequential starting at #1.
3) You'll need to recycle MyEclipse to access the new template.
4) Please note at this time your custom templates and template registry will be overwritten with uninstalls and new MyEclipse installs. We have an open enhancement request for supporting user template libraries that will be addressed in a future release. |
_________________ Michael
MyEclipse Support
Posting Guidelines FYI
When posting a bug report, click the "Insert" button above the message window and fill out the empty fields to help us troubleshoot your problem.
|
| |
|
|
|
 |
|
|
Post subject: Customization of JSP Templates (follow-up)
Posted: May 25, 2004 - 03:54 PM
|
|
Veteran Member


Joined: Feb 16, 2004
Posts: 10
|
|
Hi, Riyan and Michael.
I have no trouble extending the templates.properties to add my own custom templates. My question is this:
Is there some documentation about what substitutions can be made by the wizard? I am referring to tags such as <aw:author/>
Thanks for your help!
- Jack Gould
Sherwin-Williams |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: May 26, 2004 - 03:29 AM
|
|
Moderator


Joined: May 06, 2003
Posts: 6798
|
|
Jack,
It's tricky to find (to say the least ;-), but what documentation there is is available at <myeclipse-install-dir>/eclipse/plugins/com.genuitec.eclipse.wizards_<version>/docs/wTemplateComplexFile_en.html |
_________________ --Scott
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: much needed
Posted: Jun 03, 2004 - 04:25 AM
|
|
Registered Member


Joined: May 11, 2004
Posts: 27
|
|
I'd love to have customizable jsp templates. (via eclipse not rooting thru the plugins dir)
that would be very helpful. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jun 03, 2004 - 06:23 AM
|
|
Registered Member

Joined: Jan 06, 2004
Posts: 23855
|
|
I think we are going to try and address this soon, stay tuned. |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jun 03, 2004 - 06:37 AM
|
|
Moderator


Joined: May 05, 2003
Posts: 1037
|
|
|
_________________ Michael
MyEclipse Support
Posting Guidelines FYI
When posting a bug report, click the "Insert" button above the message window and fill out the empty fields to help us troubleshoot your problem.
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jun 03, 2004 - 03:31 PM
|
|
Registered Member

Joined: Jan 06, 2004
Posts: 23855
|
|
Wow, that was soon :D |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|