You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Keith <ke...@netsco.com> on 2001/03/19 21:04:21 UTC

How do I really bypass the deficient of a HTM editor?

Hi;
  I am new to struts, and thought I would be great if I can completely
separate the HTML and web design from the java code. So, I tried out the
first few pages of a project with struts implementation, only to realize
that the web designer will not be able to see his design because all the
custom tags cannot be displayed.
   Consequently, I search in the mailing list archive, and notice that many
people are having the same problem as I do. I came across a thread in which
the author suggested embedding HTML code in the custom tags to enable the
web designer to see the placement of the widgets. Everything seems to work
except when I tried to use <bean:message> tag to display labels. Struts
complains about not allowing content in this tag.
   Has anyone have the same problem? How do you let the web designer does
his design without having to guess the position of the labels and boxes?

Thanks
keith



Re: How do I really bypass the deficient of a HTM editor?

Posted by Maya Muchnik <mm...@pumatech.com>.
Hi, Keith,

I think, DreamWeaver has an implementation to display custom tags (UltraDev),
and now they are working to embed a support for the struts. Can you give
example you are talking about? Do you want, that tags will send additional
HTML code?

Maya

Keith wrote:

> Hi;
>   I am new to struts, and thought I would be great if I can completely
> separate the HTML and web design from the java code. So, I tried out the
> first few pages of a project with struts implementation, only to realize
> that the web designer will not be able to see his design because all the
> custom tags cannot be displayed.
>    Consequently, I search in the mailing list archive, and notice that many
> people are having the same problem as I do. I came across a thread in which
> the author suggested embedding HTML code in the custom tags to enable the
> web designer to see the placement of the widgets. Everything seems to work
> except when I tried to use <bean:message> tag to display labels. Struts
> complains about not allowing content in this tag.
>    Has anyone have the same problem? How do you let the web designer does
> his design without having to guess the position of the labels and boxes?
>
> Thanks
> keith


RE: How do I really bypass the deficient of a HTM editor?

Posted by James Cook <ji...@iname.com>.
It appears that <bean:message> makes this call at the end of its
doStartTag() method:

    return (SKIP_BODY);

while <html:input> makes this call:

    return (EVAL_BODY_TAG);

I suppose that is forcing the error message to be displayed. Too bad since
it really aids in prototyping to be able to substitute text in this field at
design time. Not being familiar with JSP (and my books are not with me), I
would assume that there is a mechanism for ignoring the body, but allowing
it.

jim

> -----Original Message-----
> From: Keith [mailto:keith@netsco.com]
> Sent: Monday, March 19, 2001 3:04 PM
> To: struts-user@jakarta.apache.org
> Subject: How do I really bypass the deficient of a HTM editor?
>
>
> Hi;
>   I am new to struts, and thought I would be great if I can completely
> separate the HTML and web design from the java code. So, I tried out the
> first few pages of a project with struts implementation, only to realize
> that the web designer will not be able to see his design because all the
> custom tags cannot be displayed.
>    Consequently, I search in the mailing list archive, and notice
> that many
> people are having the same problem as I do. I came across a
> thread in which
> the author suggested embedding HTML code in the custom tags to enable the
> web designer to see the placement of the widgets. Everything seems to work
> except when I tried to use <bean:message> tag to display labels. Struts
> complains about not allowing content in this tag.
>    Has anyone have the same problem? How do you let the web designer does
> his design without having to guess the position of the labels and boxes?
>
> Thanks
> keith
>
>