on 11-20-2007 11:38 AM
Hi guys
we are working on EP 6.0.
We want to create iviews which is simply a jsp page, the jsp file is ready, but we are not able to make a usable par from it.
Could any one teach how can we make it a par file to upload to Portal, then we can create iview out of it?
Thanks a lot with reward points
Hi,
what is the run-time error you are getting. normally, we can create jsp file by deleting the following generated content.
<hbj:content
id="myContext">
<hbj:page
title="An Easy Start">
<hbj:form>
The error may be due to some other mistakes.
Rds,
Shanthakumar.
Assign points for useful answers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Shanthakumar,
Thanks a lot, just now it was the href things,
In my jsp page, I need to use some css files and some gifs, I think the referencing got some problem, but I dun know why.
Could you tell me how you refer to other resources in the same Portal Application?
for example:
my css files are under prjName/dist/css;
my images are under prjName/dist/images
jsp file is under prjName/dist/PORTAL-INF/pagelet
How can i refer those resources from my jsp?
Thanks a lot
Hi Feng.
I guess you dont want JSPDynpage, but normal JSP. Here is the way for it
1. Create Java component in src core, and write following code in it, Abstract Portal Component.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
public class <CLASS_NAME>extends AbstractPortalComponent
{
public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
{
IResource jspResource = request.getResource(IResource.JSP, "jsp/<YOUR_JSP_NAME>.jsp"); response.include(request, jspResource);
}
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2. Now create a JSP file in JSP folder with name used in Java file source.
3. Write your HTML or JSP code in this file.
4. Compile and Upload, create iView from that. Now You can use JSP in your code.
regards
-Kedar Kulkarni
Reward points if useful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have tried your ways, but the auto generated jsp page is of format
<hbj:content
id="myContext">
<hbj:page
title="An Easy Start">
<hbj:form>
I was confused by this, actually i just want the jsp be of ordinary jsp format:
<html>
<head>
..
</html>
I have also tried remove all generated content and paste my own jsp inside, but after i deploy it, it shows runtime error.
hi,
Yes its a<b> htmlb</b> format, so u write a code within
<hbj:content id="myContext">
<hbj:page title="An Easy Start">
<hbj:form>
Here paste ur HTML content
</hbj:content id="myContext">
</hbj:page title="An Easy Start">
</hbj:form>
then add " <%@taglib uri="htmlbtld" prefix="hbj" %> " in the top of the jsp page...
also add this
<component-profile>
<property name="htmlbtld" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
</component-profile> instead of <component-profile/>
in the portalapp.xml..
reward points..
Regards,
Senthil K.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.