: access variable value in html tag
The Struts-EL is what I'd recommend, which supports exactly what you want to
do, unless you're into (Tomcat 5 and the) JSP 2.0 then you'd just do:
option value=${accounts.number}${accounts.number}/option
Otherwise I _think_ I've done this nastiness and it worked
On 24/03/2004 06:07, Caroline Jen [EMAIL PROTECTED] wrote:
In my Struts application, postForm is of the
DynaActionForm type:
DynaActionForm postForm = ( DynaActionForm )form;
Later on, I want to save one of the fields receiver,
which is a String, in the request context. Which is
the
it with plain HTML (non-struts tags):
html:option value=c:out value=${accounts.number}/c:out
value=${accounts.number}//html:option
._.
-Original Message-
From: Steltner, Joern [mailto:[EMAIL PROTECTED]
Sent: Friday, March 19, 2004 7:28 AM
To: [EMAIL PROTECTED]
Subject: access variable value
In my Struts application, postForm is of the
DynaActionForm type:
DynaActionForm postForm = ( DynaActionForm )form;
Later on, I want to save one of the fields receiver,
which is a String, in the request context. Which is
the following is the correct syntax?
request.setAttribute( Receiver,
Dear,
I'm not an expert in Struts and Java. I need some simple help:
html:select property=no_account
c:forEach var=accounts items=${Accounts} varStatus=status
html:option value=c:out
value=${accounts.number}/html:option
/c:forEach
/html:select
Everything works fine, but at ???
]
Sent: 19 March 2004 12:28
To: [EMAIL PROTECTED]
Subject: access variable value in html tag
Dear,
I'm not an expert in Struts and Java. I need some simple help:
html:select property=no_account
c:forEach var=accounts items=${Accounts} varStatus=status
html:option value=c:out
value
: Friday, March 19, 2004 7:28 AM
To: [EMAIL PROTECTED]
Subject: access variable value in html tag
Dear,
I'm not an expert in Struts and Java. I need some simple help:
html:select property=no_account
c:forEach var=accounts items=${Accounts} varStatus=status
html:option value
Users Mailing List [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 1:42 PM
Subject: RE: how to submit javascript variable of array type
Andrew,
I used the exact same approach my in my action class, the array from
request is yielding null...
Any clues..
Thanks so much
javascript variable of array type
I now have a javascript array var, and I need to submit it by a form to an
action class, how can I achieve this?
ThanksRegards
_
Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn
I now have a javascript array var, and I need to submit it by a form to an
action class, how can I achieve this?
ThanksRegards
_
MSN Explorer: http://explorer.msn.com/lccn/
-
From: Mu Mike [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 17 March 2004 10:24
To: [EMAIL PROTECTED]
Subject: how to submit javascript variable of array type
I now have a javascript array var, and I need to submit it by a form to an
action class, how can I achieve this?
ThanksRegards
Hi everyone
I am having trouble with a jsp when using a javascript variable in a
'html:link page=' tag. The variable does not seem expand to its value.
When my jsp is compiled, the code snippet below
bean:define id=procBranch type=java.lang.String
property=mendstatbrCde name=APSB
On Thu, 11 Mar 2004 12:10:21 -
Niall Pemberton [EMAIL PROTECTED] wrote:
Try
I think you mean jsp scriptlet (rather than javascript) - I'm not good
on it,
I'm a java-in-general newbie, so half the time I don't know what I mean
:)
but how about doing this (you can do without the
page in which i place this form as -
html:form action=/myAction
html:hidden property=pageNumber/
html:hidden property=numberOfRows/
/html:form
I want the 'pageNumber' and 'numberOfRows' property of the form bean in a java
variable in my page.
Is there any inbuilt functionality in Struts which i
Hi all,
I wrote a struts app with database 'driven' forms using iBatis.
For this purpose I wrote a 'SetupServlet' which creates some
LinkedHashMaps e.g. register == {username=, password=, ..}
and sets them into the Servlet Context
servletContext.setAttribute(register, register);
In the
My mail client seams to make trouble, so I repost my mail. SORRY if you
get it twice!
-Ursprüngliche Nachricht-
Von: Oliver Thiel [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 5. Februar 2004 17:06
An: '[EMAIL PROTECTED]'
Betreff: Global Variable - SetupServlet
Hi all,
I wrote
object and give it to request2... where
(should be obvious why, by now) you will see the stuff done in request1...
hth
Alexander
-Original Message-
From: Oliver Thiel [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 5. Februar 2004 17:06
To: [EMAIL PROTECTED]
Subject: Global Variable
: Global Variable - SetupServlet
Well,
you do not seem to copy the register-object. Therefor you basically
address
the same object via the servlet-context AND the request. That means that
everything you do with the object addressed in request1, you do to the
object you have in the servlet context
Message-
From: Yajamanyam Venugopal
[mailto:[EMAIL PROTECTED]
Sent: 28 January 2004 17:50
To: [EMAIL PROTECTED]
Subject: Can i access session or request object from a bean which is
Actionform variable
Hi
I have a nested bean in my ActionForm.
Is there any way to access the session
Dear Sir / Madam,Thank you for writing to [EMAIL PROTECTED] We confirm receipt of your
mail and assure you of a response shortly.To help us serve you better, we would
request you to kindly mention your account number or any reference number you may have
in your future correspondence. Kindly
}Can i access session or request
object from a bean which is Actionform variable
Dear Sir / Madam,Thank you for writing to [EMAIL PROTECTED] We confirm receipt of your
mail and assure you of a response shortly.To help us serve you better, we would
request you to kindly mention your account number
Hi
I have a nested bean in my ActionForm.
Is there any way to access the session object or HttpRequest from that nestedbean.
class MyActionForm extends ActionForm{
private Tree myTree;
}
class Tree{
I would like to access session or http request from this bean
}
Thnaks
Hi all,
Iam using jdom for xml parsingso to search a particular element in a xml iam using
XPATH and iam trying to construct XPATH expression dynamicallyis it possible to
use variables inside XPATH expressionlike
String map=europe;
XPath servletPath = XPath.newInstance(/*/*/[EMAIL
The JDOM XPath class has a method called setVariable, and variables in
XPath expressions start with the $ character. I've never played with the
JDOM XPath stuff, but I assume it's something like:
XPath xp = XPath.newInstance(/*/*/[EMAIL PROTECTED]);
xp.setVariable(map, europe);
Prashanth.S
Hi kris,
Thanks a lot...This code works for me...
Thanks once again for solving all my problem.
Prashanth
Kris Schneider [EMAIL PROTECTED] wrote:
The JDOM XPath class has a method called setVariable, and variables in
XPath expressions start with the $ character. I've never played with the
the closing single quote back (or more generally stated, I cannot have
constant+variable+constant in the link). My attempt:
html:link href=javascript:if (confirm('Do you want to delete this
event?')) location = '/EventDelete.do paramId=e paramName=EventForm
paramProperty=eventId styleClass
.
Ricky Purnomo [EMAIL PROTECTED]
14/01/2004 02:00 PM
Please respond to Struts Users Mailing List
To: Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:converting a href with variable target into html:link
I am converting a pure JSP page into Struts
Hi,
I am trying to store a value of a list into a variable on a jsp page.
the clode below writes the information pf planstarttime on the jsp page.
bean:write name=results property =planStartTime /
if i want to store the value of plan start time into an int what should i do
can anyone help
:
Hi,
I am trying to store a value of a list into a variable on a jsp page.
the clode below writes the information pf planstarttime on the jsp
page.
bean:write name=results property =planStartTime /
if i want to store the value of plan start time into an int what
should i do
can anyone help
Hi,
So far, my logic:equal tags only compare variables with constants.
I guess with doing some playing jsp with
the value attribute along the lines of
value=%= myClass.getVariable %
I could get there, but what is the recommended way?
Rgds Ralf
I have the following scriptlet code :
if(tableCounter == 1){
tableCounter = 2;
} else {
tableCounter = 1;
}
How do I achieve the above code using Struts tags (without using JSTL)?
Thanks,
CK
-
Do you Yahoo!?
New Yahoo! Photos - easier uploading and
: Thursday, December 18, 2003 1:17 PM
To: usergroup
Subject: Is there a way to set variable using Struts?
I have the following scriptlet code :
if(tableCounter == 1){
tableCounter = 2;
} else {
tableCounter = 1;
}
How do I achieve the above code using Struts tags (without using JSTL
, December 18, 2003 7:45 PM
Subject: RE: Is there a way to set variable using Struts?
I have not seen the if-else in Struts Tag.
logic:equal property=tableCounter value=1
tableCounter = 2;
/logic:equal
logic:notEqual property=tableCounter value=1
tableCounter = 1;
/logic:notEqual
Thanks
: Saturday, December 06, 2003 4:02 PM
Subject: RE: Very Troubled in Finding Ways to Pass a Variable to a Class
It is wonderful to know that there are some ActionForm
methods that holds true in the
scaffold.ProcessAction's execute() method. It gives
the hope that my problem could be resolved
-
From: Caroline Jen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 05, 2003 8:17 PM
Subject: Very Troubled in Finding Ways to Pass a Variable to a Class
I have a class FindEditorData.java. I want to pass a
vairable 'username' to this class for some processing.
This class
=hiddenField
value=%=request.getRemoteUser();%/
Good luck.
- Original Message -
From: Caroline Jen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 05, 2003 8:17 PM
Subject: Very Troubled in Finding Ways to Pass a
Variable to a Class
I have a class
PROTECTED]
Sent: Saturday, December 06, 2003 1:47 PM
To: Struts Users Mailing List
Subject: Re: Very Troubled in Finding Ways to Pass a Variable
to a Class
I know how to pass a hidden field. The problem is how
to retrieve it in my Java class. I have illustrated
that my Java class does
weirdness
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Saturday, December 06, 2003 1:47 PM
To: Struts Users Mailing List
Subject: Re: Very Troubled in Finding Ways to Pass a Variable
to a Class
I know how to pass a hidden field. The problem is how
06, 2003 1:47 PM
To: Struts Users Mailing List
Subject: Re: Very Troubled in Finding Ways to Pass
a Variable
to a Class
I know how to pass a hidden field. The problem is
how
to retrieve it in my Java class. I have
illustrated
that my Java class does not extend HttpServlet
)session.getAttribute(
EditorName );
because the FindEditorData is not a servlet and
does not extend Action.
I cannot pass a hidden variable from the JSP because I
do not know how to retrieve the value of a hidden
variable in a Java class.
Need clever ideas. Please help
You can use a variable for the value attribute just as you did: %=
refValue % as long as refValue is a variable in some scope on your page.
Note that refValue must point to a String object because the equal tag
requires this (it converts the value of the bean pointed to by the name
attribute
Hi ,
I am still not able to make out as how can i compare values from two
arraylists using logic iterate and logic equal , as none of them is a
constant and i am still getting the same error.
1) I want to know how do i get the value of the variable created using
bean:define ??? I am using
, December 03, 2003 9:52 PM
Subject: Re: Variable value in logic:equal tag Help Req
Hi ,
I am still not able to make out as how can i compare values from two
arraylists using logic iterate and logic equal , as none of them is a
constant and i am still getting the same error.
1) I want to know
told ya so... ;-)
-Original Message-
From: Shakti [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 03, 2003 11:35 AM
To: Struts Users Mailing List; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: Re: Variable value in logic:equal tag Help Req [SOLVED]
Hey that % refVar.toString
:
logic:equal name=reassignedTaId value=%= refValue %
I want to compare values from one arraylist with another using logic equal
tag but in the value= tag how i can give a variable ??
Plz Help !!!
Thanks Regards,
Shakti
- Original Message -
From: Nicolas De Loof [EMAIL PROTECTED]
To: Struts
Hi,
Does any one know how I could retrive a Java script variable between a
scriplet code
Eg:
for (var i = 0; i= (listSize-1); i++)
{
var pay = '%= orgAmcStmt %';
alert (The current Index is Before the Scriplet is: +
pay
The two are evaluated at different times, one on the server, and one on the
client
-Original Message-
From: Raghu.Ramakrishnan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 1:19 PM
To: Struts Users Mailing List
Subject: Retrieving value of java script variable in a Scriplet
, the scriptlet code and the JavaScript code are
executed at completely different times, in very different environments.
-Original Message-
From: Raghu.Ramakrishnan [mailto:[EMAIL PROTECTED]
Does any one know how I could retrive a Java script variable between a
scriplet code
Hi,
Is it possible to create a String variable out of a message resource
defined in the resources files?
bean:message doesn't seem to help.
Thanks,
Suresh
**Disclaimer
Information contained in this E-MAIL being proprietary to Wipro
, September 05, 2003 3:15 AM
To: 'Struts Users Mailing List'
Subject: Message resource as a String variable
Hi,
Is it possible to create a String variable out of a message resource
defined in the resources files?
bean:message doesn't seem to help.
Thanks,
Suresh
:
Subject: Message resource as a String variable
Hi,
Is it possible to create a String variable out of a message
resource
defined in the resources files?
bean:message doesn't seem to help.
Thanks,
Suresh
: variable in tag
Is there any way to do this:
html:button property = %=variable% blah/html:button
thanks
We come from the land of the ice and snow
With the midnight sun, where the hot springs glow
The hammer of the gods, will drive our ships to new lands
Fight the horde, Sing and cry
Is there any way to do this:
html:button property = %=variable% blah/html:button
thanks
We come from the land of the ice and snow
With the midnight sun, where the hot springs glow
The hammer of the gods, will drive our ships to new lands
Fight the horde, Sing and cry
Valhalla I am coming
Hello,
I have a logic:iterate loop listing out a lists of name++. For each line
the name is written but I want to write it only when I get a different name
than previous line. I want to do it like this:
c:set prevName = scope=request value=/
logic:iterate id=person name=personlist type=Person
This is how I'd do it using JSTL:
c:set var=prevName scope=request value=/
c:forEach var=person items=personlist
c:if test=${person.name != prevName}
c:out value=${person.name}/
/c:if
c:set target=${prevName} value=${person.name}/
/c:forEach
Hope this helps.
-Sasha
What is the equivalent to this
html:link page=editRegistration.do?action=edit/html:link
on an html:form tag
i.e, how do I define the 'action' variable on a submit button?
thanks
yan
KickStartESolutions - Intelligent Web Services
[EMAIL PROTECTED]
]
cc:
Subject:Re: how to pass a jsp variable to a javascript function
Hi Julie,
what do you get as a result of that iterate? It looks correct. Do you
have javascript errors?
Adam
[EMAIL PROTECTED] wrote:
Hi All,
Can anyone suggest how to pass a jsp variable
HI Julie
Try putting single quotes around your variable ...
Eg:
nested:select property=projectCodeId onchange= projectChange('y%=tmpIndex%')
regards
Rohit
Adam
[EMAIL PROTECTED] wrote:
Hi All,
Can anyone suggest how to pass a jsp variable to a javascript function
correctly
Hi All,
Can anyone suggest how to pass a jsp variable to a javascript function
correctly? It is in a nested:iterate block that has an indexId=tmpIndex.
what I would like to do is to have the 'y%=tmpIndex%' variable pass
into my JavaScript function.It seems like the server side %=tmpIndex
Thank you very very much!! It works perfect !!!
Julie
Steve Armstrong [EMAIL PROTECTED]
08/07/03 10:25 PM
Please respond to Struts Users Mailing List
To: Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:RE: how to pass a jsp variable
html:form method=post action=editRegistration.do
html:hidden property=action value=edit/
html:submit/
/html:form
Regards
Ross
- Original Message -
From: yan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 7:41 PM
Subject: 'action' variable on a submit button
html:submit property=action value=edit /
-Original Message-
From: yan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 7:41 PM
To: [EMAIL PROTECTED]
Subject: 'action' variable on a submit button?
What is the equivalent to this
html:link page=editRegistration.do?action
Hi Julie,
what do you get as a result of that iterate? It looks correct. Do you
have javascript errors?
Adam
[EMAIL PROTECTED] wrote:
Hi All,
Can anyone suggest how to pass a jsp variable to a javascript function
correctly? It is in a nested:iterate block that has an indexId=tmpIndex.
what I
var ybean:write name=tmpIndex/ = bean:write name=tmpIndex/;
/script
if you *really* want to do that.
2. However, your question was how do I pass a JSP variable to a Javascript
function and it looks like this is what you are attempting to do with the
next part of your code:
nested:select property
Do this: bean:write name=tmpIndex /
-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 7. August 2003 23:30
An: Struts Users Mailing List
Betreff: Re: how to pass a jsp variable to a javascript function
I don't have javascript errors
Hello.
I want to create a text box on JSP page and give it a name which is stored
in the VARIABLE say 'name'. This variable is defined in the java code on
the JSP page.
Can you please tell me the EXACT syntax ?
PLEASE NOTE THAT I WANT TO GIVE NAME TO TEXT BOX THRU MY CODE. So the name
which is
stored
in the VARIABLE say 'name'. This variable is defined in the java code
on
the JSP page.
Can you please tell me the EXACT syntax ?
PLEASE NOTE THAT I WANT TO GIVE NAME TO TEXT BOX THRU MY CODE. So the
name
is in variable and not known beforehand
Thanks a lot
Anubhav
Thanks
Anubhav
- Original Message -
From: Vinayak Birari [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 2:51 PM
Subject: Re: Using variable on JSP Page
hi Anubhav,
try out this...
%
String name = myName;
String nameValue = value;
%
html
form name=frm
PM
Subject: Re: Using variable on JSP Page
hi Anubhav,
try out this...
%
String name = myName;
String nameValue = value;
%
html
form name=frm
input type=text name = '%=name%' value='%=nameValue%'
/form
/html
cheers,
Vinayak.
[EMAIL PROTECTED] 07/22/03 01:21PM
Hello.
I
Hello..
I have a class say anubhav.class. I wish to create its object on JSP page.
Also I want to create object of the same class (anubhav)
in my Action class
Where should I place this class (I mean exactly in which folder) ?
On JSP page it is giving errors that it cant resolve this name
Anubhav,
Here is an HTML text input field with the name defined by the Java variable
'name', which is set to the value notKnownInAdvance inside the JSP page:
% String name = notKnownInAdvance; %
input type=text name=%=name%
It will render like this in the resulting HTML page:
input type=text
: Using variable on JSP Page
Hello..
I have a class say anubhav.class. I wish to create its object on JSP
page.
Also I want to create object of the same class (anubhav)
in my Action class
Where should I place this class (I mean exactly in which folder) ?
On JSP page it is giving errors
Hi,
I hope your previous prob got solved.
here is the probable solution for this query
u need to put the class file in WEB-INF\classes folder
and if u r using any package
e.g.
if the package is - com.pro;
then the class file shud be placed in those folders
(WEB-INF\classes\com\pro)
regards,
Kale [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 7:12 AM
To: Struts Users Mailing List
Subject: Re: Using variable on JSP Page
Hello..
I have a class say anubhav.class. I wish to create its object on JSP page.
Also I want to create object of the same class (anubhav)
in my Action class
Hi to all
I'have a problem with case sensitive variable into a criteria
Criteria crit = new Criteria();
crit.addEqualTo(USERNAME, username);
crit.addEqualTo(PASSWORD, password);
Query query = new QueryByCriteria(Utenti.class, crit);
Collection lista = broker.getCollectionByQuery(query
: Mario Signorelli [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 5:43 AM
To: [EMAIL PROTECTED]
Subject: how to solve case sensitive variable into a criteria
Hi to all
I'have a problem with case sensitive variable into a criteria
Criteria crit = new Criteria();
crit.addEqualTo(USERNAME
The PROBLEM is submitting this form. I haven't found a way to
make Struts
auto-allocate space in a collection (or a Map, for that matter) in an
ActionForm for the submit action. Almost every example on
this I've seen
deals with a fixed number of elements, and most of these
still focus
If you have indexed props with lists of java objects
on your form:
public Person getPerson(int index);
public void setPerson(int index, Person person);
public Collection getPersons();
and you have a html:text or whatever
html:text property=person[4].name/
then struts(beanutils really?) will do
d="id"
paramName="%= ctr %" bean:write name="feeCat"
property="cat"//html:link /tdhope this helps..--nagi---Original Message---
From: Struts Users Mailing List
Date: Friday, July 04, 2003 01:55:34 AM
To: [EMAIL PROTECTED]
'action' instead of 'page' to avoid having to specify the .do
extension.
Steve
-Original Message-
From: imran ali [mailto:[EMAIL PROTECTED]
Sent: July 3, 2003 1:25 PM
To: [EMAIL PROTECTED]
Subject: variable passing.
logic:iterate name=FormBean property=fee id=feeCat
indexId=ctr
Apparently I did misunderstand. Pick mine or nagi's answer depending on what
you meant by the id of the row selected
Steve
-Original Message-
From: Steve Raeburn [mailto:[EMAIL PROTECTED]
Sent: July 4, 2003 3:01 AM
To: Struts Users Mailing List
Subject: RE: variable passing
logic:iterate name=FormBean property=fee id=feeCat
indexId=ctr scope=request
td bean:write name=feeCat property=categoryId/ /td
td
html:link page=/foo.do bean:write name=feeCat
property=cat/
/td
I have a form FormBean and their I have a collection of other
form and that collection is named
Apologies for the x-post, I put this in the dev newsgroup by a mistake.
Ben
In this code excerpt I am defining a bean with bean:define. However, I
want to conditionally change the value.
According to the struts doc, bean:define either creates, or replaces a
previous instance of the bean as
I don't think you can have it twice on the same page.
You will have to try another way.
sandeep
--- [EMAIL PROTECTED] wrote:
Apologies for the x-post, I put this in the dev
newsgroup by a mistake.
Ben
In this code excerpt I am defining a bean with
bean:define. However, I
want to
to Struts Developers List
To: Struts Developers List [EMAIL PROTECTED]
cc:
Subject:Re: bean:define to assign a different value to an existing
variable
Oh, I also noticed that you are asking user questions on the dev list.
Move this thread over to the users
On Friday 27 June 2003 09:26, [EMAIL PROTECTED] wrote:
Hi James,
So what does the name portion of the bean:define actually do ( I've done
the RTFM but I'm still confused ).
Is the name the name of the value in pageContext() and id the scripting
value on the jsp page?
I know, the docs can be
: bean:define to assign a different value to an existing
variable
On Friday 27 June 2003 09:26, [EMAIL PROTECTED] wrote:
Hi James,
So what does the name portion of the bean:define actually do ( I've done
the RTFM but I'm still confused ).
Is the name the name of the value in pageContext() and id
On thing that wasn't mentioned.
You have to cast to (String) in the scriptlets example as define does not
set a type.
bean:message key=deleteBusiness.confirm.p1 arg0=%=(String)orgName%/
Jason Lea [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Tin Pham wrote:
Hi,
Individually
Thanks! I really appreciate your help.
I guess JSTL will eventually replace struts custom tags?
Jason Lea [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Tin Pham wrote:
Hi,
Individually these all work
deleteBusiness.confirm.p1 = Confirm company b{0}/b is correct.
On Fri, 20 Jun 2003, Tin Pham wrote:
Date: Fri, 20 Jun 2003 02:15:39 -0400
From: Tin Pham [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: i18n, passing variable into arg0 using bean:message
Thanks! I really appreciate your help
Hi,
Individually these all work
deleteBusiness.confirm.p1 = Confirm company b{0}/b is correct.
bean:message key=deleteBusiness.confirm.p1 arg0=Esso/
bean:write name=deleteOganizationForm property=organizationName
scope=session ignore=true/
Instead of using a literal of esso we want to use the
Tin Pham wrote:
Hi,
Individually these all work
deleteBusiness.confirm.p1 = Confirm company b{0}/b is correct.
bean:message key=deleteBusiness.confirm.p1 arg0=Esso/
bean:write name=deleteOganizationForm property=organizationName
scope=session ignore=true/
Instead of using a literal of esso we
cell
[EMAIL PROTECTED]
-Original Message-
From: Tin Pham [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 6:04 AM
To: [EMAIL PROTECTED]
Subject: i18n, passing variable into arg0 using bean:message
Hi,
Individually these all work
deleteBusiness.confirm.p1 = Confirm
But when i write:
Customer Name: html:text value=${custName} ... /
the Struts taglib don't reads ${custName} as a variable but as a string so
create a textbox with the string ${custName} inside!
How can i do?!
Thanx
Gio
To: Struts Users Mailing List
Subject: Variable in a Struts tag
I have the JSTL/Struts code:
c:import url=sample.xml varReader=xmlSource
x:parse var=customer xml=${xmlSource} /
/c:import
html:form ...
x:set var=custName select=$string(customer/name) /
Customer Name
} ... /
the Struts taglib don't reads ${custName} as a variable but as a string so
create a textbox with the string ${custName} inside!
How can i do?!
Thanx
Gio
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
Import the tile attribute in one of the jsp scope:
tiles.importAttribute name=OBJECT_NAME /
Then, you can use it in your tag as el expression.
If you need to use it as java variable, use tiles:useAttribute
name=.../
Check the tag syntax to know more ...
Cedric
Sloan Seaman wrote
Is there any way to get a variable passed to a tile into a custom tag within
that tile?
Example:
I pass to the tile:
tiles:put name=OBJECT_NAME value=node/
and then I want to so something like:
pantryLoading:getBarcodeTree name=${OBJECT_NAME} property=nodeList
scope=session/
--
Sloan
Hi
Is it possible to send a variable from the Action to the forward jsp
page
Søren Blidorf
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Fri, 7 Mar 2003 22:13:03 +0100
Søren Blidorf [EMAIL PROTECTED] wrote:
Is it possible to send a variable from the Action to the forward jsp
page
Just put it in request scope in your action.
request.setAttribute(nameOfTheHandle, object );
--
Rick Reumann
1 - 100 of 224 matches
Mail list logo