Apr 09 2008

Create a basic Struts Portlet using RAD

Tag: Java, strutsYogesh @ 7:12 am

Struts is an open source framework for building Servlet/JSP based web applications, in this example we will see how to build a simple struts application which asks for your name in the first page and displays it in the second

Continue reading "Create a basic Struts Portlet using RAD"


Mar 11 2008

externalizing property files does not work?

Tag: WebSphere, strutsYogesh @ 9:14 am

Check your portlet.xml for NameScopeServletContext

 
<init -param>
<name>NamescopeServletContext</name>
<value>true</value>
</init>

if NameScopeServlet context is true,
you will have to replace the bundle name with <portlet-name>+bundle name
for example if my portlets name is "test portlet" then the bundle name becomes

 bundle="test portlettestkey"

where testkey is the actual bundle name specified in struts config.(note that space if present should also be included)

The reason for this behavior is that NameScopeServletContext is used to specify if the web application has multiple struts portlets/apps. so if NamescopeServletContext is set as true the name of the application should also be specified in addition to the bundle name so that it knows the bundle is for which application.


Mar 11 2008

How to externalize the resource bundles for a struts portlet

Tag: WebSphere, strutsYogesh @ 8:59 am

have a look at this for details on how to move the property files outside the portlet.

Note: from now, all tutorials will be posted in the forum


Next Page »