Lee,
Nothing wrong about it. And I believe, this splitting would definitely
enable you to have better control over the system.
In fact, if you can manage to migrate to Struts 1.2.x, nothing like
it. They have MappingDispatchAction meant precisely for this. You just
have to put the name of the met
Nishant,
What is in your web.xml? Do you have the struts.jar in the WEB-INF/lib
directory? It sounds like you might have the .tld so the struts config can
be read but possibly (I'm guessing) not the jar.
Regards,
David
-Original Message-
From: Nishant [mailto:[EMAIL PROTECTED]
Sent: Tu
Is the class found when you hit refresh on the page? Are you using Tomcat?
Jack
On Tue, 9 Nov 2004 12:20:00 +0530, Nishant <[EMAIL PROTECTED]> wrote:
> sorry it cant help out !!!
>
>
>
> Nishant Patil
> Software Engineer
> Cybage Software Pvt. Ltd. (A CMM Level 3 Company)
> West Avenue , Kal
sorry it cant help out !!!
Nishant Patil
Software Engineer
Cybage Software Pvt. Ltd. (A CMM Level 3 Company)
West Avenue , Kalyani Nagar,
Pune - 411 006
Tel: 91-20-4041700 -355
Email: [EMAIL PROTECTED]
Website: www.cybage.com
There's a difference between knowing the path, and walking the path
---
Hi Nishant,
Replace ur controller tag with following one and check it out.
sachin
-Original Message-
From: Nishant [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 09, 2004 11:45 AM
To: Struts Users Mailing List
Subject: Re: class not found
yes i did it but it still
yes i did it but it still throwing the same error !!!
Nishant Patil
Software Engineer
Cybage Software Pvt. Ltd. (A CMM Level 3 Company)
West Avenue , Kalyani Nagar,
Pune - 411 006
Tel: 91-20-4041700 -355
Email: [EMAIL PROTECTED]
Website: www.cybage.com
There's a difference between knowing the path
Have you removed all plugIns to make sure it isn't something you are
loading?
Regards,
David
-Original Message-
From: Nishant [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 09, 2004 1:05 AM
To: Struts Users Mailing List
Subject: class not found
i am getting an exception as
- javax.se
i am getting an exception as
- javax.servlet.UnavailableException: Cannot initialize RequestProcessor of clas
s org.apache.struts.action.RequestProcessor: java.lang.ClassNotFoundException: o
rg.apache.struts.action.RequestProcessor
- Finalizing memory database plug in
my struts-config.xml file con
Jeff,
I have an odd idea why you are having your problem. In the first request
included below you wrote:
> I'm still having trouble including a Struts action
> into a JSP ().
Trying to import a struts action is likely the cause of your problem. Any
action called after another action forces the
I guess U may call a javascript like onclick="javascript:fnSubmit()" and
in that function u can set the values for the form fields and then on
last line of the function, call 'document.menuForm.submit()'
-Original Message-
From: Srilatha Salla [mailto:[EMAIL PROTECTED]
Sent: Tuesday, No
Theres a couple of outstanding enhancement requests in bugzilla which talk
about a label tag:
http://issues.apache.org/bugzilla/show_bug.cgi?id=20784
http://issues.apache.org/bugzilla/show_bug.cgi?id=18015
Niall
- Original Message -
From: "Joe Germuska" <[EMAIL PROTECTED]>
To: "Struts
If a user has multiple windows/frames/tabs open and both are making
requests at once (or it could be a double submit from a single window
(which you could catch using tokens)) then you might see this sort of
thing occur occasionally.
In this situation you have two threads both of which have a
At 4:46 PM -0600 11/8/04, Vic (Vinny) Cekvenich wrote:
Tak, just so you know, source is here:
http://svn.apache.org/repos/asf/struts/trunk
(of course I am unhappy about JSF part )
Why? It's not like Shale is carved in stone yet. (er... no pun
intended). Now is the time for people who are intere
>What do you want the Enter key to do? Do you want it to move to the next
>control, i.e., act like the Tab key?
That would be ideal - provided it continued to work as an Enter key within
textarea's.
-
To unsubscribe, e-mai
>What do you want the Enter key to do? Do you want it to move to the next
>control, i.e., act like the Tab key?
That would be ideal.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTEC
Thanks for taking the time to look at it. I've already done what you
suggest (I removed all the debug statements in this code by the way).
It is only in production, where of course the load is greater (test is
barely touched at this point). As I said earlier, fortunately this is
pretty rare,
What do you want the Enter key to do? Do you want it to move to the next
control, i.e., act like the Tab key?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, November 08, 2004 4:54 PM
To: Struts Users Mailing List
Subject: How to disable Enter=Submit on
I don't know if there is a Struts-specific way to do it, but if you just
attach an onKeypress handler to the form element and return false if the
keycode is 13, that should do it:
That keyCode variable might not be correct, I'm going from memory, but
it's close, a quick Google search should gi
Sorry Frank, but I don't see anything. I suspect there is nothing happening
to the session object down in the AccountFB constructor. You probably
already checked that.
Since it is not an easy to duplicate bug, I'd probably scatter some debug
print statements throughout that snippet of code that ch
Anyone know how to stop a struts form from being submitted when the Enter
key is pressed and focus isn't on the submit button?
(ie I still want Enter to work - I just don't want Enter to equate to
pressing submit).
-
To unsu
Thanks.
Erik
Joe Germuska wrote:
At 5:10 PM -0500 11/8/04, Erik Weber wrote:
Here is a way to do it that works with 1.1:
Username:
Omitting the "name" attribute in this would have the same effect as
including it - it's the default. It's suggested that if you are
storing messages in your ac
Can do... Remember, this is an inherited app, so don't kill me for
things done here :)
Here's the execute() method of the Action...
String path = mapping.getPath();
ActionForward af = ActionHelpers.actionStart(cat, path, mapping,
request);
if (af != null) { return af; }
H
Hmm. Can you share a bigger snippet of the code, and point out where the
exception is being thrown? (the 20 lines after)
-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Monday, November 08, 2004 4:23 PM
To: Struts Users Mailing List
Subject: Re: Session invalida
Yep, I am aware of that. I in fact call it with just
request.getSession(). I should have been clearer... at this point in my
code, **based on what I do in the code prior to it**, I am guaranteed to
have a session.
Barnett, Brian W. wrote:
You are not guaranteed to have a valid session at this
You are not guaranteed to have a valid session at this point of your code.
It depends on how you retrieved the session variable. If you called
request.getSession() or request.getSession(true), then a session will be
created for you if the request does not have a valid session. If you call
request.g
Another good point, and I'll add code to catch that. But, as I
understand it, session would never be null (not at this point in the
code anyway, which is inside an Action) because a session would have
been established by now anyway.
Also, the exception wasn't in this section of code anyway, it
Tak, just so you know, source is here:
http://svn.apache.org/repos/asf/struts/trunk
(of course I am unhappy about JSF part )
.V
Tak Yoshida wrote:
Craig,
Thank you so much for useful information about Struts in the future.
I didn't know that Struts 2.0 will support Page oriented programming,
and am
At 5:10 PM -0500 11/8/04, Erik Weber wrote:
Here is a way to do it that works with 1.1:
Username:
Omitting the "name" attribute in this would have the same effect as
including it - it's the default. It's suggested that if you are
storing messages in your actions using "saveErrors" or "saveMe
Thanks, Joe and Erik.
I got it to work using the following code:
Struts validator returns error object instead of message object.
Thanks!
Lee
On Mon, 8 Nov 2004 16:08:26 -0600, Joe Germuska <[EMAIL PROTECTED]> wrote:
> At 3:49 PM -0600 11/8/04, Struts User wrote:
>
>
> >Hello,
> >
> >
On Mon, 8 Nov 2004 11:52:14 -0800 (PST), [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> if (session == null || session.getAttribute("sessionAlive") == null) {
> request.setAttribute("message", "Your session timed out. Please log on
> again.");
> session.invalidate();
> return mapping.fin
Craig,
Thank you so much for useful information about Struts in the future.
I didn't know that Struts 2.0 will support Page oriented programming,
and am also surprised that Shale View Controller has simillar features that
OzStruts does.
What I want to have on OzStruts are
1:Page oriented program
At 3:49 PM -0600 11/8/04, Struts User wrote:
Hello,
Currently, I am using struts validator to validate the fields in my
ActionForm.
Before I updated to struts 1.2.4, I could add an error this way - errors.add(
"username", new ActionError("error.username.required"));
If the validation failed, the
Here is a way to do it that works with 1.1:
Username:
Not sure if that tag has changed for 1.2.
Erik
Struts User wrote:
Hello,
Currently, I am using struts validator to validate the fields in my ActionForm.
Before I updated to struts 1.2.4, I could add an error this way - errors.add(
"userna
Hello,
Currently, I am using struts validator to validate the fields in my ActionForm.
Before I updated to struts 1.2.4, I could add an error this way - errors.add(
"username", new ActionError("error.username.required"));
If the validation failed, the error message for username will be
displaye
That's a good point, I forgot that. I've added code to handle that situation.
I know that wasn't it though based on the stack trace (the exception is thrown
about 20 lines after the check we're talking about), but I can imagine this
might have come up too, so it made sense to add. Thanks Bria
At 1:02 PM -0800 11/8/04, Srilatha Salla wrote:
Hi,
In my application there is a jsp page
for example menu.jsp which has
there is a link Menu
Hours in the menu.jsp which goes to the hours.jsp
I want to submit the form when i click the link, so that I can
access the values entered in the menu.j
Session.getAttribute(sessionAlive") will throw an IllegalStateException if
it is called against a session that is invalidated.
Try something like this:
try {
Session.getAttribute(sessionAlive");
} catch (IllegalStateException e) {
request.setAttribute("message", "Your session timed out. Plea
Hi,
In my application there is a jsp page
for example menu.jsp which has
there is a link Menu Hours in the
menu.jsp which goes to the hours.jsp
I want to submit the form when i click the link, so that I can access the
values entered in the menu.jsp. in HoursMenuAction.
I tried
but i
Hello all. I'm cross-posting this to the Tomcat and Struts lists because I'm
not sure where is more appropriate to post it.
I have an application that is throwing the following sporadic, but thankfully
infrequent, exceptions:
stack trace: java.lang.illegalstateexception: setattribute: session
Hi Adam,
Thanks for your interest on OzStruts.
Adam Hardy wrote in <[EMAIL PROTECTED]>
>tak,
>read the pdf intro and i'm still in the dark about what ozstruts
>actually does. I appreciate all of the problem spots you highlight in
>struts, but it's really not clear how your page-driven classes o
Is there any estimated date for when Shale might appear as a production
release?
Wiebe
-Original Message-
From: Craig McClanahan [mailto:[EMAIL PROTECTED]
Sent: Monday, November 08, 2004 9:33 AM
To: Struts Users Mailing List
Subject: Re: A new paradigm of Struts development
Tak,
You an
Tak,
You and others who like the page oriented development environment will
enjoy reading about "Shale" -- it's my proposed architecture for
Struts 2.0 (basically providing application controller features on top
of JavaServer Faces), and the ViewHandler API has many of the same
characteristics you
Does the "hits and edits" chart functionality no longer work for the
Struts Wiki?
Jack
--
"You can't wake a person who is pretending to be asleep."
~Native Proverb~
"Each man is good in His sight. It is not necessary for eagles to be crows."
~Hunkesni (Sitting Bull), Hunkpapa Sioux~
I believe you would also need an indexed "set" method, like:
public void setItem(int idx, MyObject object)
{
...
}
> -Original Message-
> From: Nathan Coast [mailto:[EMAIL PROTECTED]
> Sent: Sunday, November 07, 2004 5:33 AM
> To: Struts Users Mailing List
> Subject: indexed fo
In my project I group the CRUD actions for a table into a single
dispatch action class.
I've found that sometimes I want the form validate to occur, sometimes
I don't. To accomodate this, I always have to have two instances of
my action mappings, one with validate set to true, the other to false.
Hi all,
I have a basic question: the load-on-startup element
Of web.xml determines the order in which servlet are deployed
Within the SAME webapplication or WITHIN the servlet container?
If I have a webapp1 with a servlet that has load-on-startup value of 2,
And webapp2 with a servlet th
tak,
read the pdf intro and i'm still in the dark about what ozstruts
actually does. I appreciate all of the problem spots you highlight in
struts, but it's really not clear how your page-driven classes overcome
them all.
For instance, you want to look up the action class. You have to go
throu
At 1:24 PM +0100 11/8/04, Thomas Hartwig wrote:
Hello,
I have a problem with DTDs using in an offline environment in a webapp.
Struts tries to validate several xml configurations (validator or
tiles) at startup and fails if the DTDs are not found.
I know I could hard code the absolute path to the
hello world,
My authencation process works fines (JAAS on JBoss 3.2.2 using
org.jboss.security.auth.spi.UsersRolesLoginModule for those who get
interested). It retrieves my subject with its principals (groups of
users).
The problem is this principal doesn't appear to be checked by struts
when the
Thanks for the information guys.
I actually have tried upping the response buffer size in a variety of
places (JSP, Struts action, application server configuration) but it
didn't fix the problem for me.
As for ensuring that the headers aren't messed with in the included
resource (JSP/Struts a
Have you tried ${persistentie.categorie} ?
On Sat, 6 Nov 2004 19:54:22 -0500, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Hello, I've stared blind on this one, please anyone help me.
>
> I have a "simple tag" in which I iterate through the property of a bean:
>
> class="nl.kransen.verlangli
I think the error is in the if statement
if (!password.equals(password2)) {
Where is this password and password 2 is coming from, i think either one is
from the formbean, but these are not referring any form,
i guess it's the problem
Regds
Rajagopal
-Original Message-
From: Nishant [m
i guess neither of the password fields are null
- Original Message -
From: "Nishant" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, November 08, 2004 5:58 PM
Subject: Re: problem in validate
> ya but how can i solve it it seems to be perfect
>
>
>
>
Hello,
I have a problem with DTDs using in an offline environment in a webapp.
Struts tries to validate several xml configurations (validator or tiles)
at startup and fails if the DTDs are not found.
I know I could hard code the absolute path to the DTD, but this is very
ugly. Do you have a tip
ya but how can i solve it it seems to be perfect
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
ActionErrors errors = super.validate(mapping, request);
if (!password.equals(password2)) {
errors.add("password2",
new ActionError("error.
null pointer exception is coming from the validate method of ur form bean
- Original Message -
From: "Nishant" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, November 08, 2004 5:51 PM
Subject: problem in validate
hi all,
i am gettin this error .
11/0
hi all,
i am gettin this error .
11/08 17:47:50 error
java.lang.NullPointerException
at com.cybage.RegistrationForm.validate(RegistrationForm.java:98)
at org.apache.struts.action.RequestProcessor.processValidate(RequestProc
essor.java:942)
at org.apache.struts.action.Request
I too have found this problem. I dont entirely understand it myself, but I
was told that when you restart / stop-start a webapp tomcat has to create
new classloaders - and the old classloaders are orphaned and are not cleaned
up during garbage collection, so you basically get a memory leak. In my
There are some postings on this issue on the tomcat mailing list.
I just found one bookmark:
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg137021.html
Thomas Kellerer wrote:
On 04.11.2004 12:49 Christoph Kutzinski wrote:
AFAIk this is generally disrecommended in production environm
Hi
You need to use the Switch action - Look in the docs
Hermod
-Opprinnelig melding-
Fra: Diego [mailto:[EMAIL PROTECTED]
Sendt: 8. november 2004 09:25
Til: Struts Users Mailing List
Emne: html:form and modules
Hi! I have a modularized app here, and I'm having problems with
html:form t
Hi! I have a modularized app here, and I'm having problems with
html:form tags. Is there a way to specify that the target action is on a
different module? Currently I'm forced to duplicate several action
mappings in the struts-config.xml files of my modules because I don't
know a way to do this.
T
61 matches
Mail list logo