BeanUtils.populate error

2005-06-15 Thread Jan Ziniewicz
I get this error when I click on a buttons in my forms. Some buttons work,  
some don't and I don't know where is the error. Any suggestions?


I can give you more detailed information but i guess that it is quite  
typical error.



javax.servlet.ServletException: BeanUtils.populate
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:495)

org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:805)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:203)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)

com.newitech.struts.controller.AccessController.process(AccessController.java:261)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)

com.newitech.struts.controller.AccessController.doPost(AccessController.java:254)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
com.newitech.struts.filter.LoginFilter.doFilter(LoginFilter.java:62)

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:585)

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:493)

org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:805)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:203)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)

com.newitech.struts.controller.AccessController.process(AccessController.java:261)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)

com.newitech.struts.controller.AccessController.doPost(AccessController.java:254)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
com.newitech.struts.filter.LoginFilter.doFilter(LoginFilter.java:62)

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)


--
Pozdrawiam, Janek Ziniewicz
gg:902858
irc.freenode.net: #gore, #dub

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Autologin?

2005-05-24 Thread Jan Ziniewicz
I have problems with user logging in my application. Basically I want to  
have functionality same as on gmail.com -- if I have a proper cookie  
forward me to inbox omiting login page.


I know how to play with cookies but struts part of the task is a problem  
for me


--
Pozdrawiam, Janek Ziniewicz
gg:902858
irc.freenode.net: #gore, #dub

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Dealing with many forms

2005-05-18 Thread Jan Ziniewicz
Hi, I am writing my first Struts application, and have some problems with
it.
Some part of my app, gets data from database, fills appropriate form,
displays it and, if user changed the form, writes data back to database.
Another functionality is: get whole webpage (including form)from database,
fill it with data and if user changes it, write changed data back to
database. It was done with Jsp and JavaScript. Writing ActionForm for each
form would be senseless because part of functionality of the app is that
any user can submit new forms.
And now the problem: Some devices do not deal with JavaScript well (some
palmtops, cellphones etc). And my app must run properly on them. So, is
there any way to do the task above without JavaScript?
--
Pozdrawiam, Janek Ziniewicz
gg:902858
irc.freenode.net: #gore, #dub
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Dealing with many forms

2005-05-18 Thread Jan Ziniewicz
Hi, I am writing my first Struts application, and have some problems with  
it.

Some part of my app, gets data from database, fills appropriate form,  
displays it and, if user changed the form, writes data back to database.

Another functionality is: get whole webpage (including form)from database,  
fill it with data and if user changes it, write changed data back to  
database. It was done with Jsp and JavaScript. Writing ActionForm for each  
form would be senseless because part of functionality of the app is that  
any user can submit new forms.

And now the problem: Some devices do not deal with JavaScript well (some  
palmtops, cellphones etc). And my app must run properly on them. So, is  
there any way to do the task above without JavaScript?
--
Pozdrawiam, Janek Ziniewicz
gg:902858
irc.freenode.net: #gore, #dub

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]