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 already
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 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,
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
-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]
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]
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]
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]
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.
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:
nested:checkbox property=state/
Problem is, it should be checked when it's on, and unchecked when off,
and it's not working. How can
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]
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]
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
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
form name=/pathA
field property=city...
form name=/pathB
field property=city...
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
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 :
actionpath=/commercialplan
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)
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 formset /formset tag, like
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
add language and cuntry parameters ,,
formset language=fr country=FR
(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
oppss, just try to add language parameter,,
formset language=fr
-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 ,,
formset language=fr
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
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
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)
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
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
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
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
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
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
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
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
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 delete
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 propose
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
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
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
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: [EMAIL
Specify the value that it will use to determine whether the box is
checked or not:
nested:checkbox property=state value=on/
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
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
-
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
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?
+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
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
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
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 final
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
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
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
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:
logic:equal
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=121thread=19915
Question: how do you handle the importing of the fragment into your
web.xml? Are you using copy and
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 html:file
I read the documentation for the html:file tag
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 commas
Not exactly the same, since I have use of a list but here's how I handled
it in JSTL...
c:forEach items=${sessionScope.auditorList} var=auditor
varStatus=status
c:if test=${!status.last}
c:out value=${auditor.name}/,nbsp
/c:if
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 I
Hi,
I surrounded the problem this way :
I declared in struts-config two forms (that point to the same one) :
form-bean name=commercialPlanForm
type=com.mypack.CommercialPlanForm/
form-bean name=commercialPlanPrintForm
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]
Hello...
When I use this tags above, the Button works well, but the Link doesn't
work.
html:form action=/user
html:submit property=actionbean:message
key=button.new//html:submit
html:link page=/user.do?action='button.new'New/html:link
/html:form
At the first moment, both are putting the
snip
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. That is
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
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
loadfile and replace tasks.
loadfile to load the web fragment file.
replace to replace the token i created in my web.xml with the entire
contents of the web
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
From: Flávio Maldonado [EMAIL PROTECTED]
html:link page=/user.do?action='button.new'New/html:link
/html:form
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
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
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
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
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
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
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
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
-
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
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
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:
-Original Message-
BTW, what's HTH?
Hope This Helps.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
80 matches
Mail list logo