I have found
AUTOMATIC
to work great for addActionMessage. To tell you the truth I haven't tried
it for addActionError or fieldErrors. You would redirect after an error
that should render input? Really?
Greg Lindholm wrote:
>
> Hi All,
This doesn't seem right. How can you distinguish between something like
/book/1/customMethod and /book/1/chapter? Is it smart enough to see that
chapter is a mapped action and customMethod is not and change what it
invokes? If it works then great, but doesn't it feel like a hijack?
As I loo
Don't you just overwrite the existing session values (that were left behind
because the user didn't click exit) when the user returns to the page?
You can tell the browser not to cache the page with the http equiv header
tags.
Milan Milanovic wrote:
>
> O.K. Could you tell me very session d
The only syntax difference I see is you should put #stat.index rather than
stat.index so it looks like
descList) in your action.
BGE Ger wrote:
>
> Hi Laurie, thank you for help!
>
> you are right that's what I want: to push back the updated fields into the
> list.
> And then I want access th
Do you really want them in separate packages or do you just want them in
separate directories. It seems to me that you are looking for a particular
organization of files during development, so you can keep all the like files
together. Seems reasonable enough. If that is the case then you can cr
Its is not /WEB-INF/template. Its /template under your web root.
so its /template/[theme name]/file.ftl
Struts Two wrote:
>
> I tried the samething before but met no success as well. It would be great
> if we could call a field error as follows that generate no html mark-up
>
> fie
I tried the samething before but met no success as well. It would be great if
we could call a field error as follows that generate no html mark-up
field1
I tried to print the error message right beside each input field. However; the
html generated mark-up moves the error line to the n
<%
Calendar cal = Calendar.getInstance();
cal.setTime(new Date());
int monthNow = cal.get(Calendar.MONTH);
cal.setTime(date); //fruit.getDate()
int monthFruit = cal.get(Calendar.MONTH);
if(monthNow == monthFruit){
%>
delete delete
<%}%>
If you don't like the script in the page t
Thanks Timothy and Jeromy for your answers. I tried your suggestions but
they are not working.
Basically, I changed the fielderror.ftl by removing the list tags in it and
then saved it to /WEB-INF/classes/template/ folder. Struts2 doesn't look at
the new fielderror.ftl so the error message is stil
9 matches
Mail list logo