Re: [JSF] Is it possible to submit to different URL/page?

2005-10-07 Thread Michael Jouravlev
It does not submit a form. I guess, by default, JSF does not allow that. On 10/6/05, Eduardo Ribeiro da Silva <[EMAIL PROTECTED]> wrote: > Try outputLink > > -Mensagem original- > De: Michael Jouravlev [mailto:[EMAIL PROTECTED] > Enviada em: quinta-feira, 6 de outubro de 2005 15:10 > Para:

Re: Fast war deployment

2005-10-07 Thread Vic Cekvenich
http://localhost/manager/reload?path=/ above should do. Have "eclipse" point to where you app.xml points (to root of WEB-INF) .V C.F. Scheidecker Antunes wrote: Hello all: Everytime I deploy my .war file on my server, restart Tomcat and access the JSPs and actions it will compile (make JS

Re: Struts Tags examples and usage

2005-10-07 Thread Faisal Mahmoud
TheServerSide.com has access to a free PDF download of Jakarta Struts Live. While I don't think the book is that great overall, there are some chapters on the Struts tag libs. http://www.theserverside.com/books/sourcebeat/JakartaStrutsLive/index.tss On 10/7/05, Leon Rosenberg <[EMAIL PROTECTED]>

Fast war deployment

2005-10-07 Thread C.F. Scheidecker Antunes
Hello all: Everytime I deploy my .war file on my server, restart Tomcat and access the JSPs and actions it will compile (make JSPs servlets) and load them. It takes a time the first time. This gets annoying as the application gets bigger. Is there any way to deploy the war and have a build f

Cannot find a bean in the session

2005-10-07 Thread Faisal Mahmoud
I am using Struts 1.1 deployed in Tomcat 4.1 running under JDK 1.3. I have a contact form I am building. It will get the user's email from an object called a UserInfoBean, which is not an ActionForm subclass, but does follow the JavaBean paradigm. It simply holds user info such as first name, last

Re: OT: RE: Development philosophy and such (was: Base action class)

2005-10-07 Thread Vic Cekvenich
_Listen_ to the customer, +1 that requriements is the silver bullet. I address is w/ both mock ups and prototypes... to demonstrate active listening. .V http://roomity.com (version 1.3 is live) - To unsubscribe, e-mail:

Re: Accessing request attributes

2005-10-07 Thread Leon Rosenberg
? What do you mean by "get"? Nearly all struts tags handle attributes one way or another... On 10/7/05, Doug Thomas <[EMAIL PROTECTED]> wrote: > I can get an HTTP request parameter via bean:parameter. How do I get a > request attribute using the Struts taglib, without resorting to JSP > scriplet

Re: Struts Tags examples and usage

2005-10-07 Thread Leon Rosenberg
maybe http://wiki.apache.org/struts/StrutsTutorials will help you. regards Leon On 10/8/05, Deep Chand <[EMAIL PROTECTED]> wrote: > Hi, > > Is there any good resource on the net that describes the usage of > struts tag libraries (html,bean, logic etc) with examples? I saw the > examples available

Re: OT: RE: Development philosophy and such (was: Base action class)

2005-10-07 Thread Leon Rosenberg
On 10/7/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi Frank, > > Sorry couldn't help but remark that... it seems some people are > forgetting the software engineering basics.. :) > > "There is no silver bullet!" Damned, and I actually thought I found one :-) But seriously, I thin

Struts Tags examples and usage

2005-10-07 Thread Deep Chand
Hi, Is there any good resource on the net that describes the usage of struts tag libraries (html,bean, logic etc) with examples? I saw the examples available on the http://struts.apache.org/userGuide/struts-bean.htm but there are no examples that describes how you can use it? Please reply. Thank

Re: OT: RE: Development philosophy and such

2005-10-07 Thread Leon Rosenberg
year number four: I am the Lizard King, but noone else uses it anymore :-) On 10/7/05, Dave Newton <[EMAIL PROTECTED]> wrote: > Rafael Nami wrote: > > >If I can't learn it in 2 or 3 days, we don't adopt it. > > > If you can learn new technologies in 2-3 days you can afford to learn > most anything

Re: OT: RE: Development philosophy and such

