Re: hide section of form

2003-10-25 Thread Jan Kester
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

RE: hide section of form

2003-10-25 Thread Rajat Pandit
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:

Webapp works fine until uploaded to remote server

2003-10-25 Thread todd thorner
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

RE: Webapp works fine until uploaded to remote server

2003-10-25 Thread Rajat Pandit
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

Re: jstl query

2003-10-25 Thread Adam Hardy
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()

going straight to a jsp

2003-10-25 Thread Simon Matic Langford
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

Re: jstl query

2003-10-25 Thread Yann Cébron
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

Re: jstl query

2003-10-25 Thread Adam Hardy
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

Re: jstl query

2003-10-25 Thread Yann Cébron
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

Re: Webapp works fine until uploaded to remote server

2003-10-25 Thread Jason Lea
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

redirection - please help

2003-10-25 Thread ajay brar
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

Re: jstl query

2003-10-25 Thread Adam Hardy
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

Re: jstl query

2003-10-25 Thread Craig R. McClanahan
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

browser cache.

2003-10-25 Thread kimbuba
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

Re: going straight to a jsp

2003-10-25 Thread Geeta Ramani
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

RE: [OT] Db usage in bean [design issue]

2003-10-25 Thread Rajat Pandit
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:

RE: going straight to a jsp

2003-10-25 Thread Simon Matic Langford
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

RE: Please Please Help! -- DataSource Error

2003-10-25 Thread Paul Idusogie
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! --

RE: browser cache.

2003-10-25 Thread Steve Raeburn
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

RE: input type=hidden works with struts tags?

2003-10-25 Thread Karr, David
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

Re: sorting and searching in Struts/tiles

2003-10-25 Thread Dinh Nguyen
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,

Grouped information

2003-10-25 Thread Rajat Pandit
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

RE: Grouped information

2003-10-25 Thread Rajat Pandit
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_

How to do Confirmation page.

2003-10-25 Thread Dinh Nguyen
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

RE: How to do Confirmation page.

2003-10-25 Thread Rajat Pandit
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

Re: How to do Confirmation page.

2003-10-25 Thread Dinh Nguyen
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

RE: How to do Confirmation page.

2003-10-25 Thread Rajat Pandit
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

Re: going straight to a jsp

2003-10-25 Thread Mark Lowe
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

Re: How to do Confirmation page.

2003-10-25 Thread Dinh Nguyen
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

Re: going straight to a jsp

2003-10-25 Thread Geeta Ramani
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

Re: How to do Confirmation page.

2003-10-25 Thread Geeta Ramani
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)) {

Re: How to do Confirmation page.

2003-10-25 Thread Dinh Nguyen
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]

Re: How to do Confirmation page.

2003-10-25 Thread Geeta Ramani
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

Re: How to do Confirmation page.

2003-10-25 Thread Dinh Nguyen
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

Re: Webapp works fine until uploaded to remote server

2003-10-25 Thread todd thorner
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]

Re: How to do Confirmation page.

2003-10-25 Thread Geeta Ramani
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

RE: going straight to a jsp

2003-10-25 Thread Simon Matic Langford
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

Re: going straight to a jsp

2003-10-25 Thread Max Cooper
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

Re: Tiles And Images

2003-10-25 Thread Ruth, Brice
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

Re: redirection - please help

2003-10-25 Thread Ruth, Brice
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

Re: How to do Confirmation page.

2003-10-25 Thread Dinh Nguyen
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

Re: redirection - please help

2003-10-25 Thread Max Cooper
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]

Re: Tiles And Images

2003-10-25 Thread Caroline Jen
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:

How to validate html:radio is selected on a JSP page?

2003-10-25 Thread ZYD
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

Multiple parameters

2003-10-25 Thread Rajat Pandit
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

RE: How to validate html:radio is selected on a JSP page?

2003-10-25 Thread Rajat Pandit
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

Re: How to validate html:radio is selected on a JSP page?

2003-10-25 Thread ZYD
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