Larry,
For debugging purposes, the org.apache.soap.util.net.TcpTunnelGui utility is
useful. It's in the Jakarta Soap project jar file. It will let you view the
headers and the markup sent to/from your browser.
-Richard
-Original Message-
From: Zhang, Larry (L.) [mailto:[EMAIL PROTECTED]
DynaValidatorForm
Isn't this assuming there are no modules?
sandeep
-Original Message-
From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 7:11 PM
To: 'Struts Users Mailing List'
Subject: RE: pre-populating DynaValidatorForm
Dean,
Here's
Dean,
Here's the essential code in order to instantiate a DynaActionForm from
within an Action class.
FormBeanConfig fbc = new FormBeanConfig();
fbc.setName(myForm);
DynaActionFormClass dafc =
DynaActionFormClass.createDynaActionFormClass(fbc);
DynaActionForm formBean = (DynaActionForm)
Vincent,
Do you have an entry in your map named page? Not having the entry will cause
your problem.
-Richard
-Original Message-
From: Vincent [mailto:[EMAIL PROTECTED]
Sent: Friday, January 30, 2004 10:39 AM
To: Struts Users
Subject: DyanActionValidatorForm clarification please
Hello
Søren,
The error message indicates that you are missing a button.search entry in
your Application Resources file.
-Richard
-Original Message-
From: Søren Hjarlvig [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 10, 2004 2:13 PM
To: [EMAIL PROTECTED]
Subject: LookupDispatchAction
srinivas,
Since you downloaded the source file, you need to build it. When you build
it, it will make the .jar files. If you do not want to build it, then
download the binary distribution instead.
Rgds,
Richard
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent:
Anant,
Either set the values of your strings when you declare them to or set
them to in the constructor of your FormBean.
Rgds,
Richard
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 04, 2004 10:42 PM
To: [EMAIL PROTECTED]
Subject:
Mark,
Use logic tags to prevent/allow the html:message tag that is displaying the
errors. Key on a value that is set according to which form caused the error.
-Richard
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 04, 2004 8:02 AM
To: Struts
Colin,
Check out the html:base tag.
-Richard
-Original Message-
From: Colin Foulkes [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 03, 2004 8:16 AM
To: Struts Users Mailing List
Subject: RE: Newbie: Problems After Deploying to Tomcat
Ah... I think I see the problem
I need to
Al,
StrutsTestCase, as the name implies, has specific classes and methods for
testing struts applications. It is good for testing actionForwards,
validation errors, and ActionForm submissions with struts. It only does out
of container testing however.
Cactus is used for in-container testing of
Sunil,
The LazyList class in the commmons-collections.jar file does this already
for you.
Rgds,
Richard
java.lang.Object
|
+--org.apache.commons.collections.collection.AbstractCollectionDecorator
|
+--org.apache.commons.collections.list.AbstractListDecorator
|
Nathan,
The name is case-sensitive. Use maxlength instead of maxLength.
Regards,
Richard
-Original Message-
From: Nathan Maves [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 28, 2004 12:56 PM
To: Struts Users Mailing List
Subject: No ValidatorAction called maxLength?
This is a
Jim,
Throw custom exceptions in your business beans and then use the struts
declarative exception handling feature so that your custom exception handler
class(es) handle the exceptions by populating ActionMessages and logging the
error if neccessary.
Check out this article by Keld H. Hansen
Dan,
Try using the filter=false attribute of the bean:write tag. That will
disable the encoding of characters that are sensitive to HTML.
-Richard
-Original Message-
From: Daniel Lipofsky [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 4:18 PM
To: [EMAIL PROTECTED]
Subject:
Jürgen,
Put the JSP under the WEB-INF directory. Once there, it will only be
accessible from within your web application.
-Richard
-Original Message-
From: Jürgen Scheffler [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 15, 2004 8:15 AM
To: [EMAIL PROTECTED]
Subject: JSP Protection
Otávio,
You could 1) put the info in a hidden variable which would be less secure or
2) put the info in your session.
Regards,
Richard
-Original Message-
From: Otávio Augusto [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 07, 2004 7:33 PM
To: [EMAIL PROTECTED]
Subject: mapped
Caroline,
May I ask why you are performing your database updates through a separate
thread? It seems to be complicating your code. Creating lots of threads from
within your web application is not a good practice if you want your app to
scale well. Also, what happens if the update doesn't succeed?
, Richard K,,DMDCWEST [EMAIL PROTECTED] wrote:
Otávio,
You could 1) put the info in a hidden variable which would be less
secure or
2) put the info in your session.
Regards,
Richard
-Original Message-
From: Otávio Augusto [mailto:[EMAIL PROTECTED]
Sent: Wednesday
Nathan,
Try a map backed form
http://www.mail-archive.com/[EMAIL PROTECTED]/msg88704.html
-Richard
-Original Message-
From: Nathan Maves [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 12:13 PM
To: Struts Users Mailing List
Subject: Re: dynamic parameters to DynaActionForm
Paul,
You can do this in your struts-config.xml
forward name=someRedirectName path=http://www.someWebsite.com;
redirect=true/
note the redirect=true attribute
or do a
response.sendRedirect(http://www.someWebsite.com;);
and then return null to Struts instead of an ActionForward in your action.
Paulo,
The problem is that Vectors or Arrays are not created and sized for you
automatically. When your form is submitted, the populate() method attempts
to set the Vector element of new element which is beyond the size of your
vector. To fix this problem, you can either size the Vector with empty
Matt,
It doesn't matter. Since the internal implementation of DateFormat uses
internal instance variables, it is not threadsafe. If two different threads
access the same SimpleDateFormat.format method, there is the possibility of
the formatted result to be incorrect due to the fact that the
Matt,
A final declaration just means that the reference can't be changed to a
different SimpleDateFormat instance. A static declaration just means that
there is one instance of the variable for all of the instances of the class.
Neither modifier affects how the SimpleDateFormat uses internal
-Original
Message-
From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 21, 2003 4:23 PM
To: 'Struts Users Mailing List'
Subject: RE: dynamically sized form (mostly solved)
Matt,
You actually only need the form in the request. You don't need the property
].startNumber), which is extremely clunky. I'm
sure I must be missing something stupid. If anyone can shed some light, it
would be greatly appreciated. Thanks so much! Brent -Original
Message-
From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 21, 2003 4:23 PM
Mukund,
Is this really your struts-config.xml?
?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC
http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd;
struts-config
/struts-config
Where are your form-bean and action mapping definitions?
The cause of your
Caroline,
Are you having problems with the username or the keyName hidden variable? If
it is the username, then I'd suspect that request.getRemoteUser() in your
JSP is returning null.
Regards,
Richard
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Monday,
property=username
value=%=username%/
html:submitView Articles/html:submit
/TD
/TR
/html:form
/req:isUserInRole
--- Yee, Richard K,,DMDCWEST
[EMAIL PROTECTED] wrote:
Caroline,
Are you having problems with the username or the
keyName hidden variable? If
it is the username, then I'd suspect
Mukund,
Are there any messages in the log file? Are you using log4j and did you set
the logging level to debug? It shouldn't be a Classpath issue if the file is
located in your webapp's WEB-INF/classes directory. That is automatically
put in your apps classpath.
-Richard
-Original
Matt,
The answer to your main question is, No. You don't have to specify the
form as the input of the preloader. You don't even really have to have a
separate 'pre-loader' action for this form. In any action that will forward
to your JSP page that displays your form, you can create a new form
Matt,
I found out that using new DynaActionForm()inside of the
PreLoaderAction.execute() doesn't work. It gives a null pointer exception
when you try and call the set() method.
You need to do this instead:
FormBeanConfig cfg = mapping.getModuleConfig()
Mohan,
I agree with Wendy. Prepopulate the form by instantiating it in the action
that forwards to the page that displays the page. Perhaps you can create a
constructor in the ActionForm that takes a userinfo object and invoke this
from your Action.execute method.
Regards,
Richard
-Original
Matt,
You actually only need the form in the request. You don't need the property
of the form at all in your JSP.
In my JSP I use
html:form action=/indexTestSubmitAction
logic:iterate id=testBean name=dynaIndexTestForm property=tests
indexId=ctr
html:text name=testBean property=id
Mark,
What are you trying to tell us? Do you think it is a bad practice to
pre-load a form in an action by instantiating the formBean in the action? Or
is it something else that you find objectionable?
-Richard
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Friday,
Vishal,
First of all. Quit whining. We are not here to just answer YOUR questions.
You would get better responses if you read
http://www.catb.org/~esr/faqs/smart-questions.html, read the FAQs, and did a
search in the archives.
Have you read the documentation? There is how-to guide there that
Mitesh,
Why are you using a beta version when there is a released version available?
You can access the PageContext object and use methods on it to get the
objects that the Struts framework puts in your request object. Specifically,
you want the Globals.MESSAGE_KEY attribute.
This article
Ovidiu,
I'd suggest using the declarative exceptions of Struts 1.1
http://javaboutique.internet.com/tutorials/excep_struts/index-3.html
It will save you a lot of duplicated code in your actions.
The servlet context is available through the
HttpServletRequest.getSession().getServletContext() in
=
AppConfig.findMessageResourcesConfig(Action.MESSAGES_KEY).getParameter();
The question I have it will above not work with struts 1.2 etc (will it
be depreciated?)
Also I found that the MESSAGE_KEY does not exist in my request object
Mitesh
-Original Message-
From: Yee, Richard K,,DMDCWEST
Juan,
Rick is right. All you need to do is set the redirect attribute of your
forward to true like in this example:
action path=/login type=com.aaa.actions.DynaLoginAction
name=dynaLoginForm scope=requestinput=/pages/Welcome.jsp
forward name=success path=/loginSucceeded.jsp
/path
type=...RedirectAction
parameter=/view/path
.../
I don't think Struts provides that, but, as Hubert points out, it's not
difficult to implement.
Quoting Yee, Richard K,,DMDCWEST [EMAIL PROTECTED]:
Juan,
Rick is right. All you need to do is set the redirect attribute
]
org.apache.struts.action.MESSAGE:org.apache.struts.util.PropertyMessageResou
[EMAIL PROTECTED]
any ActionForm that was in the original request
-Richard
-Original Message-
From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 11:46 AM
To: 'Struts Users Mailing List'
Subject
Matt,
I think the second of these two articles describes how to do do what you
want.
You will need to dynamically create the array of TaxRateBean and put it in
session scope in order to create the submission fields in your form. (See
the last paragraph of article #2).
-Richard
in the form and put the form in session scope.
-Richard
-Original Message-
From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 12:51 PM
To: 'Struts Users Mailing List'
Subject: RE: dynamically sized form
Matt,
I think the second of these two
=taxRates type=com.ntso.rsg.bus.tax.TaxRateBean[]
/
/form-bean
Thanks,
Matt Bathje
- Original Message -
From: Yee, Richard K,,DMDCWEST [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 2:58 PM
Subject: RE: dynamically sized form
appreciate you bringing this to my attention though.
Take care
--- Yee, Richard K,,DMDCWEST
[EMAIL PROTECTED] wrote:
Juan,
In reference to my previous email, when you do a
redirect, you will not get
the following attributes in the request:
org.apache.struts.action.mapping.instance:ActionConfig
Matt,
Is your form-bean defined like this?
form-bean name=advancedTaxRatesCurrentForm
type=org.apache.struts.action.DynaActionForm
form-property name=taxRates type=com.ntso.rsg.bus.tax.TaxRateBean[]
/
/form-bean
You wrote:
Also, how would the data get from allTaxRates into the taxRates array
Gus,
Why don't you include your jsp code and struts config? Usually it is caused
by having a struts form subelement tag outside of the struts form tag.
You've said that it's not the case. Are you specifying an 'input' attribute
in your action mapping? How are you accessing the page from the
Ramadoss,
Your regexp can't handle an email address that has the domain specified as
an IP address.
Try this one instead:
/^(([^()[\]\\.,;:[EMAIL PROTECTED]]+(\.[^()[\]\\.,;:[EMAIL
PROTECTED]]+)*)|(\.+\))@((\[[0-9]{1
,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,})
(until your mail) lead me in the wrong direction.
Thanks for the help,
Gus
Yee, Richard K,,DMDCWEST wrote:
Gus,
Why don't you include your jsp code and struts config? Usually it is
caused by having a struts form subelement tag outside of the struts
form tag. You've said that it's not the case
-
From: Gus Heck [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2003 10:27 AM
To: Struts Users Mailing List
Subject: Re: problem with html:text bean throwing exception
Yee, Richard K,,DMDCWEST wrote:
Gus,
I'm not sure what you changed on your JSP to get it fixed.
I changed
George,
You can't do the validation server-side as you proposed because the browser
only sends HTML form elements. It will not send any information regarding
the div tag. You would have to have a hidden form variable and use
JavaScript to populate it with any values of interest when the form is
Felipe,
How is '/componentes/mensagens.jsp' related to the Action or to
'tiles.erro'? When do you get this message vs. the blank white page? Have
you viewed the source of the 'white page' to see if it contains any html?
-Richard
-Original Message-
From: Felipe Nascimento [mailto:[EMAIL
Frank,
I think you are on to something here. Why don't you subclass ActionMapping
and in your subclass put your member variable and getter and setter. You can
then access the value from your action class's excecute method's mapping
parameter after you cast it to your ActionMapping subclass?
Check this article out:
http://javaboutique.internet.com/tutorials/excep_struts/index-7.html
-Richard
-Original Message-
From: Sharmila Pandith [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 18, 2003 3:34 PM
To: [EMAIL PROTECTED]
Subject: ExceptionHandler example
Hi,
Can anyone
Frank,
I tried subclassing ActionMapping and setting the type attribute in the
struts config action-mappings tag.
The runtime error goes away but the setter method never gets called. It
could be a bug.
-Richard
-Original Message-
From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED
Wes,
Use bean:write with the filter parameter set to false.
-Richard
-Original Message-
From: Wes Kubo [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2003 2:53 PM
To: Struts Users Mailing List
Subject: html tags in message resources
I'd like to put some html tags in an
Shyam,
Where in your JSP does the NullPointerException occur? Is it in a method
call in a scriptlet? If so, your JSP is still indirectly accessing the
database. What Wendy suggested was that the the database access class be
invoked from your DisplactAction class and the results be put in a
you think would be a graceful solution to this
problem? Pardon my ignorance!
Thanks,
Shyam
--- Yee, Richard K,,DMDCWEST
[EMAIL PROTECTED] wrote:
Shyam,
Where in your JSP does the NullPointerException
occur? Is it in a method
call in a scriptlet? If so, your JSP is still
indirectly accessing
pages to
handle this the condition where your data access layer can't connect to a
database.
http://jakarta.apache.org/struts/userGuide/building_controller.html#exceptio
n_handler
-Richard
-Original Message-
From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17
I would like to include a field's value in my Validator custom error
message. In my validation.xml file, I have a msg tag defined with a
key=someProperty.errorMessage. In my application.properties file, I have
defined my someProperty.errorMessage property as follows:
Sumit,
If your form parameter is null, it indicates that there is an error in your
configuration of struts-config.xml. When things are configured correctly,
form should never be null.
-Richard
-Original Message-
From: Sumit S. [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 12,
Eric,
It is generally not recommended to use the JDBC-ODBC bridge driver. There
are several bugs in the driver and it doesn't perform as well as a type 4
driver. What DB are you using? Also, you don't have to register the driver
every time. Put the Class.forName call in a static initializer or
Set the debug parameter in the web.xml file to 0. Search the archives, this
question has been asked many times already.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 12, 2003 1:44 PM
To: Struts Users Mailing List
Subject: How to Turn off
.
Thanks
Eric Zhou
-Original Message-
From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 12, 2003 3:35 PM
To: 'Struts Users Mailing List'
Subject: RE: Connect close the DB connection in Form Action
Eric,
It is generally not recommended to use the JDBC-ODBC
Richard,
Try using forward slashes in your docbase instead of '\'
docBase=E:/Projects/HelloWorld /
Java might otherwise interpret it as an escape char.
-Richard
-Original Message-
From: Richard Morris [mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2003 4:03 PM
To: Struts Users
the reason, it'd be
great... Thanks!
Yee, Richard K,,DMDCWEST [EMAIL PROTECTED] wrote: Jacob, You wrote:
unfortunately we aren't using Struts here...? If you aren't using Struts
then
a) why are you asking this question on a Struts mailing list
b) What do you mean then when you write Now if I have
Peter,
Try setting the debug parameter for the action servlet in the web.xml file
to 0. Also, if you use Log4j, you can set the logging level of
org.apache.struts to something higher than DEBUG.
-Richard
-Original Message-
From: Norr, Peter [mailto:[EMAIL PROTECTED]
Sent: Tuesday,
Jacob,
Why are you doing this in JavaScript to begin with? Why don't you use the
struts html tags to display the select boxes and populate the options lists
from collections. You can then set attributes in your form bean and have
these fields be defaulted automatically.
-Richard
-Original
across all pages -- thinking of making it more generic and Im trying
this...
Yee, Richard K,,DMDCWEST [EMAIL PROTECTED] wrote:Jacob, Why are you
doing this in JavaScript to begin with? Why don't you use the struts html
tags to display the select boxes and populate the options lists from
collections
According to the BEA website, Weblogic 7.0.2 is only supported with HP-UX
SDK 1.3.1.09
with Java HotSpotTM Server VM
-Richard
-Original Message-
From: Dave Conway [mailto:[EMAIL PROTECTED]
Sent: Friday, October 24, 2003 1:02 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts and WLS
Barry,
You are unnecessarily creating an extra String object here:
//Create list (in a loop)
cityList.add(new String(rs.getString(city)));
instead, just use
cityList.add(rs.getString(city));
-Richard
-Original Message-
From: Barry Volpe [mailto:[EMAIL
Try turning on some of the logging if you are using log4j. What is the HTML
that is returned on the blank screen?
-Richard
-Original Message-
From: Nino Garbin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 12:41 AM
To: [EMAIL PROTECTED]
Subject: application hangup without
Caroline,
A third option is to hardcode the options by putting them in an initializer
for a string array.
One of the main criteria you need to ask yourself is How often are these
values likely to change? If they may change often (daily, weekly, monthly,
etc.) then a database might be the best bet.
a change
is made. Hardcoding it in a source file might require a round of QA testing
after a change is made.
Regards,
Richard
-Original Message-
From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]
Sent: Monday, October 20, 2003 2:51 PM
To: 'Struts Users Mailing List'
Subject: RE: Keep
Meissa,
What kind of information is in your page that makes it so large? Are you
using cascading style sheets? If not, using one may help you reduce the size
of your page by moving repeating html formatting attributes to a separate
file. If a lot of your size is from repeating html tags, you also
Julie,
In Oracle, you can also limit the # of records returned and the the starting
point using rownum. Your JDBC driver can also limit the # of ResultSets.
Check the JavaDoc.
Regards,
Richard
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday,
Matt,
However, if your app is like mine probably a dozen or so connections are
opened for each Action that is
performed, so it's hard to ensure you are closing all connections
correctly.
Do you really have that many nested result sets? If not, then you could
reuse the same connections for some
Rachid,
If your application uses HttpSessions, then you can use the
java.servlet.http.HttpSessionListener class to monitor the creation and
destruction of HttpSessions. You need to configure the class that implements
HttpSessionListener in the deployment descriptor of your web application.
ex.
Sergey,
Change your HTML from input type='hidden' value='param' / to input
type='hidden' name='param' /
-Richard
-Original Message-
From: Sergey.Livanov [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 28, 2003 10:21 AM
To: [EMAIL PROTECTED]
Subject: can't pass parameters
I can't
Sergey,
Try setting the name of your hidden variable to 'param' as I wrote in a
previous email.
Rgds,
Richard
-Original Message-
From: Sergey.Livanov [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 28, 2003 10:56 AM
To: Struts Users Mailing List
Subject: Re[2]: can't pass parameters
Most IDEs (JDeveloper, JBuilder, etc. ) do will this for you.
-Richard
-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 8:24 AM
To: 'Struts Users Mailing List'
Subject: [OT] A better way to find JSP compile errors..
Hi all,
I have had
Matt,
Are you using the Struts html:radio tag to display the radio buttons? If so,
you should initialize the field in the FormBean that contains the value of
the radio button so that Struts marks one of the buttons as 'checked' for
you.
Regards,
Richard
-Original Message-
From: Matt E
Dave,
If you put your JSP pages under your WEB-INF directory in your web app, they
will be protected from direct access by your users. If you use the action
forwards in Struts and only forward to the next page once you validate the
current page, you shouldn't have a problem. Use the POST method on
Venkat,
What was the solution?
-R
-Original Message-
From: Venkat Jambulingam [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 11:06 AM
To: [EMAIL PROTECTED]
Subject: RE: Validator and DispatchAction
It works now. Thank you everyone for helping me.
[EMAIL PROTECTED]
Raghu,
David is correct in his email. You WILL need to add code to the reset()
method if you want the check boxes to work. Otherwise, you won't be able to
deselect a checkbox once it is selected. Search the archives for 'checkbox'
and you will see numerous emails on this topic.
Regards,
Richard
Mark,
There is also another way to accomplish your goal that doesn't use the
refresh header. Basically, a servlet or JSP outputs a partial HTML page
using the flush() method. The partial page contains JavaScript that
typically writes out HTML tags that produce a table inside a span element
using
and the dependency relationship so that it will be reused across
many pages/ Applications..
Any way thanks for the responses..
-Sateesh
-Original Message-
From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 20, 2003 10:23 PM
To: 'Struts Users Mailing List'
Subject: RE
Harm,
Add code to your doGet() method that looks for a particular request
parameter and if found, then re-read the init parameters by possibly calling
your init() method again.
ex. in your doGet() method have some code like:
if (request.getParameter(reinit) != null) {
Sateesh,
What you want to do is typically done on the client side in JavaScript. That
is not to say that it can't be done at the server, but for performance
reasons, the JavaScript solution avoids having to refresh the page each time
an item or items are moved from one select box to another. Once
Jan,
How long does your thread take to run? Since you are waiting for the thread
to finish anyway in your servlet, I'm not sure it is very necessary to start
a new thread to process the request. It adds a bit of overhead to process
each request since an extra thread is created for every request
Actually, my last email was wrong, they should be:
public String getLastName()
and
public void setLastName();
-Richard
-Original Message-
From: Mehran Zonouzi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 19, 2003 6:55 AM
To: [EMAIL PROTECTED]
Subject: no getter method found
I have
-Original Message-
From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 19, 2003 2:34 PM
To: 'Struts Users Mailing List'
Subject: RE: no getter method found
Actually, my last email was wrong, they should be:
public String getLastName()
and
public void setLastName
am
looking for
the
fastest possible way to do this, without developing anything new from
the scratch.
- Original Message -
From: Yee, Richard K,,DMDCWEST [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Tuesday, August 19, 2003 5:41 PM
Subject: RE: [OT
Try naming your methods
public String getLastname()
and
public void setLastname()
Regards,
Richard
-Original Message-
From: Mehran Zonouzi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 19, 2003 6:55 AM
To: [EMAIL PROTECTED]
Subject: no getter method found
I have the below in my
Hunter,
Do you have an associatedSalesperson attribute in your FormBean? If so, what
is it's value? You shouldn't really have to use the value attribute if you
set the associatedSalesperson attribute to the desired id in
associatedSalesPeople.
-Richard
-Original Message-
From: Hunter
Hunter,
In your Action, if you set the value of associatedSalesperson =
getEncodeAssociatedSalespersonID(), then it should fix your problem. Once
the form gets submitted, you can then do some processing on the value of
associatedSalesperson before writing the value to your database. Either way,
Jan,
If you are new to Java and servlet programming, you should try and avoid
using global variables. As David said, the servlet container typically
starts a new thread to service each request. You really shouldn't need to
start yet another thread inside your code. You should also avoid using
What do you mean by 'attachment'? Are you talking about an email attachment
or something else?
-R
-Original Message-
From: Jagannayakam [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 7:33 AM
To: Struts Users Mailing List (E-mail)
Subject: Downloading files using JSP
How to
How about supplying more information like the name of the method that is not
being found?
Regards,
Richard
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 12:00 PM
To: 'Struts Users Mailing List'
Subject: RE:
Message-
From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 3:06 PM
To: 'Struts Users Mailing List'
Subject: RE: NoSuchMethodException
How about supplying more information like the name of the method that is not
being found?
Regards,
Richard
-Original
1 - 100 of 119 matches
Mail list logo