Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317554 - JSP Discoverer : managing javascript containing jsp scripts/actions
Summary: JSP Discoverer : managing javascript containing jsp scripts/actions
Status: CLOSED FIXED
Alias: None
Product: MoDisco
Classification: Modeling
Component: Technologies (show other bugs)
Version: 0.9.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 0.9.0 M1   Edit
Assignee: Fabien Giquel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-22 05:10 EDT by Fabien Giquel CLA
Modified: 2010-10-18 08:30 EDT (History)
3 users (show)

See Also:
fabien.giquel: indigo+


Attachments
a Javascript sample with JSP actions (679 bytes, application/octet-stream)
2010-06-22 05:35 EDT, Fabien Giquel CLA
no flags Details
org.eclipse.gmt.modisco.jee.jsp.discoverer (9.08 KB, patch)
2010-06-22 10:52 EDT, Nicolas Guyomar CLA
fabien.giquel: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabien Giquel CLA 2010-06-22 05:10:00 EDT
When some Javascript contains JSP expressions, scriptlets, or actions, the javascript content is not analysed and represented with one single String content.

It is whishable to retrieve JSP parts as instances of JSPExpression, JSPScriptlet, JSPAction owned by the JavaScript instance. As it was done for attribute values using the ComposedAttribute metaclass.
Comment 1 Fabien Giquel CLA 2010-06-22 05:35:53 EDT
Created attachment 172401 [details]
a Javascript sample with JSP actions

I attach a sample of Javascript with JSP actions.
Comment 2 Nicolas Guyomar CLA 2010-06-22 10:51:01 EDT
Hi Fabien,

Please find attached a patch to update the grammar so that it takes in account JSP elements contained in JavaScript code.

1. I, Nicolas Guyomar, and others contributors listed in this bug, authored
100% of the content
2. I have the rights to donate the content to Eclipse under the EPL
3. I have already provided the filled Employer Consent Forms to the Foundation

Regards 
Nicolas
Comment 3 Nicolas Guyomar CLA 2010-06-22 10:52:04 EDT
Created attachment 172420 [details]
org.eclipse.gmt.modisco.jee.jsp.discoverer

This patch update the JavaScript grammar's rule to parse JSP Element inside Javascript piece of code
Comment 4 Fabien Giquel CLA 2010-06-22 12:29:00 EDT
Comment on attachment 172420 [details]
org.eclipse.gmt.modisco.jee.jsp.discoverer

JSP discoverer patch for JavaScript
Comment 5 Fabien Giquel CLA 2010-06-22 12:32:18 EDT
Thanks for this patch Nicolas.
The contribution is less than 250 lines of code.
The code has been commited into SVN.
Comment 6 Hugo Bruneliere CLA 2010-10-04 13:45:18 EDT
The patch has been successfully applied.