2005-10-07 Thread Dave Newton
Rafael Nami wrote: If I can't learn it in 2 or 3 days, we don't adopt it. If you can learn new technologies in 2-3 days you can afford to learn most anything. 2-3 hrs: Do I care about this technology (right now)? 2-3 days: Can I implement a minimal example and get a feel for it? 2-3 weeks: S

Re: set different attribute according to the change of parameter

2005-10-07 Thread Laurie Harper
梁炳場 wrote: Can I do the following? Same action class sets different attribute according to the change of parameter? Thanks Sure, you can do that, except that the 'parameter' attribute in the action mapping isn't exposed as a request parameter (those come from the HTTP request). You need t

Re: OT: RE: Development philosophy and such (was: Base action class)

2005-10-07 Thread Rafael Nami
I think this philosophical topics are SUPERB, specially on fridays. I don't have Ur xperience in development, but I'm a "new tecnology skeptic". If someone in my team tells me to use X tecnology, because it's brand new, etc or if because it's a standard, I just tell him about the risks, the sta

RE: OT: RE: Development philosophy and such (was: Base action class)

2005-10-07 Thread Frank W. Zammetti
On Fri, October 7, 2005 4:10 pm, [EMAIL PROTECTED] said: > And you are absolutely right that there is no justification for using > new technology just for the heck of it... (And there is a reason some > of the banks still have those mainframes lying around!.) like they say > "if it ain't broken

How to minimize security related code in Action classes

2005-10-07 Thread Barnett, Brian W.
Can someone point me to some articles or provide some examples on how to minimize security related code (authorization) in my Action classes? I am currently using container-managed, form-based security (Tomcat) for authentication and and elements in web.xml. The problem is that I'm not sure how

Re: Problem displaying available choices in Select option list when Validator send me back to my input page

2005-10-07 Thread Laurie Harper
[EMAIL PROTECTED] wrote: Using Struts 1.1 Problem: Problem displaying available choices in Select option list when using Validator sends me back to my input page. Details: I have 2 html select dropdown boxes on my web page. The values that appear inside come from my database, and are sent to my

RE: OT: RE: Development philosophy and such (was: Base action class)

2005-10-07 Thread Dharmendra . Sharan
Hi Frank, Sorry couldn't help but remark that... it seems some people are forgetting the software engineering basics.. :) "There is no silver bullet!" And you are absolutely right that there is no justification for using new technology just for the heck of it... (And there is a re

Re: invalid paths - how are they handled

2005-10-07 Thread Laurie Harper
Bosko Vukojevic wrote: Two of our existing apps are built with different Struts versions: 1.1 and 1.0 I am not able to find information on how Struts framework handles invalid paths or where to tweak the existing capability. If this is a valid path: /en/ca/home.do what is going to b

improving JSP logic

2005-10-07 Thread mt
I'm plunging into the world of JSP development and I'm wanting to improve on this type of [messy] logic: <% int rowCount = 0; %> <% if (++rowCount % 2 == 0) { %> <% } else { %> <% } %> My attempts have been various incarnations (for the ) of the following, utilizing it

Re: OT: RE: Development philosophy and such (was: Base action class)

2005-10-07 Thread Frank W. Zammetti
On Fri, October 7, 2005 2:33 pm, [EMAIL PROTECTED] said: > Hi Frank, > >Here's the thing about technology, it *evolves*... and it comes as > really odd that you *belive* that people introduce new technology > solution, architecture, design changes, to just make them more > market-able!!. It's

Problem displaying available choices in Select option list when Validator send me back to my input page

2005-10-07 Thread jmazzella
Using Struts 1.1 Problem: Problem displaying available choices in Select option list when using Validator sends me back to my input page. Details: I have 2 html select dropdown boxes on my web page. The values that appear inside come from my database, and are sent to my form inside my form bean.

OT: RE: Development philosophy and such (was: Base action class)

2005-10-07 Thread Dharmendra . Sharan
Hi Frank, Here's the thing about technology, it *evolves*... and it comes as really odd that you *belive* that people introduce new technology solution, architecture, design changes, to just make them more market-able!!. I don't subscribe to this idea, but I would like to add however that

invalid paths - how are they handled

