Search:

Type: Posts; User: henry lu; Keyword(s):

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    693

    upload file size too large error process

    we set upload file size as following:

    <bean id="multipartResolver"
    class="org.springframework.web.multipart.commons.CommonsMultipartResolver">

    <!-- one of the properties available; the...
  2. can we user subfolder as part of handle name?

    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...
  3. can an interceptor intercept root sub folder file access

    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:
  4. how to read uploaded file from an ajax in a controller?

    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 =...
  5. Replies
    2
    Views
    3,636

    Thank you for your info. But when I have the...

    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");
    ...
  6. Replies
    2
    Views
    3,636

    convert from struts to spring3

    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>...
  7. Replies
    0
    Views
    452

    Util:properties tag

    I put:
    <util:properties id="jdbcConfiguration" location="classpath:com/foo/jdbc-production.properties"/>

    in the application beans configuration file and code:

    Properties jdbcConfiguration;

    ...
  8. Replies
    1
    Views
    1,047

    util:properties tag

    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...
  9. Replies
    0
    Views
    459

    access unicode db

    Do I need to configure Spring-Ibatis to access an unicode (16 bits character) database? If so, how?

    -Henry
  10. Replies
    3
    Views
    1,307

    I don't want attributes names passed to JSON, I...

    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...
  11. Replies
    3
    Views
    1,307

    ajax and javascript array

    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"],...
  12. Replies
    1
    Views
    517

    how to get entire url of request

    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...
  13. Thread: redirect

    by henry lu
    Replies
    0
    Views
    332

    redirect

    I had old simpleformController:


    public ModelAndView onSubmit(HttpServletRequest request,
    HttpServletResponse response, Object obj, BindException errors)
    throws Exception
    ...
  14. Replies
    0
    Views
    330

    ajax with spring 3.0.x

    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",...
  15. Replies
    1
    Views
    1,405

    Hibernate mapping errors

    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;
  16. Replies
    1
    Views
    653

    hibernate mapping error

    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
    {
  17. Replies
    5
    Views
    624

    Another question

    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...
  18. Replies
    5
    Views
    624

    could you show me chich part of the code ...

    could you show me chich part of the code was wrong? in service? in dao? in configuration? in injuction?
  19. Replies
    5
    Views
    624

    Thank very much for your info. Here is my code...

    Thank very much for your info. Here is my code for both service and dao:




    public class AppService implements IAppService
    {
    ...
    // ////////////////////////////////////////////////////
    ...
  20. Replies
    5
    Views
    624

    spring-hibernate errors!!!

    Based upon "Reference DOcumentation Spring 3.0" chapter 13.3, I have the configuration


    <bean id="dataSource"
    class="org.springframework.jdbc.datasource.DriverManagerDataSource">...
  21. Replies
    2
    Views
    718

    Thank you very much for your help and advise! It...

    Thank you very much for your help and advise! It works great!

    -Henry
  22. Replies
    2
    Views
    718

    pdf file not read by IE

    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?
  23. Replies
    2
    Views
    11,578

    spring 3 and mybatis 3

    Does Spring 3 supports Mybatis 3? If not, Is Spring going to support Mybatis in the future?

    -Henry
  24. Replies
    0
    Views
    446

    old and new version jdbc support

    1. I have code compiled with spring 2.0.7:


    @SuppressWarnings("unchecked")
    public Collection<Map<String, String>> getGroups(String categoryCode,
    String topicCode,...
  25. Replies
    0
    Views
    1,396

    object/xml mapping

    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"...
Results 1 to 25 of 61
Page 1 of 3 1 2 3