Re: Cannot call servlet from portlet using img tag

2008-10-08 Thread daiyna
im sorry this is wrong: < img src="${imgURL}" alt="img" width="40", height="40"/> its like: < img src="/imageview/somepath" alt="img" width="40", height="40"/> where somepath is the absolute path for the generated image. imageservlet was supposed to retrieve the local image to the page

Re: Custom Tag Libs

2008-10-08 Thread David C. Hicks
Thanks for the feedback, guys. I actually asked this question for a fellow developer. He's more of a JSP "guru", if you will, but Struts2 seems to handle taglibs differently. So, it was a bit confusing to us all. I think he's found some kind of solution, but I will definitely forward these

Re: Custom Tag Libs

2008-10-08 Thread Alberto A. Flores
I disagree about the difficulty level of writing your tag in Struts2. However, I would strongly encourage you (as others have) to see if an already existing tag doesn't fit your needs. I'm hoping to post something in my blog about some of this soon, however it would be worthwhile to state what you

Re: [S2][T2] NullPointerException from UrlHelper.buildurl()

2008-10-08 Thread 928572663
Any ideas on this issue? What I am trying to do is have a main tiles definition whose JSP has a . That page pulls in a sub-tile using . The sub-tile page has the form control(s). Just trying to render this page causes the NullPointerException. Thanks, John 928572663 wrote: I am getting a p

Re: Custom Tag Libs

2008-10-08 Thread stanlick
David -- I would strongly discourage you from writing your own custom tags until you discover there is not already one "in the box!" Besides Struts 2, you still have all the JSTL tags available as well. If by "old school" you mean you haven't looked around the available tags today, your best be

Re: Cannot call servlet from portlet using img tag

