I have been using tiles for a while. All of a sudden,
a piece of "title" tile in one of my web pages behaves
weird; e.g. all others work fine except this one. It
is 2:30 am in the morning. Maybe, I am not sober
enough to see the problem:
In my application.properties, I have:
#-- message pages
The Problem is datatabse pool, due to bug in sysdudo plug in database connection
pool is not mounted. So I added commons-pool.jar in path and it started working fine.
-Jignesh
On Fri, 25 Jun 2004 11:44 , [EMAIL PROTECTED] sent:
>Looks to me like something in doStartTag is looking for something
Caroline Jen wrote:
I was told that JSTL can convert most of the Java code
in JSP.
Whoever told you that should be shot! It's not that JSTL is deficient,
its just sort of like saying "I have heard that a honeydew melon can be
used instead of a canteloupe." Theyr'e both round fruits, but they tast
My apologies if you received multiple copies of this email. We are having
mail server troubles here.
--Pietro
- Original Message -
From: "Pietro Dansk" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, June 25, 2004 1:54 PM
Subject: Is there anyway an
I have a form which appears on multiple pages. The form leads to an action
which changes a simple property. After doing this, I want the action to
simply lead back to the individual page from which it came. I can't register
a single "input" within the action tag of the struts-config.xml file
(b
These are the bounce backs we are getting, Martin, if you did not get the
emails.
Envelope-to: [EMAIL PROTECTED]
Subject: Undeliverable: Re: Converting Java Code in JSP to JSTL
Date: Fri, 25 Jun 2004 20:33:48 -0400
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
Thread-Topic: Converting Java Code in
Looks like a test, Caroline!
At 05:20 PM 6/25/2004, Caroline Jen wrote:
I was told that JSTL can convert most of the Java code
in JSP. I still have some problem with initializing
variables and if statments; for example, I do not know
how to write in JSTL of the following:
1. int i = 0;
2. i++;
3.
I was told that JSTL can convert most of the Java code
in JSP. I still have some problem with initializing
variables and if statments; for example, I do not know
how to write in JSTL of the following:
1. int i = 0;
2. i++;
3. String prevArticle = null;
4. if ( numberOfPosts - 1 == 1 ) {}
5. if (
> From: Ashwin D [mailto:[EMAIL PROTECTED]
> Our application resides on a machine which does not
> have a direct connection to the internet. So, I have
> changed all the references to dtds to be on the local
> machine.
If you leave the dtds alone, and leave them inside the .jar files, and
refer t
is this for all forms you submit`?
did you take a look at the sample-application?
it works fine for me, with struts1.1 and RI from sun
(version 1.1)
Cheers,
> -Original Message-
> From: Josh Porter [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 25, 2004 9:03 PM
> To: Struts Users Mailin
I have two favorites
a) The JBoss IDE PlugIn for it's XDoclet support of Struts
b) The Sysdeo Tomcat plug-In to control Tomcat
Occasionally, I'll use
c) "Hibernate Synchronizer"
d) "Hibernator"
e) the http://www.pnehrer.com/ "RSS" module
f) the Brosinski regex tester
http://brosinski.com/stephan/
Hi,
Our application resides on a machine which does not
have a direct connection to the internet. So, I have
changed all the references to dtds to be on the local
machine.
The struts & the tiles config file reference their
dtds in the same directory.
This works fine with Struts. However, Tile
> From: Pietro Dansk [mailto:[EMAIL PROTECTED]
> I want this form to simply return to the page or
> action that it was
> previously at. What is the most elegant way to do this?
In Struts, everything goes forward so the "go back where you came from"
problem comes up repeatedly. The 'coming from'
That's correct. Don't need the method either if you want the default.
Probably easier to see what's going on if you hit the page with your browser and do a
view source,
you'll see how all the tags render to html that way.
> -Original Message-
> From: Adam Lipscombe [mailto:[EMAIL PROTEC
Thanks Jim,
If I understand you correctly, if I have this config in struts-config:
Then I can use "javascript:document.helpActionForm.submit()" in the jsp file
to submit a form like this:
Is my understanding correct?
TIA - Adam
-Original Message-
From: Jim Barrows [mail
2 ways off the top of my head:
1)
2) -Original Message-
> From: Pietro Dansk [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 25, 2004 2:13 PM
> To: Struts Users Mailing List
> Subject: actions which return dynamically based on input
>
>
> I have a form which appears on multiple pages. Th
I have a form which appears on multiple pages. The form leads to an action
which changes a simple property. After doing this, I want the action to
simply lead back to the individual page from which it came. I can't register
a single "input" within the action tag of the struts-config.xml file
(becau
Struts works in layers.
You might want to create 2 DAO objects to unit test.
1 to return a list of teams.
The other DAO takes an argument of the team ID and returns a list of
memners of the team.
(Many DAO's out there, try iBatis.com).
Once you have that unit tested, you can write an action that
> <%-- Nested tag way Notice how much less to write out--%>
>
>
> Division:
>
> --- Department:
>
>
Thanks for the code snippet Rick. It helped trim down a lot of code.
Whenever I would try and submit the form I was getting
BeanUtil.populate errors. I tracke
Sounds like you should be setting the FormBean to be in session scope
for the Actions -- as far as the "input" attribute being a problem -- I
really don't understand. Perhaps you could include more information :)
Asif Rahman wrote:
I have a few jsp pages that use almost the same information. I
Use different action mappings with same form bean.
Each action mapping can have a different input attribute value
for validation.
robert
> -Original Message-
> From: Asif Rahman [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 25, 2004 3:52 PM
> To: Struts Users Mailing List
> Subject: Is i
Hi all.
I've got four fields (checkbox control) on my jsp page that I need to
validate. All that needs to pass the validation is at least one of them
to be checked. I've tried using 'validwhen' but I can only get it to
work for two fields...if I include the third field (or the fourth) in my
test
I have a few jsp pages that use almost the same information. I am using a formbean
for one of them right now for validation. Of course I'd like to re-use the this same
bean with the other jsp pages too since the info is so similar. But here's the catch,
theres only one "input" field in an act
> From: Jamison Roberts [mailto:[EMAIL PROTECTED]
> (and I can't figure out how to populate a select box
> from a Vector or other sort of list).
The tag will do it for you. ;)
Put an ArrayList of the teams in request (or session or application)
scope, and it will
It almost seems like you're coming at this from the wrong end, with the page calling
the action. It's the other way around. I know that with php and asp development is
page centric. In JSP it's action centric. The page is just a display.
Something like this is what you want I think:
/context/
A general design for this sort of thing would be to load your collection
of teams at application start up and put them into the ServletContext.
Define an action for displaying the teams page and an action for
processing the user input after they have selected a team. Define your
actions to forward
I get the following exception:
javax.servlet.ServletException: java.lang.NullPointerException
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:209)
with root cause listed as
javax.faces.el.EvaluationException: java.lang.NullPointerException
at com.sun.faces.el.Value
A nice combination of tools/libraries we use is the display tag library to
display tabular data in a jsp page and iBATIS SQL Maps for data access.
Both are widely used as far as I know.
The iBATIS site also has a JPetStore demo based on Struts which provides a
great example (source code included)
Do you get any exceptions on submitting a form?
regards,
> -Original Message-
> From: Josh Porter [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 24, 2004 11:37 PM
> To: [EMAIL PROTECTED]
> Subject: tag in Struts-Faces
>
>
> I am trying to develop a web application using Struts, Tile
Hi Paul,
Thanks for the help. I will try that.
Regards
Jim
- Original Message -
From: "Paul McCulloch" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, June 25, 2004 9:30 AM
Subject: RE: [OT] File upload design question
> I implement this as follo
I've been a C#/.Net developer for two years. Recently my company has
decided to move towards Java/Struts, so i've spent the last three
weeks familiarizing myself with Java, JDBC, Type 4 drivers, Tomcat,
Ant, and Struts.
Struts is the last thing i've tried to tackle, and I thought I had a
handle o
Hi,
You are talking about dynamic SQL in stored procedures. But there is a nice option
that provides you dynamic SQL alike features: iBATIS SQL MAPS. When you declare your
statements inside map config file, you can use a set of tags to build your statement
according to parameters you pass to you
You can try www.myeclipseide.org
Henrique Viecili
- Original Message -
From: Shabalov, Igor
To: Struts Users Mailing List ; e-denton Java Programmer
Sent: Friday, June 25, 2004 2:31 PM
Subject: RE: Recommend Struts Plugins for Eclipse?
Struts Studio. The best...
-Or
Struts Studio. The best...
-Original Message-
From: e-denton Java Programmer [mailto:[EMAIL PROTECTED]
Sent: Friday, June 25, 2004 10:16 AM
To: [EMAIL PROTECTED]
Subject: Recommend Struts Plugins for Eclipse?
I am converting from Kawa to Eclipse. Anyone have Eclipse plugins they
recomme
The name is optional. I never use it in the form. For JavaScript porpoises I use the
name of the
ActionForm your using in the struts config.
> -Original Message-
> From: Adam Lipscombe [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 25, 2004 10:27 AM
> To: 'Struts Users Mailing List'
>
MyEclipse [0] works pretty good. I also have seen Nitrox [1], but have yet
to evaluate it.
[0]
http://www.myeclipseide.com/
[1]
http://www.m7.com/
http://www.theserverside.com/news/thread.tss?thread_id=26427
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
http://w
MyEclipse [0] works pretty good. I also have seen Nitrox [1], but have yet
to evaluate it.
[0]
http://www.myeclipseide.com/
[1]
http://www.m7.com/
http://www.theserverside.com/news/thread.tss?thread_id=26427
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
http://w
Folks,
I want to submit a named html:form. e.g.
Wit the above construct Struts complains that the form requires a "type"
attribute - it seems to want me to specify the classname of the ActionForm
as the "type".
My understanding is that Struts deduces the ActionForm to use aut
The JBoss eclipse plugin is way helpful.
Here's an article on how to set it up.
http://www.devx.com/opensource/Article/20242
Cheers,
Eric
On Jun 25, 2004, at 1:15 PM, e-denton Java Programmer wrote:
I am converting from Kawa to Eclipse. Anyone have Eclipse plugins they
recommend for Struts, Tomcat,
You may want to checkout Struts Console:
http://www.jamesholmes.com/struts/
It has support for editing Struts, Tiles and Validator configuration files
as well as support for JST Tag Library Descriptors (TLDs).
Hope that helps,
James
-Original Message-
From: e-denton Java Programmer [ma
I am converting from Kawa to Eclipse. Anyone have Eclipse plugins they
recommend for Struts, Tomcat, JBoss, XML, etc development?
Thanks for your opinions.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-m
Hello,
I have a JSP with a list of dynamically generated html:links. Each
link has a map of attributes appended e.g.:
chart
On the same page, I have a html:select e.g.:
DHTML (IE Only)
Java
I would like that when a link is clicked, not only the map of
attribut
Dear Friends,
I'm a bit out of touch with coding. My need is to display some
orderdetails after a successful Login. So I have a Login View and a
SucessView. So the orderDetails are picked up as a vector from the
DAO and throu Delegate returned to the SuccessView. I display the
OrderDetails usin
Dear user group,
I am having this constant exception thrown several
times a day. I am not able to reproduce it but I know
my visitors get it:
2004-06-24 18:45:00 StandardWrapperValve[action]:
Servlet.service() for servlet action threw exception
java.lang.NullPointerException
at
org.apache
Looks to me like something in doStartTag is looking for something from
request or session and its not finding it since its a startup and so it
throws an exception.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, June 25, 2004 10:12 AM
To: 'Struts Users Ma
Currently I use the validator with my forms.
I am looking for a way to test if there was an error for a specified
field.
I still want the list of errors produced by at the top
but I would like to place something like "**" next to any field that
had errors.
Can this be done with either the str
> From: Axel Groß [mailto:[EMAIL PROTECTED]
> so the html:submit buttons do work, but neither of the
> html:image buttons
> pass the parameter on and i get a null reference for
> request.getParameter(parameter);
> (with parameter.equals("action"))
> the resulting error message is:
> Request[/a
I'm using spring too, albeit not for the web stuff.
Haven't looked into spring web tier wise, not sure it has anything for
forms.
On 25 Jun 2004, at 17:23, Rick Reumann wrote:
Mark Lowe wrote:
Thanks Rick.
You've shown me exactly how to do what i need do and I didn't even
ask the question :o)
G
hi there!
i wanted to use images to hide my ugly submit button names, but exchanging
html:submit with html:image doesn't work;
this is what is rendered:
gets rendered to
so the html:submit buttons do work, but neither of the html:image buttons
pass the paramet
Mark Lowe wrote:
Thanks Rick.
You've shown me exactly how to do what i need do and I didn't even ask
the question :o)
Glad I could help. Someone actually showed me how to do that using JSTL.
He's now moved on to using Spring now that loser:)
--
Rick
-
Hello
I'm running Eclipse with Tomcat 5.0.18 and Struts 1.1. Since I use validation my
application sometimes dies at startup. When I restart the server it throws the
following exeption:
--
java.lang.NullPointerException
at
org.apache.struts.taglib.html.JavascriptValidatorTag.do
Thanks Rick.
You've shown me exactly how to do what i need do and I didn't even ask
the question :o)
2 deep indexed properties and no nested tag llib.
On 25 Jun 2004, at 16:03, Rick Reumann wrote:
Wendy Smoak wrote:
From: Tom McCobb [mailto:[EMAIL PROTECTED] In another section
of the page I d
thx nicolas,
It worked. Though i had read the link you mentioned but couldn't get it.
Sometimes, examples can teach you better.
thx again
navjot
Nicolas De Loof wrote:
View
http://jakarta.apache.org/struts/userGuide/struts-html.html#link
Nico.
hi list,
I am not good in jsp views
<%= blah_blah %> is a jsp scripting element not a tag. Perhaps I should have
used the correct terminology:
"you can't use a jsp action to provide the value of an attribute in another
action."
But then people who haven't read the JSP spec wouldn't have understood me.
Paul
> -Original Message
This is not accurate. You can use <%= blah_blah %> in other tags.
At 03:37 AM 6/25/2004, Paul McCulloch wrote:
As other posters have said, you can't use a jsp tag to provide the value of
an attribute in another tag. Ever.
However, what you are doing is (probably) redundant. The purpose of the
html
Wendy Smoak wrote:
From: Tom McCobb [mailto:[EMAIL PROTECTED]
In another section of the page I display an iterated list of
items in a collection.
I am stuck on how to get the value of "i", the index of the row
wherein the button was clicked.
Are you willing to use JSTL? The tag has 'varStatus'
It's a local number for me... maybe I should chat with Mike for a while and
see how Tim's vacation is going.
-Original Message-
From: Andy Engle [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 24, 2004 11:36 PM
To: Struts Users Mailing List
Subject: Re: [OT] FW: Timothy J Theis is out of t
If the web container supports servlet 2.2 only, then options are to
either subclass request processor or creating abstract base
action class to check the roles.
Of course, you can always check the roles in any action's execute method
or in any JSP because you have access to ActionMapping
and H
Sat under my nose all the time :o)
On 25 Jun 2004, at 15:06, Mark Lowe wrote:
I haven't played with netsted tags for a while, I always preferred
seeing where in indexed properties were. I have to confess it
completely escaped my attention.
Mark
On 25 Jun 2004, at 13:55, René Zbinden wrote:
I'
I haven't played with netsted tags for a while, I always preferred
seeing where in indexed properties were. I have to confess it
completely escaped my attention.
Mark
On 25 Jun 2004, at 13:55, René Zbinden wrote:
I'm not sure if i got the problem correctly. But have a look at the
nested taglib
View
http://jakarta.apache.org/struts/userGuide/struts-html.html#link
Nico.
> hi list,
>
> I am not good in jsp views. Can someone tell me the way to accomplish
> the below?
>
> I wish to generate is link View
> and i am doing this.
>
> =
>
>
>
>
>
>
>
hi list,
I am not good in jsp views. Can someone tell me the way to accomplish
the below?
I wish to generate is link View
and i am doing this.
=
View
=
but it generates '">View
TIA
Navjot Singh
-
I'm not sure if i got the problem correctly. But have a look at the nested taglib too.
Could make your jsp easier but renders to the same as below.
http://jakarta.apache.org/struts/userGuide/struts-nested.html
http://www.keyboardmonkey.com/next/index.jsp
Hope it's of any use to you
René
-
Hi,
I have a combo box, and populating hash map values in this
box.
Once initial form is populated, if user selects any option
from this box, it will submit the form to my action class using method “callOnChange”.
And action class does some operation and forward control back to this
Emmanouil Batsis wrote:
Then just
Hmm. That should be
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Gia sou Gianni,
To use EL expressions you have to enable EL expression evaluation. This
can be done in web.xml or the JSP file, for example with JSP 2.0:
Then just
Google for "enable EL JSP" as it depends to your environment, meaning
JSP/container version. I cant use descriptors for this cause
Hi
import the struts-el tag library and the tld for it - Then you can ust
jstl syntax. Right now you are using the standard struts tag library
Hermod
-Opprinnelig melding-
Fra: John Antonakos [mailto:[EMAIL PROTECTED]
Sendt: 25. juni 2004 12:30
Til: Struts Users Mailing List
Emne: Re: Ho
Dear Paul,
i know all that, thanks for the remarks though.
I was using that anyway.
I just decided to change them all to tags and realized that i cannot.
do it in this specific case. Only for those tags i will keep the old ones.
Thanks, anyway John
- Original Message -
From: "Paul
As other posters have said, you can't use a jsp tag to provide the value of
an attribute in another tag. Ever.
However, what you are doing is (probably) redundant. The purpose of the
html:hidden tag is to *automatically* create an
element in your form with the value already set according to the v
javen
perhaps this will help you.Coz on this mail, I implemented my part
successfully
Since the day I am in great awefor the Group and and their help
cheers
shilpa
-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
Sent: Friday, June 04, 2004
just out of curiosity, what is html-el ?
i use JSTL, but even in that, i cannot do this:
"/>
John
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 25, 2004 1:26 PM
Subject: SV: How can i put a dynamic value to an ?
Hi
use html-el and then :
Short of property lookups always coming out of the database, this
appears to be the worst solution, except for all of the others:
# one per language
gender.male.text=Male
# one only
gender.male.value=M
lookup.gender.M=gender.male.text
> -Original Message-
> From: Joe Hertz [mailto:[EM
Hi
use html-el and then :
-Opprinnelig melding-
Fra: John Antonakos [mailto:[EMAIL PROTECTED]
Sendt: 25. juni 2004 12:17
Til: [EMAIL PROTECTED]
Emne: How can i put a dynamic value to an ?
I want to do something like the following:
"/>
is this possible ?
The above statement produces a
Hi John,
this kind of nesting is not possible in Struts. It has been discussed many
times in many forums already.
The solution is to define a scripting variable and assign it then:
Radek
> -Original Message-
> From: John Antonakos [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 25, 2
I want to do something like the following:
"/>
is this possible ?
The above statement produces an error.
Can i use another statement to do this thing ?
Give a dynamic value, coming from another bean,
to an field ?
Regards, John
Hi
There is database support in SecurityFilter
Hermod
-Opprinnelig melding-
Fra: Lesaint Sébastien [mailto:[EMAIL PROTECTED]
Sendt: 25. juni 2004 11:05
Til: Struts Users Mailing List
Emne: RE: How to implements Role Based Access Control in Struts ?
Hi,
I was just looking into Pow2ACL,
you may better try securityfilter.sf.net or jGurad
Lesaint Sébastien wrote:
Hi,
I was just looking into Pow2ACL, I wonder if this solution is up to date,
looks like the last release came out in 2002. It is said it is integrated
with Struts, but if it is that old, I wonder if it does work with the l
Hi,
I was just looking into Pow2ACL, I wonder if this solution is up to date,
looks like the last release came out in 2002. It is said it is integrated
with Struts, but if it is that old, I wonder if it does work with the last
releases of Struts.
Anybody using Pow2ACL with struts around here? I w
I implement this as follows:
On session creation I create a directory in an 'uploads' directory using
session id for the name
Uploading a file copies the file into the session upload directory and adds
the filename (as a String) to a collection on my session scoped form bean.
On submission of th
No i was wrong works as i thought it would
Need to iterate through the values of the dishes map
public Object[] getDishes() {
return map.values().toArray();
}
<%-- var could be anything the index us the important bit --%>
<%-- get the correctly indexed key from the getKeys array-%>
rend
80 matches
Mail list logo