Another question:
If I have no submit button. How do I make it that the 'Enter' key triggers a
JavaScript function?
This is because I need to do some processing before submitting.
Regards,
Daniel
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday,
On Sun, 29 Dec 2002, Lirian Ostrovica wrote:
Hi,
I need to access an Action instance (I have its class name) while
writting a Tag.
I have seen that ActionServlet stores Action instances in a 'protected'
variable (FastHashMap), and so far the only way I can see, is to extend
Hi Usha. We are using struts-layout, and I have to say that is very useful!!
We've used it mainly for developing only 1 jsp for a one maintenance use case
(create, update, delete), because it allows to specify with tags and code the enabling
and
disabling of components (if you are in an update,
In terms of your question, I think that it doesn't have to do anything with struts.
You can use it without it, but maybe I'm wrong
Hi
anybody is using the struts-layout taglibraries. i wanted to know how to
use this with strutsv1.0.2.
thanks
usha
--
To unsubscribe, e-mail:
Hi
Thnaks a lot for replying. yes i defenetly need the help from u in using
the struts-layout . i was just struggling to implement the struts-layout
from past 1 week. right now i have 1 problem i am using the text tag
where i am specifying the isRequired=false but still it displays the
pixel
Thanks for your reply; it helped me to go further on...
Now, I know where the problem is: it's nothing with Hibernate or Postgres. In fact
with the multipart form encoding, the characters are encoded with Unicode (or UTF-8?).
For example my € symbol is represented by the 8364 code. With the
You can use something like this
function captureEnter ()
{
var keycode;
if (window.event)
keycode = window.event.keyCode;
if (keycode == 13)
{
//Your processing
}
}
You can call this function on keyPress event of your control
-
Would that work if my control is a password input field ?
Regards,
Daniel
-Original Message-
From: deepak [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 30, 2002 7:41 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: disable enter key
You can use something like this
Hi,
I am using Netbeans 3.4 and I try to test struts-el.
When I try to compile a JSP with a html-el tag like html-el:text I get
the following error :
login.jsp [-1:-1] java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at
I struggled with pretty much the same error message all weekend, getting
more and more frustrated because I could see the getter method. Turns out,
I wasn't returning the object that I thought I was, so there indeed was no
getter method for the property that was being referenced.
See if you can
Should work I have not tried it. Just try it out
- Original Message -
From: Daniel Joshua [EMAIL PROTECTED]
To: 'deepak' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, December 30, 2002 5:12 PM
Subject: RE: disable enter key
Would that work if my control is a password input
This works with input type=text
- Original Message -
From: Daniel Joshua [EMAIL PROTECTED]
To: 'deepak' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, December 30, 2002 5:12 PM
Subject: RE: disable enter key
Would that work if my control is a password input field ?
Regards,
Hi,
I have a loginAction. If login is successfu, I want to perform another
action as follows.
forward name=Success path=/action/getaccountinformation
redirect=true/
I am not sure whether to use true or false for redirect. What is the
difference and which one should I use in this case?
Thanks,
hello,
On some forms I have a no getter method error , and I can't see the reason.
The problem doesn't exist if I use for ex. a html-el.text element.
This is my form
public class ActivityCenterForAgendaForm extends ActionForm {
private String str;
private String acChecked[];
Jeff,
This looks good, but this may not suit us as well as struts
does.
We had tough time convincing our mgmt/client to accept struts, no
way they can accept another opensource, they are convinced of
apache/jakarta projects now.
moreover 90% of our screens have to be in HTML.
There are few
Kiuma,
It looks like you need to change your property caChecked to acChecked
David R
kiuma [EMAIL PROTECTED] wrote:hello,
On some forms I have a no getter method error , and I can't see the reason.
The problem doesn't exist if I use for ex. a html-el.text element.
This is my form
David Rothschadl ha scritto:
Kiuma,
It looks like you need to change your property caChecked to acChecked
David R
kiuma [EMAIL PROTECTED] wrote:hello,
On some forms I have a no getter method error , and I can't see the reason.
The problem doesn't exist if I use for ex. a html-el.text
Search the mailing list for chaining actions. This has been covered
several times in this list.
Regards,
Vikrma
- Original Message -
From: Suresh Addagalla [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 30, 2002 11:01 PM
Subject: redirect attribute (newbie)
Hi,
I have
Hi All
I want to do some Action before displaying one JSP page let's say.
How to achieve that one...???
I.e before displaying welcome.jsp if I want to call an Action Bean.
How shall I proceed.
Any suggestions..!!!
Regards
Shabbir
The best technique to date for doing this is to have welcome.jsp do a
redirect to an action which then ends up on the page you want to be at.
James
-Original Message-
From: Shabbir Khadir Mohammed [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 30, 2002 8:33 AM
To: Struts Users
As others have said, it's unclear exactly what it is you need to do, but here's
a general suggestion for having a tag handler and action play nicely together -
use scoped attributes. In other words, if your tag handler needs some
information from your action, have the action place the information
Define a start action or something and point there..
Forward to the welcome page, or perhaps not depend on whether your some
action is happy.. (i.e. Doesn't throw an exception, or fail anything).
On 30-12-2002 13:32, Shabbir Khadir Mohammed [EMAIL PROTECTED]
wrote:
Hi All
I want to do
I have my ActionServlet mapped to *.do and an ActionFilter mapped to
that same url-pattern. In ActionFilter, I check to see if there is a
UserForm in the session, and secondly to see if
request.getRemoteUser() returns null. If either of these occur, I
call my Business Delegate (UserManager in my
Actually, I'm not getting the famous Struts blank screen of
nothingness, but rather, it seems that validation is just not kicking
in - it routes me to my success page.
I am using the forwardInput=true on my controller element and have
the input specified as editProfile where my forward is below:
Make sure you have the first letter as lower case, in your jsp file, so
say...
public void setAcChecked(...)
public String[] getAcChecked(...)
in jsp make sure that it's acChecked, as it will append and get or set and
capitalize the first letter.
Ilya
-Original Message-
From: kiuma
Did you return null? Since u write as pdf, you can only return null as
forward.
Regards,
Phillip Qin
This Guy Thinks He Knows Everything
-Original Message-
From: Srinivas Sampige [mailto:[EMAIL PROTECTED]]
Sent: December 27, 2002 7:34 PM
To: Struts Users Mailing List
Subject: RE:
If I only use log4j, jar has to be placed in my app's WEB-INF/lib. Don't
know why it is in a different directory if commons-logging and log4j work
together.
Regards,
Phillip Qin
This Guy Thinks He Knows Everything
-Original Message-
From: Paul Hodgetts [mailto:[EMAIL PROTECTED]]
In your html, action=/logon.do; in your struts config xml, define action
path=logon
Regards,
Phillip Qin
This Guy Thinks He Knows Everything
-Original Message-
From: Loren Hall [mailto:[EMAIL PROTECTED]]
Sent: December 28, 2001 6:07 PM
To: Struts Users Mailing List
Subject:
Why don't you do it in your struts config xml? If authenticated, return a
forward for action/getaccountinformation; if failed, return mapping.getInput
(u need to define input as login page)?
Regards,
Phillip Qin
This Guy Thinks He Knows Everything
-Original Message-
From: Suresh
Yes.
I use struts 1.2b2
I have the following entries in struts-config.xml
action path=/showContacts
type=gr.tera.mailclient.contacts.ShowContactsAction
forward name=list path=.contacts/
/action
action path=/compose
Has anyone successfully developed an XSLT filter that could be used with
MVC frameworks yet?
-Original Message-
From: Puneet Agarwal [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 30, 2002 7:27 AM
To: [EMAIL PROTECTED]
Subject: Re: RE: Struts - XML/XSL
Jeff,
This looks good, but this
Does .compose exist in your tiles config file ?
Apparently, the TilesRequestProcessor doesn't catch the name
.compose, which means that it doesn't exist in the factory.
Cedric
Jim Theodoridis wrote:
Yes.
I use struts 1.2b2
I have the following entries in struts-config.xml
It appears that there's some problem getting to your message resources or your Struts
configuration, I'm not sure. Can you upgrade to a newer stable version of Tomcat?
-Original Message-
From: Fabrice BLANQUART [mailto:[EMAIL PROTECTED]]
Hi,
I am using Netbeans 3.4 and I try to
I found that bit of information in mail archives of struts user
list.
Hope it helps.
Regards
Puneet
On Mon, 30 Dec 2003 Jacob Hookom wrote :
Has anyone successfully developed an XSLT filter that could be
used with
MVC frameworks yet?
-Original Message-
From: Puneet Agarwal
Yes it does.
...
definition name=.compose extends=.mainLayout
put name=title value=Compose /
put name=body value=/pages/mail/compose.jsp /
/definition
...
If i use
action path=/showContacts
type=gr.tera.mailclient.contacts.ShowContactsAction
Hum, sound like a bug. I will investigate on that.
In the meantime, you can use the old action:
action path=/compose
type=org.apache.struts.tiles.actions.NoOpAction
forward name=success path=.compose/
/action
It should work (I hope).
Cedric
Jim Theodoridis wrote:
Yes it
Do you know of any good reading that elaborates on writing a global
exception handlers for Struts?
I've already read
http://jakarta.apache.org/struts/userGuide/building_controller.html#exceptio
n_handler ,
but am looking for more detail or a tutorial.
Thanks,
--Mike
--
To unsubscribe,
What kind of detail you are looking at?
Regards,
Phillip Qin
This Guy Thinks He Knows Everything
-Original Message-
From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
Sent: December 30, 2002 1:00 PM
To: Struts Users Mailing List
Subject: Global Exception Handlers
Do you know of
I works.
Itr Works
Thank U very much!!!
I am awaiting news about my old problem!!
Hum, sound like a bug. I will investigate on that.
In the meantime, you can use the old action:
action path=/compose
type=org.apache.struts.tiles.actions.NoOpAction
forward
Hi Tom,
Thanks for sharing your experiences to me and to all in the mailing list
regarding the i18n.
I'm really interested in knowing the difficulties in building the i18n
application you mentioned below. I'm currently designing an enterprise
application. And I would like to decrease the
Thank you!!!
Now looking at the javadocs, I found the filter option. It would be nice thought to
have this mentioned in the description part of the the javadocs for bean output
section. I missed it earlier, cause I assumed the format for bean documentation would
be the same as for html and
I have developed an application using tomcat and I am not trying to make it
work with websphere. I have defined a couple of forwards in my
struts-config.xml file that do not seem to work with websphere.
When I go to http://server/context and click on a button that executes my
forward websphere
Phillip Qin wrote:
If I only use log4j, jar has to be placed in my app's WEB-INF/lib. Don't
know why it is in a different directory if commons-logging and log4j work
together.
Just because two libraries use each other's classes doesn't mean
their classes (or jars) need to be in the same
Sorry, I am talking about Tomcat. Maybe it is bug for JRun.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Paul Hodgetts [mailto:[EMAIL PROTECTED]]
Sent: December 30, 2002 5:14 PM
To: [EMAIL PROTECTED]
Subject:
I just changed one of my utf8 txt file to contain a € and
display back to the browser. It works
Did you use the recommended filter in
http://www.anassina.com/struts/i18n/i18n.html ?
-Dan
- Original Message -
From: Christophe Vigouroux [EMAIL PROTECTED]
To: 'Struts Users Mailing
Hi,
I have the following situation. A user clicks on a link that gets sent to an action.
This action retrieves info from db and fills in some info for the form bean and
forwards to a jsp page. This form bean uses the validator. My problem is that the
validator triggers before the request
Hi
Sven's suggestion on returning null in ReportAction got me past the problem
of not being able to run the report generation a second time consecutively.
Now, another problem still remains. In ReportAction depending on various
conditions I am doing processing and forwarding back to the
hi,
I am using struts validate method to validate my fields.How can i set the
focus in html to a particular field on error in a particular field.
thanks in advance,
Deepika
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi, Can we add a config item to set the request encoding before populate the params?
It is not convenient to transform the encoding every time when we work on Chinese or
Janpanese platform. I knew newest tomcat support the new servlet API
request.setCharacterEncoding().
Hi, trying to help my webhost get this working for mySQL. Previously posted
The datasource must be registered with the application server you are
using.
I've got tomcat and apache involved, what files do I need to make changes
to? Is registering simply copy-pasting the data-source element
Hi all,
Im a new Struts, can anyone tell me where i can download Struts-Example
about using token for testing.
Thanks alot,
Huy
__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--
To unsubscribe,
51 matches
Mail list logo