Re: SV: Struts tag-lib

2007-07-23 Thread Paul Benedict
Old servlet containers (2.2 and before) did not scan the web module to find TLD files automatically. If you're using an older container, you unfortunately have to put a copy of the TLD in your WEB-INF directory. But this is quite redundant :-) The TLD file contains a url name that is its offici

Re: struts validation problem

2007-07-23 Thread Paul Benedict
Nosinov, The feature to display the error value in a validation message is part of the next release of Validator (1.4). At the moment, no current releases allow this feature. If you want, you can help submit a patch for that feature: https://issues.apache.org/jira/browse/VALIDATOR Paul Nosi

Re: Redirecting to the referring action

2007-07-23 Thread Paul Benedict
Mark, I had this same problem :-) One downside of action-based frameworks is that there is no sense of a "page" -- just actions. You need to somehow mark which actions belong to page views, and then remember the last hit in your session. Paul Mark P Ashworth wrote: Good Day, If I have an

Re: Preventing OGNL evaluations of user input (was Re: Struts 2 performance)

2007-07-23 Thread Roberto Nunnari
I see it also includes Tiles 2.0.4.. that should also include the fix for the contentType of the response not set bug present in version 2.0.3 -- Robi Ted Husted wrote: For those of you following this thread, a test build for Struts 2.0.9 is available. Unless a problem is found, we expect to

Re: Display inline error message

2007-07-23 Thread Paul Benedict
Inline error messages would be an ajaxian-like feature. The current version of the validator does not support this. However, that is a good enhancement request :-) Paul semaj.najraham wrote: Hi there, I'm using Validator framework with Struts 1.3.8. I would like to know if there is a way to

Re: Can one insert html:rewrite tags in css files and/or

2007-07-23 Thread Paul Benedict
Ken, Your Tiles definition is fine. Just know that you can't do the URL rewriting until the JSP renders. So your strategy is to define context-relative paths in the Tiles definition, but then use on the JSP to turn them into the correct path. Paul Ken Bowen wrote: Hi, I'm using Struts 1.

Re: S2 send wrong Portlet Window States - May be a bug

2007-07-23 Thread tom tom
I was busy, I will work on this and give you a update or make a JIRA issue. BUT for the time being ignore all the issues and arguments about uPortal and think about the following scenario. In our entire application we got portlets (developed using S2) and other channels developed using CWebProxie

SV: Struts tag-lib

2007-07-23 Thread Søren Blidorf
Why is it that I need to change the tag-lib URI? Old way: /WEB-INF/struts-html.tld New: http://struts.apache.org/tags-html Both ways seems to work Soren, DK -Oprindelig meddelelse- Fra: Søren Blidorf [mailto:[EMAIL PROTECTED] Sendt: 23. juli 2007 21:42 Til: 'Struts Users Mailing

Redirecting to the referring action

2007-07-23 Thread Mark P Ashworth
Good Day, If I have an action that has completed, say a save action, and I would like to redirect to the referring action of the original edit how can I structure my application to do this. I thought about saving the referrer in the edit page and the redirecting but then I would need a redirect-

Re: [S2] No data in the value stack when refreshing the jsp page

2007-07-23 Thread Freakman
My bad I should have included that first. Gabriel Belingueres wrote: > > Show us your struts.xml file please. > http://struts.apache.org/dtds/struts-2.0.dtd";> /topic/SearchRequest.jsp

struts validation problem

2007-07-23 Thread Nosinov Mirbek
Hello Everybody. Could you help me with Struts validation. this is block from validation.xml I want to show in error message in jsp value of property email, that user has entered. like if user entered [EMAIL PROTECTED] i want to show error message [EMAIL PROTECTED] is invalid

Re: Preventing OGNL evaluations of user input (was Re: Struts 2 performance)

2007-07-23 Thread Ted Husted
For those of you following this thread, a test build for Struts 2.0.9 is available. Unless a problem is found, we expect to upgrade the quality to a GA release by tomorrow evening, once the distribution has had time to propagate through the mirroring network. Another quick-fix to the OGNL expressi

Re: [S2] Autocompleter with JSON plugin

