This week's book giveaway is in the Java in General forum.
We're giving away four copies of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 and have ishori Sharan & Adam L Davis on-line!
See this thread for details.
Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

PS Ashwin

Greenhorn
+ Follow
since Sep 26, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by PS Ashwin

Hi,

I have a difficult situation with locale change implementation in my web application
I have a web application - struts framework in which I have implemented internationalization.
I have a button at the client header area (header is always visible)to toggle between 2 languages. I have two property files and put the locale information as a session variable. so when toggle happens, I instantiate the resource bundle appropriately and load it into the session and use it across all jsp's. It works fine- no problem.

The issue is :-
as of now, when locale change happens, I make the locale switch in the action class and forward to the home page by default. But the requirement now is that the same jsp (where the user was when he clicked on the toggle button)should be reloaded even when the locale switch happens.

how can i solve it. as a layman I can keep a unique id for all jsp's and then use this forward control to the same jsp from where locale switch action was called. but its a very bad solution I think..
Is there a common well known design to do this ?
14 years ago
JSP
Thanks for the cool comments.
I made it look good with html tables and css files-No FRAMES
14 years ago
May be this is a silly question...
But is it really not possible for a portlet to render jsp files containing frames and framesets.
Is there some specific reason why it is so?
what is the design alternative for this? I mean my work involves showing some data in a organised format in a portlet. I am used to using frames to organize my contents in a web page.
what can i do for a portlet now?

I am using websphere portal 6.0 and JSR168 API

Thanks.
14 years ago
The embedded object is a web plugin for a standalone application to display 3d images.
I was able to get it working now!!am able to see my 3d images in the portlet
Thanks
14 years ago
Hello,
I have a jsp page with an embedded object in it.
I first made a web application with this JSP and it is working fine.
But the moment I add the jsp to be displayed on a Portlet in a websphere portal, the portlet gets loaded, but the Object is not seen.

I am using RAD 7.0 with Websphere Portal 6.0.
The object I am trying to embed in the page is a special kind of viewer plugin for 3D image file.

Is this a known issue or something.

any help is deeply appreciated

Thanks in advance..
14 years ago
Hi,
I also get similar error when deploying a simple portlet

API - jsr168
Server - Websphere Portal Server 6.0.1.1
IDE - RAD 7.0 (7.0.0.3)

I created a Basic Portlet based on JSR168 API and published on the portal server. when i open the portal, it throws this exception.

The stack trace is as follows :-
SRVE0068E: Could not invoke the service() method on servlet /_MyPortlet/jsp/html/MyPortletView.jsp. Exception thrown : java.lang.NullPointerException
at com.ibm._jsp._MyPortletView._jspService(_MyPortletView.java:111)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:762)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:204)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:254)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:633)
at org.apache.pluto.core.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:112)
at dai.itpde.rap.myportlet.MyPortlet.doView(MyPortlet.java:44)
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:235)
....
Could not invoke the service() method on servlet MyPortlet. Exception thrown : javax.servlet.ServletException
at com.ibm.wps.pe.pc.std.invoker.impl.PortletServlet.convertException(PortletServlet.java:230)
at com.ibm.wps.pe.pc.std.invoker.impl.PortletServlet.dispatch(PortletServlet.java:208)
at com.ibm.wps.pe.pc.std.invoker.impl.PortletServlet.doGet(PortletServlet.java:69)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at com.ibm.wps.pe.pc.std.cache.CacheablePortlet.service(CacheablePortlet.java:393)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:762)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:633)
at com.ibm.wps.pe.om.definition.impl.ServletDefinitionImpl$RDWrapper.include(ServletDefinitionImpl.java:419)
at com.ibm.wps.pe.pc.std.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:206)
at com.ibm.wps.pe.pc.std.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:168)
at com.ibm.wps.pe.pc.std.invoker.impl.PortletInvokerImpl.render(PortletInvokerImpl.java:97)
at com.ibm.wps.pe.pc.std.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:110)
at com.ibm.wps.pe.pc.PortletContainerImpl.doRenderPortlet(PortletContainerImpl.java:587)
at com.ibm.wps.pe.ext.render.AbstractRenderManager.performService(AbstractRenderManager.java:247)
at com.ibm.wps.pe.pc.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:115)
at com.ibm.wps.engine.tags.PortletRenderTag.doStartTag(PortletRenderTag.java:161)
at com.ibm._jsp._Control._jspx_meth_portal$1skin_portletRender_0(_Control.java:953)
at com.ibm._jsp._Control._jspx_meth_portal$1logic_if_4(_Control.java:985)
at com.ibm._jsp._Control._jspService(_Control.java:582)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1521)



and it goes on and on....

I am very new to portal development.

any kinda help is appreciated.

Thanks in advance
14 years ago