when i am getting the value from properties file the
the path showing http://127.0.0.1:81/help/Subject of Issue.txt which is right.
But in jsp in try block when pass SubjectofIssue path that time it is
showing SubjectofIssue););//http:\127.0.0.1:81\help\Subject of Issue.txt
So the error comming in jsp page.
Please look at my error log.
SubjectofIssue http://127.0.0.1:81/help/Subject of Issue.txt
stdout: exception in getting connectionhttp:\127.0.0.1:81\help\Subject of Issue.txt (The filename, directory name, or volume label syntax is incorrect)
Could you please tell me the reason why such an error i am geting in jsp inside the tryblock.
Thanks in Advance.
Regards
Sumanta
quote:
Expand|Select|Wrap|Line Numbers
- --------------------------------------------------------------------------------
- ItsPropertiesNT.properties
- ---------------------------
- SubjectofIssue=http://127.0.0.1:81/help/Subject of Issue.txt
- x.jsp
- --------------------------
- <%
- String SubjectofIssue = null;
- ResourceBundle bundle = null;
- if(Config.serverType != null && "NT".equals(Config.serverType))
- {
- bundle = PropertyResourceBundle.getBundle("ItsPropertiesNT");
- }
- if(bundle != null)
- {
- SubjectofIssue = bundle.getString("SubjectofIssue");
- out.println(SubjectofIssue="+SubjectofIssue);//http://127.0.0.1:81/help/Subject of Issue.txt
- }
- %>
- <%
- try{
- System.out.println("SubjectofIssue"+SubjectofIssue);//http:\127.0.0.1:81\help\Subject of Issue.txt
- String theBR;
- File fin=new File(SubjectofIssue);
- FileReader fr=new FileReader(fin);
- BufferedReader br=new BufferedReader(fr);
- theBR=br.readLine();
- String[] theSplit=theBR.split(",");
- for(int i=0;i<theSplit.length;i++)
- out.print("<option value=\"" + theSplit[i] +
- "\">" + theSplit[i] + "</option>");
- // out.print("</select>");
- }catch(Exception Ex){
- System.out.println("exception in getting connection"+Ex.getMessage());
- }
- %>