Michael:
I think "forms" stands for the list (array?) of all forms in that document. So the
form which appears (physically) first on the document has index 0, the next one has 1,
etc. Is this what you are asking..?
Geeta
> -Original Message-
> From: Michael McGrady [mailto:[EMAIL PROT
None None: (or Someone Someone..;))
In fact maybe just adding the "type" attribute to your orignal iterate will work I
think:
Regards,
Geeta
> -Original Message-
> From: Solley, Tim [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 06, 2004 3:31 PM
> To: Struts Users Mailing List
this figured out :)
>
> That didn't seem to help either... I actually thought of that
> previously, I
> figured at some point there has to be some code casting an
> Object to a File
> object, otherwise certainly the getName() method call is
> going to fail. I
>
Julio:
Look at Riyad Kalla's answer to this question under the thread:
Accessing ResourceBundle items from Action class
Geeta
> -Original Message-
> From: Julio Cesar De Salvo [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 18, 2004 9:42 AM
> To: 'Struts Users Mailing List'
> Subject: how
Dan:
Struts 1.1 requires at least Tomcat 4.0. You will have to stick with Struts 1.02.
Regards,
Geeta
> -Original Message-
> From: Dan Tarkenton [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 19, 2004 2:20 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat 3.3.1 and Servlet 2.2/JSP 1.1 spec
let 2.2/JSP 1.1 spec compatibility
>
>
> Geeta:
>
> I can't seem to locate v1.02 via google search. I couldn't
> find it at
> http://apache.mirrors.pair.com/jakarta/struts/struts-legacy/ either.
> Any idea where I can get a copy of the struts 1.02 bin
Vishal:
If you are using tomcat, then I believe you can use dbcp. (I think that's what Riyad
Kalla was talking about too..) We use dbcp but only for connecting to one pool (and
this turned out to be quite simple: just configure the server.xml), but I think I read
that you can create multiple po
Shiva:
Just guessing here: your trace shows you are requesting this path:
"/countryWiseDetailsInput". Maybe you want something like /countryWiseReport.do?
Regards,
Geeta
> -Original Message-
> From: Hammer [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 19, 2004 2:29 PM
> To: [EMAIL PR
Mike:
My guess: Look at your Action class. Do you have database statements, result sets,
connections that aren't getting closed in a finally block?
Regards,
Geeta
> It isn't consistent, sometimes it happens, most of the time
> it doesn't.
> The one constant is that when it happens, I have to
Plus isn't it true that whether or not a new session is created on opening a new
window is browser dependent (I think..?).. I vaguely remember a discussion about this
a while ago. If this is the case, then this will impact how your application is
coded...
Geeta
> -Original Message-
> F
Frank:
I know better than to join in these (un)holy wars, but I don't know anything about
ultra-edit so am curious: ultra-edit doesn't have command completion, does it? That's
almost the only thing I have found I like about an IDE, and feel I can't do without..
..but i agree with you: ultimatel
Hi Ken:
<2 p>
Multiple actions pointing to the same action and form is valid and will work.
-Original Message-
> From: Linck, Ken [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 04, 2004 11:36 AM
> To: '[EMAIL PROTECTED]'
> Subject: Alias names that can be used in javascript to reference
>
Yes, quick, where did I misplace my medication..? ;)
>
> Now that I've opened a theological nightmare here... ;)
>
> Frank
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi Geoff:
Did you take a look at the rendered page source?
Geeta
> -Original Message-
> From: Geoff Simonds [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 15, 2004 8:57 AM
> To: Struts Users Mailing List
> Subject: Re: Accessing Array element while iterating through Map
>
> >
> Whe th
oh, wait a minute. When you said "When the page is rendered, it draws a bit of the
page", what exactly did you mean? Did you mean *none* of the iterate bit was rendered?
I thought otherwise (and was hoping it was a problem with data rather than syntax..)
> -Original Message-
> From: Geof
ah, in that case does the page render ok if you take out the iterate tag entirely?
> -Original Message-
> From: Geoff Simonds [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 15, 2004 9:32 AM
> To: Struts Users Mailing List
> Subject: RE: Accessing Array element while iterating through Map
Tim:
Have you thought about using anchor tags..? May not be a pretty solution, but could be
made to work i think..?
Geeta
> -Original Message-
> From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 15, 2004 11:25 AM
> To: Struts User List ([EMAIL PROTECTED])
> Subje
Ciaran:
Try specifically adding "validate=false" and see what happens..?
Geeta
> -Original Message-
> From: Ciaran Hanley [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 15, 2004 11:28 AM
> To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
> Subject: RE: Form Validation Before Submit
>
Anjali:
Here are two links that you may find useful:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
http://www.mail-archive.com/[EMAIL PROTECTED]/msg06123.html
Regards,
Geeta
> -Original Message-
> From: gitanjali [mailto:[EMAIL PROTECTED]
> Sent: Th
Hi Berger:
Take a look at org.apache.struts.action.RequestProcessor. I haven't used it myself,
but I think something like processMapping(..) or processPath(..) should work..
Regards,
Geeta
> -Original Message-
> From: Albrecht Berger [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 18, 20
Hi all:
I have been looking into ActionErrors vs. ActionMessages and found the following two
links:
http://nagoya.apache.org/wiki/apachewiki.cgi?StrutsDeprecatedActionErrors
and
http://www.husted.com/struts/tips/017.html
The first link suggests that ActionError will be deprecated starting 1.2
,
new ActionMessage( "msg.warning" ) );
request.setAttribute("warnings", am);
and in your page:
Sorry for wasting your time!
Geeta
> -Original Message-----
> From: Geeta Ramani
> Sent: Friday, June 18, 2004 10:44 AM
> To: Struts Users Maili
Hi bmcgovern2004:
I'm not sure I entirely understand what you want to do, but here's one answer anyway:
> In an action class, is it possible to switch gears, populate a new
> form type with some acquired values, and forward to a different
> action mapping that uses the new form?
Yes. Nothing
ps.s just noticed your subject line: If you want to create an ActionForward on the fly
in your CAtion class, that's ok too. Just create a new ActionForward, set its path and
return that in your perform/execute method.
Regards,
Geeta
> -Original Message-
> From: bmcgovern2004 [mailto:[EM
f I create an ActionForward on the fly in
> my Action class, can I also create or acquire the corresponding
> ActionForm to prepopulate it before returning the ActionForward?
>
>
> --- In [EMAIL PROTECTED], "Geeta Ramani" <[EMAIL PROTECTED]> wrote:
> &g
Hi Pavlikus :
I think you may just have a typo:
<-- don't end tag here..
Regards,
Geeta
> -Original Message-
> From: Pavlikus [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 22, 2004 1:53 PM
> To: Struts Users Mailing List
> Subject: Different form tags on same jsp
>
>
> Hi all.
> I
Pavlikus, the error message you posted was:
> >> But when jsp compiles - it show following error:
> >> -- The end tag " -Original Message-
> From: Pavlikus [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 22, 2004 2:22 PM
> To: Struts Users Mailing List
> Subject: Re[2]: Different form tags
Chris, i think what David is trying to say is that such a test of authorization does
not belong in a tag (because of the nesting problem). An easy and (non-javascript!)
way of dealing with this is to in the Action *before* the jsp is shown, determine what
the authority of the user is and then di
Julia:
I think your question may not be too clear. First what do you mean by "delete a record
in struts"? Strictly speaking, I believe Struts does not (should not) have code which
properly belongs the business/database layer. So assuming that you want to show a
confirmation page when your appli
oh ok. Just use Javascript:confirm(..)
Geeta
> -Original Message-
> From: Julia Weaver [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 23, 2004 11:42 AM
> To: Struts Users Mailing List
> Subject: RE: delete a record
>
>
> Thank you Geeta,
>
> What I want to do is when user click DELET
Hi Xinhua:
Here's a link explaining what you want to know:
http://jakarta.apache.org/struts/faqs/database.html
regards,
Geeta
> -Original Message-
> From: Lin, Xinhua [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 24, 2004 9:05 AM
> To: [EMAIL PROTECTED]
> Subject: JDBC connection
>
>
Hi Manoj:
Does your getElement() method depend on the individual request? If not you could
declare it as a static method and then simply access it using
MyXMLParserServlet.getElement(). Otherwise that method may need a request parameter in
its signature or something else - depending on your nee
uh oh.. you're spamming again..!
> -Original Message-
> From: Ricardo Andres Quintero [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 24, 2004 12:48 PM
> To: Struts Users Mailing List
> Subject: Re: R: R: R: Back Browser Button After Logout and Reload so
> that continue working
>
>
--
Hey Keith:
Try instead:
String ss = "/MRA/ModelEdit.do?action=edit¤tModelNum=" + model.getModelNum();
Regards,
Geeta
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 01, 2004 2:26 PM
> To: [EMAIL PROTECTED]
> Subject: Scriptlet Params in f
I think the problem is that you are mixing java code illegally with jstl. For example,
when you say
try{
something;
}
catch etc. the "something" better be java code..
hth,
Geeta
-
To unsubscribe, e-mail: [EMAIL PROTECTE
Erik: Here's an example:
In your Action class do:
try {
service.insertEmployee( employeeDTO );
ActionMessages messages = new ActionMessages();
ActionMessage message = new
ActionMessage("message.employee.insert.success",employeeDTO.getName() );
messa
Sorry Erik, prematurely hit some contrl key..
So, to continue, in your success.jsp add:
But to display your error, do:
Hth,
Geeta
> -Original Message-
> From: Erik Weber [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 06, 2004
Just a couple of small notes here though, (added for the Struts beginner): you will be
setting and getting a "attribute" not a "parameter". Also you will need to set/get it
as an Integer not an int..
Geeta
> -Original Message-
> From: Kailash Vasani [mailto:[EMAIL PROTECTED]
> Sent: Thu
Viral: Look at "Struts Tips" by Ted Husted on the struts home page. I am pretty
certain he discusses this very issue in detail. (I can't seem to get to that link
right now hence cannot verify..)
hth,
Geeta
> -Original Message-
> From: Andrew Hill [mailto:[EMAIL PROTECTED]
> Sent: Thursd
Kailash:
I don't think this is the case... I believe if you implement the Plugin interface and
override the init() method, you will be ok..
Geeta
> -Original Message-
> From: Kailash Vasani [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 08, 2004 8:45 AM
> To: 'Struts Users Mailing Lis
Andy:
Short answer(s): No, the values on each form get submitted to just that Action class.
And if you want the values of the other form to be submitted too, then won't it be a
good idea to add those as fields of the first form in the first place? If you can't do
that for some reason, you will
Hi Ding Lei:
Use a redirect instead of a forward and that will solve your problem..
Geeta
> -Original Message-
> From: Ding Lei [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 12, 2004 9:38 AM
> To: Struts Users Mailing List
> Subject: Browser's refresh problem
>
>
> Hi all,
>
> Ther
Hi all:
I have a question regarding the use of plug-ins. According to the docs,
"For PlugIns that require configuration themselves, the nested element
is available."
My question is simply this: how do I retrieve the value that I set in a set-property
tag? I am sure this is dead simple to most
Jim:
Yes that worked. I actually read ".. which will all have been called
before the init() method is invoked." as "which will have to be called before the
init() method is invoked." and got stumped..
Thank you so much!
Geeta
P.S> I can see now why writing to the list before googling is so t
> -Original Message-
> From: Jim Barrows [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 15, 2004 3:35 PM
> To: Struts Users Mailing List
> Subject: RE: Configuring plug-ins using struts-config.xml)
>
> > >
> > P.S> I can see now why writing to the list before googling is
> > so tempti
Hi:
I think this is the sort of thing you may be looking for:
Context ctx = new InitialContext();
org.apache.commons.dbcp.BasicDataSource ds =
(org.apache.commons.dbcp.BasicDataSource)ctx.lookup("java:comp/env/jdbc/yourDB"));
Regards,
Geeta
> -Original Message-
Hi Alvin:
This question has appeared a few times, so you may benefit from searching the
archives. Short answer(s): either use tokens (like you suggested) or use a redirect
instead of a forward.
Regards,
Geeta
> -Original Message-
> From: Alvin Antony [mailto:[EMAIL PROTECTED]
> Sent:
Ganesh:
Try something like this:
response.setHeader("Content-Disposition", "inline;filename=myfilename.xyz");
I believe if the extension ("xyz") is "unknown" then a "file save as" dialog will
always occur.
Also, and I mean this in the kindliest way, maybe you should be a bit more careful
when
Sure Craig, I guess it's a good idea to look beyond the weekend..;)
Thanks for the advice!
Geeta
> -Original Message-
> From: Craig McClanahan [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 16, 2004 12:16 PM
> To: Struts Users Mailing List
> Subject: Re: About data
> -Original Message-
> From: Koon Yue Lam [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 19, 2004 12:46 PM
> To: Struts Users Mailing List
> Subject: Datasource problem again..
>
> >
> Do I need to modify the web.xml under $Tomcat/conf ??
You have to add a "Resource" element in your co
P.S. here you go:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html
Enjoy! :)
Geeta
> -Original Message-
> From: Koon Yue Lam [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 19, 2004 12:46 PM
> To: Struts Users Mailing List
> Subject: Datasource problem again..
>
>
This may be classified as OT, and if so, please ignore it or reply to me personally.
Also if this question has already been answered I would appreciate it very much if
anyone could send me a link: I can't come up with a good search criterion to
google/search for.
I wrote a HttpSessionListener f
Reddy:
Thank you for your reply. I like your second idea better and unless I hear objections
from the list, shall go with that solution, which I certainly like better than my
original one..:)
Thank you again,
Geeta
> -Original Message-
> From: Pingili, Madhupal [mailto:[EMAIL PROTECTED
*Thanks* for posting the code! I meant to look into the link you posted earlier, since
I want such a capability, but didn't get to it.. Always knew it would profit to
procrastinate..;)
Thanks again,
Geeta
> -Original Message-
> From: Doug [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 2
+1 on this.. Actually make that a +100..:)
> -Original Message-
> From: Michael McGrady [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 28, 2004 12:44 PM
> To: Struts Users Mailing List
> Subject: Re: Re: Why does work differently than
> action="">?
>
>
> At 09:39 AM 7/28/2004,
Ricardo:
Not sure where you are having problems..? Why wouldn't something like this
(pseudocode) work?
if (isLoggedIn(user)) {
session.invalidate();
}
//now proceed normally with login with un/pw...
Regards,
Geeta
> -Original Message-
> From: Ricardo Andres Quintero [mailto:[
> Ivan Vasquez
> (Compatriota :-)
>
> -Original Message-
> From: Geeta Ramani [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 28, 2004 4:05 PM
> To: Struts Users Mailing List
> Subject: RE: Not Logged in with the same loggin-password if
> it is already regis
technically, it (the session) could be
> shared across
> computers if cookies were turned off and they had the same
> jsessionid (at
> least in Tomcat 4 & 5).
>
> Regards,
> David
>
> -Original Message-
> From: Geeta Ramani [mailto:[EMAIL PROTECTED]
> Sent: W
Exactly! Or use HttpSessionlistener and database solution (that jim outlined)
simultaneously..
(We are doing almost this except as a solution to a kind of "opposite" problem - when
a user logs off we need to do soem work so.. this seems to work nicely)
> -Original Message-
> From: news
The HttpSessionlistener interface is your friend ..;)
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSessionListener.html
All you do is write a class which implements it and overwrite the
sessionDestroyed(HttpSessionEvent) method and bob's your uncle.. (Note that
HttpSessi
Yes but wont the container "know" when a user closes his/her window? Are you saying
this isn't something that a container will be notified about..?/ ..hmm... maybe not...
ok, Robert scratch my earlier note..(like I said i ought to go home..)
> -Original Message-
> From: Brett Connor [mai
ps. But if you know what's good for you you will stay right away from javascript..
> -Original Message-
> From: Brett Connor [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 28, 2004 4:47 PM
> To: Struts Users Mailing List
> Subject: Re: Not Logged in with the same loggin-password if it i
it, not proficient in it
> (yet), and have to have a darn good reason before I go there,
> kind of a
> last resort.
>
>
> Geeta Ramani wrote:
>
> >ps. But if you know what's good for you you will stay right
> away from javascript..
> >
> >
>
Hi everyone:
I would like some clarification regarding the HttpSessionListener. (We are using
servlet spec 2.3)
Here's what I want to do: When a session expires, either when a user uses the "logout"
feature or due to time-out, I want to delete a certain row from the database. The
specifics of
Thank you, Sahil. This error kind of threw me - two days ago i would have sworn I knew
all I needed to know about the HttpSessionlistener (teach me to be to so sanguine!) -
so I am glad to hear confirmation about my proposed solution.
Thanks again!
Geeta
> -Original Message-
> From: G
able to trap the attribute which are
> associated with the session.
> It just work fine for us.
>
> -Jignesh
>
>
>
> On Fri, 2004-07-30 at 10:00, Geeta Ramani wrote:
> > Hi everyone:
> >
> > I would like some clarification regarding the
> HttpSessionLis
ahh, wait. You are using tomcat 5 which implements servlet 2.4 and the javadocs for
2.4 says under sessionDestroyed() the following:
Notification that a session is **about to be** invalidated.
They changed the tense on us!! :) ..Explains why your code is working just fine! Also
gives me hope th
You mean something like this?
http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html
Geeta
> -Original Message-
> From: Bussie, Andre D [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 30, 2004 10:48 AM
> To: [EMAIL PROTECTED]
> Subject: DAO Resource Suggestions
>
Ah. You mean session.getId() would not bomb on me after the session is invalidated, is
that right? In which case, that's a good idea too.. Thanks!
Geeta
> -Original Message-
> From: K. Citron [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 30, 2004 10:57 AM
> To: Struts Users Mailing List
Or you could write a RequestProcessor and override the processPreprocess method with
something like this:
HttpSession session = request.getSession();
if ( (session == null) || (session.getFavouriteObjectInSession == null) ) {
//use Response object to redirect to login page with error set;
Well, you could put in a check for whether they are already in the login page. You
could use methods like getRequestURI() on the request object or something like:
if ((request.getParameter("username") != null) && (request.getParameter("passowrd") !=
null) ) {
return true; //ie normal proc
Hi Carl:
Look at this link and follow it to the letter - and you should be fine.. :)
http://struts.apache.org/faqs/database.html
Good luck,
Geeta
> -Original Message-
> From: Carl T. Dreher [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 30, 2004 10:38 AM
> To: [EMAIL PROTECTED]
> Subject
Thanks for your note, Subramaniam. I went with K.Citron's suggestion of getting the
sessionId from the session and that seems to work great too. It seems (for whatever
reason) session.getId() works fine after the session is invalidated though
session.getAttribute() bombs...
Regards,
Geeta
> -
Hi Nick/all:
This may be relevant to this topic, but the "Search" feature for the
Struts archives seems to be broken..? I just get a "Text search not
available for this list" regardless of what I do/how I search. I used
this link:
http://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]
s.apac
Hi Alex, this question was asked before, so I searched the archives and
found the following threads:
http://marc.theaimsgroup.com/?l=struts-user&m=99851089726272&w=2
and
http://marc.theaimsgroup.com/?l=struts-user&m=99307752323367&w=2
and
http://marc.theaimsgroup.com/?l=struts-user&m=984674127
Hi Zoran, not directly helpful, but here's a link which will enable you
to search the archives:
http://marc.theaimsgroup.com/?l=struts-user
Geeta
-Original Message-
From: Zoran Avtarovski [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 23, 2004 9:12 AM
To: Struts Users Mailing List
Hi, take a look at:
http://struts.apache.org/userGuide/installation.html
the " Install A Struts Binary Distribution" bit is what you are looking
for.
Hth,
Geeta
-Original Message-
From: CCNY [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 23, 2004 9:55 AM
To: Struts Users Mailing L
Jerry:
Maybe you are looking for something like request.setAttribute(String, Object)..?
Geeta
Jerry Jalenak wrote:
> Wendy -
>
> It can be something as simple as an error status, or as complex as a List
> object. I can't use the session because where I am redirecting back to can
> be a second
oh right, you did mention you're redirecting, didn't you.. Yuk.. Ok, since you
say your objects aren't just Strings, you'll have to add it to the session and
then remove it when you are done with it.. Nasty, but I don't know how else you
can do what you want to do..(:(
Jerry Jalenak wrote:
> Doe
Too funny..!!! Fell off my chair laughing..:)
Wiebe de Jong wrote:
> If you use the strut from an old car, it might have some carbon on it. Take
> it to the prom.
>
> -Original Message-
> From: Mark Lowe [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 02, 2004 9:18 AM
> To: Struts Users
Paul:
Couldn't you instead let the database do the heavy lifting for you? I mean,
just assume that in fact the user editted the unique field just fine, and
try to insert. If the database has the uniqueness requirement built in (and
I assume your database administrator wont let you near it without
James:
Why this happens is because you are proabably forwarding (rather than
redirecting) to Something2Action - so the request object is intact for your
second action. So you can choose to redirect instead.. however be aware
that if you redirect, *everything* in the request object then will be lo
Marcelo;
You are probably exhausting all your connections in the pool. Make sure all your
connections
are returned back to the pool at the end of a "finally" block. That way the connection
is
returned to the pool regardless of whether your database work was a success or not.
Also, while
you ar
This your problem: closing the connection in your try block. Move it to a finally
block..
Marcelo Epstein wrote:
> I use the pool like this: (IS IT WRONG??) I think the connection is being closed..
>
> try {
> Context ctx = new InitialContext();
> if (ctx == null)
>
?
> Its not a driver connection rather a data source connection...so waht happens when i
> do conn.close()?
> does it go back to the pool?
>
> -Original Message-
> From: Geeta Ramani [mailto:[EMAIL PROTECTED]
> Sent: Tue 4/6/2004 10:20 PM
>
Ah, well, you didn't read the fine print:
-->>Note: this code isn't anywhere near production ready - it's only supposed to be
used as a simple test :-)
Believe me, you should close connections/return them to the pool in a finally block if
you want to avoid major
problems.. As I said before, thi
*Quite* right: there was one time we had set the autoCommit on the
connection object to false, forgotten to change it back before releasing it
to the pool andwell,all I can say is we spent some "interesting" hours
trying to debug that one!
Geeta
Larry Meadors wrote:
> Yes.
>
> So be careful
Jumping in here.. (so ignore this if you already have an answer..:)
If you have just the teachersDisplay form in your jsp do things work? Try that. My
feeling is that it isn't the fcat that you have *two* forms/beans that is the problem..
Regards,
Geeta
-Original Message-
From: as as [m
Hi Matt:
Couple of suggestions. First (potentially yukky): Add appropraite javascript:onLoad()
methods. Easy to do, but..
Also, is it so bad to display the form with the earlier data in it? Maybe be termed a
feature not a bug?? :)
I have never worked with session scoped forms, but are you say
Yes you do! :)
-Original Message-
From: sudheshna aaa [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 22, 2004 11:14 AM
To: [EMAIL PROTECTED]
Subject: RE: close the window if no errors
But if I use
mapping.findForward( "done" ); screen is hanging
Do I need to define "done" in struts-con
Matt:
> -Original Message-
> From: Matt Bathje [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 22, 2004 11:27 AM
> To: Struts Users Mailing List
> Subject: Re: session form "reset"
>
>
> Here is the chain of events, maybe that will help
>
> Form Preloader -> Form Page -> Submit Action
Actually since you are going to close that window onLoad anyway, it wouldn't really
matter :), but in the interest of not scaring your users ;), you'd probably want to
forward to the "same page" they were on. (Btw, according to Nathan's suggestion, the
closing is done by Javascript, so your not
How about just this: (iow, don't add the "session.removeAttribute("myform"); bit.
That's the part that gives you the error, right?)
>
> myForm.set("mybean", mybean);
> request.setAttribute("mybean", mybean);
> session.setAttribute("myform", myForm);
Won't that work for you?
Geeta
-
Hey I think I know what you are looking for. Correct me if I am wrong but here's what
i assume you are doing:
You have a "parent" window where somebody licks a link or something which opens a
"child" window and the user edits stuff in the child window and then submits it. Off
the form goes to a
it without doing the removeattribute, and it
> still leaves the
> wrong data. (No crashes though...)
>
> Matt Bathje
>
>
> - Original Message -
> From: "Geeta Ramani" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List"
> Thanks for the help.
>
> Matt Bathje
>
>
> - Original Message -
> From: "Geeta Ramani" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, April 22, 2004 11:09 AM
> Subject: RE: session form "
Sudheshna:
I think you may be misstating the problem whne you say "exzamine the errors object in
the child window" and thereby tying yourself in knots. :) Because really the
"examination" is happening in the action. This may be why you have not seen what
Nathan has been trying to suggest. Anywa
Option (c) - but that's just in my case..:)
> -Original Message-
> From: Hernan Soulages [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 22, 2004 4:18 PM
> To: [EMAIL PROTECTED]
> Subject: setLocale 2.0
>
>
> I sent a message asking about a problem with setLocale. Since
> I haven't
>
and if you cannot find it, contact me offlist. I know I have an implementation
somewhere; i can look for it over the weekend. :)
> -Original Message-
> From: Paul McCulloch [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 23, 2004 11:04 AM
> To: 'Struts Users Mailing List'
> Subject: RE: O
Hello all:
I have always worked with Sun Studio One and making log4j work was a piece of cake.
Throw the jar in the classpath, put the log4j.properties in WEB-INF/classes, restart
tomcat and bob's your uncle.
However the company i work for now uses eclipse and I assumed (wrongly as it turns
ou
1 - 100 of 126 matches
Mail list logo