Handling probel.

2008-12-08 Thread Cappelletti Marc
Hi all, Does anyone aver encountered this problem: My webApp is running on a Tomcat server. When I dispatch a request through a "welcome.do" action, everything is well done. But when I type or I click on a link which points on a "contact.do" for example, Apache cannot handle this. Does anyone

Re: setting a text field

2008-12-08 Thread hello_everyone
i am doing all what you are suggesting, but it is not working. i think there is some problem in configurations. i will look into it. thanks On Mon, Dec 8, 2008 at 4:19 PM, Dimitar Vlasev <[EMAIL PROTECTED]> wrote: > Hi, > have you ever read something about struts forms before asking questions > h

Re: redirect

2008-12-08 Thread Dirk Forchel
Aditya Lukman wrote: > > Hi all,, > i want to redirect from http://localhost:8080/cimeng/adhit *to* > http://localhost:8080/cimeng/profile.action?nickname=aray > > so,, how to solve my problem > > please, give me a descriptions for my problem > thank's for your help > Seems to be quite simpl

redirect

2008-12-08 Thread Aditya Lukman
Hi all,, i want to redirect from http://localhost:8080/cimeng/adhit *to* http://localhost:8080/cimeng/profile.action?nickname=aray so,, how to solve my problem please, give me a descriptions for my problem thank's for your help -- Aditya Lukman Afandi Programmer / Blueoxygen Developer Web Offi

Re: problem with s:inputtransferselect

2008-12-08 Thread Dave Newton
> It is of type "ArrayList". Er... of what type? What's *in* the list? > It does renders fine. Are the form values from the inputtransferselect being submitted? You can verify this by using a tool like Firebug or similar. Does the *rendered* select element have a "name" attribute? Without a "n

Re: problem with s:inputtransferselect

