Sam Venkata

Ranch Hand
+ Follow
since Mar 06, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Sam Venkata

Hi,

I have a problem setting a list as a hidden variable.

This is what trying to do this exactly.

<html:hidden name="writeOffPremiumForm" property="lineItems"/>

and the property declared in the beean call is this

private java.util.List lineItems = org.apache.commons.collections.ListUtils.lazyList(new java.util.ArrayList(), new BillingInstallmentWriteOffFormExtensionFactory());

This is the exception I get when I try to submit the form.

javax.servlet.ServletException: BeanUtils.populate
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)


root cause

java.lang.IllegalArgumentException: argument type mismatch
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1789)
org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.java:1684)
org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:1713)
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:1019)
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)


What am I missing here? I appreciate any help.

Thanks,
Samanth.
14 years ago
By "weird" what I meant was any possibility of session information overlap. I was thinking of this scenario to be specific.



I think it makes sense when it is thread safe.

Thanks, for your help.

SM.
15 years ago
Hi All,

I wanted to know if it is a good practice to have a java class with a static method which is called by servlets in different sessions to add objects of a particular type in that particular session.

My confusion is whether different sessions accessing a static method would behave weird.


Please let me know.

Thanks,
SM.
15 years ago
Hi,

I found the solution. I had to replace $ with '&# 36;' . It did the trick.

Thanks,
Samanth.
[ November 25, 2008: Message edited by: Samanth Marisetty ]
16 years ago
Hi,

We have a framework built on struts and it has a .properties file equivalent to MessageResources.properties file in struts. One of the value in key value pairs in the .properties file has a text "$100" that needs to be displayed in the JSP. The JSP does not display the '$' sign but just displays 100.

Is there a way to get around this? Could anybody please suggest me.

Thanks,
Samanth Marisetty.
16 years ago
Hi Marcelo,

Thanks for your response.But, I did not find a test environment in RAD7, should be installed manually if it is not installed by default ?

In the list of servers that I found in RAD7 there is " WebSphere v5.1 Test Environment ", but I did not find any matching entry for WAS 6.1 like "WebSphere v6.1 Test Environment". I believe Websphere 6.1 itself works like a test environment and there is not separate test environment . Please correct me if I am wrong.

Thanks,
Samanth.
[ July 09, 2008: Message edited by: Samanth Marisetty ]
16 years ago
Hi,

I have the following exception starting the WebSphere 6.1 Application Server. However there is no problem while starting 5.1 Test server.



Also I would like to know if there is no test server with 6.X WebSphere. Because we used to test the application on 5.1 test server and it worked fine, but while trying to upgrade to 6.1 there is no test server. I would like to know if there is any change in the JNDI naming convention or is there something that I am missing.

I appreciate your help.

Thanks,
Samanth.
16 years ago
Hi,

I wanted to know if there is way I could set up timed maintenace alert text on the JSP that occurs every two or three weeks.


Thanks,
Samanth Marisetty.
16 years ago
JSP
Hi,

I have an issue with the firewall on my workstation. I cannot access a web service from my local machine, however I have to deploy the ear on the test server to test any changes in my JSP as well( i mean JSP's after the web svc is accessed). I was thinking of using tunneling to bypass the firewall.

Could somebody please tell me, what is the information I need for opening a tunnel. I also wanted to know if there is any other(better) way of bypassing the firewall to test the application on my local machine.

Thanks,
Samanth Marisetty.
16 years ago
Hi,
I am using spring xml file to do DI into STRUTS2 Action classes. I need to inject the dependency for each request to the action class. I wanted to if it is possible. I have tried it, but the setter method is called only at the time of container startup and not for every invocation of the action class.
The bean in spring xml file looks like this



I tried setting the scope of the bean to prototype but that did not work either.

Could somebody please tell me if I am missing something.

Thanks,
Samanth.
[ March 26, 2008: Message edited by: Samanth Marisetty ]
Hi,

I wanted to know if all WAP browsers have cookies enabled. If not is there a way to enable them. I wanted to set cookies on phone browser. Is that a good idea at all?

I appreciate your help.

Thanks,
Samanth.
16 years ago
Would it still hold good for a WAP browser or a mobile phone browser.

Thanks,
Samanth.
16 years ago
JSP
Hi All,

I wanted to have a splash screen in my application that has some description, a continue button and a check box, the check box when checked should allow the user to be able to go to the login page skipping this particular page from the next visit.
My question is should use cookies for this and if so, what if the browser is not cookie enabled.

I appreciate any help.

Thanks,
Samanth.
16 years ago
JSP
Hi Reynders,

Thanks for your explanation, I was able to understand the concept, but I have a small doubt, as per my understanding, if the server itself is down we would get java.net.UnknownHostException but if the app on the server is down then we would get java.net.ConnectException.Is that correct? Please correct me if I am wrong.

Thanks,
Samanth Marisetty.
[ March 10, 2008: Message edited by: Samanth Marisetty ]
16 years ago
Hi,

I would like to know if java.rmi.ServerException would be thrown if the server hosting the web services is down.
Also is there a way I could differentiate if the server is down or if there is no data returned. I am using wsdl2java axis tool to generate java classes. This is what I do in my java class.


If I check for (t instanceof java.rmi.ServerException) would it be true if the server is down? Also can I modify the end point URL to an invalid url (like say change the valid port number to an invalid one ) and assume that the server is down
Please help me with this.

Thanks,
Samanth.
16 years ago