REGISTER FREE to Receive Instant Job

Tuesday, 23 October 2012

Convert List Object to Array String in Struts2

Convert List Object to Array String in Struts2 

String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String listversion="versionlist";
List<String> list1=(List<String>)session.getAttribute(listversion);
String[] strResult=new String[list1.size()];  

String[] vesion_value=list1.toArray(strResult); 
for(int j=0;j<vesion_value.length;j++)
int versiondata=list1.size();


Popular Posts

Powered by Blogger.

About Me

My photo

JobsAcid is a 'job search engine' to provide finding a job on the internet easier for the user. It has designed as huge selection of job offerings on the same search engine.