2005-10-07 Thread Bosko Vukojevic
Two of our existing apps are built with different Struts versions: 1.1 and 1.0 I am not able to find information on how Struts framework handles invalid paths or where to tweak the existing capability. If this is a valid path: /en/ca/home.do what is going to be returned to the user in

More questions on exception handling

2005-10-07 Thread Preston CRAWFORD
Once again a question about best practices. So I setup an error page, referenced in struts-config.xml that shows the error. My problem is this. #1 - I want to log the error and print out to the console in addition to going to the error page. This isn't happening. Does this mean that I need to ove

Re: Development philosophy and such (was: Base action class)

2005-10-07 Thread Frank W. Zammetti
On Fri, October 7, 2005 1:27 pm, Michael Jouravlev said: > P.S. The last soldier's reply does not exist in original joke, but > many people I told it to could not get the joke without it ;-) You really need to find some different people to talk to... the type of people that wouldn't get it without

Re: Development philosophy and such (was: Base action class)

2005-10-07 Thread Michael Jouravlev
On 10/7/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > I think we unintentionally hijacked a thread, so just in case we discuss > any further, a topic change is probably in order... Tell me about hijacking ;) On 10/7/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > But I'm absolutely with you,

Development philosophy and such (was: Base action class)

2005-10-07 Thread Frank W. Zammetti
I think we unintentionally hijacked a thread, so just in case we discuss any further, a topic change is probably in order... On Fri, October 7, 2005 12:14 pm, Leon Rosenberg said: > My leitmotif is always: keep it simple. No ibatis, no hibernate, no > ejb, no nothing unless you explicitely can pro

Re: Base action class

2005-10-07 Thread Leon Rosenberg
On 10/7/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > I don't know about you, but I see *WAY TOO MUCH* overengineering in many > projects. People are so anal about coming up with the absolute perfect > architectural solution. I'm not saying we shouldn't strive for > perfection, of course we

Accessing request attributes

2005-10-07 Thread Doug Thomas
I can get an HTTP request parameter via bean:parameter. How do I get a request attribute using the Struts taglib, without resorting to JSP scriplets? Doug Thomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: Base action class

2005-10-07 Thread Michael Jouravlev
Leon, I have a question about this one: "You don't need to care for exceptions you don't understand (layer-technically, someone who writes an action doesn't care whether its an SQLException or a FileNotFoundException)" If you say, that it should be easy to switch layers, then persistence layer sh

[OT] Re: [Shale] getClientIdsWithMessages in FacesContext doesn't seem to work..?

2005-10-07 Thread gramani
Ronald Holshausen <[EMAIL PROTECTED]> wrote on 10/07/2005 11:57:00 AM: > If you get a later version of shale, you can then use the message > functions :-) They just do what your code does anyway. > so guess what i am doing *right* now..? :)

Re: [Shale] getClientIdsWithMessages in FacesContext doesn't seem to work..?

2005-10-07 Thread Ronald Holshausen
If you get a later version of shale, you can then use the message functions :-) They just do what your code does anyway. On 07/10/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Ronald Holshausen <[EMAIL PROTECTED]> wrote on 10/07/2005 11:30:21 AM: > > > aah! There is a bug with the AbstractFac

Re: [Shale] getClientIdsWithMessages in FacesContext doesn't seem to work..?

2005-10-07 Thread gramani
Ronald Holshausen <[EMAIL PROTECTED]> wrote on 10/07/2005 11:30:21 AM: > aah! There is a bug with the AbstractFacesBean message functions. They > do not set the client id when adding the messages. It was fixed in > nightly build 20050921, but I don't think it has been tested yet. > > I never used

Re: [Shale] getClientIdsWithMessages in FacesContext doesn't seem to work..?

2005-10-07 Thread Ronald Holshausen
aah! There is a bug with the AbstractFacesBean message functions. They do not set the client id when adding the messages. It was fixed in nightly build 20050921, but I don't think it has been tested yet. I never used the methods in AbstractFacesBean, but it is easy to test. You can add the message

Re: Base action class

2005-10-07 Thread Frank W. Zammetti
On Fri, October 7, 2005 3:05 am, Leon Rosenberg said: > If by persistance layers you mean things like hibernate and/or ibatis, > I would 100% agree with you. Yep, that's what I meant :) > But if you mean that if you have a BL > POJO, say IMessagingService, which uses two DBs (at least logical) >