2007-07-23 Thread chengas123
Yep, I do. Roberto Nunnari wrote: > > Do you have the tag? It won't work without that. > -- View this message in context: http://www.nabble.com/-S2--Autocompleter-with-JSON-plugin-tf4132448.html#a11754924 Sent from the Struts - User mailing list archive at Nabble.com. ---

Re: [S2] Autocompleter with JSON plugin

2007-07-23 Thread Roberto Nunnari
Do you have the tag? It won't work without that. chengas123 wrote: Hi, I'm having trouble getting the autocompleter working. When I type in the box, nothing happens. I am using Struts 2.0.8 with JSON plugin 0.15. The relevant lines from my JSP are: autoComplete="true" searchType="st

Re: [S2] No data in the value stack when refreshing the jsp page

2007-07-23 Thread Gabriel Belingueres
Show us your struts.xml file please. 2007/7/23, Freakman <[EMAIL PROTECTED]>: I'm using Struts 2 for a relatively simple web application. And while so far I've been very satisfied with the platform, I have a minor problem that persists : the refresh feature (such as a F5/Ctrl+R) is seemingly br

[S2] Autocompleter with JSON plugin

2007-07-23 Thread chengas123
Hi, I'm having trouble getting the autocompleter working. When I type in the box, nothing happens. I am using Struts 2.0.8 with JSON plugin 0.15. The relevant lines from my JSP are: If I visit AutocompleteField.action?city=cle I get the following: {"json":["CLEARFIELD","CLEA

Spring/Struts integration

2007-07-23 Thread Frederick N. Brier
I started out with an Appfuse project, but have customized it following the Wiki directions on doing portlets with Struts2, specifically version 2.0.8 with XWork 2.0.3 integrating with Spring 2.0.6. The AppFuse plugins have pulled in the struts2-spring-plugin, which contains the class StrutsSp

Display inline error message

2007-07-23 Thread semaj.najraham
Hi there, I'm using Validator framework with Struts 1.3.8. I would like to know if there is a way to display inline error messages (instead of alerts) during the client side validation? Thanks, semaj -- View this message in context: http://www.nabble.com/Display-inline-error-message-tf4132276.

[S2] Struts-JSF Plugin and Tiles

2007-07-23 Thread Ray Clough
We are trying to use Struts-2 with the JSF Plugin, and Tiles. Since the typical method of using Tiles in S2 involves the Tiles plugin, and then using the action attribute 'type=tiles', and the typical method of using JSF in S2 is to use the JSF plugin and then use the action attribute 'type=jsf

SV: Struts tag-lib

2007-07-23 Thread Søren Blidorf
I am using struts 1.2.4. http://struts.apache.org/1.2.4/userGuide/configuration.html#dd_config_taglib When I download struts 1.2.4 from the archive, web.xml in the struts_blank.war is configured like this: /tags/struts-bean /WEB-INF/struts-bean.tld /tags/struts-html

Re: Struts tag-lib

