Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SmartGWT integaration with existing struts application

    Hi All,

    I am completely new to SmartGWT.
    I want to use it in my existing struts project.

    I am having some links on main page .
    When I click on those links page will displayed using SmartGWT.
    I want to know SmartGWT basics and how I can integrate it with struts .
    Can anybody help?

    #2
    I don't know if it's a best way but I get the PrintWriter from the HttpServletResponse and print the output data in JSON format like the expected
    by RestDataSource.

    It's working very well.

    Comment


      #3
      Just create a gwt modules and create links in your existing struts pages that directs you to gwt host pages. If you want to use rpc, have a look to the sticky thread at the first page of this forum.
      Originally posted by leo-veio
      I don't know if it's a best way but I get the PrintWriter from the HttpServletResponse and print the output data in JSON format like the expected
      by RestDataSource.

      It's working very well.

      Comment


        #4
        This is exactly what i did. Added a link in existing struts app to gwt module but...
        "How do I pass values (username etc) from existing struts to gwt?"

        Kindly let me know if you guys have any idea. Help is highly appreciated.

        Thanks.

        Comment


          #5
          Good idea is to store them in the session.

          regards,
          Andrius J.

          Comment


            #6
            Overriding service methods works.


            Code:
            	@Override
            	protected void service(HttpServletRequest request, HttpServletResponse arg1)
            			throws ServletException, IOException {
            
            		String uId = request.getHeader("USER");
            		this.setUserId(uId);        
            		super.service(request, arg1);
            	}

            Comment

            Working...
            X