UTF-8 working in JSP not in JavaBean (when assigned to a simple String)

I am struggling with for last few hours. All I am doing is
public class Text extends Object implements Serializable {
public static Hashtable ht = new Hashtable();
public static void initL10N(){
public static String xyz = "आपके";
ht.put("hindi",xyz);
in a JavaBean and trying to access the string in a Jsp Out.jsp as <%=Text.ht.get("hindi")%> I am getting Junk characters.
But to my surprise: If I do that in a jsp: as (since I declared the ht as public static it's accessable to the new JSP called L10NInit.jsp
<%
Text.ht.put("hindi2","&#2310;&#2346;&#2325;&#2375;")l
%>
and execute the Out.jsp and then execute my orginal jsp to get the string as <%=Text.ht.get("hindi2")%> it displays beautifully.
I tried every thing else before turning to this forum. Please help.
Environment: NetBeans5.5

In the JSP also I am assigining straignt hindi chars (some how forum displayed entities) as &#2357;&#2376;&#2358;&#2381;&#2357;&#2367;&#2325;

Similar Messages

  • Help with UTF-8 / Working in JSP not in a Bean Help

    I am struggling with for last few hours. All I am doing is
    public class Text extends Object implements Serializable {
    public static Hashtable ht = new Hashtable();
    public static void initL10N(){
    public static String xyz = "&#2310;&#2346;&#2325;&#2375;";
    ht.put("hindi",xyz);
    in a JavaBean and trying to access the string in a Jsp Out.jsp as <%=Text.ht.get("hindi")%> I am getting Junk characters.
    But to my surprise: If I do that in a jsp: as (since I declared the ht as public static it's accessable to the new JSP called L10NInit.jsp
    <%
    Text.ht.put("hindi2","&#2310;&#2346;&#2325;&#2375;")l
    %>
    and execute the Out.jsp and then execute my orginal jsp to get the string as <%=Text.ht.get("hindi2")%> it displays beautifully.
    I tried every thing else before turning to this forum. Please help.
    Environment: NetBeans5.5

    You need to use exact the same and the correct charset encoding thoroughout the whole process. Maybe your JSP or response headers used/contained the wrong encoding.
    [Read this important article about unicode|http://www.joelonsoftware.com/articles/Unicode.html].

  • I have iPhone 3G with ios 4 but now i update new version and my phone is not working.it is not activating..when i tried it says please insert sim and try again..any one plez hepl.

    i have iPhone 3G with ios 4 but now i update new version and my phone is not working.it is not activating..when i tried it says please insert sim and try again..any one plez help

    Try this article if you haven't already
    This is the only possibility that came to my mind when reading about your issue:
    "If an iPhone, iPad, or iPod touch is not recognized in iTunes on Windows, the Apple Mobile Device Service (AMDS) may need to be restarted"

  • How to use class in JSP page ? In java works in JSP not...

    Hello developers,
    I need check if URL exists.. i use this code in java.. it works fine..
    import java.net.*;
    import java.io.*;
    public class Check {
    public static void main(String s[]) {
        System.out.println(exists("http://www.google.com"));
        System.out.println(exists("http://www.thisURLdoesntexis.com"));
    static boolean exists(String URLName){
      try {
        HttpURLConnection.setFollowRedirects(false);
        // note : you may also need
        //        HttpURLConnection.setInstanceFollowRedirects(false)
        HttpURLConnection con =
           (HttpURLConnection) new URL(URLName).openConnection();
        con.setRequestMethod("HEAD");
        return (con.getResponseCode() == HttpURLConnection.HTTP_OK);
      catch (Exception e) {
           e.printStackTrace();
           return false;
    }in java all works fine.. it shows
    TRUE
    FALSE
    but i have no idea how can i implement this java code to my check.jsp page..
    i tried something like this..
    <%@ page import="java.io.*" %>
    <%@ page import ="java.net.*" %>
    <BODY>
    <%
    static boolean exists(String URLName){
      try {
        HttpURLConnection.setFollowRedirects(false);
        // note : you may also need
        //        HttpURLConnection.setInstanceFollowRedirects(false)
        HttpURLConnection con =
           (HttpURLConnection) new URL(URLName).openConnection();
        con.setRequestMethod("HEAD");
        return (con.getResponseCode() == HttpURLConnection.HTTP_OK);
      catch (Exception e) {
           e.printStackTrace();
           return false;
    String a="http://www.google.com";
    %>
    <%= exists(a)%>and i want to see in my jsp page the result.. it means that JSP page shows
    TRUE
    Thanks in advance,

    Hi there,
    One solution is to use JavaBeans and call the methods for the JavaBean from the JSP page.
    Suppose you have a JavaBean called TestConnectionBean as follows:
    package test22;
    import java.net.HttpURLConnection;
    import java.net.URL;
    import java.net.MalformedURLException;
    import java.io.IOException;
      Set the testUrl before checking if connection exists.
    public class TestConnectionBean {
        String testUrl;
        boolean connectionExists;
        public TestConnectionBean() {
        public String getTestUrl() {
            return testUrl;
        public void setTestUrl(String testUrl) {
            this.testUrl = testUrl;
        public boolean getConnectionExists() throws IOException, MalformedURLException {
            HttpURLConnection.setFollowRedirects(false);
            // note : you may also need
            //        HttpURLConnection.setInstanceFollowRedirects(false)
            HttpURLConnection con = null;
            con = (HttpURLConnection) new URL(this.testUrl).openConnection();
            con.setRequestMethod("HEAD");
            return (con.getResponseCode() == HttpURLConnection.HTTP_OK);
        public void setConnectionExists(boolean connectionExists) {
            this.connectionExists = connectionExists;
    }Then you can create a JSP page like this:
    <%@ page contentType="text/html;charset=UTF-8" language="java" %>
    <html>
      <head><title></title></head>
      <body>
      <jsp:useBean id="testConnectionBean" class="test22.TestConnectionBean"/>
      <jsp:setProperty name="testConnectionBean" property="testUrl" value="http://www.google.com" />
      <br/><br/>
      Does the connection exist for http://www.google.com : <jsp:getProperty name="testConnectionBean" property="connectionExists"/>
      <br/><br/>
      <jsp:setProperty name="testConnectionBean" property="testUrl" value="http://www.thisURLdoesntexis.com" />
      <br/><br/>
      <%-- The following will give an exception : java.net.UnknownHostException: www.thisURLdoesntexis.com since the URL doesn't exist. 
      --%>
      <%--
      Does the connection exist for http://www.thisURLdoesntexis.com : <jsp:getProperty name="testConnectionBean" property="connectionExists"/>
      --%>
      </body>
    </html>The output you see looks like:
    Does the connection exist for http://www.google.com : true
    I think it is better to handle the exceptions in the JavaBean itself, so now yyou can change the method signature of getConnectionExists , remove all exceptions from method signature but handle them with a try/catch inside the method itself.

  • JSP not displaying images when using filter .....

    Hi there,
    I have a very strange problem. My Jsp page works fine when I call it directly without using the filter which checks if a user is logged in.
    But when I try to hit some other URL, the filter intercepts the request and redirects to the login page in exactly the same way using response.sendRedirect(). But the page does not load the CSS or the images.
    any idea why?
    Sameet

    First, what mage does not load the CSS or images, login page or the page you were trying to go to.
    How are the images and css loaded in the jsp.
    I use something like this
    <img width="38" height="38" src="<c:out value='${pageContext.request.contextPath}'/>/images/omniManager/sunlogo_box_.5in.jpg" align="middle"/>I've had the same problem you are describing before... it turned out that in my struts config I had my forwards path incorrect. I had path="/standardInput.jsp" instead of path="/jsp/standardInput.jsp" (this is my login page)
    Don't know if this helps.. but it has to be the way you are generating the paths in your jsp. try just outputing the path to the screen and see what it is when it doesn't work.. then figure out how it gets set to that.

  • Work item can not be read when opening the task on the portal side

    Hi Experts,
    when we open a UWL workitem on the PROD portal, the message Workitem xxxxxxx can not be read. If we try it in the back-end, then it works fine. How to solve this? I checked and compare the .xml files on the PROD portal with the WAS portal and everything is the same.
    thanks in advance,
    J. de Voijs

    Dear Robert,
    Please check whether the user to whom you are sending the workitem has proper authorisation. Forward the workitem to another user from backend & try opening it from his UWL. If it opens there perfectly then its an authorisation issue.
    B

  • Home sharing not working? does not register even when it is turned on

    Hi, We watched a movie last week and all was fine. Tonight Apple TV wouldn't recognize home sharing turned on on my mac. Any advice would be greatly appreciated

    I've had this happen on occasion. Usually restarting the Apple TV, by pulling the power plug and then plugging it back in again, solves the problem. That is of course, if no other changes have taken place on your network or Mac between now and the last time it worked. Let us know how it goes.

  • Back navigation arrow doesn't work anymore, also not getting suggestoins when I start typing a URL... how can these be fixed?

    So after I deleted a bunch of files/applications today (computer was threatening to crash), Firefox started to do a couple weird things. Navigating backward is no longer possible; the back navigation arrow is greyed out. Also, when I start typing a URL, it no longer suggests the rest of it, either in the URL bar itself or in a drop down menu (it used to do both). 16.0.2 is the current version, right? That's the one I kept, I deleted the others. Recently, I got the announcement that Apple isn't supporting my operating system, Mac OS X 10.5.8 anymore, I don't know if that is relevant. How can these things be fixed?

    I use Windows but I can suggest you a couple of things that you can try out.
    1. Right click on your toolbar, click Customize. Click on the "'''Restore Default Set'''" button.
    2. Go to Firefox menu > Help menu > Troubleshooting information. In the tab that opens afterwards click "'''Reset Firefox'''".

  • Not receiving emails when assigning a user a task

    Hello friends,
    I am attempting to figure out what I am missing in my configuration here...
    I have a SP2013 site where I added the out of the box task application. When I go to assign a task to an end user, the end user never receives an email informing them that a task has been assigned.
    I believe email is setup correctly because when the site is shared with the same end users an email is sent / received informing the end user they have been granted access to the site in question...
    any thoughts on what I have misconfigured?
    thank you in advance

    Hi,
    As for the incoming settings, not all lists support incoming emails. You could go to Document library settings and see if incoming email setting exist under Communication.
    I’d like to collect more information about the issue. What OOB task application are you using? Did you mean OOB workflow on SharePoint 2010 platform? Does the alert work for the list?
    Please confirm the following for the issue workflow:
    In the start options, try checking Creating a new item will start this workflow.
    In the Approvers box, try only adding one user with mailbox enabled.
    In the Request box, type “Request for the list”
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Filter does not work with *.jsp URL pattern???

    Hi All,
    I am, by no means, very good at JSF or Java. I have looked at various forum posts on here for ways to implement a security filter to intercept requests to pages that first require one to be logged in, and if not, redirect them to the login page. Yes, I know a lot of you have heard this many times before, and I'm sorry to bring it up again.
    BUT, from the guidance of other posts, I have got a filter that works fine when the url pattern is set to "/faces/*" or "/<anything>/*", however it won't work for "*.jsp" or "*.<anything>"
    My filter is as follows:
    package test.security;
    import javax.faces.context.FacesContext;
    import javax.servlet.Filter;
    import javax.servlet.FilterChain;
    import javax.servlet.FilterConfig;
    import javax.servlet.http.HttpSession;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class SecurityFilter implements Filter{
        /** Creates a new instance of SecurityFilter */
        private final static String FILTER_APPLIED = "_security_filter_applied";
        public SecurityFilter() {
        public void init(FilterConfig filterConfig) {
        public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws java.io.IOException, ServletException{
            HttpServletRequest req = (HttpServletRequest)request;
            HttpServletResponse res = (HttpServletResponse)response;
            HttpSession session = req.getSession();
            String requestedPage = req.getPathTranslated();
            String user=null;
            if(request.getAttribute(FILTER_APPLIED) == null) {
                //check if the page requested is the login page or register page
                if((!requestedPage.endsWith("Page1.jsp")) /* This is the login page */
                    //set the FILTER_APPLIED attribute to true
                    request.setAttribute(FILTER_APPLIED, Boolean.TRUE);
                    //Check that the session bean is not null and get the session bean property username.
                    if(((test.SessionBean1)session.getAttribute("SessionBean1"))!=null) {
                        user = ((test.SessionBean1)session.getAttribute("SessionBean1")).getUsername();
                    if((user==null)||(user.equals(""))) {
                       // try {
                     //       FacesContext.getCurrentInstance().getExternalContext().redirect("Page1.jsp");
                      //  } catch (ServletException ex) {
                      //      log("Error Description", ex);
                        res.sendRedirect("../Page1.jsp");
                        return;
            //deliver request to next filter
            chain.doFilter(request, response);
        public void destroy(){
    }My web.xml declaration for the filter is:
    <filter>
      <description>Filter to check whether user is logged in.</description>
      <filter-name>SecurityFilter</filter-name>
      <filter-class>test.security</filter-class>
    </filter>
    <filter-mapping>
      <filter-name>SecurityFilter</filter-name>
      <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>
    Note: I have also tried this with <url-pattern>*.jsp</url-pattern> for the filter mapping in place of the Faces Servlet
    My web.xml declaration for the url pattern is:
    <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>*.jsp</url-pattern>
    </servlet-mapping>Which JSC/NetbeansVWP automatically creates a "JSCreator_index.jsp" which has:
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root  version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page">
      <jsp:forward page="Page1.jsp"/>
    </jsp:root>When run, this causes an Error 500 in the browser and a NullPointerException in SecurityFilter.java on the line:
    if((!requestedPage.endsWith("Page1.jsp")) /* This is the login page */I think I'm missing something that would be obvious to anyone who knows better than me. Any ideas?

    Dear Ginger and Boris,
    thanks for the information - the problem seems to ocur in EP7 as well, Boris told me it is fixed in SP15. We are on SP14 now, so there is hope !
    actually the information in the oss note stated above is also true, as we have an Oracle DB. On a similar demo system (only difference is SQL DB) the hyphen search works !
    best regards, thank you !
    Johannes

  • Javascript is not working in JSP

    Hi everybody,
    My javascript is not working in JSP.I m not able to fix this problem.Please tell where the problem in code.
    thx in advance.
    <%@page import="javax.servlet.http.*" %>
    <%@page import="java.sql.*" %>
    <html>
    <head>
    <script type="text/javascript" >
    funtion checkentries()
    if(document.LForm.uname.value==null || document.LForm.upassword.value==null)
    alert("Please fill all entries")
    else
    document.LForm.submit()
    </script>
    </head>
    <body>
    <table width=100% height=100% valign="center" align="center" border=0>
    <tr height=10% ><td>
    <%@ include file="Header.jsp" %>
    <hr>
    </td></tr>
    <tr height=1% width=100%>
    <td align=right>Register
    <hr>
    </td>
    </tr>
    <tr height=77% width=100% ><td>
    <table>
    <tr><td width=65%>
    </td>
    <td bgcolor="black" width="1" ></td>
    <td align="right" valign="top" >
    <form method="POST" action="/EIS/Home.do" name="LForm">
    User Name: <input type="text" align=right name="uname"><br>
    Password: &nbsp&nbsp&nbsp<input type="password" name="upassword"><br>
    <input type="submit" name="submit" value="Submit" onclick="checkentries()">
    </td>
    </tr>
    </table>
    </td></tr>
    <tr height=10% ><td>
    <hr>
    <%@ include file="Footer.jsp" %>
    </td></tr>
    </table>
    </body>
    </html>

    in this part:
    if(document.LForm.uname.value==null || document.LForm.upassword.value==null)should be:
    if(document.LForm.uname.value=="" || document.LForm.upassword.value=="")or
    if(document.LForm.uname.value.length==0 || document.LForm.upassword.value.length==0)

  • HTML multipart form is not working in jsp page

    Hi
    i have jsp page, has a HTML from with file upload field , when i click the send button , nothing happened as if the button did not submit the form. ie the message at line 12 is not printed out.
    can any one help please.
    <%@ page errorPage="..\error\error.jsp" %>
    <%@ page pageEncoding="windows-1256" %>
    <%@ page language="java" import="javazoom.upload.*,java.util.*,java.sql.ResultSet" %>
    <jsp:useBean id="upBean" scope="page" class="javazoom.upload.UploadBean" >
      <jsp:setProperty name="upBean" property="folderstore" value="<%=request.getRealPath("thuraya//uploads")%>"  />
    </jsp:useBean>
    <jsp:useBean id="dbc" class="mypackage.DBConnection" scope="session" />
    <!-- add news-->
    <%
    if(request.getParameter("addBTN") != null){
            out.println("addbtn");
            //do upload file + insert in database
             if (MultipartFormDataRequest.isMultipartFormData(request))
             // Uses MultipartFormDataRequest to parse the HTTP request.
             MultipartFormDataRequest mrequest = new MultipartFormDataRequest(request);
             String todo = null;
             if (mrequest != null) todo = mrequest.getParameter("todo");
                 if ( (todo != null) && (todo.equalsIgnoreCase("upload")) )
                    Hashtable files = mrequest.getFiles();
                    if ( (files != null) && (!files.isEmpty()) )
                        UploadFile file = (UploadFile) files.get("filename");
                        if (file != null)
                                            out.println("<li>Form field : uploadfile"+"<BR> Uploaded file : "+file.getFileName()+" ("+file.getFileSize()+" bytes)"+"<BR> Content Type : "+file.getContentType());
                                            String fileName=file.getFileName();
                                            String ran=System.currentTimeMillis()+"";
                                            String ext=fileName.substring(   ( fileName.length()-4),fileName.length() );
                                            file.setFileName(ran+ext);
                        // Uses the bean now to store specified by jsp:setProperty at the top.
                        upBean.store(mrequest, "filename");
                                            String title=request.getParameter("title");
                                            String content=request.getParameter("elm1");
                                            int x=dbc.addNews(title,content,file.getFileName(),2,1);
                                            if(x==1)
                                                     out.print("New Vedio has been addedd Successfully");
                                                      response.setHeader("Refresh","1;URL=uploadVedio.jsp");
                                                     else{
                                                      out.print("An Error Occured while adding new Vedio");
                                                      response.setHeader("Refresh","1;URL=uploadVedio.jsp");
                    else
                      out.println("<li>No uploaded files");
             else out.println("<BR> todo="+todo);
    %>
    <!-- end of add news-->
    <form action="" method="post" enctype="multipart/form-data" name="upform" >
      <table width="99%" border="0" align="center" cellpadding="1" cellspacing="1">
        <tr>
          <td colspan="2" align="right" bgcolor="#EAEAEA" class="borderdTable"><p>'6'A) .(1 ,/J/</p></td>
        </tr>
        <tr>
          <td width="87%" align="right"><label>
            <input name="title" type="text" class="rightText" id="title">
          </label></td>
          <td width="13%" align="right">9FH'F 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><textarea name="elm1" cols="50" rows="10" id="elm1" style="direction:rtl" >
              </textarea></td>
          <td align="right">*A'5JD 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input type="file" name="filename" id="filename">
          </label></td>
          <td align="right">5H1)</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input onClick="submit()" name="addBTN" type="button" class="btn" id="addBTN" value="  '6'A) .(1 ">
          </label></td>
          <td align="right"> </td>
        </tr>
      </table>
    </form>
    <!-- TinyMCE -->
    <script type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript">
            tinyMCE.init({
                    mode : "textareas",
                    theme : "simple",
                    directionality : "rtl"
    </script>
    <!--end of TinyMCE -->

    the problem is not because of java code insdie jsp page
    I have removed all things but the form and it is still not working
    here is the modified code:
    <!-- add news-->
    <%
    if(request.getParameter("addBTN") != null){
            out.print("addBTN");
    %>
    <!-- end of add news-->
    <form action="" method="post" enctype="multipart/form-data" name="upform" >
      <table width="99%" border="0" align="center" cellpadding="1" cellspacing="1">
        <tr>
          <td colspan="2" align="right" bgcolor="#EAEAEA" class="borderdTable"><p>'6'A) .(1 ,/J/</p></td>
        </tr>
        <tr>
          <td width="87%" align="right"><label>
            <input name="title" type="text" class="rightText" id="title">
          </label></td>
          <td width="13%" align="right">9FH'F 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><textarea name="elm1" cols="50" rows="10" id="elm1" style="direction:rtl" >
              </textarea></td>
          <td align="right">*A'5JD 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input type="file" name="filename" id="filename">
          </label></td>
          <td align="right">5H1)</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input name="addBTN" type="submit" class="btn" id="addBTN" value="  '6'A) .(1 ">
          </label></td>
          <td align="right"> </td>
        </tr>
      </table>
    </form>
    <!-- TinyMCE -->
    <script type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript">
            tinyMCE.init({
                    mode : "textareas",
                    theme : "simple",
                    directionality : "rtl"
    </script>
    <!--end of TinyMCE -->

  • Weblogic 9.1/10 not working on jsp:directive.include file="file.jspf"/

    Does anyone know how to get rid of this problem? I have a jsp page including a sun java studio creator created page fragment using the tag:
    <jsp:directive.include file="myHeader.jspf"/>
    here myHeader.jspf is a page fragment.
    after deployment, weblogic server report error as:
    weblogic.servlet.jsp.CompilationException: Failed to compile JSP /Page1.jsp
    Page1.jsp:15:57: Error in "C:\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\proj\grb4mk\war\myHeader.jspf" at line 1: The encoding "null" specified in the XML prolog is unsupported.
    <jsp:directive.include file="myHeader.jspf"/>
    ^----------------^
    Any idea? I tried both weblogic 9 and 10, same error, change to
    <jsp:include page="myHeader.jspf"/>
    works. the question is: why not read jsp 1.2 tag? Any way to make it work with jsp:directive.include tag?
    thanks in advance.
    Edited by: user10243594 on Sep 10, 2008 10:22 AM

    The "jsp:directive.include" tag is only valid in an well-formed XML file that specifies all the relevant namespaces. The "jsp:include" tag is used in a JSP file. I'll bet the beginning of your file shows that you don't have a valid and well-formed XML file.
    If you found that "jsp:include" worked, then that confirms you have an ordinary JSP file here. Why are you trying to use the XML form? The result of "jsp:include" in a JSP file will be exactly the same as the analogous tag in an XML file.

  • Servlet filters on Tomcat 6. Not working on JSPs?

    Hi there:
    First of all I want to apologize because I'm not sure if this is the best place to ask a question like this, as it may have more to do with the treatment which Tomcat gives to JSPs more than the servlet filter standard. Anyway, here I go...
    I'm new into the servlet filter's world (well, nor an expert in Java). To start from a point, I decided to try an example from Sing Li, on the IBM website. The code can be watched and downloaded here (the second one): [http://www.ibm.com/developerworks/java/library/j-tomcat/] .
    This filter basically replaces a certain string in the response output (if found) by the dessired one. I've tested this code "as is" (well, changing the package only) and works great for pure servlets. However, testing this with JSPs outputs a simple and plain blank. Doing some research, I've realized that the problem could be in the class which inherits from HttpServletResponseWrapper. Instead of building a new ServletOutputStream I decided to re-utilize exactly the same which comes from the original "request" object but the problem persisted.
    Another user, Giampaolo Tomassoni, faced a similar a problem. A message from him can be found here . He solved this overriding the "flushBuffer ()" method on the class which inherits from HttpServletResponseWrapper. I've tryed to the same, forcing the flush of the ServletOutputStream and the PrintWritter without any luck.
    By the way, I've made sure that filters work on JSPs. Indeed, I've tested others and have done ok. This seems to be related to HttpServletResponseWrapper.
    Do you have any idea about what could be the reason? Many thanks in advance :) .

    I have the same issue.  My 3-month-old Iphone 6 128 GB model (60 GB free) was working fine yesterday.  I did not install any new apps, although typically 5-10 apps update automatically every night.  Today, out of the blue, about 80% of my apps will not load -- the app window opens then immediately crashes to home page (a double press shows the app is still in memory, but when I select it, it pops up for an instant, then goes back to home icon screen.  Example apps (CNN, CBS News, ABC News, NBC News, Scrabble, many others). I tried turning phone off and back on (three times) - no change. Then tried a hard reset (hold power button and home button down simultaneously for 10 seconds) - on reboot still no change.  Then I tried a Restore from backup on my PC - after restarting and clicking through all the welcome to ios 8 screeens - no change; most apps still crash immediately after starting.
    I took my phone to the Verizon store where I bought it.  The agent tried the power off - power on routine again with no success. I informed him that I also tried the restore from backup at home with no success.  He authorized a warranty replacement and my new replacement iPhone will be FEDEXed to my home Tuesday.  Hope this one works after a restore from backup and this isn't some colossal bug with the latest software update (IOS 8.1.3), which I installed about a week ago.  Internet searches reveal that a number of folks are having problems with their 128gb iphone6 devices - something about bad NAND memory.
    Stats on my iPhone 6, in case others have similar problems, so we can possibly identify a trend:  4,831 songs; 1 video, 3,912 photos, 392 applications, 114 gb capacity, 59.8 gb free, version 8.1.3, carrier Verizon 18.1, Model MG602LL/A.
    Has anyone else started having problems with apps suddenly refusing to work on their 128 gb iPhone6?

  • Why is Runtime.getRuntime().exec() not working in JSP?

    Hi all,
    I need to execute a command file from a JSP. I am using Tomcat 4.0.3.
    Here is the code :
    I just wanted to test if this will work, so tried to do run notepad.exe. But in my actual project, i need to run some other commands from a bat file or cmd file.
    <%@ page import="java.util.*,java.io.*,java.net.*" %>
    <%@ page import="java.sql.*" %>
    <%@ page import="tryexec" %>
    //tryexec is a class which has the same java statements as in this jsp
    <%     
    Runtime r = Runtime.getRuntime();
    String s3 = "C:\\WINNT\\explorer.exe";
    String s4 = "C:\\bin\\open.cmd"; //inside open.cmd file , i have "notepad.exe"
    r.exec(s3);
    r.exec(s4);
    /*     tryexec c = new tryexec();
         c.execTo(); // doesn't work
    %>
    I have a html page , when i click a button there , it will call the above jsp , and this jsp will execute the command file.
    If i run the above java statements using a simple java program, it works fine, it opens a notepad and explorer window. but if i do the same thing in jsp, why doesn't it work? Is there any security problem? no exception is shown . Is it a problem with tomcat?
    I also tried to import the java class in jsp and call the function, but still didnt work.
    Please let me know whats the problem, and how to execute command files from jsp.
    Thanks
    Priyha

    It would work with Java coz u r working on the same machine as the java class file.
    While in case of JSP, it is like connecting to a different machine (even if the server is running on the same machine). If you do something like "net send user message" command in JSP or something other executable (just to test), you would see it to work.
    I hope you understand my point here.
    Write back if you have any issues.
    Regards
    Aruneesh

Maybe you are looking for