[Logo] Mentawai Forum - Mentawai Web Framework
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 

Forum Read-Only! Check the new site and forum here!

setting response headers for Output  XML
Forum Index -> General Comments
Author Message
logicalusman



Joined: 11/02/2010 06:19:51
Messages: 5
Offline

How can I set/change a header in a response (Output).

cheers
Lobo


[Avatar]

Joined: 23/01/2006 02:17:14
Messages: 840
Location: Fortaleza-CE
Offline

Hi logicalusman

You can set/change a header like this:

Code:
    ...
    public String execute() throws Exception {
 		
     HttpServletResponse response = ((SessionContext) session).getResponse();
     response.addHeader("key", "value");
 		
     return SUCCESS;
 }
 

Atenciosamente,
Hélio Frota

Helio Frota
10+ Java Programmer
heliofrota.com

Member
Mentawai Developer
 
Forum Index -> General Comments
Go to:   
Powered by JForum 2.1.6 © JForum Team