Created
October 7, 2012 22:03
-
-
Save JavaDeveloper/3849761 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.ws.rs.core.Context; | |
import javax.ws.rs.Path; | |
import javax.ws.rs.GET; | |
import com.sun.jersey.api.view.Viewable; | |
@GET | |
@Path("/index") | |
public Viewable index( | |
@Context HttpServletRequest request, | |
@Context HttpServletResponse response) throws Exception | |
{ | |
request.setAttribute("key", "value"); | |
return new Viewable("/jsps/someJsp.jsp", null); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment