2015年7月31日 星期五

Tomcat Java Eclipse ENCODING drive me crazy

This is what I update.
Under Tomcat 7 folder/conf/server.xml
Find 8080 word. This will be like:
URIEncoding="UTF-8"
/>
Add URIEncoding="UTF-8" if the encoding needs to be set UTF-8. Or you can change to any other fix charset.

Remember set same encoding on JSP file


Now...... Another problem happened. Same issue when using Eclipse to start Tomcat.
Solution: Expand "Server" on the Project Explorer (left side). There is anotehr Server.xml. The physical location should hiding under "workspace" folder. Change same URIEncoding="UTF-8".

NOW..... Database make the same issue.... The "words" select from DB and the data from web page is not equal........

2015年7月4日 星期六

Update ListView or BaseExpandableListAdapter After Saving Data

public class abc extends BaseExpandableListAdapter { ... // after updateProgress(progress); notifyDataSetChanged();