and this is the code for passing path to the parameters and i have created Image Element and passed the Parameter to the image element i need to retrieve all the images
String filenames="";
if(rs.next())
{
filenames =rs.getString("filelist");
System.out.println(filenames);
}
String path=root1 + "/ApplicationDetails"+File.separator+bankname+File.separator+cityname+File.separator+appno+File.separator;
//parameters.put("path",path);
System.out.println("IMAGE PATH"+path);
try
{
int i=1;
String IndFilename=filenames.substring(0,filenames.indexOf(";"));
filenames=filenames.substring(filenames.indexOf(";")+1);
String reportpath= path+IndFilename;
parameters.put("path",reportpath);
while(filenames.length()>0)
{
IndFilename=filenames.substring(0,filenames.indexOf(";"));
filenames=filenames.substring(filenames.indexOf(";")+i);
parameters.put("path",reportpath);
//parameters.put("path", path+IndFilename);
i++;
}
}
catch(Exception e)
{
}
NEED SOLUTION ASAP
0 Answers:
No answers yet