2007-07-23 Thread Wendy Smoak
On 7/23/07, Søren Blidorf <[EMAIL PROTECTED]> wrote: I am confused on how to configure tag-libs i web.xml. Unless you're using a really old Servlet container, you don't need to put anything in web.xml. (Since Servlet 2.3, the container will scan the jar files in WEB-INF/lib and discover the t

Using Struts tag libs

2007-07-23 Thread Oleg Konovalov
Hi, I am relatively new to Struts [using 1.3]. I need to create a form using Struts tag libs with 2 HTML select's [lists], connected to 2 DB tables, say allUsers and Admins, which would allow to select Administrators from the list of AllUsers. So I will have 3 buttons: Add, Remove and Update. A

Struts tag-lib

2007-07-23 Thread Søren Blidorf
Hi. I am confused on how to configure tag-libs i web.xml. The guidelines says: "http://struts.apache.org/tags-html"; But the example from the webapps that comes with the download of struts says: "/tags/struts-html" What is correct? Soren, DK

Re: FieldExpressionValidator: How do I reference field names?

2007-07-23 Thread Dave Newton
--- mraible <[EMAIL PROTECTED]> wrote: > The following expression seems to do the trick: > reason != 'friend' or (reason == 'friend' and friendEmail != '') > > Writing it in Java seems more logical: > > public void validate() { > if (reason != null && reason.equals("friend") && friendEmail.eq

Re: FieldExpressionValidator: How do I reference field names?

2007-07-23 Thread mraible
The following expression seems to do the trick: reason != 'friend' or (reason == 'friend' and friendEmail != '') However, this doesn't seem very intuitive, does it? Writing it in Java seems more logical: public void validate() { if (reason != null && reason.equals("friend") && friendEmail

Re: Don't expose .action to user?

2007-07-23 Thread Perssy Llamosas
This is what happens: There is no Action mapped for action name pages/index.html. - [unknown location] Struts tries to handle everything, wouldn't it be nice to have a fall through? If Struts can't find the URI within its mapping try to find if there is static content with that request. I am u

SV: Radio Button - setting a to 'checked'

2007-07-23 Thread anine.louise.medhus-dale
I figured it out just after posting the message :) The mistake was that I had put '' around the boolean values. When I removed them it worked. I also changed from 0 and 1 to true and false which is what gives as output. Example: Hope this helps you :) ALM -Opprinnelig melding- Fr

Re: Don't expose .action to user?

2007-07-23 Thread Ted Husted
Try it with the action extension configured to an empty string, and see what happens. On 7/23/07, Perssy Llamosas <[EMAIL PROTECTED]> wrote: Well... How would you handle a situation that requires you to use an action with slashes? Or even better, action with parameters in their uri. "show/{1}

Re: Radio Button - setting a to 'checked'

2007-07-23 Thread yitzle
On 7/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi, I also experience this problem with the radio button. Could you please give me an example of how this is done? My code: gives a 'true' output. If I change from radio to select it works ok, strange... Thanks in advance for your h

Re: Don't expose .action to user?

2007-07-23 Thread Perssy Llamosas
Well... How would you handle a situation that requires you to use an action with slashes? Or even better, action with parameters in their uri. "show/{1}/{2}" ex: "show/book/43" It has its downfalls. I don't see myself creating hundreds of folders and .action files. I wanted to use the res

Re: New Bee Question: How do i enable validation only if certain condition is met?

2007-07-23 Thread yitzle
On 7/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: My Question: Suppose i have a form and it has 5 text boxes. I am using validation.xml for validating the data entered in the textboxes. My requirement is, if the user nters data in atleast one of the textboxes (valid or invalid) and hits su

Re: Change the Tabbed Panel look

2007-07-23 Thread Musachy Barroso
There are several threads on this topic. You need to set the "templateCssPath" to the url of the css file. You will have to take a look at the current css to know what you have to overwrite: http://svn.apache.org/viewvc/struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/org/apache/strut

Change the Tabbed Panel look

2007-07-23 Thread Richard Sayre
How do you change the look of the tabbed panel? I assume you have to override some css or something similar but I can not find any information on it. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: S2 send wrong Portlet Window States - May be a bug

2007-07-23 Thread Nils-Helge Garli
Yes, it uses pluto for it's JSR168 support, but there's still a lot of integration- and extension points that can behave differently, so that is unfortunately not conclusive. There's absolutely no layer between the JSR168 dispatcher and the portlet API/container, so the portlet request that the d

SV: Radio Button - setting a to 'checked'

2007-07-23 Thread anine.louise.medhus-dale
Hi, I also experience this problem with the radio button. Could you please give me an example of how this is done? My code: gives a 'true' output. If I change from radio to select it works ok, strange... Thanks in advance for your help :) ALM -Opprinnelig melding- Fra: Nuwan Chan

Missing SessionContextAutowiringInterceptor

2007-07-23 Thread Frederick N. Brier
I have been banging my head against an exception occurring during deployment: 15:46:43,092 ERROR [STDERR] Caused by: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=javax.servlet.ServletContext, name='default'] in public void org

how to store action class values into some Vector or array...

2007-07-23 Thread AJAY KUMAR UPPALAPATI
hi, Below some part of code of my "ActionClass" . I am able to set the values to my . But in one case i need to display as a report format ie. i will get more than one record. ie: 034343000 |Mr. abcdefgh | Crd3242345 . 034343001 |Mr. xyz |