Hi
I Have two questions if anyone could answer taht would would be great.
1. If I write it like this <html:text size='30' property="fieldValue" />it will be
same as <html:text size='30' value ='<bean:write name="FieldList"
property="fieldValue"/>' />.
If wrong please could you give me an example of it exactly.
My Aim is to write something similar to this <INPUT NAME='" + field + "' TYPE='TEXT'
SIZE='30' VALUE='"something">.My form bean has the field and the field value.
Same way I have <html:hidden property = "ObjectList" value = '<bean:write
name="P_BioChemFieldData" property="field"/>' />
How Do i write that in struts.
2. I need to translate below line for javascript function.
<A HREF='JavaScript: launchEdit(document.editForm." + field + "Sel,
document.editForm." + field + ",true, '" + fia[i].getType() + ")'>Add New</A>");
I Did it
<a href onclick=launchEdit( <bean:write name="beanName" property="field"
);,<bean:write name="beanName" property="field" );,true)>Add NEw</a>.
If its okay then I also need to append Sel to first argument How do I do that.
Thanks
Sidh
On Wed, 16 Jan 2002 Craig R. McClanahan wrote :
>
>
> On Wed, 16 Jan 2002, [gb2312] Yunfeng Hou wrote:
>
> > Date: Wed, 16 Jan 2002 19:56:47 +0800 (CST)
> > From: "[gb2312] Yunfeng Hou" <[EMAIL PROTECTED]>
> > Reply-To: Struts Developers List
> <[EMAIL PROTECTED]>
> > To: Struts Developers List
> <[EMAIL PROTECTED]>
> > Subject: Re: i18n Forwards
> >
> > Yes, you can get it from request.
> >
>
> For maximum portability, using getRealPath() is
> problematic -- you will
> always get a null back if your webapp is running out of
> a WAR file
> directly. Use ServletContext.getResource() or
> ServletContext.getResourceAsStream() instead.
>
> > And, comitters, what's your opinion about i18n
> > forwards?
> > Because sometimes i18n enabled message can only solve
> > part of the problem to build a multi-language site, it
> > may require totally different layout for different
> > language, so if we have i18n forwards will be a big
> > help.
> >
>
> I think you have identified a very real problem, and am
> exploring ways
> that Struts could be extended to deal with it. Do you
> think that putting
> i18n-sensitive support into <forward> is all we need,
> or do we need to
> think about <action> mapping that is i18n-sensitive as
> well?
>
> Craig
>
>
>
> > --- Ned Nurk <[EMAIL PROTECTED]> �����ģ�>
> > > yeah cool, as long as it takes the HttpServlet- or
> > > is there a way to get at
> > > that from the request object?
> > >
> > > From the servlet you can get the ServletContext,
> > > which can then do a
> > > getRealPath() - invaluable if you are trying to see
> > > what actually exists in
> > > your filesystem before determining which file to
> > > return :-)
> > >
> > > regards
> > > ned
> > >
> > > >From: Yunfeng Hou <[EMAIL PROTECTED]>
> > > >Reply-To: "Struts Developers List"
> > > <[EMAIL PROTECTED]>
> > > >To: Struts Developers List
> > > <[EMAIL PROTECTED]>
> > > >Subject: Re: i18n Forwards
> > > >Date: Tue, 15 Jan 2002 11:15:28 +0800 (CST)
> > > >
> > > >Well, how about this, make the ActionMapping
> > > plugable,
> > > >which means, having attribute in struts-config.xml
> > > to
> > > >define the ActionMapping class. ActionMapping
> > > becomes
> > > >an interface having methods as follow,
> > > >findForward(name, request); getInput(request)
> > > >This way, you can get browser type from request and
> > > >determine the forward accordingly. And I think it
> > > will
> > > >be very flexible, and will make minimal change to
> > > >struts.
> > > >
> > > >Yunfeng Hou
> > > >
> > > > --- Ned Nurk <[EMAIL PROTECTED]> �����ģ�>
> > > > > What is really needed is a hook to allow the
> > > > > application to translate the
> > > > > forward page name as it sees fit. We have a
> > > system
> > > > > which changes the page
> > > > > name depending on the browser platform which is
> > > > > heirachical eg:
> > > > >
> > > > > default html
> > > > > +-- html for ipac size screens
> > > > > default wml
> > > > > +-- specific wml for nokia
> > > > > +-- wml for large screens
> > > > >
> > > > > the decision tree is loaded in from an XML at
> > > the
> > > > > start of the app. When
> > > > > forwarding to a page, it checks for the most
> > > > > specific version of the file
> > > > > (say wml for large screens), if that doesn't
> > > exist
> > > > > it will look for its
> > > > > parent, and so on. (all cached as well so it
> > > doesnt
> > > > > need to check again)
> > > > >
> > > > > so really want an interface which exposes a
> > > function
> > > > > which takes the input
> > > > > filename, the request and the servlet object (to
> > > get
> > > > > at the app file
> > > > > system).
> > > > >
> > > > > that same interface could be used for Yunfeng's
> > > > > problem too.
> > > > >
> > > > > Regards
> > > > > Ned
> > > > >
> > > > > >From: Yunfeng Hou <[EMAIL PROTECTED]>
> > > > > >Reply-To: "Struts Developers List"
> > > > > <[EMAIL PROTECTED]>
> > > > > >To: [EMAIL PROTECTED]
> > > > > >Subject: Re: i18n Forwards
> > > > > >Date: Tue, 15 Jan 2002 02:38:15 +0800 (CST)
> > > > > >
> > > > > >I am really glad to see this this topic, and
> > > would
> > > > > >like to share some of my thoughts, which I made
> > > > > >modification to struts to make the site work
> > > for
> > > > > both
> > > > > >Chinese and English.
> > > > > >1. Input is also treat as one form of forwards,
> > > so
> > > > > it
> > > > > >can be defined as attribute of action, or
> > > forward
> > > > > of
> > > > > >the action.
> > > > > >2. in struts-config.xml, forwards can be
> > > defined as
> > > > > >follows
> > > > > ><action path="..." input="input.jsp" >
> > > > > ><forward name="success" path="success.jsp"/>
> > > > > ><forward name="success_zh_CN"
> > > > > >path="success_zh_CN.jsp"/> or <forward
> > > > > >name="success_zh_CN" path="zh/success.jsp"/>
> > > > > ><forward name="input_zh_CN"
> > > > > path="input_zh_CN.jsp"/>
> > > > > >or <forward name="input_zh_CN"
> > > > > path="zh/input.jsp"/>
> > > > > >3. add methods in ActionMapping:
> > > > > >findForward(name, request), it will use locale
> > > in
> > > > > >request to find name+"_"+locale first, if not
> > > > > found,
> > > > > >will return findForward(name);
> > > > > >getInput(request), where it will first call
> > > > > >findForward("input",request), if nothing found,
> > > > > will
> > > > > >return getInput();
> > > > > >4. Modify ActionServlet to call
> > > getInput(request)
> > > > > >instead of getInput()
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> > >_____________________________________________________-
> ____
> > > > > >Do You Yahoo!? ��¼����Ż�����!
> > > > > http://mail.yahoo.com.cn
> > > > > >
> > > > > ><font
> > > > >
> > >
> > >color=#6666FF>���ģ����ƣ����ˣ�û���ɣ���������ɣ�<-
> /font>����
> > > > > >�Ż�ȫ��������!
> > > > > http://cn.chat.yahoo.com/c/roomlist.html
> > > > > >
> > > > > >--
> > > > > >To unsubscribe, e-mail:
> > > > >
> > > ><mailto:[EMAIL PROTECTED]>
> > > > > >For additional commands, e-mail:
> > > > > ><mailto:[EMAIL PROTECTED]>
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > >
> > >_____________________________________________________-
> ____________
> > > > > MSN Photos is the easiest way to share and print
> > > > > your photos:
> > > > > http://photos.msn.com/support/worldwide.aspx
> > > > >
> > > > >
> > > > > --
> > > > > To unsubscribe, e-mail:
> > > > >
> > > <mailto:[EMAIL PROTECTED]>
> > > > > For additional commands, e-mail:
> > > > > <mailto:[EMAIL PROTECTED]>
> > > > >
> > > >
> > >
> > >_____________________________________________________-
> ____
> > > >Do You Yahoo!? ��¼����Ż�����!
> > > http://mail.yahoo.com.cn
> > > >
> > > ><font
> > >
> > color=#6666FF>���ģ����ƣ����ˣ�û���ɣ���������ɣ�</-
> font>����
> > > >�Ż�ȫ��������!
> > > http://cn.chat.yahoo.com/c/roomlist.html
> > > >
> > > >--
> > > >To unsubscribe, e-mail:
> > > ><mailto:[EMAIL PROTECTED]>
> > > >For additional commands, e-mail:
> > > ><mailto:[EMAIL PROTECTED]>
> > > >
> > >
> > >
> > >
> > >
> > >
> > ______________________________________________________-
> ___________
> > > Send and receive Hotmail on your mobile device:
> > > http://mobile.msn.com
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > >
> >
> > ______________________________________________________-
> ___
> > Do You Yahoo!? ��¼����Ż�����!
> http://mail.yahoo.com.cn
> >
> > <font color=#6666FF>���ģ����ƣ����ˣ�û���ɣ���������-
> �ɣ�</font>����
> > �Ż�ȫ��������! http://cn.chat.yahoo.com/c/roomlist.ht-
> ml
> >
> > --
> > To unsubscribe, e-mail: <mailto:struts-dev-unsubscri-
> [EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> >
>
>
> --
> To unsubscribe, e-mail: <mailto:struts-dev-unsubscribe-
> @jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>