Thank you for the info. It was really helpful although I didn't use it :(
Because the expansion of the parents is not done automatically ... I see no
reason for using this. Maybe in the future they will integrate the automatic
expansion of the parents of selected node.
Manu Mahajan-2 wrote:
>
hi!! i usually place all the tlds in the WEB-INF folder..may be this helps if
it is the problem...
aarthy <[EMAIL PROTECTED]> wrote:
Hi,
I tried to implement captcha in my struts project using guidelines from this
link
http://forge.octo.com/jcaptcha/confluence/display/general/Struts+integration
If there are features you're missing, please go ahead and register
issues in jira.
Nils-H
On 9/14/07, tom tom <[EMAIL PROTECTED]> wrote:
> Thats sounds good, also try to have model-driven
> interfaces to have the session scope Action forms in
> the next release,
>
> that also not working currentl
hi,
Yaa i have done mistake. I have placed my ActionForm Name insted of
Confingfile form name. But the problem still there i am not able to get the
form (setLableParam())value to my jsp. I have created an object in my jsp
and tried to print the object, but it is returning null.
and one more
Question: how to change the default baseRelativePath?
using struts 2.0.9 and the xhtml template, the tag insert the
following content in the page,
where baseRelativePath: "/p/struts/dojo", while I want it to be
"/p/js/dojo", so how can I change that?
or I have to follow its requirement and put al
The session object is a simple Map, so creating it is easy.
First, you have to define an instance variable in which to store the
session, and second, you need to implement the setSession() method.
public class MyAction implements SessionAware {
private Map session;
public void setSessi
Hi,
I tried to implement struts in my project using guidelines from this link
http://forge.octo.com/jcaptcha/confluence/display/general/Struts+integration
i am getting the below error.
org.apache.jasper.JasperException: File "/jcaptcha" not found
org.apache.jasper.compiler.DefaultErrorHandler.j
Thats sounds good, also try to have model-driven
interfaces to have the session scope Action forms in
the next release,
that also not working currently.
Also in the s:url the action tag does not evaluate
expressions, e.g if you want to have a dynamic action
name.
Pls try to address that as wel
I have multiple forms which sometimes have similar parts (for instance couple
of fields required for entering the address). For that similar parts I want
to avoid code duplication so I was thinking of doing that by using
freemarker macro orderDataForm with a parameter orderDataObject:
<#macro ord
Thanks for the tip, but I'll need an actual code snippet, because when I make
my action implement SessionAware, I need to also implement the setSession()
method, and I'm back to square 1, trying to figure out how to create a session
object. I can send a HashMap to the method, but what does it h
I guess I'll address my question to newbies: have any of you successfully
implemented the fileUpload from the showcase? Please let me know whether
you've come across the same issue as me with the actual file not being
uploaded. Any fixes?
Thanks
> I've attempted to get the upload to work, b
If your Action implements SessionAware, you don't need to make a mock
HttpSession at all. You just make a new HashMap, stuff it with the
values you want, and call action.setSession(). Just one more of the
things I love about Struts 2. :)
But there are libraries around that do allow mock Htt
Because I was dealing with multiple List that a simple iterate tag could not
handle. I have since added extra logic to the action in the getter methods
to handle what I needed which perhaps is a better solution. It would be
nice for future reference to be able to have an instance of my action in
Spring has a MockHttpSession, or perhaps you could use
jMock?
d.
--- Session A Mwamufiya <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> How do I go about creating a dummy HttpSession
> object for unit testing a struts 2 app?
>
> I have created a dummy HttpServletRequest object,
> but I can't instanciate
--- kkjacks <[EMAIL PROTECTED]> wrote:
> I am interested in the actual writing of custom tags
> and I also hoped that by learning how to do this it
> would help facilitate my previous unanswered
question
> of how to access the action through scriptlet code
in
> the jsp.
Ah; sorry.
I'd probably
Hi,
How do I go about creating a dummy HttpSession object for unit testing a struts
2 app?
I have created a dummy HttpServletRequest object, but I can't instanciate an
HttpSession in teh Request.getSession() method, because HttpSession is an
abstract interface and I can't create an instance of
I am interested in the actual writing of custom tags and I also hoped that by
learning how to do this it would help facilitate my previous unanswered
question of how to access the action through scriptlet code in the jsp.
I know the action is on the ValueStack but I am not sure of the "correct"
I've attempted to get the upload to work, but I get some inconsistencies in the
getters. I get the correct filename in the filename getter, but I don't get
that same filename in the file getter (it's something totally different).
Here's the code for my getters:
public String getUploadFileNa
2 days is my limit on attempting to implement a feature before I finally
beg:
I have read the doc, and am able to create a double list with static
data in the jsp.
list="{'fruit','other'}" doubleName="dishes" doubleList="top == 'fruit'
? {'apple', 'orange'} : {'monkey', 'chicken'}" />
And I
> I have Microsoft Internet Explorer 6.0.2 on my computer.
>
> If I use the struts anchor the URL parameters are separated
> by the & character and the link works.
> If I use the html anchor with a struts property the URL
> parameters are separated by the amp; characters and the link
> doesn'
On 9/13/07, Wesley Wannemacher <[EMAIL PROTECTED]> wrote:
> The next will most likely be on using the Struts2 tags
Sounds good, please remember to let us know when you get around to the
custom tag articles. Thanks.
(*Chris*)
-
>On 9/13/07, Wesley Wannemacher <[EMAIL PROTECTED]> wrote:
>> I like to think the ones I wrote are good :)
>>
>> http://www.wantii.com/wordpress/?cat=3
>>
>Wesley,
> I don't see anything up there on writing Custom Tags, which was the
original caller's question. Did >I miss them?
> (*Chris*)
--- Chris Pratt wrote:
> Wesley Wannemacher wrote:
> > I like to think the ones I wrote are good :)
> > http://www.wantii.com/wordpress/?cat=3
> I don't see anything up there on writing Custom
> Tags, which was the original caller's question.
Actually, the original question was whether or not
ther
On 9/13/07, Wesley Wannemacher <[EMAIL PROTECTED]> wrote:
> I like to think the ones I wrote are good :)
>
> http://www.wantii.com/wordpress/?cat=3
>
Wesley,
I don't see anything up there on writing Custom Tags, which was the
original caller's question. Did I miss them?
(*Chris*)
---
--- Gabriel Belingueres <[EMAIL PROTECTED]> wrote:
> Anyway, I'm still not convinced that invalidating
> the session in the
> action class would yield any more positive results
> than doing it in
> the JSP page.
> Nobody gave any examples, counter-examples or use
> cases that shows it is more co
I've been trying to adapt the approach shown at
http://today.java.net/pub/a/today/2007/04/12/embedded-integration-testing-of-web-applications.html
for building acceptance tests that can be run more simply within the IDE and
that don't require creating a multi-module POM in Maven (since all
articl
I think this is becoming an off topic for this list, so this will be
my last post.
Anyway, I'm still not convinced that invalidating the session in the
action class would yield any more positive results than doing it in
the JSP page. Nobody gave any examples, counter-examples or use cases
that sho
Hello,
Look at existing Struts 2 package, after using the blank app war file, I cannot
figure out how the actions url has been controlled.
>From web.xml, the url-pattern specify as following, and it seems that any url
>patten /* will work, but the framework doesn't behave that way. Why only
>
Hrm, yeah, it must have been added since then :/
I really don't like the wiki sometimes because of
issues like that; it's too easy to get confused
(obviously! :)
d.
--- TonyD <[EMAIL PROTECTED]> wrote:
>
> Sorry Dave, now I will explain what happed.
>
> I have struts version 2.0.6 installed a
Hi.
For your specific question
Try
treeSelector = dojo.widget.byId('treeSelector_TREENAME')
treeNode = dojo.widget.byId(ID)
treeSelector.doSelect(treeNode);
dojo.event.topic.publish("treeSelected",
{node:dojo.widget.byId(treeSelection)});
Replace TREENAME with the name of your tree, ID is th
I like to think the ones I wrote are good :)
http://www.wantii.com/wordpress/?cat=3
I don't consider it complete yet, since I haven't covered
tags/freemarker/spring/etc. But it covers basics and will keep you
reading for a while.
-Wes
-Original Message-
From: kkjacks [mailto:[EMAIL PR
Sorry Dave, now I will explain what happed.
I have struts version 2.0.6 installed and my URL local documentation
doesn't contain the "escapeAmp" attribute.
That means I must update to the latest struts version 2.0.9 to use that
attribute?
Because I just used it in my url code and I got an "Excep
Struts 2 literature seems to be pretty limited right now. Any detailed
tutorial at all would be nice. I have looked through roseindia but it seems
to just skim the surface.
--
View this message in context:
http://www.nabble.com/Know-of-any-good-custom-tag-tutorials-for-struts-2--tf4435689.html
I have my beans inheriting ValidtorActionForm. Is there anything else
that I need to do to turn on server-side validation? At this point
neither server-side or client-side validation is picking up this field.
Paul Benedict wrote:
I don't the client-side validator handles arrays? You should in
Hello tom,
I am building a J2EE application, that is going to be viewed using Web
Browser and Mobile Devices.
I am trying to implement security so that only a logged in user with the
correct role can access the different parts of the application e.g. a
non-logged in user can only access the
--- TonyD <[EMAIL PROTECTED]> wrote:
> Why have you sent me this link?
So you'd read what's on the page.
> Do you think I never seen that link?
Apparently not, otherwise you would have seen the
"escapeAmp" attribute.
> Do you think the answer to my question is in that
link?
Yes, because if you
Please start a new thread, and say what you want more concisely, I just
cannot understand a word!
Antonio
2007/9/13, msg2ajay <[EMAIL PROTECTED]>:
>
>
> hi thanQ very much for reply,
> Yaa i have done mistake the form
> name is different in my config file.
hi thanQ very much for reply,
Yaa i have done mistake the form
name is different in my config file so i tried with that but then also i
am not able to get the values. I tried to print back in my Action class it
is printing in actionClass also but it is
We use conditional validation by placing a method string our model and using
that as a conditional check during validation.
Z.
> Is it possible to have seperate validtion files for each method.
>
> Bascially it would be very nice to be able to have
>
>
>
>
> and be able to ha
It doesn't matter as long as you can justify it :-) If the behaviors
"belong" together, you may choose to use a Dispatch-like action. Otherwise,
make them separate. Alot of this is stylistic but you'll figure out the
answer based on how related the business code is.
Paul
On 9/12/07, Zhang, Larry
I don't the client-side validator handles arrays? You should instead allow
server-side validation to take care of complex scenarios.
Paul
On 9/12/07, Matthew Schrader <[EMAIL PROTECTED]> wrote:
>
> Users,
>
> I have been googling like crazy to find a workaround, or fix, to the
> problem of Valida
X32Form is the name of your java class, not the bean. You get the name of
the bean from the "name" attribute of your action mapping.
Paul
On 9/12/07, msg2ajay <[EMAIL PROTECTED]> wrote:
>
>
> hi,
> i am trying to get the collection object (Vector) form Action
> Class
> to my Jsp. I alrea
I do not believe the two are currently compatible.
On 9/12/07, Emi Lu <[EMAIL PROTECTED]> wrote:
>
> Hello List,
>
> I am using struts1.3.8. May I know is it possible that I can use some
> functions/tags provided by 2.0.9.
>
> For example,
> . do not change any 1.3.8 .jar files
> . Add struts2-cor
thank's a lot
Antonio Petrelli-3 wrote:
>
> 2007/9/13, msg2ajay <[EMAIL PROTECTED]>:
>>
>>
>> hi,
>>
>>i am trying to use struts-layout for demonstration of Grid model.
>> so
>> Can anybady tell me from where i can download the relevent supported
>> file's
>> needed to me.
>> i am using
Hi all,
I´m trying to read the StrutsConstants.STRUTS_ACTION_EXTENSION at
execution time and I´m not able to.
String ext = (String)
DefaultSettings.get(StrutsConstants.STRUTS_ACTION_EXTENSION);
gives me an error, and, besides that, I have modified the extension
attribute in my struts.xml,
2007/9/13, msg2ajay <[EMAIL PROTECTED]>:
>
>
> hi,
>
>i am trying to use struts-layout for demonstration of Grid model.
> so
> Can anybady tell me from where i can download the relevent supported
> file's
> needed to me.
> i am using struts 1.2.9 and jdk1.5..
1) Open Firefox or IE or wha
I have Microsoft Internet Explorer 6.0.2 on my computer.
If I use the struts anchor the URL parameters are separated by the &
character and the link works.
If I use the html anchor with a struts property the URL parameters are
separated by the amp; characters and the link doesn't work.
I return
Why have you sent me this link?
Do you think I never seen that link?
Do you think the answer to my question is in that link?
You don't need to reply if you don't know the answer with another question.
Thanks.
newton.dave wrote:
>
> http://struts.apache.org/2.x/docs/url.html
>
> --- TonyD <[EMA
Hi.
All worked great for displaying the http://www.nabble.com/Set-the-tree-node-to-a-given-value-tf4433953.html#a12649709
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTE
49 matches
Mail list logo