-Original Message-
BTW, what's "HTH"?
Hope This Helps.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi, ok I am trying to get my Dynamic List-Backed form to work, no
luck, here is what I have so far.
ActionForm with a List in it:
public ArrayList getFields() {
return fields;
}
public void setFields(ArrayList fields) {
this.fields = fields;
}
Now, a field itslelf is a bean:
pu
I can't think of any usecase where it would fail for not setting the
FormFile property to null in the reset. On the otherhand it wouldn't
hurt if you set the FormFile to null in the reset(), heeding to the
warning that the docs give
On Mon, 10 Jan 2005 17:43:43 -0800, Sullivan, Sean C - MWT
<[EMA
Please limit your stack traces! Each line into the trace becomes less
and less meaningful ... unless you're trying to debug the application
server/servlet container. I don't think that's your goal ...
--
Eddie Bush
-
To unsubs
You're going to have a tough time knowing whether a person isn't
authenticated because they 1) haven't logged in yet or 2) their
session timed out. I'd recommend use of a (session) cookie to help
detect that. It's the only way I can think of.
Basically, the scenario is:
- User logs in
- Sy
I do know what exactly could be the problem
I am having one JSP which calls Main Action Handler - this does some database
job and get userid. This id i want to pass it to another page. If it is a
direct JSP page then i can make use of something like
request.setAttributeand can get the valu
You do need a life.
But... I just bought 2 books from your list.
I keep a track of cool design ideas here: http://sandrasf.com/kiss - so
if anyone wants to append there they can.
(I like "SQL Tuning", "SQL for smartites" and Doug Lea's book on
concurency.)
.V
Erik Weber wrote:
Joe Germuska wr
I just took example logon application from husted's website and
installed on JBoss first. On JBoss it did not work since whenever I
submit the form it would return a blank page if there was input submited
or exception would be thrown if no data was filled in:
2005-01-13 17:10:41,636 ERROR [org.
Alex,
What is going on with your mail client? Now you're back to the 80's, as in
January 1980 for your computer's time.
-David
-Original Message-
From: Alex Kravets [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 01, 1980 4:36 PM
To: Struts Users Mailing List
Subject: Re: Stuts forward
Alex,
What version of Struts did you install on your machine? What is the "same
application" you mention? Is it a struts example application or your
application? Did you recompile it on your local machine after installing
Struts?
Regards,
David
-Original Message-
From: Alex Kravets [m
Well just to check I installed Struts on my local machine, copied the
same application there and it works fine! Could it be the JBoss that I
use on the work server?
David G. Friedman wrote:
Alex,
Check the Javadocs because the perform() method is GONE in Struts v1.2.4,
deprecated in v1.1, and no
From: "Flávio Maldonado" <[EMAIL PROTECTED]>
> New
>
LDA follows the parameter value back to the property name, and uses the
property name to pick a method. So instead of 'button.new' here, you need
whatever text mapped to in the [usually] ApplicationResources.properties
file. Maybe...
button.n
Woodchuck,
That works unless you use something like StrutsTestCase which expects to
see a value web.xml file in the source code tree (before building the WAR
file). I assume that @REPLACE_WITH_WEB_FRAGMENT_HERE@ is in a place that
makes your web.xml XML invalid.
I used a regular expression filte
the beauty and arguably ugliness of ant (Yet Another Duality Of Life)
is that there are many ways to do the same thing. i simply use ant's
and tasks.
to load the web fragment file.
to replace the token i created in my web.xml with the entire
contents of the web fragment.
for example:
i
At 11:36 AM -0800 1/14/05, Dakota Jack wrote:
Hi, Joe,
I think you sort of "punched the pouch" here. Let me explain.
All your questions were answered in my posts, which you must have not
read. Maybe you just read the first post and did not check out the
later ones?
must have passed each other in
> I gather than by "grok" you mean the traditional "to drink" or
> (metaphorically) "to profoundly appreciate or understand" in Martian
> in "Grokking the GIMP" by Carey Bunks? I agree when you talk about
> "dispatch actons" but disagree completely when you talk about "lookup
> dispatch actions"
Hello...
When I use this tags above, the Button works well, but the Link doesn't
work.
New
At the first moment, both are putting the "button.new" into the action
variable.
When I press the button, works well. But I need that the link do the same
function of the button but I receive this err
New petstore demo powered by XMoon
http://www.demozone.org/petstore/index.do
XMoon site http://www.xmoon.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
I surrounded the problem this way :
I declared in struts-config two forms (that "point" to the same one) :
and I made two action mapping like this :
...
...
Then in va
Hi, Joe,
I think you sort of "punched the pouch" here. Let me explain.
All your questions were answered in my posts, which you must have not
read. Maybe you just read the first post and did not check out the
later ones?
I have suggested an answer to cluster related behavior, if you read
what
Not exactly the same, since I have use of a list but here's how I handled
it in JSTL...
,
Bart
<[EMAIL PROTECTED]> wrote on 01/14/2005 02:04:07 PM:
> I have the following code that
On Fri, 14 Jan 2005 13:04:07 -0600, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> I have the following code that prints something like this:
> BLN, BCard, SecCard, EquipExp
>
> There may be any combination of any of these 4 items, or non at all.
> And what I want is the ability to properly add co
I am still searching for an answer. Thanks in advance.
-Sean
> -Original Message-
> Sent: Monday, January 10, 2005 5:44 PM
> To: user@struts.apache.org
> Subject: Struts FormFile and
>
>
> I read the documentation for the tag
>
> http://struts.apache.org/userGuide/struts-html.html
Woodchuck,
Thanks for the advice. Glad to hear someone has followed the road before
me.
I found this useful link as well:
http://www.artima.com/forums/flat.jsp?forum=121&thread=19915
Question: how do you handle the importing of the fragment into your
web.xml? Are you using and in Ant? I
I have the following code that prints something like this:
BLN, BCard, SecCard, EquipExp
There may be any combination of any of these 4 items, or non at all.
And what I want is the ability to properly add commas after each item, or not
print a comma if there is not an item:
,
,
i ran into the same problem as well.
what i can tell you is that because jspc generates different import
statements than tomcat, this is the reason why the generated web.xml
fragment is useful. this fragment basically maps the pre-compiled jsps
so that it when the jsp is requested your app will k
At 7:35 AM -0500 1/14/05, [EMAIL PROTECTED] wrote:
Jack,
You have said that LookupDispatchAction is outdated and inefficient. I
have at a minimum 6 different actions that need to be performed per page, not
including load. What else would you recommend as a solution?
I'm not sure what the pe
Joe Germuska wrote:
Also, while I see your point that the overall concept of DOM might be
more sensible in theory than that of SAX, I found that it's just
easier to get going with the SAX API than with DOM or even JDOM. You
can get something working with very few lines of code, and good
exampl
Oops, try this!
public abstract class StateBaseAction
extends Action {
private static final String DISPATCH_METHOD_SUFFIX = ".method";
private static final String EXECUTE= "execute";
private static final String PERFORM= "perform";
private static f
I have been looking into using the jspc ant task to pre-compile our
Struts-based application. In comparing the Java code generated by the
jspc task and the Java code generated by Tomcat 4.1.x there are some
differences, in particular the package names. Also, jspc wants to
generate the fraction o
Hi, Todd,
Check out: http://www.michaelmcgrady.com/button/. The DispatchAction
there is unlike the one here. I use something close but a little
different. Still, all you have to do is to give the property (name in
HTML) the suffix you specifiy as the DISPATCH_METHOD_SUFFIX (see
below). I use "
+1 on JDOM unless you know upfront that the XML file is going to be big
(greater than a couple of MB).
--- sudip shrestha <[EMAIL PROTECTED]> wrote:
> JDOM: http://www.jdom.org/.
> If you are new to xml-java parsing, then this is the way to go. When
> I started learning about xml parsing with
I am using 1.2.4 and want to use the validWhen, but I need more than 1
argument. I actually need 2-5 arguments based on the logic I am trying to
solve. Currently I have to create a custom Validator, but would hope to use the
default one instead. Is this possible in 1.2.4 or 1.2.6?
-
On Fri, 14 Jan 2005 10:55:57 -0200, Flávio Maldonado
<[EMAIL PROTECTED]> wrote:
>
> Hi people!
>
> Anybody knows what kind of error is this?
>
> exception
>
> javax.servlet.ServletException: Request[/user] does not contain handler
> parameter named action
> org.apache.struts.actions.LookupDispa
Take a look over in taglibs. There is a cool tag (called unstandard) for
binding values.
http://jakarta.apache.org/taglibs/sandbox/doc/unstandard-doc/
This will do what you want.
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original
Specify the value that it will use to determine whether the box is
checked or not:
Hubert
On Fri, 14 Jan 2005 10:03:13 -0200, Vinicius Caldeira Carvalho
<[EMAIL PROTECTED]> wrote:
> Hi there. I have a nested object where one of its properties is a string
> representing on|off. When converting i
Looking for a way to avoid using "<= "<%= JavaConstClass.JAVA_CONST %>" >
in my .jsp
Are there struts tags that can do the equivalent.
Thanks in advance.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
Hello all,
Has anyone ever used Axis together with Quartz? I am trying to
Schedule an automated job that connects to a remove webservice..
I guess quartz is serializing the reference to the remote webservice,
and when my task is scheduled for execution, somehow the reference to
the webserv
Hello all,
Sorry. still busy with work :-(
Hopefully I see you all next time
Regards
marco
-Original Message-
From: Pilgrim, Peter [mailto:[EMAIL PROTECTED]
Sent: 14 January 2005 16:02
To: Pilgrim, Peter; Adam Hardy (E-mail); Alan Mehio (E-mail); Alex
McLintock (E-m
JDOM: http://www.jdom.org/.
If you are new to xml-java parsing, then this is the way to go. When
I started learning about xml parsing with java a while ago, I
researched various methods and found that JDOM provides the easiest
route to get things done. A quote from JDOM mission: "It behaves like
Also, while I see your point that the overall concept of DOM might
be more sensible in theory than that of SAX, I found that it's just
easier to get going with the SAX API than with DOM or even JDOM. You
can get something working with very few lines of code, and good
examples are all over the W
Hi
Welcome back. It's 2005. The time has nearly come for the
Seventh BOF Struts London Networking.
I think it is time to rename the group for 2005 to support the
relevances of "Faces" technology. This would allow enthusiasts
for standard "JSF", "MyFaces" and "Shale" to join our merry band.
I pr
Take a look at the LazyValidatorForm -
http://struts.apache.org/api/org/apache/struts/validator/LazyValidatorForm.html
The javadoc for the class also mentions alternatives.
Hubert
On Fri, 14 Jan 2005 10:59:32 + (GMT), Metin Erksan
<[EMAIL PROTECTED]> wrote:
> hi
>
> how can i create or de
Joe Germuska wrote:
At 8:42 AM -0500 1/14/05, Erik Weber wrote:
If you are not familiar with a lot of XML-related APIs, the easiest
approach is to use the SAX API, in my opinion*.
You may be the first person I've ever encountered who finds SAX the
easiest way to process XML!
Heh. I guess it's
Hi
Have a look at this
http://kulkarni_ash.tripod.com/howto/jsptaglib-howto.html
Ashish
--- sachin <[EMAIL PROTECTED]> wrote:
> hi all ,
>
> how to achieve paging in struts views ?
>
> so that all the records can be viewed by prevoius ,
> next links
> There are function available in ASP , PHP .
> How can i read XML files using struts? is this possible? Can
> any one provide a link or give an example for reading XML
> files using struts?
If you're talking about reading an XML file in your Java code, check out
Jakarta Commons Digester: http://jakarta.apache.org/commons/digester/
--
Tim
At 8:42 AM -0500 1/14/05, Erik Weber wrote:
If you are not familiar with a lot of XML-related APIs, the easiest
approach is to use the SAX API, in my opinion*.
You may be the first person I've ever encountered who finds SAX the
easiest way to process XML!
* There are higher level APIs that might
Hi, tanks.
I am using Tomcat and I have already checked in the directory
{tomcat-home}/logs (catalina.out and other files). However none of them
received messages that I sent with servlet.log("...");
It is not critical. I will try to resolve all logging issues with log4j.
Thanks a lot.
Ana
---
Thanks.
I'll try Log4j. I have read something about this too and it seems to be
a good option.
Ana
-Original Message-
From: Pedro Salgado [mailto:[EMAIL PROTECTED]
Sent: sexta-feira, 14 de Janeiro de 2005 13:59
To: Struts Users Mailing List
Subject: Re: Servlet.log()
On 14/1/05 2:40 pm
Ok, I had to put the country attribute too...
But I still have this error :
javax.servlet.jsp.JspException: No form found under 'commercialPlanForm' in
locale 'fr'
at
org.apache.struts.taglib.html.JavascriptValidatorTag.renderJavascript(JavascriptValidatorTag.java:364)
at
org.apache.struts.
I am not veteran, but I think it will vary according to the servlet
container you are using. If you are using TomCat, I think the log file
will be in the directory {tomcat-home}/logs. Not sure, as I use Netbeans
and the Tomcat server imbedded in it, which appears to put it in a
different dir
On 14/1/05 2:40 pm, "Margarida Sargento" <[EMAIL PROTECTED]>
wrote:
> Hello
>
>
>
> I am new to Struts. My first applications are examples that I download
> from several web sites. One of them logs the forms data with:
> servlet.log("...");
>
To solve of your logging problems use Log4j
(http:
when I do so, my application doesn't start anymore ans I have the following
error :
java.lang.NullPointerException
org.apache.struts.taglib.html.JavascriptValidatorTag.renderJavascript(JavascriptValidatorTag.java:360)
org.apache.struts.taglib.html.JavascriptValidatorTag.doStartT
If you are not familiar with a lot of XML-related APIs, the easiest
approach is to use the SAX API, in my opinion*.
1) Write a SAX event handler (receives events when XML elements are
opened, closed, and when text values of attributes and elements are
encountered -- you assemble your objects as
Hello
I am new to Struts. My first applications are examples that I download
from several web sites. One of them logs the forms data with:
servlet.log("...");
I have already search information about this and the Struts home page
refers this too. However I don't know where the logs are being sa
oppss, just try to add language parameter,,
-Original Message-
From: Seyhan Basmaci
Sent: Friday, January 14, 2005 3:13 PM
To: Struts Users Mailing List
Subject: RE: Different validations for one form
add language and cuntry parameters ,,
(country may be different from FR )
-
add language and cuntry parameters ,,
(country may be different from FR )
-Original Message-
From: julie gautier [mailto:[EMAIL PROTECTED]
Sent: Friday, January 14, 2005 3:02 PM
To: Struts Users Mailing List
Subject: RE: Different validations for one form
Done. I always have the sam
Done. I always have the same error...
Seyhan Basmaci <[EMAIL PROTECTED]> wrote:you have two formset tag,
(Note: The FormSet has language, country, and variant attributes that
correspond with the java.util.Locale class.
If they are not used, the FormSet will be set to the default locale.)
Put
you have two formset tag,
(Note: The FormSet has language, country, and variant attributes that
correspond with the java.util.Locale class.
If they are not used, the FormSet will be set to the default locale.)
Put "/commercialplanprint" into first tag, like below
Hi people!
Anybody knows what kind of error is this?
exception
javax.servlet.ServletException: Request[/user] does not contain handler
parameter named action
org.apache.struts.actions.LookupDispatchAction.execute(LookupDispatchAction.java:196)
org.apache.struts.action.RequestProcessor.processAction
Thanks again for your help.
So, my two jsp are : commercialplanList.jsp and commercialplanPrint.jsp.
I have one form : CommercialPlanForm.class
I have one action class : CommercialPlanAction.class
Here is my struts-config :
Jack,
You have said that LookupDispatchAction is outdated and inefficient. I
have at a minimum 6 different actions that need to be performed per page, not
including load. What else would you recommend as a solution?
Todd
-
in your struts config file ,
define two map to same action class,
for example , pathA and PathB
in validation.xml,, define validation for each path,,
I hope it works :),
formset>
mailto:[EMAIL PROTECTED]
Sent: Friday, January 14, 2005 2:07 PM
To: Struts Users Mailing List
Subject: R
Struts does not have a specific support for XML, but you can use inside a
webapp all the libraries that you normally use under classic applications.
For example, if you want to load a DOM for an XML file inside an action
(not very elegant...), you can use DOM4J (or similar libraries).
If you want t
Ok, but I have the same action class too... So how will it know that for one
jsp, it's a validation and for the other jsp it's the other validation to use...
My two jsp share the same form and the same action class...
Do you have an idea ?
Thanks for your help.
Seyhan Basmaci <[EMAIL PROTECTED]>
Kindly send all your messages to [EMAIL PROTECTED] This mail account is not
functioning anymore.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi there. I have a nested object where one of its properties is a string
representing on|off. When converting it to a form I'm using a
nested:checkbox as shown:
Problem is, it should be checked when it's on, and unchecked when off,
and it's not working. How can I achive this?
Thanks
-
Kindly send all your messages to [EMAIL PROTECTED] This mail account is not
functioning anymore.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
you can use form based validation or action based validation in struts 1.2 ,
1) to use form based validation,
form classes must extend ValidatorActionForm or DynaValidatorActionForm
classes.
(org.apache.struts.validator.ValidatorActionForm,org.apache.struts.validator.DynaValidatorActionFor
Kindly send all your messages to [EMAIL PROTECTED] This mail account is not
functioning anymore.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
At 11:11 AM + 1/14/05, jgfa92004 wrote:
Hi everybody,
Here is my problem : I have two jsp that share the same action class
(and the same form). As they don't contain the same fields, I would
like to have two different validations : one for each jsp. I use
Validator and Struts 1.2. How can I do
Kindly send all your messages to [EMAIL PROTECTED] This mail account is not
functioning anymore.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi everybody,
Here is my problem : I have two jsp that share the same action class
(and the same form). As they don't contain the same fields, I would
like to have two different validations : one for each jsp. I use
Validator and Struts 1.2. How can I do that ?
Thanks in advance.
Julie
Kindly send all your messages to [EMAIL PROTECTED] This mail account is not
functioning anymore.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
hi
how can i create or delete form bean properties ?
for example i create myAction.java and myForm.java
myForm.java has
a nd b property,they have setters/getters.
and i want to create c and d at runtime then delete c and b fore example
is that possible ?
sincerely
--
Kindly send all your messages to [EMAIL PROTECTED] This mail account is not
functioning anymore.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-Original Message-
BTW, what's "HTH"?
-Original Message-
HTH means
Hope This Helps
HTH
Alexander
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi all,
How can i read XML files using struts? is this possible? Can any one provide
a link or give an example for reading XML files using struts?
:-)
Jay
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional command
Hi all,
How can we read XML files using struts? is this possible. Can any one povide
a link or give an example for reading XML files using struts?
:-)
Jay
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Kindly send all your messages to [EMAIL PROTECTED] This mail account is not
functioning anymore.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On 14/1/05 9:50 am, "sachin" <[EMAIL PROTECTED]> wrote:
> hi all ,
>
> how to achieve paging in struts views ?
>
http://displaytag.sourceforge.net ?
> so that all the records can be viewed by prevoius , next links
> There are function available in ASP , PHP ..
> If something of that type is
Kindly send all your messages to [EMAIL PROTECTED] This mail account is not
functioning anymore.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
hi all ,
how to achieve paging in struts views ?
so that all the records can be viewed by prevoius , next links
There are function available in ASP , PHP ..
If something of that type is already available , it will save a lot of time
Thanks in advance
Sachin Hegde
Paradyne Infotech Limited , Mu
83 matches
Mail list logo