src/main/ruby/jruby/rack/rack_ext.rb
# Returns the output of the server-side include as a string, honoring the character
# encoding set on the response.
Returns the output of the server-side include as a string, honoring the character
encoding set on the response.
Returns the output of the server - side include as a string honoring the character encoding set on the response .
def render(path, params={})
      servlet_request = env['java.servlet_request']
      params.each { |k,v| servlet_request[k.to_s] = v}
      servlet_response = ServletRackIncludedResponse.new(env['java.servlet_response'])
      servlet_request.getRequestDispatcher(path).include(servlet_request, servlet_response)
      servlet_response.getOutput
    end
def render ( path , params = { } ) servlet_request = env [ 'java.servlet_request' ] params . each { | k , v | servlet_request [ k . to_s ] = v } servlet_response = ServletRackIncludedResponse . new ( env [ 'java.servlet_response' ] ) servlet_request . getRequestDispatcher ( path ) . include ( servlet_request , servlet_response ) servlet_response . getOutput end
Returns the output of the server-side include as a string, honoring the character
encoding set on the response.
Returns the output of the server - side include as a string honoring the character encoding set on the response .
path
<not_specific>
params
<not_specific>