WebSphere Portal Server - Creating a Struts Portlet

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > August 2004 > Creating a Struts Portlet





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Creating a Struts Portlet
reibax

2004-03-25, 9:44 am

Hi there,

I want to deploy a Struts Application as a portlet. First I created a simple application and then I followed the steps in this link:

http://www-106.ibm.com/developerwor...sphere/library/
techarticles/0401_hanis/hanis.html

I wanted to show my initial JSP in the portal, but when I run the project I just can see a blank page in the portlet.

Any ideas?

Thanks,
Xabi.
Gerard161

2004-08-06, 6:00 am

Hi Have you found a fix to this problem as I have the same problem.

As soon as I add a struts tag into my jsp the portlet is blank?

Thanx

Gerard

quote:
Originally posted by reibax
Hi there,

I want to deploy a Struts Application as a portlet. First I created a simple application and then I followed the steps in this link:

http://www-106.ibm.com/developerwor...sphere/library/
techarticles/0401_hanis/hanis.html

I wanted to show my initial JSP in the portal, but when I run the project I just can see a blank page in the portlet.

Any ideas?

Thanks,
Xabi.

gpinkham

2004-08-06, 5:55 pm

Anything displayed in the logs?? maybe the wpsDATETIME.log file??

I've seen this for a few reasons.. One you didn't add the IBM Struts request processor in the Struts-Config.xml or the jsp has a syntax error....

mcilroy

2004-08-12, 5:30 pm

quote:
Originally posted by gpinkham
Anything displayed in the logs?? maybe the wpsDATETIME.log file??

I've seen this for a few reasons.. One you didn't add the IBM Struts request processor in the Struts-Config.xml or the jsp has a syntax error....



I'm experiencing the same issue. The time date log spits out the following:

2004.08.12 15:09:11.344 I org.apache.struts.util.PropertyMessageResources info
Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true

2004.08.12 15:09:11.344 I org.apache.struts.util.PropertyMessageResources info
Initializing, config='org.apache.struts.action.ActionResources', returnNull=true

2004.08.12 15:09:13.172 I org.apache.struts.util.PropertyMessageResources info
Initializing, config='com.transalta.fleetstatusdisplay.resources.ApplicationResources', returnNull=true

2004.08.12 15:09:13.453 E com.ibm.wps.pe.pc.legacy.impl.PortletContextImpl include
PEPC1008E: Could not include the following URL: /view.jsp - StackTrace follows...

2004.08.12 15:09:13.453 E com.ibm.wps.pe.pc.legacy.impl.PortletContextImpl include
javax.servlet.ServletException: Unable to compile class for JSP
at ...............cut for space sake

I thought it might have something to do with a depracated method but, nope. The odd thing is, this portlet works in the WSAD toolkit. It worked on another portal. It just won't work on the current portal, 5.02
msegmx

2004-08-25, 3:25 am

hello,
in web.xml there's a init param like

<init-param>
<param-name>ModuleSearchPath</param-name>
<param-value>markupName, mode, locale</param-value>
</init-param>

i created my folders like this
-- html
-- view
-- main.jsp
-- edit
-- main.jsp

then in welcom-file-list :

<welcome-file-list>
<welcome-file>html/view/main.jsp</welcome-file>
<welcome-file>html/edit/main.jsp</welcome-file>
</welcome-file-list>

and it worked fine.

this is explained very well in infocenter under "Developing Portlets || Struts Portlet Framework || Changes to configuration files".

hth,
Mehmet
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com