Ying Lu

Greenhorn
+ Follow
since Feb 05, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ying Lu

Ok, I figured one way to get request and response


HttpServletRequest request = ServletActionContext.getRequest();
HttpServletResponse response = ServletActionContext.getResponse();
15 years ago
public class ProcessTestAction extends ActionSupport
{
public String execute() throws Exception
{
return success;
}
}

In the above codes, how to get request, and response? Any clues?




Tried this, but does NOT work:
=================================
public class ProcessTestAction extends ActionSupport
{
private HttpServletRequest request;
public void setServletRequest(HttpServletRequest request)
{
this.request = request;
}

public String execute() throws Exception
{
int len = request.getContentLength(); /* request is NULL ! */
return success;
}
}

Thanks a lot!
15 years ago
Main page will display section1 - a string array(did not know the size)


Open a popup window:
1. Search result, and select value1 and update section1 adding the new value
2. Search again, and select the research result value and update main page
now main page has two values for sectioin1

...

users can use popup window to do as many times as needed, and main page will be updated accordingly. (All other sections will keep org values), but only section1 will be update.

Thanks,
ly
16 years ago
Greeting,

For Struts 1.35. Is there a way that in jsp page I can access ActionForm data?

Thank you!
Ly
16 years ago