Re: [Shale] getClientIdsWithMessages in FacesContext doesn't seem to work..?

2005-10-07 Thread gramani
Ronald Holshausen <[EMAIL PROTECTED]> wrote on 10/07/2005 05:03:23 AM: > Hmm, I have used the 1.1_01 and the messages definitly work. Does your > bean extend the abstract one from shale (AbstractFacesBean)? Or is the > error method one you wrote? > Thanks for your note Ronald. My bean extends Ab

set different attribute according to the change of parameter

2005-10-07 Thread 梁炳場
Can I do the following? Same action class sets different attribute according to the change of parameter? Thanks

Re: Strange Problem with logic:equals!

2005-10-07 Thread starki78
Thank you all for your help! Now I've understood the problem -- Initial Header --- >From : "Nicolas De Loof" [EMAIL PROTECTED] To : "Struts Users Mailing List" user@struts.apache.org Cc : Date : Fri, 07 Oct 2005 11:07:16 +0200 Subject : Re: Strange Pro

Re: ActionForm validate() - what Action does the controller call?

2005-10-07 Thread rajasekhar . cherukuri
If the validate method returs non empty ActionErrors object, the control will go to the JSP specified in the input attribute of the corresponding action element in struts-config.xml . Thanks, Rajasekhar Cherukuri Please respond to "Struts Users Mailing List" To Struts Users Mailing Li

Re: Strange Problem with logic:equals!

2005-10-07 Thread Nicolas De Loof
creates BOTH - a script variable (a Java variable you can use in <% ... %> java blocs) - a bean in specified scope (defaults to page) So you have a "myBeanValue" variable set to 1 and a "myBeanValue" String put into page scope. <% myBeanValue = "2"; %> changes value of script variable. my

Re: [Shale] getClientIdsWithMessages in FacesContext doesn't seem to work..?

2005-10-07 Thread Ronald Holshausen
Hmm, I have used the 1.1_01 and the messages definitly work. Does your bean extend the abstract one from shale (AbstractFacesBean)? Or is the error method one you wrote? On 06/10/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Ronald Holshausen <[EMAIL PROTECTED]> wrote on 10/06/2005 11:53:08 A

Re: Strange Problem with logic:equals!

2005-10-07 Thread Aymeric Alibert
Do you have the struts-bean tag library defined in your jsp:? Something like <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> Aymeric. On 10/7/05, starki78 <[EMAIL PROTECTED]> wrote: > > Hi, we have a strange Problem > with logic:equal > > Look at the following code: > > > //--> first w

Fwd: Managing All Session from context

2005-10-07 Thread Dixa M
  Note: Forwarded message attached -- Original Message -- From: "Dixa M" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Managing All Session from context --- Begin Message --- Hi All,   I have an application in struts. Here I want to send Messege to all the alive sessions.I have man

as cancel button

2005-10-07 Thread Nicolas De Loof
Hello, My application uses image buttons, based on tag. I'd like to add a "cancel" button, that may skip javascript validation. I didn't find any attribute to set this on . Do I have to set myself the javascript "bCancel = true" ? Thanks, Nico. This message contains information that may

Re: Strange Problem with logic:equals!

2005-10-07 Thread Leon Rosenberg
On 10/7/05, starki78 <[EMAIL PROTECTED]> wrote: > Hi, we have a strange Problem > with logic:equal > > Look at the following code: > > > //--> first we create a bean > > > > //--> changing the value is this possible in the way??? > > <% myBeanValue = "2"; %> change this to <% pageContext.s

Strange Problem with logic:equals!

2005-10-07 Thread starki78
Hi, we have a strange Problem with logic:equal Look at the following code: //--> first we create a bean //--> changing the value is this possible in the way??? <% myBeanValue = "2"; %> // tests with the logic:equals tags is equal is notequal After running

Re: Base action class

2005-10-07 Thread Leon Rosenberg
On 10/6/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > Leon Rosenberg wrote: > > Well you shouldn't have anything with Database in the name in your > > action, it should be encapsulated in a service POJO. > > I'm not so sure about this... I understand the motivation for saying it > and agree wi