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
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
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
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
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
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
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 +
--- 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
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
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
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
--- 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
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
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
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
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
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.
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
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
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,
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
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:
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
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
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
>
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
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
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
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
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
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?
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
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
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
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
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
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
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
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
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
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
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
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
43 matches
Mail list logo