2008-10-08 Thread Laurie Harper
daiyna wrote: I have an imageservlet used to server dynamic images with the following mapping in the web.xml file: ImageViewer /imageview/* From within my JSP I can call the servlet using the include tag: What does that do? It makes no sense to

Re: validwhen calculation is true

2008-10-08 Thread Laurie Harper
I don't think the validWhen validator supports either type cooercion or arithmetic. You'll probably need to handle this validation programatically in your validate() method. L. Jefferson Wilson wrote: I have a form where the user will peform a simple calculation in order to prevent spam (1 +

Re: Custom Tag Libs

2008-10-08 Thread Dave Newton
--- On Wed, 10/8/08, David C. Hicks wrote: > Can anyone point me to a source of information about how to > build a custom tag lib for Struts2? Maybe it's a plugin? > I'm a little old school and still learning. Depends on what you mean, I guess--you can create a standard JEE custom tag using eit

Custom Tag Libs

2008-10-08 Thread David C. Hicks
Can anyone point me to a source of information about how to build a custom tag lib for Struts2? Maybe it's a plugin? I'm a little old school and still learning. Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: Struts2 Data Transfer

2008-10-08 Thread Laurie Harper
Just do what Dave outlined in his previous reply. You need getter/setters in your action for each bean ([gs]etBean1(), [gs]etBean2() to correspond with Dave's JSP sample code) and everything should work. Have you tried it? L. aum strut wrote: the issue is i have a registration from in the UI

Re: SV: SV: SV: Ognl versions

2008-10-08 Thread Laurie Harper
The JavaBean Specification defines explicit naming rules for properties and their getter/setter methods as well as conventions for their method signatures. If you deviate from those rules and conventions in any way, your bean is no longer compliant with the spec. What you had was 'a proper bea

Re: Struts2 Data Transfer

2008-10-08 Thread Dave Newton
--- On Wed, 10/8/08, aum strut wrote: > the issue is i have a registration from in the UI which > have two different section in a single page. > > 1) User login Information > 2)Address Information > > i want that these two sections should get populated in two > different Bean by the interceptor

Re: Global-exception-mapping glitch

2008-10-08 Thread stanlick
Can't you just comb the archive looking for Guice method injections and fire off a little Ajax code to update the wiki table? C'mon bro -- I've seen your mad skillz. Peace, Scott On Wed, Oct 8, 2008 at 12:04 PM, Wes Wannemacher <[EMAIL PROTECTED]> wrote: > On Wed, Oct 8, 2008 at 12:56 PM, stanl

RE: Using POSIX Regular Expressions for Internationalized Validation

2008-10-08 Thread Brad A Cupit
From: egetchell [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2008 11:56 AM > The one thing I noticed is that this escaped > data is not translated back to the character > set when fed into an input field. Perhaps this is an over simplification, but could you just persist the raw, une

Re: simple vs xhtml theme, validation question

2008-10-08 Thread Gabriel Belingueres
You can do it by hand though: In addition, if you are using S2.1, then you have a basic error handling. Each tag has an cssErrorClass and cssErrorStyle attributes that are set when there is a validation error. 2008/10/8 Sébastien Domergue <[EMAIL PROTECTED]>: > Hi, > you're right, s

Re: devMode

2008-10-08 Thread Adam Hardy
OK: with devMode=false, the logging misses out this one line (otherwise the same): INFO 17:58:36 DefaultConfiguration.setProperty(): Overriding property struts.configuration.xml.reload - old value: false new value: true (com.opensymphony.xwork2.config.impl) I don't have struts.properties any

Cannot call servlet from portlet using img tag

2008-10-08 Thread daiyna
I have an imageservlet used to server dynamic images with the following mapping in the web.xml file: ImageViewer /imageview/* >From within my JSP I can call the servlet using the include tag: but when I try to access it from an img it fails.

validwhen calculation is true

2008-10-08 Thread Jefferson Wilson
I have a form where the user will peform a simple calculation in order to prevent spam (1 + 10 = 11). As a result, I would like to use the 'validwhen' validation step to handle this. I am overlooking something I believe. I have created the following: 1) Field Definition In validation.xml

Re: devMode

2008-10-08 Thread Alberto Flores
A few questions: - Try to set devMode=false and see if you get the same logs. - Do you have a struts.properties with devMode=false/true. If so, this file will override struts.xml. Adam Hardy wrote: I fully expect that there's a simple answer to this one but I can't find it in the wiki or the

devMode

2008-10-08 Thread Adam Hardy
I fully expect that there's a simple answer to this one but I can't find it in the wiki or the mailing list archives. devMode is set to true in my struts.xml, which loads as per the logging, but my webapp is not reloading the i18n bundle. Actually it's not giving me enhanced exceptions either,

Re: Global-exception-mapping glitch

2008-10-08 Thread Wes Wannemacher
On Wed, Oct 8, 2008 at 12:56 PM, stanlick <[EMAIL PROTECTED]> wrote: > > You read my mind bro! CodebehindUnknownHandler was the only class > implementing UnknownHandler! You know, this " > http://struts.apache.org/2.x/docs/plugins.html Extension Points " table > really needs updating. Would it b

Re: Global-exception-mapping glitch

2008-10-08 Thread stanlick
You read my mind bro! CodebehindUnknownHandler was the only class implementing UnknownHandler! You know, this " http://struts.apache.org/2.x/docs/plugins.html Extension Points " table really needs updating. Would it be safe to search the code base for @Inject? Scott Wes Wannemacher wrote:

RE: Using POSIX Regular Expressions for Internationalized Validation

2008-10-08 Thread egetchell
I did determine why POSIX regular expressions did not seem to be working. The server-side Java-based validations work correctly, it was the client-side JavaScript implementation that was failing when constructing the regular expression. From my brief investigation into this, it would seem that t

Re: tag for formatting date or time using type and style, not pattern

2008-10-08 Thread Gabriel Belingueres
AFAIK, the only thing that can be localized are the validation messages, not the validation files per sé. 2008/10/8 <[EMAIL PROTECTED]>: > Any idea how to get language specific validations? e.g. > > SomeAction-validation_fr.xml > > Scott > > > > On Mon, Oct 6, 2008 at 11:24 AM, Chris Pratt <[EMA

Re: Global-exception-mapping glitch

2008-10-08 Thread Wes Wannemacher
On Wed, Oct 8, 2008 at 12:45 PM, stanlick <[EMAIL PROTECTED]> wrote: > > I decided to pass up lunch and crack the code open. The DefaultActionProxy > tries to find the namespace/action and if it cannot, searches for the > UnknownHandler rather than throw a 404. I have discovered that adding the >

Re: Global-exception-mapping glitch

2008-10-08 Thread stanlick
I decided to pass up lunch and crack the code open. The DefaultActionProxy tries to find the namespace/action and if it cannot, searches for the UnknownHandler rather than throw a 404. I have discovered that adding the works, but I am going to look into how to nominate an unknownHandler

Re: Global-exception-mapping glitch

2008-10-08 Thread Wes Wannemacher
Scott, IIRC, this will only handle exceptions thrown by your Action. If no action is found, you are not going to make it far enough to get your "exceptionLogger" result. http://struts.apache.org/2.x/docs/exception-configuration.html -Wes PS - http://manning.com/wannemacher/ (whip out that AMEX

Re: Struts2 Data Transfer

2008-10-08 Thread aum strut
the issue is i have a registration from in the UI which have two different section in a single page. 1) User login Information 2)Address Information i want that these two sections should get populated in two different Bean by the interceptor that mean User login fields get Pouplated in the UserL

Global-exception-mapping glitch

2008-10-08 Thread stanlick
I have an exception configuration as follows: If an action throws an exception my logger works fine. However, if the Struts DefaultActionProxy is unable to locate an action class/mapping and throws its ConfigurationException, I get a stacktrace in the browser! Any clues? -- View

Re: simple vs xhtml theme, validation question

2008-10-08 Thread Sébastien Domergue
Hi, you're right, simple theme don't allow you to use validation. In order to use validation with the simple theme you have to extend it or to modify xhtml theme in order not to build the table layout. The templates sources are in struts jar and you can define others by adding them to struts.pr

Re: simple vs xhtml theme, validation question

2008-10-08 Thread Lukasz Lenart
2008/10/8 Torsten Krah <[EMAIL PROTECTED]>: > I don't want to use the xhtml theme because of the table layout it produces, > the simple is enough. > However, simple does not render the validation errors or messages. You can use css_xhtml theme [1] > Wheres the glue to do so with the simple theme?

simple vs xhtml theme, validation question

2008-10-08 Thread Torsten Krah
Hi. I don't want to use the xhtml theme because of the table layout it produces, the simple is enough. However, simple does not render the validation errors or messages. Wheres the glue to do so with the simple theme? Did not find any information about this yet which helps me, to render those me

Ajax div tags not loading after few clicks.

2008-10-08 Thread dxa
I am using struts 2 ajax tags. I have divs inside other div tags. And after a bunch of clicks I get the following error: Error loading '/Simcare/rxForEncounter.action?dojo.preventCache=1223473237217' (200 OK) I also see lots of debug statements about widget ID collisions. Any ideas? Please Help

Re: struts2 select onchange to trigger ajax call

2008-10-08 Thread dxa
Thank you so much! This saved me hours of work! Markus Doring wrote: > > Thanks Dave, that works! > > I finally also found a working example here: > http://javachamp.blogspot.com/2008/06/struts-2-ajax-drop-down-example.html > > You can actually get rid of any javascript functions and just pu

AW: Tree default expanded ??

2008-10-08 Thread Jan Froehlich
Hi... Here's the code for my tree... I use struts 2.1.2 too... I use a custom templateDir, cause I had to remove the root Node from the Tree, so my Template is modified for that - if I remember right there are no other changes... Regards Jan -Ursprüngliche Nachricht- Von: Narayan

Re: tag for formatting date or time using type and style, not pattern

2008-10-08 Thread stanlick
Any idea how to get language specific validations? e.g. SomeAction-validation_fr.xml Scott On Mon, Oct 6, 2008 at 11:24 AM, Chris Pratt <[EMAIL PROTECTED]>wrote: > One way is to use the tag. If you define an entry in your > application properties file similar to: > > format.date.long={0,da

Re: Problem with events

2008-10-08 Thread Sébastien Domergue
Hi, I think that it is because your div is not reload but the contents in your div. So, from the browser point of view, there is no event for the div. Maybe i'm wrong and in this case i don't see anything else, sorry... Regards Sébastien Pro1712 a écrit : Hi! Im using Struts 2.1.2. Here is

Problem with events

2008-10-08 Thread Pro1712
Hi! Im using Struts 2.1.2. Here is my code: Javascript: dojo.event.topic.subscribe("/beforeIntern", function(event, widget) {alert('before ' + widget);}); dojo.event.topic.subscribe("/afterIntern", function(data, request, widget) {alert('after ' + widget);}); JSP: When I initially lo

Re: s:url Tag - Generate Servlet URL in a Portlet Environment

2008-10-08 Thread Torsten Krah
Am Mittwoch, 8. Oktober 2008 11:46:48 schrieb Nils-Helge Garli Hegvik: > Feel free to register an improvment > request in JIRA. https://issues.apache.org/struts/browse/WW-2832 -- Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge. Siehe http://www.gnu.org/philosophy/no-word-attachments.de

Re: s:url Tag - Generate Servlet URL in a Portlet Environment

2008-10-08 Thread Nils-Helge Garli Hegvik
I guess it could be solved in the future, by adding a new "portletUrlType" or something. Feel free to register an improvment request in JIRA. Nils-H On Wed, Oct 8, 2008 at 11:40 AM, Torsten Krah <[EMAIL PROTECTED]> wrote: > Am Mittwoch, 8. Oktober 2008 10:48:50 schrieben Sie: >> It's not directly

Re: s:url Tag - Generate Servlet URL in a Portlet Environment

2008-10-08 Thread Torsten Krah
Am Mittwoch, 8. Oktober 2008 10:48:50 schrieben Sie: > It's not directly supported (using action and namespace), but if I > remember correctly you can use the "value" attribute to generate a > regular "non-portlet" url. To bad its not supported via action and namespace. Using s:url value attribute

Re: s:url Tag - Generate Servlet URL in a Portlet Environment

2008-10-08 Thread Nils-Helge Garli Hegvik
It's not directly supported (using action and namespace), but if I remember correctly you can use the "value" attribute to generate a regular "non-portlet" url. Nils-H On Wed, Oct 8, 2008 at 10:35 AM, Torsten Krah <[EMAIL PROTECTED]> wrote: > Hi. > I want to use servlets to do some tasks called f

s:url Tag - Generate Servlet URL in a Portlet Environment

2008-10-08 Thread Torsten Krah
Hi. I want to use servlets to do some tasks called from a portlet. I wonder how i can tell the s:url Tag to generate a servlet URL (dispatched by the FilterDispatcher) instead of an PortletURL? -- Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge. Siehe http://www.gnu.org/philosophy/no-w