I use struts2.0.14 and Pager Taglib2.0, I want to use Pager Taglib2.0 in
struts2
In action file
public String search() throws Exception{
System.out.println("call search");
request.setAttribute("index","center");
request.setAttribute("pageUrl","/test/search.action");
return SU
Christopher Maloof wrote:
Solved; it turns out that the tags in the form were somehow
causing this problem.
Yeah, the S2 form tags put everything in a table by default, so you
would have had some funky HTML there... different browsers handle
malformed HTML in different ways. Yay browsers.
Solved; it turns out that the tags in the form were somehow
causing this problem.
Chris
On 2/2/2009 11:06 AM, Christopher Maloof wrote:
Hello,
I've just installed Struts 2.1.6, and I'm converting a form to use
Ajax validation. It's mostly working nicely, except that the input
fields and e
Hi
I have a website made in a script language, here I use Apache User
Authentication for protecting some things, I works ok. but I want the
user to login by a form instead.
So I made a small struts project, with a page with a form, here I have
username and password, I go into the db and make cert
sd9 wrote:
I had been stuck with this problem for more than 24 hours [...]
...
The stack trace should have pointed to the exact location and error, no?
Dave
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For a
Has anyone here tried and tested the Sample Application code that comes for
this book "Struts 2 In Action" ?
I am having hard time to fix it. Currently I am facing the issues in
applicationContext.xml file.
This is the header for XML file that comes with sample application code
"
The only thing I can think of, is extending DefaultActionMapper,
extract the id from there, and add it to the mapping params, then
plugin your mapper:
musachy
On Mon, Feb 2, 2009 at 11:48 AM, Greg Lindholm wrote:
>
> Thanks Jim, but I can't use a link, I need to submit the form as there are a
Thanks Jim, but I can't use a link, I need to submit the form as there are a
bunch of other fields that need to get posted with the request.
Jim Kiley wrote:
>
> How bout:
>
>
>
> Delete
>
> On Mon, Feb 2, 2009 at 11:37 AM, Greg Lindholm
> wrote:
>
>>
>> Yes Musachy, that is correct. So
How bout:
Delete
On Mon, Feb 2, 2009 at 11:37 AM, Greg Lindholm wrote:
>
> Yes Musachy, that is correct. So is there some struts magic to do this?
>
> The only way I can think of doing this is to add some javascript to each
> button that would set the id as a hidden parameter before doing th
Yes Musachy, that is correct. So is there some struts magic to do this?
The only way I can think of doing this is to add some javascript to each
button that would set the id as a hidden parameter before doing the submit.
But I would prefer to do this without JS if possible.
I guess what I'm th
Yeah, that's a good idea, you will find that under "Validation" (menu)
-> Validation (ajax).
musachy
On Mon, Feb 2, 2009 at 11:22 AM, Christopher Maloof
wrote:
> The Firefox error console doesn't show any problems. I haven't tried this
> showcase app (I'm pretty new to the framework) -- I guess
The Firefox error console doesn't show any problems. I haven't tried
this showcase app (I'm pretty new to the framework) -- I guess I'll take
a look and see if I can pin down any differences?
Chris
On 2/2/2009 11:14 AM, Musachy Barroso wrote:
I just tried in showcase and they get cleared, is
What you need to do is pass a different parameter on each submit, not
call a different method.
musachy
On Mon, Feb 2, 2009 at 11:06 AM, Greg Lindholm wrote:
>
> Thanks Miguel, but that doesn't sound workable with an arbitrary number of
> buttons.
>
> Anyone else?
>
> I'm looking for a method of
I just tried in showcase and they get cleared, is there any javascript
error on the page?
musachy
On Mon, Feb 2, 2009 at 11:06 AM, Christopher Maloof
wrote:
> Hello,
>
> I've just installed Struts 2.1.6, and I'm converting a form to use Ajax
> validation. It's mostly working nicely, except that
Hello,
I've just installed Struts 2.1.6, and I'm converting a form to use Ajax
validation. It's mostly working nicely, except that the input fields
and errors don't clear after a submission. (Ideally, errors should
always clear, and input fields should clear if validation succeeds.)
The er
Thanks Miguel, but that doesn't sound workable with an arbitrary number of
buttons.
Anyone else?
I'm looking for a method of dealing with a table with each row having a
"remove" button. I need to pass a different rowId based on which button is
clicked so I know which row to remove.
I need to us
God Bless you Nuwan and Nils :)
I had been stuck with this problem for more than 24 hours and now it's
solved.
Yeah, as you said, I just had to add this "casePapers=new
ArrayList();"
And it worked!!! :)
Thanks a million!!!
--
View this message in context:
http://www.nabble.com/Problem-with-
Is it deliberate that no reference to/configuration for the cookies
interceptor is provided in struts-default.xml in the 2.1 releases?
Obviously I can work around it by configuring in my struts.xml file but it
seems bizarre that the code exists and is included in the jar, but the
configuration is
Hi guys,
I was interested in using struts with Flex technology on the front end. Does
anyone have any experience doing this? and if so, could you enumerate any
difficulties or obstacles you may have faced?
thanks,
Sid Bhatia
"Try not. Do... or do not. There is no try" -- Yoda
This is a known problem on xwork 2.1.2:
http://jira.opensymphony.com/browse/XW-670
it is fixed in xwork trunk
musachy
On Mon, Feb 2, 2009 at 7:59 AM, Andrei Ivanov wrote:
> Anybody?
>
> On Tue, Jan 20, 2009 at 10:30 AM, Andrei Ivanov
> wrote:
>> On Tue, Jan 20, 2009 at 5:08 AM, dusty wrote:
Hi,
I need to define popup window in my jsp page that will bring a new window
with autocomplete combobox that will have multiple columns. So, my user
should choose from that list a value that will be returned to main jsp
(action). Is there any example of such combination ?
--
Thx, Milan
--
View
Michael Finney wrote:
I am trying to find archetype-blank archetype mentioned below.
I don't think it's been installed yet (I don't actually know how to do
that, but am asking). You won't be able to use a non-local archetype
until it's seeded to the repo(s).
I also read http://struts.apach
thanks for reporting Markus.
musachy
On Mon, Feb 2, 2009 at 7:50 AM, Markus Doring wrote:
>
> Thanks Musachy,
> those filters seem to work with the regular SiteMeshFilter! I still get the
> same exception when using the FreeMarkerPageFilter, but the regular
> com.opensymphony.sitemesh.webapp.Sit
Martin,
> we can be of more assistance if you send us the .project
Here's the contents of the .project...not much there.
*.project**
pwww
org.eclipse.jdt.core.javabuilder
Hi,
I am trying to find archetype-blank archetype mentioned below.
I re-read
http://thedevelopercorner.blogspot.com/2007/06/build-struts-2-application-us
ing-maven.html
I also read http://struts.apache.org/2.1.6/docs/struts-maven-archetypes.html
which has:
mvn archetype:create -DgroupId=tuto
casePapers must be null?
sd9 wrote:
Hi,
This problem has been driving me mad!
I have this code (below), which isn't going beyond the "casePapers.add(cp)"
line.
It displays the string "--before4--"
But doesn't display this string "--after-
Anybody?
On Tue, Jan 20, 2009 at 10:30 AM, Andrei Ivanov wrote:
> On Tue, Jan 20, 2009 at 5:08 AM, dusty wrote:
>>
>> Sorry. I don't think I understand your problem. When you say the stack is
>> being cleared are you seeing nulls in your converter for values that were
>> previously populated o
Have you actually created the ArrayList?
Nils-H
On Mon, Feb 2, 2009 at 1:42 PM, sd9 wrote:
>
> Hi,
>
> This problem has been driving me mad!
> I have this code (below), which isn't going beyond the "casePapers.add(cp)"
> line.
> It displays the string "--before4--
Thanks Musachy,
those filters seem to work with the regular SiteMeshFilter! I still get the
same exception when using the FreeMarkerPageFilter, but the regular
com.opensymphony.sitemesh.webapp.SiteMeshFilter works and
I am able to access the ValueStack with Freemarker in my decorator without
any p
ErrrI doubt if that'd work...I'm looking for struts 2 tags.
How do you use this dojo tab thing. Never heard of it
mgainty wrote:
>
>
> a fairly good example is located at
> http://www.blueskyworkshop.com/topics/JavaScript-Pages/examples/Dojo-Tabs-With-Code.phponce
> you get it working p
And this is the error from catalina.out:
Feb 2, 2009 5:56:00 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Feb 2, 2009 5:56:01 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Feb 2, 2009 5:56:02 PM org.apache.coyote.ht
Hi,
This problem has been driving me mad!
I have this code (below), which isn't going beyond the "casePapers.add(cp)"
line.
It displays the string "--before4--"
But doesn't display this string "--after--"
The CasePaper class has been
Andy Law wrote:
>
> 've hit a painful problem as I try to migrate to 2.1.6 (from 2.0.14).
>
> I have a class that extends ActionSupport and which calls getText() from
> within a routine. I want to test the routine to ensure that it is working
> properly. My test runs fine when I compile with 2.
Hello,
How can I do a validation in struts there is always the starting date is not
greater than the end date.
Greeting.
Dear Taj Uddin
You can try the code below,
function goBack()
{
history.go(-1);
return false;
}
Ehteshamul Haque
'A great man is not the one who never falls, but the one who rises every time
he falls'
--- On Mon, 2/2/09, taj uddin wrote:
> From: taj uddin
Hi,
In my application i tried using the back button with javascript but its not
working and instead it was calling the action specified in the form tag.
IN Detail:
when i click the back button, it was not rendering the previous page..instead
it was calling the xyz action. So, pls help me
Hello,
i'm new in this list, i'm new j2ee developer
i have some question related to interfacing struts (jsp) with javascript
i have a link in the jsp page
once the user click on this link, i wanna show a pop out (i already made the
jsp page which will be dispalyed in this popout)
so the pb is , how
All,
I've hit a painful problem as I try to migrate to 2.1.6 (from 2.0.14).
I have a class that extends ActionSupport and which calls getText() from
within a routine. I want to test the routine to ensure that it is working
properly. My test runs fine when I compile with 2.0.14 but disappears int
I amn't able to get the links right in Nabble. It renders it wrong...
Resending the messed up lines in the jsp
','APPROVALFORM');">
Thanks !!
J D wrote:
>
> Here goes the details
>
> The files are
>
> struts.xml
> class="com.jci.glims.web
Here goes the details
The files are
struts.xml
/main/test/display.jsp
/main/test/input.jsp
/main/test/confirmation.jsp
message
/main/test/display.jsp
message
/main/test/display
Hi,
consider following:
1. jsp with hidden field myField="someValue"
2. post to an action1 -> action1 can read myField and there is someValue in it
3. redirect to another action2 but with redirect="false" in struts-config.xml
- it's very important to add redirect="false", it will not create new
req
Hi Paolo,
first of all float for cash is a very bad idea. Use BigDecimal.
Then You can ass getter and setter in Form like this:
public String getMyFieldValue() {
return myFieldValue.toString().replaceAll(".", ",");
}
public void setMyFieldValue(String amount) {
myFieldValue = new BigDecimal(amo
42 matches
Mail list logo