request;
>>>>>> }
>>>>>>
>>>>>> @Override
>>>>>> public void prepare() throws Exception
>>>>>> {
>>>>>> referer = request.getHeader( "Referer" );
>>>>>> if (referer==null)
>>
void setServletRequest(HttpServletRequest request)
>>>>>> {
>>>>>> this.request = request;
>>>>>> }
>>>>>>
>>>>>> @Override
>>>>>> public void prepare() throws Exception
>>>>>> {
>>>>>> referer = request.
t;>>> public String getReferer()
>>>>> {
>>>>> // THIS WORKS
>>>>> // return "/jsp/pages/welcome.jsp";
>>>>> // THIS DOES'NT WORK
>>>>> // return "/welcome.action";
>>>>>
public String getReferer()
>>>>> {
>>>>> // THIS WORKS
>>>>> // return "/jsp/pages/welcome.jsp";
>>>>> // THIS DOES'NT WORK
>>>>> // return "/welcome.action";
>>>>> // THIS D
class ForwardAction extends BaseAction
>>>> {
>>>> public String execute() throws Exception
>>>> {
>>>>addToHistory(getServletRequest());
>>>>return executeInternal();
>>>> }
>>>>
>&
d addToHistory(HttpServletRequest request)
>>> {
>>> // Request History
>>> // History.addEntry(request);
>>> }
>>>
>>> protected String executeInternal() throws Exception
>>> {
>>> //
>> // forward actios should overwrite this method and do some
>> additional work
>> return SUCCESS;
>> }
>> }
>>
>> SearchAction.java:
>>
>> public class SearchAction extends BaseAction
>> {
>> priva
searchString;
> }
>
> public String getSearchString()
> {
> return searchString;
> }
> }
>
> welcome.jsp:
>
> ...
>
>
> Welcome
>
>
> Welcome
>
>
>
>
> form.search.jsp:
>
> ...
>
>
turn searchString;
}
}
welcome.jsp:
...
Welcome
Welcome
form.search.jsp:
...
SearchAction-validation.xml:
...
That's it. So where is the error?
--
View this message in context:
http://www.nab
9 matches
Mail list logo