lokesh rajarathnam

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

Recent posts by lokesh rajarathnam

sorry
I removed method="getCities" , getting only empty select box
15 years ago
I removed the method="getlist" in struts.xml file but I m not getting any output of the select box...... getting only empty...
15 years ago
Hi, I try for populate of my array, but i end-up with below error .
I had few queries along with this issue : 1. How to pass parameters to method in struts.xml ?
2. Is that possible to populate the local variable at view which is return of the method, condition: the method should not be called on execute().




the Struts.xml


the jsp


The error which i got

java.lang.ClassCastException: [Lcom.login.City; cannot be cast to java.lang.String
com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:451)
com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:280)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:243)
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:165)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:252)
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:179)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:130)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:165)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:179)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488)
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
15 years ago
I apologize for incomplete posting of my issue.....
The issue is solved.....

Thanks all for your valuable time.....
15 years ago
Hi, Im new to Struts, I try to execute few of the examples and I struck in one of the issue.
Issue : The action class has static field which is a list. How to populate that list in jsp.

Action Class

struts.xml


while i try to populate the list I got an error ------> str is not a collection/arrray/list (similarly to this)
15 years ago
hi all

I had problem in loding the xml file in to the server.

==The properties file==
xmlsource=projectname/webcontent/myfile.xml

i save the xml file in projectname/webcontent/myfile.xml

while i run the project i got the error FileNotFoundException: D:\jboss-4.2.0.GA\bin\projectname\webcontent\myfile.xml
16 years ago
Hi all..

I had list of files, how can i find the file is already red or not... if red i need to go for next file else current one has to read..

Thanks....
16 years ago
Hi all..

I had list of files, how can i find the file is already red or not... if red i need to go for next file else current one has to read..

Thanks....
16 years ago
Hello all

Im new to struts,(using struts1.3) I need help....

I writen ActionForm and ActionServlets for an loginform...
after running my code i getting following error.....

The content of element thype "action-mappings" must match "(action)*"


Strutshome.jsp




LoginActionServlet



LoginForm



web.xml



struts-config.xml


16 years ago
Hi


I got error 'Syntax error on token "+" ++expected'

what could be the solution...?

I'm using java 1.5
16 years ago
JSP
Hi...

I need to know how to add an vector to another vector.

Issue...
The text file contains N number of lines and each line contains 12 number of words. I need to store an 12 words(one line)in vector after that
the vector will be stored into another new vector.

I will able to do split the line into words...

any help please...
16 years ago

Originally posted by lokesh rajarathnam:
Hi David...

the project... <project name>/src/<package>/loginservlet.java

after deploying this i get "ClassNotFoundException" (error 500,)
and Internal problem occur.
Later i add servlet-api.jar to my project lib folder... then also the same problem....

what can i do... ? How to over come...?

16 years ago
Hi David...

the project... <project name>/src/<package>/loginservlet.java

after deploying this i get "ClassNotFoundException" (error 500,)
and Internal problem occur.
Later i add servlet-api.jar to my project lib folder... then also the same problem....

what can i do... ? How to over come...?
16 years ago
Hi every one...


The error "Cannot load the servlet class : <package>.loginservlet"

How to overcome this prob...

I think the .class file is missing or cannot created...

What could be the prob....?
[ July 14, 2008: Message edited by: Bear Bibeault ]
16 years ago
ya im using tomcat 5.5...

i think there is no need for instaling jstl for tomcat 5.5
17 years ago
JSP