K
Kai Grossjohann
It seems that the traditional way to make a component to be used by
another JSP-based webapp is to make it a taglib. Then the taglib can
be packaged as a *.jar file and it's easy to use it.
But taglibs are implemented in Java. And if my tag generates a lot of
HTML output it's not so practical to do all that in Java, I would much
rather use JSP as the implementation language.
So is there a way to package some collection of JSP files as a
component that's easy to use by other people to build their own
webapp?
What perhaps makes matters worse is the fact that the JSP files I've
got make use of JavaScript and CSS. So what I would like to do is not
to just package the JSP files as a reusable component, but also
include the JavaScript and CSS files that belong to that component.
I'm going to make several components that cooperate with each other.
These components communicate via the HTTP session. So I think it's
not workable to make each component be a separate webapp. But maybe
there is a way to communicate between webapps that I'm not aware of,
yet. (The objects in the HTTP session have a well-defined interface
that belongs to the interface spec for the component(s), so users of
the component are expected to invoke methods on the objects in the
session, too.)
Any suggestions?
Kai
PS: I apologize if this is the wrong group -- Google Groups didn't
find a better group when I entered "JSP" as the search term...
another JSP-based webapp is to make it a taglib. Then the taglib can
be packaged as a *.jar file and it's easy to use it.
But taglibs are implemented in Java. And if my tag generates a lot of
HTML output it's not so practical to do all that in Java, I would much
rather use JSP as the implementation language.
So is there a way to package some collection of JSP files as a
component that's easy to use by other people to build their own
webapp?
What perhaps makes matters worse is the fact that the JSP files I've
got make use of JavaScript and CSS. So what I would like to do is not
to just package the JSP files as a reusable component, but also
include the JavaScript and CSS files that belong to that component.
I'm going to make several components that cooperate with each other.
These components communicate via the HTTP session. So I think it's
not workable to make each component be a separate webapp. But maybe
there is a way to communicate between webapps that I'm not aware of,
yet. (The objects in the HTTP session have a well-defined interface
that belongs to the interface spec for the component(s), so users of
the component are expected to invoke methods on the objects in the
session, too.)
Any suggestions?
Kai
PS: I apologize if this is the wrong group -- Google Groups didn't
find a better group when I entered "JSP" as the search term...