2008-12-08 Thread Leena Borle
Hi, It is of type "ArrayList". It does renders fine. Leena > Without a "key" or "name" attribute, from the way all the other tags work, > I wouldn't expect it to work right. If you're saying the select box is being > rendered properly with a name (and you've verified the form values are being > s

Re: problem with s:inputtransferselect

2008-12-08 Thread Dave Newton
--- On Mon, 12/8/08, Leena Borle wrote: > No, I do mean "inputtransferselect". [...] Oh, weird; I'll try to add that to the documentation this week. > I'm not using name field because I have these keys defined in > package.properties file from which it picks up name and > lable which should matc

Re: problem with s:inputtransferselect

2008-12-08 Thread Leena Borle
Hi Dave, No, I do mean "inputtransferselect". It is the tag with textfield and a list. Values that you enter in the text field appear in the list. They have shown in Struts2 Showcase UI tag examples. I don't know why its not listed in "Tag reference Guide". ( http://struts.apache.org/2.0.6/struts

Re: problem with s:inputtransferselect

2008-12-08 Thread Dave Newton
You mean optiontransferselect, right? Don't you need a "name" attribute or something? I thought the "list" attribute was what populated the control. Dave --- On Mon, 12/8/08, Leena Borle <[EMAIL PROTECTED]> wrote: > From: Leena Borle <[EMAIL PROTECTED]> > Subject: problem with s:inputtransfer

RE: Multiple Validation Options?

2008-12-08 Thread Givler, Eric
I'm using Struts 1.3.5 and when I last checked there was a method getValidationKey: getValidationKey(ActionMapping mapping, HttpServletRequest request) Returns the Validation key. This is fired inside of the validate() method to determine which validation ruleset to use inside the val

How struts discovers config files

2008-12-08 Thread Arash Bizhan zadeh
Hi everybody, I am curious to know how struts discovers its configuration files from inside different jar files bundled in the WAR file. Can somebody point me in the right direction please? thanks in advance -arash -- The dirtiest book of all is the expurgated book. Walt Whitman

Re: Cannot find bean in any scope

2008-12-08 Thread Nils-Helge Garli Hegvik
Do you have any null values in your collection? The only way I could reproduce something similar was if I added "null" to the collection. Nils-H On Mon, Dec 8, 2008 at 11:43 AM, gbattine <[EMAIL PROTECTED]> wrote: > > Hi, > thanks very much for your help. > I understood your explanation but I did

problem with s:inputtransferselect

2008-12-08 Thread Leena Borle
Hi, I am having problem with the tag "s:inputtransferselect". All I have is a list defined inside a bean. This bean is used by action to add/edit the values. I see all the values except values of this tag does not get reflected back to the action. Am I missing something in this tag ? My Jsp cod

RE: Multiple Validation Options?

2008-12-08 Thread dancerjohn
I am not sure what you mean. I don't see anything about a key or path in the API for ValidatorActionForm or ValidatorForm. Also, I would think that hitting these would be too late. If I understand it correctly (and I am new so maybe not), struts-config.xml specifies that ValidatorPlugin should be

RE: Multiple Validation Options?

2008-12-08 Thread Givler, Eric
Doesn't the ValidatorActionForm provide a means of getting/setting the validation key to be used (normally set to the mapping.getPath())? If that's the case, can't you inject your own key programmatically? From: dancerjohn [EMAIL PROTECTED] Sent: Monday,

TabbedPane

2008-12-08 Thread David Loup
Hi, I'm using a tabbedPanel to include a call to several actions in tabs, each action displaying a form on its own: How can the "main" (or parent) JSP access what's in the forms of the actions in each tab? I.e., I have something like mainTabs.jsp: And for example, the first tab is render

Re: Any issues with using OGNL ver 2.7.3

2008-12-08 Thread Adam Ruggles
Good news, thanks. Chris Pratt wrote: > > I've been using OGNL 2.7.2 with Struts 2.1.2 for a while and haven't > noticed > any problems. > (*Chris*) > > On Sun, Dec 7, 2008 at 9:34 PM, Adam Ruggles <[EMAIL PROTECTED]> wrote: > >> >> Are there any known issues with using OGNL 2.7.3 with Stru

Re: Getter Method call twice - S2

2008-12-08 Thread Paweł Wielgus
Hi Eugenio, i just tried to replicate Your problem, the thing is that i remember in S1 (don't know which version) that was normal behavior, getter was called n times where n is list.size() - more or less. But in S2 i don't see it anymore. So if You want to find what's going on try to add some debu

Re: launching some code after action execution and before result

2008-12-08 Thread Adam Hardy (struts)
Thanks for that. Don't know how I missed it in the documentation, it is of course pretty much exactly what I need. Ideally I guess I'd like it to be configurable in the struts.xml, but it's fine as it is. PreResultListener? --- On Sun, 12/7/08, Adam Hardy <[EMAIL PROTECTED]> wrote: > From

Multiple Validation Options?

2008-12-08 Thread dancerjohn
I have a situation where we have a single code base and struts config files that support multiple sites. I want to be able to do different validation on each site. If I have a form A that has field a, I want to apply one set of rules for web-site 123 and a different set of rules for web-site abc.

Re: setting a text field

2008-12-08 Thread Dimitar Vlasev
Hi, have you ever read something about struts forms before asking questions here? Don't feel offended but this is a base functionality and I'm pretty sure you will not receive much help about issues like this. And you'll need to provide at least the version of Struts you're using. I guess you're u

Re: JSP tags calling action directives

2008-12-08 Thread Raquel Pau Fernández
2008/12/8 Dave Newton <[EMAIL PROTECTED]> > --- On Mon, 12/8/08, Raquel Pau Fernández wrote: > > Excuse me for insisting, but the problem of using is that > > you need to offer always it as url... > > Using Codebehind you don't need to configure it via XML; I don't see any > practical difference

setting a text field

2008-12-08 Thread hello_everyone
Hi, I am trying to set a html:text value from one action. That text field is in the jsp page which is shown once the page (for action action is defined) is successfully submitted. But the problem is that the value in the jsp page is not set. It is null all the time. Do I have to send value with

No action instance for path [/path] could be created

2008-12-08 Thread Evert Lammerts
Hi list, With my last question still standing (even though the struts list might not be the right resource for it), I'm off to the next question. I've created a portlet application wrapping two portlets. My first goal should be an easy one - trying to link from the one portlet to the other. In

Re: JSP tags calling action directives

2008-12-08 Thread Dave Newton
--- On Mon, 12/8/08, Raquel Pau Fernández wrote: > Excuse me for insisting, but the problem of using is that > you need to offer always it as url... Using Codebehind you don't need to configure it via XML; I don't see any practical difference between using URLs or classnames to access an actio

Re: How to make three text boxes appear in one row using struts2 tags?

2008-12-08 Thread taj uddin
Hey!   Thanks a lot. :-) --- On Mon, 12/8/08, Dave Newton <[EMAIL PROTECTED]> wrote: From: Dave Newton <[EMAIL PROTECTED]> Subject: Re: How to make three text boxes appear in one row using struts2 tags? To: "Struts Users Mailing List" Date: Monday, December 8, 2008, 7:47 AM --- On Mon, 12/8/08,

Re: How to make three text boxes appear in one row using struts2 tags?

2008-12-08 Thread Dave Newton
--- On Mon, 12/8/08, taj uddin <[EMAIL PROTECTED]> wrote: > Thank u for ur suggestion. As given, the application is > able to display three boxes(textfields) in one row but how > to append label name( phonenumber)  and hyphens(-) b/w the > textfields(boxes). (1) Use the text or label tag. (2) ...

Re: JSP tags calling action directives

2008-12-08 Thread Raquel Pau Fernández
Dave, Excuse me for insisting, but the problem of using is that you need to offer always it as url... In other words, 'yes' i need to call a service from the JSP without an action mapping that serves it and skip the intermediate layer, but also perhaps is necessary pass some request or session pa

Re: How to make three text boxes appear in one row using struts2 tags?

2008-12-08 Thread taj uddin
Hi, Thank u for ur suggestion. As given, the application is able to display three boxes(textfields) in one row but how to append label name( phonenumber)  and hyphens(-) b/w the textfields(boxes). Here i used the label attribute in the textfield tag but the name was not being rendered as well t

Re: JSP tags calling action directives

2008-12-08 Thread Dave Newton
--- On Mon, 12/8/08, Raquel Pau Fernández wrote: > I want to call services, but if I put the service in the > action, at code level, the action must know(implicitly) > what is the following content page. IMO the action should always be responsible for what's available in the view, but that may j

Re: Can't get definitions factory from context

2008-12-08 Thread Lukasz Lenart
2008/12/5 Benjamin Dittwald <[EMAIL PROTECTED]>: > thanks for your help. i use tiles 2 now. with the common dependencies > includet in the distribution. > > now, my tomcat log says: > > 05.12.2008 16:05:23 org.apache.catalina.core.StandardContext listenerStart > SCHWERWIEGEND: Error configuring app

Re: How to make three text boxes appear in one row using struts2 tags?

2008-12-08 Thread Dave Newton
The mailing list usually (always?) doesn't allow attachments. I feel, however, that I have understood the requirement of "three text boxes on a single row separated by hypens". You can use theme="simple" on each one to render only the textbox and build the rest of the form row manually. You'll

More portlets in portlet-app

2008-12-08 Thread Evert Lammerts
Hi list, I'm trying to get a grip on portlet development with struts and it would be great if someone can help me out! I'm using a Tomcat 6 application server icw a Liferay 5.1.2 portal. I've managed to get struts 1.3.8 portlets working through a struts bridge and now I want to start developing

Re: JSP tags calling action directives

2008-12-08 Thread Raquel Pau Fernández
Yes, I want to call services, but if I put the service in the action, at code level, the action must know(implicitly) what is the following content page. In addition, if an action code has two URL and for each URL has to send different JSP content, your code must change or yo have to produce redun

Re: Cannot find bean in any scope

2008-12-08 Thread gbattine
Hi, thanks very much for your help. I understood your explanation but I didn't solve. Now I did: but I still have: javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find bean: "DVD" in any scope I'm missing something? Thanks

How to make three text boxes appear in one row using struts2 tags?

2008-12-08 Thread taj uddin
Hi, First please go through the attachment in which the rquired GUI to be generated using struts2 tags was shown. In my application, the GUI should appear with three textfield boxes separated with hyphens(-), ("as shown in the attachment")where each textfield boxes has unique names. I'm working

How to represent three textfield boxes in one row?

2008-12-08 Thread taj uddin
Hi, In my application, the GUI should appear with three textfield boxes separated with hyphens(-), where each textfield boxes has unique names. I'm working on the label PhoneNumber which displays three boxes(one for STD code, second and third for phone number prefix and suffix). Here three tex

Re: How to append a string to a label name?

2008-12-08 Thread taj uddin
Thnak U :-) --- On Mon, 12/8/08, Andras Balogh <[EMAIL PROTECTED]> wrote: From: Andras Balogh <[EMAIL PROTECTED]> Subject: Re: How to append a string to a label name? To: "Struts Users Mailing List" Date: Monday, December 8, 2008, 4:18 AM Hi, You need to add required="true" than Struts will add

Re: How to append a string to a label name?

2008-12-08 Thread Andras Balogh
Hi, You need to add required="true" than Struts will add the "*" automatically. BR, Andras. taj uddin wrote: Hi, In my application, the textfield label name should be appended with "*". I tried to add the string (*) to my label name using labelSeparator attribute. In my eclipse it shows t

How to append a string to a label name?

2008-12-08 Thread taj uddin
Hi,   In my application, the textfield label name should be appended with "*". I tried to add the string (*) to my label name using labelSeparator attribute. In my eclipse it shows the warning as "unknown attribut name(labelSeparator). Can u pls help me out in this issue. here (*) was added to

Re: Any issues with using OGNL ver 2.7.3

2008-12-08 Thread Chris Pratt
I've been using OGNL 2.7.2 with Struts 2.1.2 for a while and haven't noticed any problems. (*Chris*) On Sun, Dec 7, 2008 at 9:34 PM, Adam Ruggles <[EMAIL PROTECTED]> wrote: > > Are there any known issues with using OGNL 2.7.3 with Struts 2.1.2? > -- > View this message in context: > http://www.