Might be OT, but I still think the selectbox element doesn't have a
value property - only an options collection, so -
x = document.forms[0].elements[anySelectbox].selectedIndex;
item = document.forms[0].elements[anySelectbox].options[x].value
BTW do you know if using the name directly as in
Will this work with browser's back button as well? You need to use session
scope for this to work, right? No cache allowed of course...
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: August 6, 2003 8:13 AM
To: 'Struts Users Mailing List'
???
I don't see it in my validation-rules.xml. Which version are you using?
-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: August 6, 2003 3:33 PM
To: 'Struts Users Mailing List'
Subject: Validator
I am trying to figure out the code in
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
Is it possible to apply a style to the button of the html:file tag?
Daniel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
My experience...you have to explain the consequences in layman's terms (no
geek talk, and yes, I am a computer geek). If you can, instead of
explaining why the software won't work given the requirement, and a
real-life example that the customer can relate to and understand...for
example,
If they aren't faster in performance then something is wrong. All the
JSP
rendering practically has to do is put the code as is into the Servlet
which
is a Java class. No interpretation. I haven't looked at the source but
I
am sure the optimization for rendering code for Scriptlets vs
o Firstly, Tiles assumes that a page is composed of multiple content areas
where you have one piece of content to an area. This is true for a
simplistic site
Not at all. If you use Tiles-controllers, you can dynamically create your
component-content and insert it in your layout using the
Yes, it's a big company in India and other places also. One of the leading
services company in India.. right Puneet ?
thanks
-raj
You define a style class in your style sheet. Include the .css file in your .jsp
(using link tag).
Use the required style class in html:submit styleClass=your style class name
. /
I have done it this way and it worked.
-Original Message-
From: Seshadhri Srinivasan [mailto:[EMAIL
To maintain a separation of your data layer and presentation you could
wrap an Iterator implementation around your ResultSet. That allows you to
change the persistence mechanism without any other code changing.
David
--- Ortega, Carlos [EMAIL PROTECTED] wrote:
I have a client that requires
Going by this statement that you replied to and didn't correct anything
about it:
there's a good chance that (in the future) containers
will have their own optimized versions of the JSTL-tags, there are
already some
implemented in TC5.x
It doesn't sound like the optimization is totally
Yep.
Its interesting to note that one of the major struts development tools
(Camino) was developed here in Singapore (by Scioworks Technologies). Id
imagine that once the recession is over and companies start to spend on IT
projects again we will see even more adoption adoption of struts in the
Hi;
If I have a single checkbox on my page, should I still use multibox? And if not, what
do I use?
thanks - dave
The answer to your problem is:
at the homepage of commons-logging (where you'll find the online doc) and you
don't need to join the mailing-list of commons ;-)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Yes.
:-)
-Original Message-
From: Ionel Gardais [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 2:48 AM
To: Struts Users Mailing List
Subject: force precompilation of JSPs
Hi,
I am experiencing a slow down when I access a JSP page for the first
time after I deploy e web
I downloaded the JSTL from Sun. In the tld directory there are 2 TLDs for
each taglib.
Example: c.tld and c-rt.tld
Do I need to copy both of these to my WEB-INF dir?
Do I need to reference both of these in the JSP [EMAIL PROTECTED] directive?
thx
andy
html:cancel/
Doesn't work for me, either.
-Original Message-
From: Bradley M. Handy [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 1:40 PM
To: 'Struts Users Mailing List'
Subject: RE: Cancel Button Not Working in 1.1
Please post the tag you're using to render the cancel
To subscribe to the list, send a message to:
[EMAIL PROTECTED]
- Original Message -
From: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 8:47 AM
Subject: Application Design Document -- Struts Studio - Independent opinion
Hi
If you're happy with Jdk14Logger instead of SimpleLog, that's fine. But I just
verified that you *can* get SimpleLog to work with JDK1.4. As I said, make sure
commons-logging.properties is in WEB-INF/classes, *not* a subdirectory.
Quoting Koni Roth [EMAIL PROTECTED]:
Thanks Kris
I read an
Heres one to look at:
http://www.jcorporate.com/econtent/Content.do?state=templatetemplate=2reso
urce=636db=default
(Expresso from jcorporate. (Its opensource))
Havent tried it myself. If you use it, be sure to share your experiences
with the list :-)
-Original Message-
From: Mehdi
Hi,
I really need to ability to specify multiple roles in
my tiles tags (using the role attribute) like we can
with Actions. I did a quick text search on the struts
source and it looks like maybe it's using Strut's
RequestProcessor. In case anyone has done this, I'm
just hoping someone can point
hi,
u will need a request parameter for executing a method on a
dispatch action class(not request attribute). so u can forward ur control
something like this
return new
Didn't like the JSTL Result suggestion, I guess ;-). As a JavaBean,
BasicDynaBean only exposes two properties: dynaClass and class (both are
read-only). So, that's all JSTL can get out of a BasicDynaBean instance. The
Struts tags, on the other hand, leverage BeanUtils/PropertyUtils so they're
Another debate. Your debate was to make me feel like I was doing something
wrong by posting my opinion. There was no debate.
The tags do speak for themselves and if you think that $var which Java
allows but is NEVER used is acceptable syntax for a tag then that speaks
volumes as well.
Never
hah. Thats nothing!
Wait till you try coding it without hidden variables AND standing upside
down in a hammock while playing bagpipes at the same time.
Using .net
On a 486
with no monitor
...ah Friday is that BEER I can smell?
hmmm I know
how about tacking it on as a query parameter to the
Thanks Yan,
Erez
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Yann Cbron
Sent: Sunday, August 10, 2003 2:26 PM
To: [EMAIL PROTECTED]
Subject: Re: simple JSTL question
1) How do I subscribe to the JSTL mailing list? (I rather ask simple
dumb questions than stay
David Thielen wrote:
I have a form with a submit, reset, and update button. How do I handle
control
of the update button (go to a different action)?
How is submit different from update? And reset depends on how you do it...
A typical reset button on a form is client-side, it just puts the
Is there a reason you don't want to put the content into a database?
The content writers are remote, so I would have to create web access to a database.
Too much work. Plus, I don't think that the content lends itself to databases.
Gary
Gary Kephart| New Century Mortgage
My experience...you have to explain the consequences in
layman's terms (no
geek talk, and yes, I am a computer geek). If you can, instead of
explaining why the software won't work given the requirement, and a
real-life example that the customer can relate to and understand...for
example,
Hi yan,
I would be inclined to keep-away from ISPs who do not have good and
*extensively* proven experience with JSP and only go with those who are
specifically recommended to you for JSP. I fell-out with a UK-based ISP
(servers hosted in the US/Canada) in the last 6 months after
--- Bailey, Shane C. [EMAIL PROTECTED] wrote:
Don't get me wrong, I think scriptlets are ugly and shouldn't be used
but
like I said JSTL is not da bomb and if already know Struts tags I
wouldn't
go rewriting my code to JSTL until I have seen what JSF and any new
technology near by has in
You're right it is a good option.
Thanks,
Erez
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 3:00 PM
To: Struts Users Mailing List
Subject: Re: Actions Best Practice
That's not necessary. In the action mapping, you can specify the action
This is standard JavaBean behavior. Regardless, I encourage you to use
lastName instead because lName is rather ugly and confusing.
David
--- Wes Rood [EMAIL PROTECTED] wrote:
I have an object as follows
public class Contact {
...
private String lName; // the contact's last name
Check out the June issue of Java Developer's Journal (vol. 8, issue 6),
page 8. I agree 100 percent with Joseph Ottinger. Things have gotten
entirely out of hand.
http://sys-con.com/java/ - content:editorial - vol. 8, issue 6
Mark
Hi Hue,
thanks for the comprehensive run-down on hosting. Perhaps you should get
the company put on
http://jakarta.apache.org/struts/resources/hosts.html
for the record. Actually it's a shame that there are no comments about
the current hosting companies on that list.
By the way Hue, you
Hi ~~
Why you have to send one mail so many times
I received 3 copy of your mail
Do you have problem with your mail system ..
Regards
Rohit
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 09, 2003 2:20 PM
To: [EMAIL PROTECTED]
Subject:
I forgot to add the line of code in the edit method that inserts into form
bean.
Also, I should have assumed that you are going to re-use the sectionEdit...
sectionEdit_execute()
{
int id = form.getId();
if(id==0)
{
try{
Integer
Hey everyone,
I've got some nice custom validations working using the validation
framework. However, I'm having a hard time with one seemingly imple issue.
In the validation method in my custom validation class, how do I get the
value of the field I'm validating?
I found one example that did
script language=javascript type=text/javascript
!--
function doSubmit() {
var url = 'html:rewrite page=/search.do /?foo=bar';
}
...or if your function isn't in the html page
function doSubmit(url) {
}
onSomeEvent=doSubmit('html:rewrite page=/serach.do /')
Hi Adam,
thanks for the comprehensive run-down on hosting. Perhaps you should get
the company put on
http://jakarta.apache.org/struts/resources/hosts.html
Yes, maybe - although they're not dedicated tomcat hosting.
By the way Hue, you neglected to state one very important fact - how
much
Hi,
I am trying to find a Web host for my JSP applications, but I am finding it very
difficult locating a suitable host.
Anyone know of any good Web hosting vendors who support MySQl, Apache server and the
Apache Tomcat servlet container? I prefer a UK based host as this is where I reside.
Sorry Mark, could you please rewrite this email trying to be understandable
for an EOFL?
Thank you very much :)
Marco
- Original Message -
From: Mark Lowe [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, August 10, 2003 6:09 PM
Subject: Re: JSTL and
Scriptlets are more powerful (you can do ANYTHING Java can do), faster, is a
standard (it is the Java language you know) and if you are going to spend
time learning a new language (${var} == pooPoo) then you would be better
off learning Java (assuming you don't already know it) cause then you
Is there a way to use vars in validation.xml field ... that are not
constants in a way that the javascript will use these values?
Thanks,
Erez
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
Thanks for the advice Hue, you have given me a lot to go on there - much
appreciated.
Do memset.com actually support Apache/Tomcat? I couldn't quite see a
reference to it under their products on there site.
I have been considering http://www.nameonthe.net or
http://www.joshuainternet.com
thank you very very much - dave
- Original Message -
From: Yansheng Lin [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 12:43 PM
Subject: RE: single checkbox - still use html:multibox?
Oh I meant taglib api ref, not the javadoc ref.
I know that. But i am looking for a simple example or tutorial particularly for tiles.
If anyone knows, let me know.
Bailey, Shane C. [EMAIL PROTECTED] wrote:
You are practically there; you know Java and XML and that's all you need to
know with Tiles.
Are you telling me that ${customer.name} it's enough for Struts-el to look
for a customer bean stored in any scope and process a getName() method? If
so, that's great.
Would it be a good approach to have taglibs, jstl and struts from their
respective bundles? I downloaded taglibs (complete
IMHO, the best thing to do is to create a Plugin, where you'll store all
what you need to. The plugin init method is executed once while the servlet
container loads the webapp.
http://jakarta.apache.org/struts/api/org/apache/struts/action/PlugIn.html
Thomas
At 16:40 05/08/2003, you wrote:
On Sun, 10 Aug 2003, Marco Tedone wrote:
Date: Sun, 10 Aug 2003 23:33:14 +0100
From: Marco Tedone [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: JSTL and Struts-el
Are you telling me that ${customer.name}
I guess my previous example wasn't clearly formatted, but it certainly wasn't
supposed to illustrate executing a query from a JSP. Here's a modified example:
Java (e.g. an action):
--
import javax.servlet.jsp.jstl.sql.Result;
import javax.servlet.jsp.jstl.sql.ResultSupport;
The only thing you cannot do is having a mixture of this solution
(having the action-mapping parameter set to the 'init' or else) and the
one of DispatchAction class that keeps all the operation under the same
roof (class).
Erez
-Original Message-
From: Adam Hardy [mailto:[EMAIL
I am trying to figure out the code in struts.validator.FieldsCheck.java
in order to write one of my own.
Can someone explain what the purpose of the following lines of code in
all of the validateXXX() in Struts:
validateIntRange (...) {
if (isString(bean)) {
Thanks for the response Marty,
I am using Tomcat 4.1.24, and have no problem generally putting these
files into the /jsp folder, its only when I put them into the /jsp/prop
folder that there are problems.
Where can I find out what the rules are for folders to hold JSPs for
either struts, or
I don't think you need to put .do.
Actually in the web.xml file you have following code
servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping
here you can configure as you want you can configure *.yup also it works.
Regards
Rohit
When you forward from one action to another, Struts treats it just like
a new request from the client. If a parameter was used to populate an
ActionForm from one action, that same parameter will be used to populate
every other action in the chain that uses the same ActionForm in the
same
Hi Chris,
I posted a response to this recently:
http://marc.theaimsgroup.com/?l=struts-userm=106018678002719w=2
-Original Message-
From: Chris Boulter [mailto:[EMAIL PROTECTED]
Sent: 06 August 2003 19:27
To: [EMAIL PROTECTED]
Subject: Avoiding jsessionid appending in a redirect
My experience is the same as yours. That while the .do can be omitted
in the action definition, it may not be omitted in the forward. FWIW, I
think this is proper behavior. Certainly if you html:link to the forward
your html pages will be do-less. Also, you can change to another scheme
(e.g.,
I'm a moron - I found the overloaded method with HttpServletRequest.
So, is the way to tie to a session bean to do a
HttpServletRequest.getSession().get/setAttribute()?
thanks - dave
- Original Message -
From: David Thielen [EMAIL PROTECTED]
To: Struts-Users [EMAIL PROTECTED]
Sent:
Hi all,
In my struts application I need to check if some information is still
valid. If not then I need to redirect the user to some other page.
The page I need to send the user to is not static. So I need to calculate
to which page the user needs to be redirected.
In my Action class I would
so u both are completing last answer
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 09, 2003 1:09 PM
To: 'Struts Users Mailing List'
Subject: RE: [FRIDAY] [JOKE] Here is an old one
The way I remember that joke, the word wasn't Mating ;)
--
My thanks go to both Wendy and Shane on this one. I found a third way to get around
it, which is closest to my original intent:
I pointed the global forward to the jsp page called test.jsp (instead of directly at
the action!). The jsp page then links correctly to the action using html:link,
Hello everybody : is it possible with struts tag libraries to
retrive dynamically for example pictures from a database and place them
on the jsp page on the fly
And also another question : I would like a user to be able to select
from a page certain file names ( dynamicaly generated ) and
If I knew then I would be selling you some awesome piece of software that
solved all your problems, now wouldn't I?
I'm trying state my opinion and learn (from replies).
About the only thing in that statement that I know is verifiably screwed up
is that Ant has no $var and I apologized and
65 matches
Mail list logo