2) actually assigns the value ""
1) gets the value of the property from the formbean if it has been assigned in
the formbean.
You may have an action that populates the form by hitting a database, loading
the data in the form
and the forwarding to your current page ie before editing a record.
mas
E
Emi Lu wrote:
2) actually assigns the value ""
1) gets the value of the property from the formbean if it has been
assigned in the formbean.
You may have an action that populates the form by hitting a database,
loading the data in the form
and the forwarding to your current page ie before editi
I am not really sure what you are doing?? If you need a datasource and have set
it up appropriately
in your context.xml see
http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html(for
tomcat 6.0)
you get the datasource doing something like this:
Context initContext =
Hi Mas,
2) actually assigns the value ""
1) gets the value of the property from the formbean if it has been assigned in
the formbean.
You may have an action that populates the form by hitting a database, loading
the data in the form
and the forwarding to your current page ie before editing a r
2) actually assigns the value ""
1) gets the value of the property from the formbean if it has been assigned in
the formbean.
You may have an action that populates the form by hitting a database, loading
the data in the form
and the forwarding to your current page ie before editing a record.
mas
It's while return value in operation en ActionStrust y parameter in IN
-Mensaje original-
De: Emi Lu [mailto:em...@encs.concordia.ca]
Enviado el: Jueves, 05 de Marzo de 2009 10:18 a.m.
Para: Struts Users Mailing List
Asunto: struts1 - html:hidden tag
Good morning,
A question
Good morning,
A question about struts1 tag.
May I know the differences between (1) vs. (2) please?
(1)
(2)
When I load value from popup windows, it seems that default value will
be setup on (1); while (2) always return value="".
Could someone let me know why? I am lost why default value wi
class="Text" />
class="SearchBTN" value="Search" />
Advanced Search
displays properly..if I change
- Original Message - From: "Dimitris Mouchritsas"
<[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent:
" value="Search" />
Advanced Search
displays properly..if I change
- Original Message -
From: "Dimitris Mouchritsas" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Tuesday, June 2
2008/6/24 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
> BTW is there an option in struts-config.xml (for v.1.3.8 at least) or
> somewhere else to notify struts to use xhtml compatible elements
> everywhere? So as to avoid having in every jsp?
I think you have to start a new thread, or no one will n
Dimitris Mouchritsas wrote:
Well, one solution is to move the tld's to a directory and define them
in web.xml. This seems to be working.
However I've got some strange problems. For example in a tile I render
a link for advanced search:
<%@ taglib uri="http://struts.apache.org/tags-html"; prefi
Well, one solution is to move the tld's to a directory and define them
in web.xml. This seems to be working.
However I've got some strange problems. For example in a tile I render a
link for advanced search:
<%@ taglib uri="http://struts.apache.org/tags-html"; prefix="html"%>
<%@ taglib uri="ht
2008/6/24 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
> Antonio Petrelli wrote:
>>
>> 2008/6/24 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
>>
>>>
>>> So, since they're in the jars I don't need to declare the tld's in
>>> web.xml
>>> right?
>>>
>>
>> Right, in fact I'm struggling to understand what is
Antonio Petrelli wrote:
2008/6/24 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
So, since they're in the jars I don't need to declare the tld's in web.xml
right?
Right, in fact I'm struggling to understand what is the problem, too :-D
Antonio
-
2008/6/24 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
> So, since they're in the jars I don't need to declare the tld's in web.xml
> right?
Right, in fact I'm struggling to understand what is the problem, too :-D
Antonio
-
To unsu
Antonio Petrelli wrote:
2008/6/24 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
OracleJSP: oracle.jsp.parse.JspParseException:
/WEB-INF/jsp/common/layout.jsp: Line # 2, <%@ taglib
uri="http://struts.apache.org/tags-tiles"; prefix="t" %>
Error: Unable to load taghandler class: http://struts.apache
2008/6/24 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
> OracleJSP: oracle.jsp.parse.JspParseException:
> /WEB-INF/jsp/common/layout.jsp: Line # 2, <%@ taglib
> uri="http://struts.apache.org/tags-tiles"; prefix="t" %>
> Error: Unable to load taghandler class: http://struts.apache.org/tags-tiles
> ...
Antonio Petrelli wrote:
2008/6/24 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
I get a 500 Internal server error when trying to access the home page.
Can I see the stack trace?
Antonio
-
To unsubscribe, e-mail: [EMAIL P
2008/6/24 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
> I get a 500 Internal server error when trying to access the home page.
Can I see the stack trace?
Antonio
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Antonio Petrelli wrote:
2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
A tile definition. I've tried a few combinations, but none is working. For
example if I use
I get no exception but a blank page is returned.
I suppose that Tiles has not been configured corre
2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
> A tile definition. I've tried a few combinations, but none is working. For
> example if I use
>
> path="/home"
> type="be.fedict.etendering.web.actions.common.HomeAction">
>
>
>
> I get no exception b
Antonio Petrelli wrote:
2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
What exactly is this "home"?
Antonio
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
> path="/home"
> forward="home" />
What exactly is this "home"?
Antonio
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
Dimitris Mouchritsas wrote:
Antonio Petrelli wrote:
2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
One thing to note though is we're
using xdoclet 1.2.3 to
create struts-config.xml for us. As I understand this version of
xdoclet
supports up to struts 1.2.x.
Could this be the culprit?
Antonio Petrelli wrote:
2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
One thing to note though is we're
using xdoclet 1.2.3 to
create struts-config.xml for us. As I understand this version of xdoclet
supports up to struts 1.2.x.
Could this be the culprit?
Probably. According to t
2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
> One thing to note though is we're
> using xdoclet 1.2.3 to
> create struts-config.xml for us. As I understand this version of xdoclet
> supports up to struts 1.2.x.
> Could this be the culprit?
Probably. According to the source file:
http://svn
Antonio Petrelli wrote:
2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
Caused by: java.lang.NullPointerException
at
org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113)
Mmm... Just a shot in the dark, did you put the commons-chain.jar
2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
> Caused by: java.lang.NullPointerException
> at
> org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113)
Mmm... Just a shot in the dark, did you put the commons-chain.jar in
your classpath?
Antonio
-
Antonio Petrelli wrote:
2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
Thanks for the info for the form tag. The problem is we use tiles, so
html:xhtml is not really an option.
Why? does not produce any markup code, only tells
Struts tags to render in XHTML.
Antonio
---
2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
> Thanks for the info for the form tag. The problem is we use tiles, so
> html:xhtml is not really an option.
Why? does not produce any markup code, only tells
Struts tags to render in XHTML.
Antonio
---
Antonio Petrelli wrote:
2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
Notice that it doesn't close the tag properly like /> as required by xhtml.
Is there a way to tell struts to close properly for xhtml or we have to
upgrade?
Use before the first tag of every JSP page.
BTW I s
2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
> Notice that it doesn't close the tag properly like /> as required by xhtml.
> Is there a way to tell struts to close properly for xhtml or we have to
> upgrade?
Use before the first tag of every JSP page.
BTW I suggest to upgrade to Struts 1.
Hi all,
We're using struts 1.2.4 in our project and we just noticed something;
When rendering a element the html produced is:
Notice that it doesn't close the tag properly like /> as required by xhtml. Is there a way to
tell struts to close properly for xhtml or we have to upgrade?
Thanks
Shanna7463 wrote:
Is it possible to assign a collection to a html:hidden component, rather than
a string?
Basically my webapp allows the user to select different options for access
control. I would like to add these selections to a collection and pass that
to my Action class.
A hidden
Is it possible to assign a collection to a html:hidden component, rather than
a string?
Basically my webapp allows the user to select different options for access
control. I would like to add these selections to a collection and pass that
to my Action class.
Thanks inadvance!!
-- Shanna
Hi,
Use plain told HTML and use your script tag.
Thanks,
Nuwan
- Original Message -
From: "john lee" <[EMAIL PROTECTED]>
To:
Sent: Sunday, June 10, 2007 3:49 PM
Subject: html:hidden
How to assaign value to html:hidden field?
request.getAttribute("logini
it's because setValue() for the taglib need a String.
try
" >
Mike
john lee a écrit :
How to assaign value to html:hidden field?
>
but give me the error message, saying need double quote, after i put double quote before "<%..", cause jsp compile error,
On 6/10/07, john lee <[EMAIL PROTECTED]> wrote:
How to assaign value to html:hidden field?
>
but give me the error message, saying need double quote, after i put double quote before
"<%..", cause jsp compile error,
Which error did it cause?
any clue?
How to assaign value to html:hidden field?
>
but give me the error message, saying need double quote, after i put double
quote before "<%..", cause jsp compile error,
any clue?
tks in advance
john
-
Sucker-punch
On 9/21/06, Heidy Gutiérrez Guzmán <[EMAIL PROTECTED]> wrote:
Hi
I need to put value to an input hidden field, from a java script function.
I call the java script function from an onclick event of html:submit field
I have debuged that process and input hidden field does'nt take value.
Always ha
Hi
I need to put value to an input hidden field, from a java script function.
I call the java script function from an onclick event of html:submit field
I have debuged that process and input hidden field does'nt take value.
Always have the default value.
This is my way to do this
***This i
:[EMAIL PROTECTED]
Sent: Sat 16/09/2006 6:49 AM
To: Struts Users Mailing List
Subject: set value to an html:hidden in jsp page
Hi
I need to put value to an field in the own page jsp.
Thanks
**
This message is intended for the
Hi
I need to put value to an field in the own page jsp.
Thanks
"/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
Test
Hidden Test
I am not sure what to p
taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
Test
Hidden Test
I am not sure what to put in the "property" attribute in the html:hidden
area so
that i
apache.struts.action.DynaActionForm">
> >
> >
> >
> >
> >> type="com.test.MyAction"
> > parameter="method"
> > name="myForm"
> > scope="req
;
>
>
>
> # JSP Page
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"
t;%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
Test
Hidden Test
I am not sure what to put in the "property" attribute in the html:hidden area so
that it will
Thank you all :"), my problem is solved!
- Original Message -
From: "Mark Benussi" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'"
Sent: Thursday, March 31, 2005 12:05 AM
Subject: RE: [HELP] How can javascript reference to 1 html:hidd
ery, Tim - BLS [mailto:[EMAIL PROTECTED]
Sent: 30 March 2005 16:50
To: 'Struts Users Mailing List'
Subject: RE: [HELP] How can javascript reference to 1 html:hidden tag or
html:text ???
> I don't know how javascript reference to 1 html:hidden tag or
> html:text ta
> I don't know how javascript reference to 1 html:hidden tag or
> html:text tag of struts tag lib and change their value.
> for example:
> I have
document.getElementsByName("userId")[0].value="whatever";
If you use the "styleId" attribute,
Hi,
I don't know how javascript reference to 1 html:hidden tag or html:text tag of
struts tag lib and change their value.
for example:
I have
How can I change the value of tag above by javascript.
Maybe document.all.userId.value="somevalue" <-- like this ???
help me :(
Note that is just enough to populate
the text box. The in the body of doesn't do
anything.
On Wed, 12 Jan 2005 23:34:27 -0800 (PST), Manisha Sathe
<[EMAIL PROTECTED]> wrote:
> Following i could get it but now i want this inside html hidden form tag.
>
>
>
>
>
> But If i use hidden tag t
Following i could get it but now i want this inside html hidden form tag.
But If i use hidden tag then gives me error saying hidden can not have value.
How can i put my bean data in ?
regards
Manisha
Janarthan Sathiamurthy <[EMAIL PROTECTED]> wrote:
Hi,
If you have a bean by name myB
the new Struts action.
>
> Regards,
> David
>
> -Original Message-
> From: Rosemary Philip [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 18, 2004 9:13 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: html:hidden values are null
>
> Yes
ubmitted to the new Struts action.
Regards,
David
-Original Message-
From: Rosemary Philip [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 9:13 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: html:hidden values are null
Yes, the html:hidden is within an html:form. Also when I
Yes, the html:hidden is within an html:form. Also when I do a view
source on the page, I can see the values of the hidden variables
correctly.
but when I trace them to action class, they are null, all of them.
another thing. this is what my html:form tag in my first jsp page says.
but in the
Are you positive you have the html:hidden tag
within the appropriate html:form tag? What is
your html:form tag for either JSP?
Regards,
David
-Original Message-
From: Rosemary Philip [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 17, 2004 10:48 PM
To: [EMAIL PROTECTED]
Subject
I am having a problem getting values to another page when I try to use
html:hidden.
I have a list of employee objects in a page. on clicking on an
employee from the list, the next page should show me more details on
the employee.
for getting the values across, i am trying to use html:hidden. but
04 2:31 PM
Subject: Re: Setting html:hidden property using JSTL
> James
>
> Do you include the HTML tag library within the jsp page? It needs to go
> at the top and look like this:
>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
>
>
ECTED]
Subject: RE: Setting html:hidden property using JSTL
Assuming you are using the Struts-EL tag library:
Try:
robert
> -Original Message-
> From: Tom McCobb [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 24, 2004 12:05 PM
> To: Struts Users Mailing List
> Subject: RE:
Tom McCobb wrote:
I am having the same nagging problem in JBoss3.2.3/Tomcat4.1.
---this works just fine
The last line always renders as '' both in
the Form property and the request parameter.
I checked versions, etc. as detailed earlier in this thread. I'm stumped.
I'm using J
gt;' both in
> > the Form property and the request parameter.
> >
> > I checked versions, etc. as detailed earlier in this
> > thread. I'm stumped.
> >
> > Tom McC.
> >
> > -Original Message-
> > From: Karr, David [mailto:[EMAIL
;
> Tom McC.
>
> -Original Message-
> From: Karr, David [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 24, 2004 11:00 AM
> To: Struts Users Mailing List
> Subject: RE: Setting html:hidden property using JSTL
>
>
> What container are you using? If this
Assuming you are using the Struts-EL tag library:
Try:
robert
> -Original Message-
> From: Tom McCobb [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 24, 2004 12:05 PM
> To: Struts Users Mailing List
> Subject: RE: Setting html:hidden property using JSTL
>
>
&
gt; > All you should have to do is add (or include)
> > > something like this to the
> > > top of your .jsp page.
> > >
> > > <%-- JSTL Standard Tags --%>
> > > <%@ taglib
> uri="http://java.sun.com/jsp/jstl/core";
> >
umped.
Tom McC.
-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 24, 2004 11:00 AM
To: Struts Users Mailing List
Subject: RE: Setting html:hidden property using JSTL
What container are you using? If this is Resin, this has been known to
cause problems because of the
t;%-- JSTL Standard Tags --%>
> > <%@ taglib uri="http://java.sun.com/jsp/jstl/core";
> > prefix="c" %>
> > <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt";
> > prefix="fmt" %>
> >
> > If your container does n
.4 spec,
> then you will need
> to include the appropriate .tld and .jar files and
> update your web.xml
> file to reference the appropriate .tld file(s).
>
> robert
>
>
>
>
>
> > -Original Message-
> > From: klute [mailto:[EMAIL PROTECTED]
>
Right. Thanks for the clarification, Kris.
robert
> -Original Message-
> From: Kris Schneider [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 24, 2004 10:39 AM
> To: Struts Users Mailing List
> Subject: RE: Setting html:hidden property using JSTL
>
>
> Smal
tld and .jar files and update your web.xml
> file to reference the appropriate .tld file(s).
>
> robert
>
>
>
>
>
> > -Original Message-
> > From: klute [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, June 24, 2004 10:01 AM
> > To: Strut
appropriate .tld and .jar files and update your web.xml
file to reference the appropriate .tld file(s).
robert
> -Original Message-
> From: klute [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 24, 2004 10:01 AM
> To: Struts Users Mailing List
> Subject: Re: Setting html:h
Hello All,
I *really* appreciate your help. Because of a
hard-pressing work deadline, i actually gave up on
getting that to work using JSTL and ended up using the
ugly "/>
instead.
I'll definitely come back to JSTL at a later time
since i consider that to be a proper way of doing this
sort of t
.
robert
> -Original Message-
> From: Rick Reumann [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 23, 2004 3:23 PM
> To: Struts Users Mailing List
> Subject: Re: Setting html:hidden property using JSTL
>
>
> klute wrote:
>
> > Yes, the struts-el.jar
klute wrote:
Yes, the struts-el.jar is in WEB-INF/lib
--- Rick Reumann <[EMAIL PROTECTED]> wrote:
klute wrote:
This are the tagligs i am importing on this page:
<%@ taglib uri="/WEB-INF/struts-bean.tld"
prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld"
prefix="html" %>
<%@ taglib uri="/W
Yes, the struts-el.jar is in WEB-INF/lib
--- Rick Reumann <[EMAIL PROTECTED]> wrote:
> klute wrote:
>
> > > value="${contentId}">
> >
> > This are the tagligs i am importing on this page:
> > <%@ taglib uri="/WEB-INF/struts-bean.tld"
> > prefix="bean" %>
> > <%@ taglib uri="/WEB-INF/struts-html
klute wrote:
This are the tagligs i am importing on this page:
<%@ taglib uri="/WEB-INF/struts-bean.tld"
prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld"
prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-html-el.tld"
prefix="html-el" %>
<%@ taglib uri="http://java.sun.com/jstl/core";
pref
> I just started experimenting with jstl and i'd like to
> set a hidden field on MyActionForm using a value
> (contentId) available as an attribute on the request.
> Basically, i'd like to do something like this:
>
> "/>
>
> Which does not work.
No, it won't. You're trying to nest tags, and
Thanks a lot to all who responded!
So i tried using html-el using the syntax Rick
suggested:
The resulting html contains:
This are the tagligs i am importing on this page:
<%@ taglib uri="/WEB-INF/struts-bean.tld"
prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld"
prefix="html" %>
<%
klute wrote:
Hi All,
I just started experimenting with jstl and i'd like to
set a hidden field on MyActionForm using a value
(contentId) available as an attribute on the request.
Basically, i'd like to do something like this:
"/>
Which does not work. Should i be using EL syntax
instead? And wh
ib"
directory inside the struts directory. But in this case the procedure in
order to use them is just to complicate.
BR
/Amleto
-Messaggio originale-
Da: klute [mailto:[EMAIL PROTECTED]
Inviato: mercoledì 23 giugno 2004 19.25
A: Struts Users Mailing List
Oggetto: Setting html:hidd
18:25
Please respond to "Struts Users Mailing List"
To: Struts Users Mailing List <[EMAIL PROTECTED]>
cc:
Subject:Setting html:hidden property using JSTL
Hi All,
I just started experimenting with jstl and i'd like to
set a hidden field on
L PROTECTED]>
cc:
Subject:Setting html:hidden property using JSTL
Hi All,
I just started experimenting with jstl and i'd like to
set a hidden field on MyActionForm using a value
(contentId) available as an attribute on the request.
Basically, i'd like to do somet
ad? And what would the correct syntax be?
I did check that returns
a valid value so my confusion is just passing it as a
value to the html:hidden property.
Any help is greatly appreciated.
James
__
Do you Yahoo!?
New and Improved Yahoo! Mail -
84 matches
Mail list logo