For future reference and/or if someone else is troubled by this in the future
the solution to both of these problems seems to be that I by mistake defined
my application to use defaultStack rather than restDefaultStack.
--
View this message in context:
http://struts.1045723.n5.nabble.com/REST-PLU
Depending on what container you're using, you might try:
(*Chris*)
On Thu, May 19, 2011 at 9:04 AM, vivek mishra wrote:
> Hi list,
>
> I am trying to add some value in but unable to do this.
>
> Here is my code:
> "frmTxtAttachment"* style=*"width:300px"*
>
> ** value=*""*
> >
>
> I am get
Not really.
You'd be better off checking out applet documentation/tutorials I think.
Dave
On May 19, 2011 11:31 PM, "vivek mishra" wrote:
> Ok. How an applet can work in this situation .. can you please point me to
> the trick..your help is much appreciated Dave..
>
> Although it should have thi
Ok. How an applet can work in this situation .. can you please point me to
the trick..your help is much appreciated Dave..
Although it should have this capability .. I am stuck with this requirement
which has
turn into a big problem from a small looking requirement..
Thanks!
-- Vivek
On Fri, Ma
I'm not sure, maybe ActiveX, Flash, or an applet. I'd imagine that
capability was deliberately excluded to avoid any possibility of
security-related issues (but don't know if that's why).
Dave
On May 19, 2011 10:22 PM, "vivek mishra" wrote:
> Thanks for the reply Dave. Is there any other trick f
Thanks for the reply Dave. Is there any other trick from which we can
achieve this scenario?
-- Vivek
On Thu, May 19, 2011 at 10:10 PM, Dave Newton wrote:
> Can't do that.
>
> Dave
>
> On Thu, May 19, 2011 at 12:04 PM, vivek mishra
> wrote:
> > Hi list,
> >
> > I am trying to add some value in
That should work fine until someonw switches you to the PrepareParamsPrepare
stack and prepere() gets called twice anyway. ;)
(*Chris*)
On May 19, 2011 12:55 PM, "CRANFORD, CHRIS"
wrote:
> Eric -
>
> The framework will call getModel() multiple times before your validate()
> and execute() methods
On Thu, May 19, 2011 at 3:55 PM, CRANFORD, CHRIS wrote:
> The framework will call getModel() multiple times before your validate()
> and execute() methods are invoked; and so by adding the create/lookup
> logic to getModel(); you would then have to wrap that block of code
> around a null check so t
On Thu, May 19, 2011 at 2:22 PM, Eric Lentz wrote:
> I'm curious. If you are using ModelDriven, then why do you load your model
> in prepare()? Why not in getModel?
That'd mean you'd need the "did I already load the model?" code in
getModel(), wouldn't it? Seems cleaner to use prepare, since that
Eric -
The framework will call getModel() multiple times before your validate()
and execute() methods are invoked; and so by adding the create/lookup
logic to getModel(); you would then have to wrap that block of code
around a null check so that subsequent calls to getModel() would just
return the
> Not that I am aware. The paramsPrepareParamsStack to my knowledge
> handles validation at the very end; so by the time validation has
> happened; the model has already been prepared by the prepare() method.
Right, I see you said that earlier, sorry.
So, why do you want to show what they entere
Generally speaking, I don't advocate for client-side data validation
(javascript) since in most cases it's intended to be used instead of
server side validation, which is a Bad Thing.
In this case, however, perhaps some basic client-side validation would
be appropriate, just to prevent the user fr
Not that I am aware. The paramsPrepareParamsStack to my knowledge
handles validation at the very end; so by the time validation has
happened; the model has already been prepared by the prepare() method.
-Original Message-
From: Eric Lentz [mailto:eric.le...@sherwin.com]
Sent: Thursday,
On Thu, May 19, 2011 at 12:51 PM, Edward W. Rouse wrote:
> No, the vars HashMap has as many as 50 objects of different names and
> classes in it, plus the bean it used the toString on has the exact contents
> (SortableData beans) of the exact quantity that I expected. Nice thought
> though and I th
> So when this error condition is met and the user redirected back to the
INPUT form; the
> field where they had entered "xyz" is now the original default
> initialized value.
Can't you check the action error and not refresh the model when there is
an error?
No, the vars HashMap has as many as 50 objects of different names and
classes in it, plus the bean it used the toString on has the exact contents
(SortableData beans) of the exact quantity that I expected. Nice thought
though and I thank you for it.
Edward W. Rouse
-Original Message-
Fro
When I implement the ModelDriven interface in my Struts2 actions;
I follow your typical prepare() method as follows:
public void prepare()
throws Exception {
if(id != null) {
model = service.create(/* some parameters */);
} else {
model = service.lookupById(id);
}
}
When a user fir
Can't do that.
Dave
On Thu, May 19, 2011 at 12:04 PM, vivek mishra wrote:
> Hi list,
>
> I am trying to add some value in but unable to do this.
>
> Here is my code:
> "frmTxtAttachment"* style=*"width:300px"*
>
> ** value=*""*
>>
>
> I am getting value in * property='attachPath' /> , but it'
On Thu, May 19, 2011 at 11:54 AM, Edward W. Rouse wrote:
>
>
> [produces the following exception]
>
> 2011-05-19 11:15:50.961: Resin javax.servlet.jsp.JspException: Cannot find
> bean: "[com.comsquared.workflow.web.util.SortableData@671416,
> com.comsquared.workflow.web.util.SortableData@157d162,
Sounds like an interview question to me.
In general I think it's better for everyone to provide
hints/pointers/links/etc. instead of outright answers--at least that
way the OP will have *some* actual clue instead of simply
regurgitating the knowledge of others, leading to more work for
someone els
Hi list,
I am trying to add some value in but unable to do this.
Here is my code:
"*
>
I am getting value in * , but it's not getting set in*
*as as value of .*
*Any help will be much appreciated !!*
*Thanks and Regards,*
*-- Vivek Mishra*
* *
I have been using struts for years and this is the first time I have been
stumped. This is a long running project (over 6 years) that is using struts
1.3 running under Resin 3.0. I can change the version of struts but not
resin.
This is the line:
And this is the error:
2011-05-19 11:15:5
You appear to be askin about astruts 1.x, since 2.x doesn't make use of
ActionForm's any longer. So, in Struts 1.x, there would be one instance of
ActionServlet ans ten instances of ActionForm.
(*Chris*)
On May 19, 2011 2:07 AM, "vasslee" wrote:
> Hi All,
>
> I have struts login page.10 concurr
Yes, the map is Map. Because the HTTP protocol allows
sending multiple parameters with the same name.
(*Chris*)
On May 19, 2011 2:06 AM, "arin_12" wrote:
> I also tried Map . But the same result.
> .toString also does not help any thing. It looks like the Parameter from
> request is returning
>
> -Original Message-
> From: Pankaj Gupta [mailto:pankaj.hug...@gmail.com]
> Sent: Thursday, May 19, 2011 10:12
> To: Struts Users Mailing List
> Subject: Re: Pagination using Struts library
>
> Hi Dave,
>
> Just need quick help.
> Is display tag supported for struts1.2.
>
http://www
On Thu, May 19, 2011 at 3:54 AM, inception wrote:
> My actual requirement is that i have to generate dynamic comboboxes [usig
> select tag] inside iterator .
>
>
> />
>
That doesn't help me understand what you're trying to do, though, or
why you believe you need to use a scriptlet, or how
Hi Dave,
Just need quick help.
Is display tag supported for struts1.2.
Thanks,
Pankaj
On Wed, May 11, 2011 at 5:36 PM, Dave Newton wrote:
> There isn't any; Struts is largely front-end neutral. Check the jQuery
> plugin, otherwise your best bet is to use any of the myriad pagination
> libs.
I tried but it dint work ..
My actual requirement is that i have to generate dynamic comboboxes [usig
select tag] inside iterator .
--
View this message in context:
http://struts.1045723.n5.nabble.com/syntax-for-passing-java-contents-inside-jsp-using-struts-2-2-1-tp4406269p4409032.html
S
Hi All,
I have struts login page.10 concurrent users logged that screen.Now
1.How many instances are created in ActionServlet?.
2.How many instances are created in ActionForm?.
Regrads,
Vass
--
View this message in context:
http://struts.1045723.n5.nabble.com/Login-Page-tp4408957p4408957.html
Recently when I tried the jQuery Grid from the website it is not able to edit
the grid. Seems like there is some problem. I have posted the same in the
forum. Dont know it has been fixed or not. Try this below url.
http://www.weinfreund.de/struts2-jquery-grid-showcase/index.action
--
View this
I also tried Map . But the same result.
.toString also does not help any thing. It looks like the Parameter from
request is returning
Map.
Later If i run the value as String array I get the value. The length is
always sets to 1.
String st[] = map.get("param");
value = st[1];
This gives me th
31 matches
Mail list logo