Adding a JSP to an Extension Point

1 view
Skip to first unread message

Sam Rohde

unread,
Aug 9, 2013, 11:58:27 AM8/9/13
to d...@openmrs.org
Hello,

I'm new to OpenMRS development, and I was wondering if it was possible to add JSP to an HTML extension point. If that's not possible, maybe there's some way to parse the JSP into HTML so it can be passed into the extension point.
The extension point that I'm looking at is the dictionary search extension point at "org.openmrs.dictionary.index".

Thank you in advance,

Sam

Wyclif Luyima

unread,
Aug 9, 2013, 2:00:41 PM8/9/13
to Developers
Hi Sam,

I'm a little confused by what you are trying to achieve, you add an extension point to a JSP and not the other way round, so what exactly do you want to do?

Wyclif


--
OpenMRS Developers: http://go.openmrs.org/dev
Post: d...@openmrs.org
Unsubscribe: dev+uns...@openmrs.org
Manage your OpenMRS subscriptions at https://id.openmrs.org/



--
Wyclif Luyima
Regenstrief Institute Inc.

Confidentiality Notice: The contents of this message and any files transmitted with it may contain confidential and/or privileged information and are intended solely for the use of the named addressee(s). Additionally, the information contained herein may have been disclosed to you from medical records with confidentiality protected by federal and state laws. Federal regulations and State laws prohibit you from making further disclosure of such information without the specific written consent of the person to whom the information pertains or as otherwise permitted by such regulations. A general authorization for the release of medical or other information is not sufficient for this purpose.

If you have received this message in error, please notify the sender by return e-mail and delete the original message. Any retention, disclosure, copying, distribution or use of this information by anyone other than the intended recipient is strictly prohibited.

Sam Rohde

unread,
Aug 9, 2013, 2:12:07 PM8/9/13
to d...@openmrs.org
Hi Wycliff,

I want to add extra functionality to the concept search in the dictionary, such as accessing remote databases. To do that I decided to try extension points, but the only one in the dictionary index is the html extension, and writing html by itself without any jsp limits the functionality. Thus, I want to be able to make my own jsp and then parse include it into extension point.

I realize that this method is fairly convoluted, so I'm currently experimenting with overriding the whole jsp with my own, but at the same time I don't want to rewrite/copy the whole dictionary index code.

-Sam

Jeremy Keiper

unread,
Aug 9, 2013, 2:34:53 PM8/9/13
to d...@openmrs.org


Jeremy Keiper
OpenMRS Core Developer
AMPATH / IU-Kenya Support

Wyclif Luyima

unread,
Aug 9, 2013, 2:59:59 PM8/9/13
to Developers
Probably you can try Jeremy's approach above or you could write a groovy template and evaluate it to generate the html to return from your extension.

Wyclif

Sam Rohde

unread,
Aug 9, 2013, 3:09:28 PM8/9/13
to d...@openmrs.org
Hey thanks for the replies Wycliff and Jeremy! You guys helped me a lot.  I'll use your approach Jeremy and mark this as complete.

Thanks again,

Sam
Reply all
Reply to author
Forward
0 new messages