Ankit Gandhi

Greenhorn
+ Follow
since Nov 03, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
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 Ankit Gandhi

This is regarding the problem of drag and drop of portlets.

We have just migrated to WPS 6.0 from WPS 5.1 so with all our old customized themes and skins.

Now we wish to have the feature Drag and drop in our customized(migrated) themes and skins.
So far I have made the changes in Control.jsp of our skins and now portlets can be dragged, but we are unable to find out the way how to make them droppable? We are not getting where to define drop targets whether in themes or skins?

I have also copied UnlayeredContainer-H.jsp and UnlayeredContainer-V.jsp of IBM skin and pasted them inside my skin folder. But of no use

can anyone tell me what is being missed by me?

Thanks.
10 years ago
Hi Bimal,

Thanks for your response!

The feature that you are talking about is "Portlet Pallete", which we dont want. Our main requirement is to interchange the positions of portlets on the portal by simple dragging and dropping.

10 years ago
We have just migrated to WPS 6.0 from WPS 5.1 and wish to provide our end users to have dragging and dropping of portlets. Can anyone guide me for this, i mean from where to start and how? Is there any default feature available in WebSphere Administrative Console where we can add this feature to portlets like we assign different skins to each portlets?

So far, i have serached that we need to add some <dnd> tags in themes jsp files. Is it so?
10 years ago
Hi All,

Can anyone throw some focus on limitation of java function indexOf() ??
Recently we faced one issue regarding this while production release.

We were searching �abc.com� in the input string �abc.com�, which are exactly same. But it only searched till �abc� and skipped. So because of that the control was going to �else� block (means Strings are not equal)�and we were getting different result which was not required.

Hence can anyone confirm me that indexOf() does not check for �.� and it skips the string after �.� ??

TIA
10 years ago
Hi All,

We are facing one problem in our application which is based on portlets(java/jsp)
That if a link which opens in new window, is clicked after session time out, even then it gets opened up. But if a link which opens in the parent window itself, it detects session time out and redirects the user to login page.

Can anyone tell me what could be the reason and the solution for the same ??

Thanks in advance
11 years ago
Actully problem is that i want to use getKookies() (C replaced with K) in the doView() method of an action class.

And since doView() method can take only two arguments RenderRequest and RenderResponse and with their objects we can�t use the getKookies()(C replaced with K) method.
getKookies() (C replaced with K)gives the error if we call it with the object of RenderRequest because it is undefined for the type RenderRequest. and getKookies() ((C replaced with K) is defined for HttpServletRequest.
Please tell me with which object I can call the getKookies() (C replaced with K)method?
11 years ago
hi,

i want to call a method defined in a servlet class which extends HttpServlet inside the doView() method of an action class which extengs Generic Portlet.
we can''t create the object of that servlet class in action class and call its method.
please help

TIA
Manisha
11 years ago
Hi,

Can some one please guide me so that I can set up a failover page for my application which is hosted on Sun One Web Server. It is linked with one of the virtual servers.

Most of the time, if something goes wrong, we get one of the following HTTP response codes :
401 Unauthorized.
403 Forbidden.
404 Not Found.
500 Server Error.

I tried capturing the file not found error code - 404 by making changes in obj.conf, but it didnt work.
The code snippet that i used is as follows:
Error fn="send-error" code="404" path="/xyz/abc/test.html"

Let me know if there is something wrong here, or some other approach is required.

Thanks,
Ankit
11 years ago
Hi

I have used <marquee> tag to display the content moving in upward direction like this �

<div align="left"><marquee behavior="scroll" scrollamount="1" scrolldelay="1" direction="up" loop="true" width="300" height ="82">

The only problem is now is to wrap the text in the frame�.


Means the text should come in the next line if it exceeds the frame width. Also I don�t want to increase the frame size.
I have searched in different sites, and found that there is one attribute of <window> tag i.e Wordwrap= �true|false��.but this has no effect on TickerTape or Marquee.

Can anyone suggest me the other solution??
Please look at the code snipet below�..

<wps:urlGeneration contentNode="message_display" portletWindowState="Maximized" pacCheck="NoCheck" portletParameterType="action">
<wps:urlParam name="messageID" value="<%= messageID %>/>
<a href="<% wpsURL.write(out); %>"> <%= messageTitle %> </a>
</wps:urlGeneration>


In this jsp file we are creating the URL setting �messageID� as the parameter to be passed to next page. Means when we click on the link the message Id goes to the next jsp file, where we are fetching the value using

String message_id = request.getParameter("messageID");

But the value of message_id is assigning as Null. Because of that we are not able to pass this value to database.

And it�s strange that the same code is running in one environment and in other two environments, its giving null value in the next jsp file.
Is the problem in creating the URL or fetching the value using request.getParameter or the problem with any settings in the server ?

Please any one can help !!
11 years ago
Hi,

We are extracting data from database tables and displaying that data in Table format on JSP page. We need to export that data to Excel file in the same format.

For that we also need to display �open/save dialogue box�.

I have written a trial code for same in plain JSP which is working properly.

But in our application we are using struts-portlet framework for which the same code is not working.

For this we have a link �Download File� on the page where we are displaying table.

<html:link page="/jsp/ebip/ebipadmin/applicationadmin/reports/ExlListByApp.jsp">Download File</html:link>

File �ExlListByApp.jsp� contains the following code �





We are getting an exception when it tries to execute following code snippet �



The Exception that we are getting is as follows � (This is just a small part of the stack.)

Nested Exception is java.lang.IllegalArgumentException: application/vnd.ms-excel
at org.apache.pluto.core.impl.RenderResponseImpl.setContentType(RenderResponseImpl.java:151)
at javax.servlet.ServletResponseWrapper.setContentType(ServletResponseWrapper.java:164)
at org.apache.jsp._ExlListByApp._jspService(_ExlListByApp.java:78)
at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:683)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:781)
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Inlined Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java(Inlined Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:257)
at org.apache.pluto.core.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:112)
at com.ibm.wps.standard.struts.util.WpsStrutsUtil.include(WpsStrutsUtil.java:2092)
at com.ibm.portal.struts.command.StrutsViewJspCommand.includeURL(StrutsViewJspCommand.java:186)
at com.ibm.portal.struts.command.StrutsViewJspCommand.execute(StrutsViewJspCommand.java:154)
at com.ibm.wps.standard.struts.util.WpsStrutsUtil.executeCommand(WpsStrutsUtil.java:1270)
at com.ibm.wps.standard.struts.util.WpsStrutsUtil.executeCommand(WpsStrutsUtil.java:1229)
at com.ibm.wps.standard.struts.util.WpsStrutsUtil.executeSavedCommand(WpsStrutsUtil.java:1144)
at com.ibm.portal.struts.portlet.StrutsPortlet.doService(StrutsPortlet.java:1128)
at com.ibm.portal.struts.portlet.StrutsPortlet.doView(StrutsPortlet.java:1182)
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:235)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:163)


Any help would be appreciated
11 years ago
Hi,

I need to send out an email to a list of people whom i have selected on a Page. can anybody help me with this? should i use the "javax.mail" API?
11 years ago
Can you give me a small snippet which shows how to encode/decode the URL. I am not familiar with the same.

Thanks,
Ankit
12 years ago
Hi

In one of my forms i am sending '&' something as in ' joe & Sam' in the parameter list.

But when i do the getParameter for the above i get only till joe
the rest gets truncated.

Any pointers in this direction?

Thanks,
ankit
12 years ago
actually, once we click the link, the exact path of the file on the server is shown in the URL and we dont wont to show that........so we need to change the URL displayed
12 years ago