Hi,
What's the url-pattern for you filter? If it's being called more than once
for an action I'd guess that you have it set to intercept all the requests.
Changing it to something specific, like *.do, might help.
LoggingFilter
*.do
HTH.
ATTA
On 3/14/06, Hans-Peter Petek <[EMAIL PROTECTE
Thank you all for sharing your thoughts.
ATTA
On 3/8/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
>
> On 3/8/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > I would also get the "Gang of Four" book if you don't have it -- the
> original "Design Patterns" book with code examples in C++.
>
Folks,
I was wondering if someone could please share some recommendations on a good
beginner book on the topic of OO analysis and design.
Thanks.
ATTA
Jim,
What do you mean next time login? Logging in without reloading the app or
restarting Tomcat?
Did you if you had autoload set to on on your Tomcat app?
For most of the servers (both servlet containers like Tomcat and app servers
like Weblogic for example) I'd expect that you will have to rel
[X] JDK 1.5 (or JDK 5)
No validator.
HTH.
ATTA
On 1/23/06, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> Simon Chappell wrote:
> > 1.4.1 and Struts 1.1
> >
> You're lucky.
>
> About 2/3 of our deployments are on 1.3.
>
> We use 1.3, 1.4, and new stuff will (hopefully) be 1.5.
>
> I'm using validat
any anchors, on the page?
any chance the image is within a submit tag/button?
how/where your action is forwarding after processing?
ATTA
On 1/6/06, Faisal Shoukat <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
>
>
> I have a problem where for some unknown reason my form is submitted
> twice. I have a
("value :" + value);
> >
> >count++;
> > }
> > }
> >
> > Customer[] customers = new Customer[count];
> > System.out.println("Customer[] size :"+customers.length);
> > ListTextActionForm f = new ListTextActionForm();
> >
> > f.setCustomer(customers);
> >
> > } else {
> > System.out.println("Customer[] is null");
> > }
> >}
> >
> > No error arise if no new row is added and code work fine.
> >
> >
> > Any solution to this issue
> > atta-ur rehman: Can i have ur msn/hotmail id for efficient conversation.
> >
> > Thanks
> >
> >
>
>
new row functionality of HTML table in
> > Struts
> >
> > No, user can add has many row he needed before submit... I had just
> added
> > one row to handle this scenario... It should work for as many row user
> has
> > added...
> >
> >
I think, ArrayIndexOutOfBoundsException actually shows that changes to the
DOM are being submitted.
ATTA
On 12/19/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
>
> On 12/18/05, Irfan Shaikh <[EMAIL PROTECTED]> wrote:
> > No, user can add has many row he needed before submit... I had just
> add
mer[] customers = new Customer[count];
f.set("customer", customers);
On 12/18/05, Irfan Shaikh <[EMAIL PROTECTED]> wrote:
>
> No, user can add has many row he needed before submit... I had just added
> one row to handle this scenario... It should work for as many row user
okay, so you're saying use can add only ONE row dynamically before submit?
and that the newly added row's HTML code is:
if that's the case, in your ActionForm's reset method, detect that user has
added a new row, maybe thru request.getParameter("cus
> so
> that i can get the new added row data to create a new Customer bean and
> put
> it back to Customer[] array (this is my collection)
>
> Here is the loop for rows genration on JSP page :
>
>
>
>
>
>
>
>
>
Irfan,
How are you storing data required for initial rows? As a collection of
objects in some scope that uses to paint them on the page?
When user submits the page how are you getting the updated values?
Populating the objects in the same collection or constructing a new
collection and adding a
Chris,
I'm sure you'd know scriplet way of doing it, which I'm not going to
recommend: <%=request.getAttribute("toDate") %>.
Struts' bean:write should do it:
Better still if you're using Servlet 2.4 compliant app server/servlet
container you could use JSTL expressions: ${toDate} and it will sea
Hi,
Most probably your page is gettnig cached by the browser. try
or
<%
response.setHeader("pragma", "no-cache");
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Cache-Control", "no-store");
response.setDateHeader("Expires", 0);
%>
to keep your browser from caching t
Hi Starky,
Yes, I'd think that having a common super class for a set of form classes
that all have some common fields should be a good idea. Not only you get
shared fields but also reset() and validate() can be reused in subclasses,
for example.
ATTA
On 10/27/05, starki78 <[EMAIL PROTECTED]> wr
Hi,
what's the exception?
does your form class has a method getPb()/setPb() and is it non-null for the
current instance of the form?
ATTA
On 10/27/05, Kanuri, Chand <[EMAIL PROTECTED]> wrote:
>
> Hi,
> i am testing my action class using MockStrutsTestCase.
> the properties that are threre direc
Asad,
Is this your complete struts-config.xml? If so, you're missing
collection in it. Please add your form in the and then add the
"name" attribute in the action to refer to your form.
and then in your action mapping:
>
> />
>
also make sure sure in your JSP you're using html:text
Jeff,
Assuming the code snippet in a method that returns an ActionForward, like
the execute() method itself, you can instantiate ActionForward and return
it:
else if(action.equals("sendMessage"))
{
String member = request.getParameter("member");
ActionForward forward = new ActionForward(sendMembe
On 9/30/05, Borislav Sabev <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I'd like to set a label of submit buttons getting it from property file.
> But seems that this is not possible.
> One other problem I see is that value attribute has two purposes: to set
> the label, and on submit to provi
.
>
>
>
>
>
>
>
Reset <-
>
>
ATTA
On 9/30/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> To do it the way you have shown then I would have to have a reset
> button/link next to the edit/delete link at the bottom of the p
he results
> displayed below by clicking on reset.
>
> At the moment I have
>
>
>
>
>
>
>
>
>
>
>
>
> in my jsp and in my form I have a blank reset method. But this does not
> get called.
>
>
>
> -Original Message-
> From: atta-ur rehman [m
button.
> How would I blank the search criteria and get rid of the results
> displayed below by clicking on reset.
>
> At the moment I have
>
>
>
>
>
>
>
>
>
>
>
>
> in my jsp and in my form I have a blank reset method. But this does not
>
in the actionClient action class, on reset button click:
ActionForm form = (ActionForm) session.getAttribute("searchClientForm");
if (form != null) {
form.reset(...);
}
only if I understood your question correctly and search form is not doing
anything with mapping and/or request in it's reset() m
from:
http://java.sun.com/j2se/1.4.2/docs/api/java/io/Serializable.html
"When traversing a graph, an object may be encountered that does not support
the Serializable interface. In this case the NotSerializableException will
be thrown and will identify the class of the non-serializable object."
A
Hi there,
try this:
if (username == null || username.trim().length() == 0){
ActionMessages messages = new ActionMessages();
ActionMessage message = new ActionMessage("credentials.empty");
> messages.add(ActioneMessages.GLOBAL_ERROR, message);
> saveMessages(request,messages);
}
Basically, the
e web layer) to manage the data layer.
>
> Is that the cleanest way to do that?
>
> Larry
>
>
> On 6/26/05, atta-ur rehman <[EMAIL PROTECTED]> wrote:
> > Servlet filters would be way to go for this particular situation:
> >
> > http://www.hibernate.org/
Servlet filters would be way to go for this particular situation:
http://www.hibernate.org/43.html
HTH.
ATTA
On 6/25/05, Ashraf Fouad <[EMAIL PROTECTED]> wrote:
> I'm openning a hibernate session for each request, so I want to close this
> after rendering data in JSP, as usually the objects are
if you're running servlet container that supports 2.4 servlet specs
and you web app is also configured to be of version 2.4, thru
element in your xml:
${myobject}
in your JSP should print it. in scriptlets:
<%=session.getAttribute("myobject")%>
should work.
"session" is reference to current s
Hello Tarek,
I'd say front your application with a Servlet Filter that checks for
the security of the current page against security runles defined in
database/XML and probably cached for the current session to avoid
hitting database for every request.
ATTA
On 5/25/05, tarek.nabil <[EMAIL PROTECT
Hi,
try
formName.property
formName is the name that you defined in your struts.xml for the form
of current action. it should work. and the reason it works that Struts
puts the form object under the 'name' key in either request and
session scope depending upon the 'scope' attribute of your curre
I'll start with the first five :)
http://www.google.com.pk/search?q=servlet+filter&sourceid=mozilla-search&start=0&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:official
ATTA
On 5/24/05, Janek Ziniewicz <[EMAIL PROTECTED]> wrote:
> Thank you Michael, that link really helped me
#4
On 5/12/05, Marco Mistroni <[EMAIL PROTECTED]> wrote:
> #4 ..
>
> > #1 - so I generate them from my POJOs using XDoclet. All the other
> > frameworks I use (JSF, Spring, Tapestry and WebWork) allow me to use
> my
> > POJOs directly.
> >
> > Matt
> >
> > On May 11, 2005, at 4:02 PM, Michael Jo
l.
>
> On 4/16/05, atta-ur rehman <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > Action class defines getResources(HttpServletRequest) method, thru
> > which I can get access to MessageResources.
> >
> > I don't see an equivalant method in Actio
Hi all,
Action class defines getResources(HttpServletRequest) method, thru
which I can get access to MessageResources.
I don't see an equivalant method in ActionForm. Is it possible to get
access to resource files in ActionForm subclasses? If so, how would I
do it?
Thanks.
ATTA
---
ss object.
> > The Controller creates it from the request, and it bounces around
> > between the Action and the JSP Tags (or other View Tools). But, it
> > should *never* go past the Action into another layer.
> >
> > Aside from that key best practice -- the ActionForm should
Okay, Leon,
Now I got to PRINT this and read before I speak!
Many thanks for your time and thoughts.
ATTA
On Apr 1, 2005 5:24 AM, Leon Rosenberg <[EMAIL PROTECTED]> wrote:
> On Fri, 2005-04-01 at 05:14 -0800, atta-ur rehman wrote:
> > Leon,
> >
> > Thanks for yo
course, in the end, it doesn't really matter. The ActionForm is
> > what the ActionForm is. The one thing it is not, is a business object.
> > The Controller creates it from the request, and it bounces around
> > between the Action and the JSP Tags (or other View Tools). But,
Dea all,
I'm sure I've seen this topic before! Just can't remember where and
google won't help either! Can anybody please explain which MVC layer
form belongs?
TIA.
ATTA
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additiona
No! there won't be any problem at all if you don't use any form at
all! Just set your collection of records as request attribute and off
it goes to JSP!
ATTA
On Mon, 27 Dec 2004 17:01:16 +0530, uma.k <[EMAIL PROTECTED]> wrote:
> Hi,
> I wanted to fetch some records from the database and show it
Matt,
Have you discovered any 'standard' way of putting up confirmation
message in Spring or you still advocate using HttpSession a a vehicle
as donein Equinox?
Regards,
ATTA
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addi
All,
What's the 'standard' way in Struts to input data in a table whose
number of rows and columns (yes, for both rows and columns) is
decided dynamically on every request? Indexed properties don't seem to
be working with variable number of columns.
So far I've to deal with only elements but th
if JDK 1.4 is an option you might want to take a look at:
java.util.prefs.*
HTH.
ATTA
On Tue, 16 Nov 2004 19:09:55 -0800 (PST), Julian <[EMAIL PROTECTED]> wrote:
> Hi, I am a Struts Newbie and would appreciate if
> anyone could give me some pointers on a user
> preferences/ configuration syste
Is JSTL an option? I find Struts Logic tag hard to read! If so, I
think this should do:
HTH. Of course this is from top of my head, i haven't tried it.
ATTA
On Tue, 02 Nov 2004 16:16:25 -0800, Janice <[EMAIL PROTECTED]> wrote:
> My brain has stopped working. I need an alternative
Paul,
Putting it in web-inf/classes should do the trick.
ATTA
On Tue, 26 Oct 2004 11:51:41 -0400, Paul Summers
<[EMAIL PROTECTED]> wrote:
> I want to use Log4j in my Struts application. Where do I place my
> log4j.xml file so that the application loads my loggers?
>
> In the past I wrote a pl
Dear all,
I've contemplated two ways of implementing DAO pattern; and I'm unable
to decide which is better :) Any comments on pros and cons of these
two approaches will be greatly appericiated.
Implementation 1: Have IDAO interface and let all the DAO objects
implement this interface; with probab
Folks,
I've seen quite a few references to Struts and Spring integration
while browsing this mail archive. I was wondering why would I ever
want to use Spring with Struts application?
I hope people who have experience with both of these framework would
shed some light on this question.
Regards,
Craig,
That sounds pretty exciting. Now, how could I, if at all, incorporate
this Filter/Chian functionality in my existing Struts 1.1 app?
ATTA
On Sat, 18 Sep 2004 07:19:45 -0700, Craig McClanahan <[EMAIL PROTECTED]> wrote:
> Commons Chain (on which Struts Chain is based) has a design pattern
heForm"];
> for(i = 0;i < total;i++) {
> target = "property["+ i +"]";
> element = form.elements[target];
> alert(element.name +"="+ element.value);
> }
>
> Mark
>
>
>
>
> On 23 Jul 2004
hello,
this is how i've done it:
textbox = document.getElementById("block[0]");
if (textbox.value )
so basically you use document.getElementById("property[0]") to get the
reference of html elment and then use .value or any other stuff on
this element.
hope this helps!
ATTA
On Thu, 22 J
hi,
yes it's possible if both the form classes are inherited from the same
base class that has the common field getter/setter defined in it.
but why not have the same field in the both the forms? won't it be easier?
ATTA
On Thu, 22 Jul 2004 18:11:31 +0100, Ciaran Hanley
<[EMAIL PROTECTED]> wrot
must be doing something wrong. That's giving me the same value as
> Erez's example. Strange, I would have expected it to give me
> "/services". I wonder how I am causing it to give me "/usecase/page.jsp".
>
>
>
> atta
Hi Erik,
This one worked for me:
<%= request.getServletPath() %>
HTH,
ATTA
On Tue, 20 Jul 2004 16:20:30 -0400, Erik Weber <[EMAIL PROTECTED]> wrote:
> How can I set a variable (I assume with c:set) that will hold the value
> of request.getServletPath, so that I can use it in el ta
okay some wrong key i pressed! so to continue:
on body onload
onload="location.hash='newBlock'";
>
does the trick for me!
ATTA
- Original Message -
From: "atta-ur rehman" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EM
Hello Glenn,
I've used a little javascript to the trick; though i'm sure there must be
some better way of doing it:
have an anchor in your jsp:
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 09, 2004 10:55 AM
Subject: # anchor
> Hi,
>
> This
Hello Damien,
have a new class called row:
public class Row {
private List items;
public Row(int size, String defaultValue) {
items = new ArrayList(size);
for (int i = 0; i < size; i++) {
items.add(defaultValue);
}
}
public Row(int size) {
this(size, "");
}
public List getIte
How about:
ATTA
- Original Message -
From: "toto2004b2000" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 07, 2004 1:34 AM
Subject: Form action relative path
> Hello,
>
> My application is "toto" and with this struts tag
>
> the generated HTML code is
>
>
> I n
Hello Dave,
I think you're pretty close! I don't see why do you have to resize the list
in the setter though? Here is what I've done and it works:
public BlockEffort getBlock(int index) {
while (blockEffortList.size() <= index) {
blockEffortList.add(new BlockEffort());
}
return (BlockEff
Weber wrote:
Thanks for helping.
I assume you mean this part:
controller
/
The above code works (hooray), but if I try to change the url pattern
to anything more specific (such as /login, or /login*, or /login/*) I
get the wrong action parameter value . . .
atta-ur rehman wrote:
Okay, now you ne
#x27;t want to
use extension mapping. I want to use path mapping. Is this where the
problem is?
atta-ur rehman wrote:
Hello Erik,
Is it possible for you to show your struts-config.xml file?
ATTA
On Jul 5, 2004, at 4:01 PM, Erik Weber wrote:
Could someone please tell me what would cause t
fixes including "/login" and "/login/*" and "/". None of them
result in the correct action parameter in the form. I don't want to
use extension mapping. I want to use path mapping. Is this where the
problem is?
atta-ur rehman wrote:
Hello Erik,
Is it possibl
Hello Erik,
Is it possible for you to show your struts-config.xml file?
ATTA
On Jul 5, 2004, at 4:01 PM, Erik Weber wrote:
Could someone please tell me what would cause the html:form tag to
ignore the value I specify to the action parameter, and instead,
rewrite the action parameter value to be e
I think Mozilla Firefox 0.9.1 would make you WOW! (all capitals!)
http://www.mozilla.org/products/firefox/
ATTA
- Original Message -
From: "Michael McGrady" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 30, 2004 9:51 AM
Subject: [OT] Netsc
to find a value for "key" in object of
> class "java.lang.String" using operator "." (null)
> at
org.apache.taglibs.standard.tag.el.core.IfTag.condition(IfTag.java:102)
>
> Any ideas?
>
> -Asif
>
> - Original Message -
> From: "atta-ur
Hello Asif,
Now I havn't checked what I'm going to write here but am pretty sure it
should work.
First of all while adding your ActionError to ActionErrors use 'company' as
the key for the company errors and 'factory' for factory related error
messages.
like:
ActionErrors errors = new ActionErr
t;
> }
>
>
> public void setSite(int index, SitesDTO site) {
>
> this.sitesList.add(index,site);
>
> }
>
>
> where "site" in the logic:iterate has a matching "site" SiteDTO object in
> the actionform.
>
> -Asif
>
>
>
>
okay, the other link was
http://jakarta.apache.org/struts/userGuide/building_view.html#indexed
hope this helps.
ATTA
- Original Message -
From: "atta-ur rehman" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "Asif Rahm
Hellow Asif,
"Indexed Properties" is exactly what you need here. For more info, please
search thru the mail archive at:
http://www.mail-archive.com/[EMAIL PROTECTED]/
or at:
- Original Message -
From: "Asif Rahman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 15, 20
Hello there,
Does your tag has attribute
enctype="multipart/form-data"
set?
HTH,
ATTA
- Original Message -
From: "swarna" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 06, 2004 2:23 PM
Subject: file upload problem(illegal argument)
> Hi,
> I am trying to do
Hello Miguel,
You might want to search the archive for "indexed properties"; I think
that's what you're looking for.
HTH,
ATTA
- Original Message -
From: "Miguel Arroz" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 02, 2004 4:04 PM
Subjec
Hi,
As far as I know, both the reset() and validate() method are passed the
request object. You could get the session from this request object.
HTH,
ATTA
- Original Message -
From: "Shyamal Shah" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, May
Hello Robert,
As far as I know Struts doen't provide anything like this. And actually it
should not!
You'd use Thread class to implement such a task that needs to return
immediately while running in the background.
Hope this helps.
ATTA
- Original Message -
From: "Wei, Robert (MAN-Cor
72 matches
Mail list logo