we set upload file size as following:
<bean id="multipartResolver"
class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
<!-- one of the properties available; the...
Type: Posts; User: henry lu; Keyword(s):
we set upload file size as following:
<bean id="multipartResolver"
class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
<!-- one of the properties available; the...
can we use something like: /ge/my_page1.htm with the following Controller code?
@Controller
public class Xyz extends ActBase
{
@RequestMapping(value = "/ge/my_page1.htm")
protected...
We have a web structure like following at an app root directory:
/css
/images
/js
/WEB-INF
/pdf_files
index.jsp
I specify an interceptor as:
I am prety sure my ajax code post a upload file to a controller but I don't know how to get it. Any Help?
Here is my code:
@RequestMapping(value = "/ajax_upload_file.htm", method =...
Thank you for your info. But when I have the following code:
@Controller
public class Yp_search extends ActionBase_pub
{
static Log log = LogFactory.getLog("mcores.Yp_search");
...
When I convert from struts to spring, can I still use *.do instead *.htm in web.xml file?
<servlet-mapping>
<servlet-name>spring_mvc</servlet-name>
<url-pattern>*.do</url-pattern>...
I put:
<util:properties id="jdbcConfiguration" location="classpath:com/foo/jdbc-production.properties"/>
in the application beans configuration file and code:
Properties jdbcConfiguration;
...
In my app_beans.xml file, I put:
<util:properties id="appSourceConf" location="classpath:/configservice.properties"/>
and in my code, I have:
Properties appSourceConf;
@Autowired...
Do I need to configure Spring-Ibatis to access an unicode (16 bits character) database? If so, how?
-Henry
I don't want attributes names passed to JSON, I only need value of attributes. What I beleave List<City> will generate a list of objects of city with attribute names and values which is not what I...
Is there a class/method to take an object and convert to a javascript array like following:
[
[["Aberdeen","1"], ["Ada","2"], ["Adamsville","3"], ["Addyston","4"],
["Adelphi","5"],...
I am using Spring 3.0.x with annotated controller. How do I get the the entire URL of request in the annotated controller like:
http://x.y.z/test/go.htm
I implemented ServletContextAware, the...
I had old simpleformController:
public ModelAndView onSubmit(HttpServletRequest request,
HttpServletResponse response, Object obj, BindException errors)
throws Exception
...
I have javascript on web page:
function coall()
{
g_drda_id = '123';
jQuery.ajaxSetup ({ cache: false });
jQuery.getJSON("send_jquery_results.htm",
{DO_WHAT:"JSON_VALIDATE_DRDA",...
There a re two classes:
X_addr
public class X_addr implements java.io.Serializable
{
private Long ID;
private String ADDR;
private String STATE_CODE;
Based upon H"Hibernate Annotations (3.5.1-Final),2.2.5.3.1.2,
I have x_student class
@Entity
@Table(name = "X_STUDENT")
public class X_student implements java.io.Serializable
{
OK, i rename my interface to SomeClassDao and implementation class to SomeClassDaoImpl and so did for the service, and it worked. Thank you very much!
But, it raises another question:
let's say...
could you show me chich part of the code was wrong? in service? in dao? in configuration? in injuction?
Thank very much for your info. Here is my code for both service and dao:
public class AppService implements IAppService
{
...
// ////////////////////////////////////////////////////
...
Based upon "Reference DOcumentation Spring 3.0" chapter 13.3, I have the configuration
<bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">...
Thank you very much for your help and advise! It works great!
-Henry
I sent a pdf file to IE browser, it displaied an empty page. But in FireFox, It works just fine. (I am using spring 3.0.2)
Any help?
Does Spring 3 supports Mybatis 3? If not, Is Spring going to support Mybatis in the future?
-Henry
1. I have code compiled with spring 2.0.7:
@SuppressWarnings("unchecked")
public Collection<Map<String, String>> getGroups(String categoryCode,
String topicCode,...
How do I generate a mapping file with the following xml file?
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfResearcher xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...