Thanks, that saved a lot of time. Now on click of a button it will set
layer style.display= block or set it none. The visibility property
is now not needed.
Regards, Jan
Todd G. Nist wrote
Jan,
Set the attribute display to none on the DIV and then set it to block.
By setting it to none no
Hello jan,
Could you pls mail me the form code html so that I can add it tomy
code snippet, I can forsee a similar solution in my case.
Thanks
-Original Message-
From: Jan Kester [mailto:[EMAIL PROTECTED]
Sent: Saturday, October 25, 2003 2:20 AM
To: Struts Users Mailing List
Subject:
Hi all,
I'm a newbie trying to deploy my first Struts webapp.
Mine works fine inside my development environment (Struts 1.1, Tomcat 4.1.x), but when
I transfer all local files to the service provider I'm using for public servlet
deployments (where they also use Tomcat 4.1.x), I get the
I had a similar problem, you might want to confirm the same with ur host
if he has made the required entry in the jkmount file which maps the
request and sends them to the servlet container instead of being
processed by apaches' mods.
-Original Message-
From: todd thorner [mailto:[EMAIL
On 10/25/2003 03:00 AM Balakrishnan, Vijay wrote:
Hi,
How do i do the following portName.length() inside test :
c:set var=portName value=TEST /
c:if test=${ portName.length() 15}
/c:if
Hi Vijay,
you can't use portName.length() because length()
Hi,
I've been using struts for a couple of months now, and have been
working on the assumption that it is a bad thing to allow users
to go directly to jsp's. So I have ensured that I don't use
redirect=true on forwards from an Action.
Is this considered best practice for Struts? And are there
How do i do the following portName.length() inside test :
c:set var=portName value=TEST /
c:if test=${ portName.length() 15}
/c:if
If you can use JSTL1.1, you can use the fn: Function-Library
to query the length of properties
On 10/25/2003 12:13 PM Yann C wrote:
How do i do the following portName.length() inside test :
c:set var=portName value=TEST /
c:if test=${ portName.length() 15}
/c:if
If you can use JSTL1.1, you can use the fn: Function-Library
to query the length of properties
How do i do the following portName.length() inside test :
c:set var=portName value=TEST /
c:if test=${ portName.length() 15}
/c:if
If you can use JSTL1.1, you can use the fn: Function-Library
to query the length of properties
todd thorner wrote:
Hi all,
I'm a newbie trying to deploy my first Struts webapp.
Mine works fine inside my development environment (Struts 1.1, Tomcat 4.1.x), but when I transfer all local files to the service provider I'm using for public servlet deployments (where they also use Tomcat
hi!
is it possible for me to redirect users to an external site from inside an
action class.
ie, say a user clicks /foo, this calls FooAction which does some intial
processing. I now want to redirect the user to some other site. how can i do
that?
do i write the link out into the response
On 10/25/2003 01:45 PM Yann C wrote:
Here's a good summary of the fn: library including an example using
fn:length:
http://java.sun.com/webservices/docs/1.3/tutorial/doc/JSTL8.html#wp84680
Yann, thanks. That functionality is excellent. This is I guess exactly
what the original poster was asking
Yann Cébron wrote:
How do i do the following portName.length() inside test :
c:set var=portName value=TEST /
c:if test=${ portName.length() 15}
/c:if
If you can use JSTL1.1, you can use the fn: Function-Library
to query the length of properties
Hello!
is there a way to tell struts sending headers to tell client browser to
don't cache pages?
(sending expired headers).
Thnx to all!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Hi Simon:
I think maybe you have misunderstood what it means to say don't directly
go to jsps. What this means is don't break the MVC pattern. So for
example, if you have a link on your jsp and all you want it to do is to go
to a second jsp, resist the temptation to code the second jsp directly
Thanks for the link, the tutorial really helped, however clinton has
done a great job with the documentation part. Amazing!!! That's all I
can say.
-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]
Sent: Friday, October 24, 2003 11:34 AM
To: [EMAIL PROTECTED]
Subject: RE:
it helps (a little).
what i don't want is users bookmarking a jsp, which would then allow them to
break MVC. however, isn't going via the forwardaction a little inefficent
compared
to linking direct to the jsp (my target environment is 2000 concurrent
users)? or
do you think the benefits of
Thanks for pointing me in the right direction Craig. I've got it to work.
Sincerely,
Paul Idusogie
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 1:59 PM
To: Struts Users Mailing List
Subject: Re: Please Please Help! --
There is.
http://jakarta.apache.org/struts/userGuide/configuration.html#controll
er_config
Steve
-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of kimbuba
Sent: October 25, 2003 10:27 AM
To: [EMAIL PROTECTED]
Subject: browser cache.
Hello!
is there a way to tell
The issue you're referring to is that you can't nest custom tags inside
custom tags. The HTML input tag is not a custom tag, it's not
processed by the server in any way. Also note that if you just use the
html:hidden tag from Struts-EL, you can do the same thing in less code
by using an EL
Hi,
I was able to get the sorting done using Collections as below:
Initialize the list:
List person = new ArrayList();
person.add(new Person(David, Hartwell, 3));
person.add(new Person(Wendy, Lau, 3));
person.add(new Person(Hoang, Nguyen,
Hello gurus,
I am really really stuck in a problem right now. Its like this. I have
to collect information about a set of information. Pls see the
screenshot attached for a better idea of what ia m trying to say. (don't
know if it's a good idea to _make_ everyone download my screenshot)
Now the
Oops no attachment with the mail. Ok ascii art to rescue, this is how my
form looks like
CheckboxStrike Name BidAmount Type
[ ] $100 to $200_ PUT ( )
Call ( )
[ ] $300 to $300_
Hi,
Do you know how to do the confirm page using struts? For example,
after a person fill-out a registration form, he/she clicks on Submit
button, she/he will be redirected to a page says that are you sure
you want to submit information?. If the use clicks yes, button,
then he/she will be
html:cancel.. Should do the job. However you could use do different
forwards in ur action class. Depending on the value of submit clicked
on.
Also to keep it simple, just javascript on the onClick even on the
cancel button and use the actual submit button for sending the content
to the action
Hi Rajat,
Ok, let say, whatever page, the user wants to save the information,
then the Save (Submit) button will be implemented. But how do you do
that? Can you give me example? how do I use the forward in my
action class?
Thanks,
Dinh nguyen
--- In [EMAIL PROTECTED], Rajat Pandit [EMAIL
Hi,
Hmm,, well if you have seen the execute function of the action class it
returns ActionForward value.
So in ur action class where you have been able to do a sucessfully
commit to the db or performed some action then you need to return the
forward value.
For example
public ActionForward
The performance costs are low, but using an action just to forward to
different views does have a very small performance cost. Run a stress
test and you'll see.
The benefits however of doing everything via actions, far outweigh the
slight performance hit. You can start to think about your app
Rajat,
I don't get what mean. Where did you get the value for result from?
so in this case, I have two files, actionform and action classes, How
and where do I modify these files in order for the buttons to work?
Do I have to modify in other files as well?
Thanks for your help.
Dinh nguyen
Simon:
I think I agree with what Mark writes below. Especially if you consider
that what is a simple link today may very well not be one tomorrow - if
your clients are like the ones I work for..;) .. My gut feeling is that
performance will not be a major factor since struts-config.xml is loaded
Hi Dinh Nguyen:
We had a similar requirement and we solved it using Javascript's
location.href .. I reproduce our code below:
script language=JavaScript
function confirmPrint(msg){
if (confirm(msg)) {
Hi Geeta,
Thanks for tipping me the info. So in this case, how and where would
I implement/insert the javascript code in the files I sent out
earlier? http://groups.yahoo.com/group/struts/message/71619
Thanks for your help.
Dinh nguyen
--- In [EMAIL PROTECTED], Geeta Ramani [EMAIL PROTECTED]
Hi Dinh nguyen:
I didn't look at your files, but it's fairly starightforward I think.. You
add this javascript code within the head /head of your registration
page. In your case it would be something like this:
head
script language=JavaScript
function confirmSubmit(){
if
Hi Geeta,
Don't I have to mofidy the struts-config file too? Where would I
modify that? Below is part for register page in the struts-config file
action path=/register
type=myproject.Action.RegisterAction
name=registerForm
input=register.jsp
validate=true
Yeah, thanks. I must've made a small typo when composing the original message. In my
struts-config.xml it's got the correct double-quote.
--
- Original Message -
DATE: Sun, 26 Oct 2003 01:05:21
From: Jason Lea [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Hmm.., maybe I misunderstood you.. But here's what i understood:
According to your initial question, you want to ask the question are you
sure you want to submit? as soon as the user hits the Submit button,
right? If the user clicks Yes you go on ahead with the submission. And
if the user clicks
thanks for that mark and geeta. i'll run a test to make sure, I just wanted
to confirm my gut
feeling on the best way to proceed, which (thank you) you have done.
we've solved the problem of login by using a servlet filter, but after logon
it
forwards back to the page you came from.
thanks
The recommendation is simply to have Actions handle all of your app's
requests, rather than sending users to bare (no Action in front) JSPs.
That means that the user's browser should never have a URL that ends in
.jsp. Some of your Actions may be pretty thin in that all they do is forward
to the
Just an FYI (and correct me if I'm wrong), but just doing html:base/
will pretty much do what all the stuff you have below there does - what
you have in there is the default behavior of the Struts-HTML base tag.
Holman, Cal wrote:
Try searching the archives this is a common issue. The
You'll want to issue a Location: URI to relocate to\n\n header to
the response stream, that should do the trick.
ajay brar wrote:
hi!
is it possible for me to redirect users to an external site from
inside an action class.
ie, say a user clicks /foo, this calls FooAction which does some
Geeta,
thanks for pointing out the issue, however, we take care of that in
the validation form. Either way if the user misses some fields,
he/she'll be redirected back to the registration form asks them to
fill-in the required fields.
I am sorry I was confusing myself too: Below is the
You can use HttpServletResponse.sendRedirect(): http://tinyurl.com/sdgg
Or, and I'm not sure if this works or not, you could have a forward in your
action mapping like this:
forward path=http://othersite.com/; redirect=true/
-Max
- Original Message -
From: ajay brar [EMAIL PROTECTED]
Hi, everybody. I have my problem solved. The images
should be relative to the application root (it is
where my mistake was).
Nonetheless, if you do not mind, why it does not work
at all when I tried to put image in the style sheet:
td.bar {
background:
Hi friends,
How to make sure a radiobox is selected on a JSP page using validator?
I cannot use:
field property=prjType depends=required
arg0 key=newProject.label.prjType/
/field
Thanks
-bruce
Hello,
I am still stuck with the multiple parameter problem. I shall try to
explain the problem again. Maybe someone could help.
I have a form, which has a number of records to be displayed.
A checkbox, a textbox, two radio buttons with the same name. I have the
following objective.
A. perform
I couldn't find a workaround for that so far. I use the validate()
method of the actionform. Pretty lame! Eh!
-Original Message-
From: ZYD [mailto:[EMAIL PROTECTED]
Sent: Saturday, October 25, 2003 10:33 AM
To: Struts Users Mailing List
Subject: How to validate html:radio is selected on
Yes, that works. But that's not decent like you said.
Is there really no way to do a client-side validation using validator framework?
- Original Message -
From: Rajat Pandit [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Sunday, October 26, 2003 1:37 PM
47 matches
Mail list logo