Re: Struts2 on Websphere portal 6.1.0.0

2010-04-19 Thread Prabahar

I am facing an issue with Struts 2 portlet which uses Display Tag. I have
implemented a code to display a list using Display Table and also
implemented Sorting option. It is working fine with IBM WAS 7.0 and the same
code is not working with IBM Portal Server 6.1

It is displaying the data, but when i click on the pagination link (First,
Last, Next..) and the column header (to sort) then i am getting page can not
be found.

I have even mentioned page cotext, but still i am facing this issue. I have
also added the display tag portlet support jar (displaytag-portlet-1.2.jar)
along with displaytag-1.2.jar and its supporting jars.






I have a doubt in the requestURI parameter... what exactly i should give to
that parameter. I have also used requestURIContext as well, but no
improvement.



Nils-Helge Garli wrote:
> 
> Thanks for the summary, although I disagree with your conclusion ;)
> 
> Nils-H
> 
> On Fri, Aug 1, 2008 at 2:21 AM, Struts Two  wrote:
>> I am running Struts2.0.11.1 on Websphere 6.1.0.17 NOT THE WEBSPHERE
>> PORTAL. You need to keep the followings in mind:
>> 1- You need to have at least fixpack 13 or 15 ( I am not sure which one,
>> otherwise you CAN NOT RUN STRUTS 2 ON WAS)
>> 2- Struts 2.0.11.2 has problems running on Websphere 6.1 (it is missing a
>> patch), so you need to downgrade to 2.0.11.1 till next release (2.0.11.3
>> or 2.0.12)
>> 3- Once the above you are done with above steps, you need to set the
>> following custom property for WAS server:
>> com.ibm.ws.webcontainer.invokefilterscompatibility   =  true
>> If you do not set the above property, you can not run struts 2 on WAS as
>> well.
>> However; I did a project using struts on Websphere portal 6.0. IBM
>> provides its own customized struts that works with portal (which is based
>> on struts1), and it is pretty good. I recommend use the IBM's struts that
>> comes with Portal server as you would have a hard time using struts 2
>> with websphere portal.
>> Hope this helps,
>>
>>
>>
>> - Original Message 
>> From: Dinesh Narayanan 
>> To: user@struts.apache.org
>> Sent: Thursday, July 31, 2008 3:26:20 PM
>> Subject: Struts2 on Websphere portal 6.1.0.0
>>
>> Has Anybody tried Struts2 (Struts-2.0.11.2) on Websphere portal 6.1.0..0? 
>> I
>> am running into issues when I tried  a very simple JSR168 example.  Any
>> help
>> would be appreciated. Is there some example of struts2 sample in
>> websphere
>> portal 6.1?
>>
>> A) My portlet.xml contains the following entries
>> 
>> viewNamespace
>> /view
>> 
>>
>>   
>>   
>> defaultViewAction
>> index
>>   
>>
>>
>> B) My struts.xml is
>> 
>> 
>> 
>> /WEB-INF/view/index.jsp
>> 
>> 
>> 
>>
>>
>> Thanks
>> Dinesh
>>
>>
>>
>>  __
>> Be smarter than spam. See how smart SpamGuard is at giving junk email the
>> boot with the All-new Yahoo! Mail.  Click on Options in Mail and switch
>> to New Mail today or register for free at http://mail.yahoo.ca
>>
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Struts2-on-Websphere-portal-6.1.0.0-tp18761735p28287622.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: packaging Struts 2 application and third party jars

2010-04-19 Thread Paweł Wielgus
Hi all,
also there is a problem when You are migrating some of your apps from
one tomcat to another,
You have to assure that these libraries are there too,
which can be not so easy if You don't own new tomcat.

Best greetings,
Paweł Wielgus.


2010/4/18 Cimballi :
> Hi Sven,
>
> It's better to avoid to put jars in the Tomcat folders. The problem is
> that if you put your jars there, then all your apps will share them,
> and then you cannot have different versions of the same API, like one
> app using Struts 2.0.x and another one using Struts 2.1.x.
>
> Cimballi
>
>
> On Sun, Apr 18, 2010 at 12:25 PM, Sven Svenson  wrote:
>> Hi,
>>
>> I'm learning about Struts 2 and have a few hello world applications
>> packaging and deploying successfully.
>>
>> I'm curious about packaging the third party jar files with the web
>> application itself. I have been including the following in my web app
>> jar because some examples do that. (I know these aren't the current
>> version.)
>>
>> commons-logging-1.1.jar
>> freemarker-2.3.8.jar
>> ognl-2.6.11.jar
>> struts2-core-2.0.11.jar
>> xwork-2.0.4.jar
>>
>> Wouldn't it be better to just install these jars into the
>> tomcat/common/lib directory and then never include them in the web app
>> jar? What are the benefits of including these jars in the web app? Can
>> different web apps be running on different versions of Struts 2 if
>> each is including a different version of the Struts 2 jar?
>>
>> Thanks.
>>
>> /sven
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>
>
>
> --
> Cimballi
> JAVA J2EE Freelance
> http://cimballi.elance.com/
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



URI mapper plugin for struts2

2010-04-19 Thread Unmesh joshi

Hi,
I have been using struts for an year now and I always thought that expecting 
name and namespace of the action in URI is very limiting to application 
developers. It makes it very difficult to have actions mapping to UriTemplates 
like http://www.example.com/{foo}/{bar}/{baz}. Some times (as in my case), you 
might require a completely custom strategy of mapping uri to actions.  To solve 
both these issues, I have written a simple plugin called. UriMapperPlugin. It 
allows you to specify custom uri matching classes 
e...@customurimatchingrule(matcherClassName ="com.myapp.MyActionUriMatcher", 
method = "show")public class MyAction {  public void show() {//execute 
action  }}
orUri templates of the 
f...@uritemplatematchingrule(template="/products/{property1}/{property2}", 
method="show")public class MyAction1 {  public void show() {//execute 
action  }  public void setProperty1(String value){}  public void 
setProperty2(String value){}
}
It is not well tested yet, but I am using it in my current project.

The code is available at http://code.google.com/p/urimapperplugin/.
I will like to get comments.

Thanks,Unmesh 
_
The amazing world in sharp snaps
http://news.in.msn.com/gallery/archive.aspx

Custom types and select lists

2010-04-19 Thread Lance Hill
I  am trying to find an example of how to populate a select list of objects,
show the correct item as selected, and if the selection is saved, properly
update the object containing the item. In the example below, I would want to
show a group of fields for Student information with a select list of
Campuses. If the Student is already stored with a specific Campus, that
should be selected. If the selection choice is changed, saving the Student
should update what Campus object is contained by the Student.

 

I have a custom TypeConverter  to convert between the Campus id string and
Campus objects and I can see the conversion code executes fine.
Unfortunately, saving a selection results in an "invalid field value for
field 'campus'" error and when I first call up the page, the selected Campus
is not the correct one.

 

 

public class Student {

 

  private Campus campus;

  

  public Campus getCampus() {return campus; }

  public void setCampus(Campus campus) {this.campus = campus; }

}

 

public class Campus {

 

  private Long id;

private String name;

  

  public Long getId() {return name; }

  public void setId(Long id) {this.id = id; )

  public String getName() {return name; }

  public void setName(String name) {this.name = name; }

}

 

public class StudentAction extends ActionSupport implements ModelDriven,
Preparable {

 

protected Object model;

private Student student;

  private Campus campus;

private List campusList; 

  private DB db;

  private long id;

 

  public void prepare() throws Exception {   

campusList = db.findAllCampuses();

if (getId() == 0) {

student = db.createNewStudent(); 

} else { 

student = db.findByStudentId(getId()); 

} 

  }

 

  public String save() {

  try {

  db.save(getModel());

} catch (Exception e) {

  return ERROR;

}

  return SUCCESS;

}

  public Student getModel() {return student; }

public long getId() {return id; }

public void getId() {return id; }

 

}

 

public class CampusConverter extends StrutsTypeConverter {

  

private DB db;

  

  public Object convertFromString(Map context, String[] values, Class
toClass) {

  Campus campus = null;

if (values != null && values.length > 0 && values[0] != null &&
values[0].length() > 0) {

campus = db.findCampusById(new Long(values[0]));

}

return campus;

  }

  public String convertToString(Map context, Object o) {

if (o instanceof Campus) {

return ((Campus)o).getId().toString();

}

return "";

  }

}

 



  







  



 

Suggestions, corrections, pointers, or links to examples/tutorials of how to
do this properly would be greatly appreciated.

 

 

Regards,

Lance Hill



RE: Struts2 on Websphere portal 6.1.0.0

2010-04-19 Thread Griffith, Michael *
The problem is the URI parameter in your display tag table. This is how
DT invokes the action/HTTP request that originally got the request for
the table in the table. It should be something like:
requestURI="search.action" where the value is the action of the page.

MG

-Original Message-
From: Prabahar [mailto:prabahar.durais...@lntinfotech.com] 
Sent: Monday, April 19, 2010 3:17 AM
To: user@struts.apache.org
Subject: Re: Struts2 on Websphere portal 6.1.0.0


I am facing an issue with Struts 2 portlet which uses Display Tag. I
have implemented a code to display a list using Display Table and also
implemented Sorting option. It is working fine with IBM WAS 7.0 and the
same code is not working with IBM Portal Server 6.1

It is displaying the data, but when i click on the pagination link
(First, Last, Next..) and the column header (to sort) then i am getting
page can not be found.

I have even mentioned page cotext, but still i am facing this issue. I
have also added the display tag portlet support jar
(displaytag-portlet-1.2.jar) along with displaytag-1.2.jar and its
supporting jars.






I have a doubt in the requestURI parameter... what exactly i should give
to that parameter. I have also used requestURIContext as well, but no
improvement.



Nils-Helge Garli wrote:
> 
> Thanks for the summary, although I disagree with your conclusion ;)
> 
> Nils-H
> 
> On Fri, Aug 1, 2008 at 2:21 AM, Struts Two  wrote:
>> I am running Struts2.0.11.1 on Websphere 6.1.0.17 NOT THE WEBSPHERE 
>> PORTAL. You need to keep the followings in mind:
>> 1- You need to have at least fixpack 13 or 15 ( I am not sure which 
>> one, otherwise you CAN NOT RUN STRUTS 2 ON WAS)
>> 2- Struts 2.0.11.2 has problems running on Websphere 6.1 (it is 
>> missing a patch), so you need to downgrade to 2.0.11.1 till next 
>> release (2.0.11.3 or 2.0.12)
>> 3- Once the above you are done with above steps, you need to set the 
>> following custom property for WAS server:
>> com.ibm.ws.webcontainer.invokefilterscompatibility   =  true
>> If you do not set the above property, you can not run struts 2 on WAS

>> as well.
>> However; I did a project using struts on Websphere portal 6.0. IBM 
>> provides its own customized struts that works with portal (which is 
>> based on struts1), and it is pretty good. I recommend use the IBM's 
>> struts that comes with Portal server as you would have a hard time 
>> using struts 2 with websphere portal.
>> Hope this helps,
>>
>>
>>
>> - Original Message 
>> From: Dinesh Narayanan 
>> To: user@struts.apache.org
>> Sent: Thursday, July 31, 2008 3:26:20 PM
>> Subject: Struts2 on Websphere portal 6.1.0.0
>>
>> Has Anybody tried Struts2 (Struts-2.0.11.2) on Websphere portal
6.1.0..0? 
>> I
>> am running into issues when I tried  a very simple JSR168 example.  
>> Any help would be appreciated. Is there some example of struts2 
>> sample in websphere portal 6.1?
>>
>> A) My portlet.xml contains the following entries 
>> viewNamespace
>> /view
>> 
>>
>>   
>>   
>> defaultViewAction
>> index
>>   
>>
>>
>> B) My struts.xml is
>> 
>> 
>> 
>> /WEB-INF/view/index.jsp
>> 
>> 
>> 
>>
>>
>> Thanks
>> Dinesh
>>
>>
>>
>>  
>> __
>> Be smarter than spam. See how smart SpamGuard is at giving junk email

>> the boot with the All-new Yahoo! Mail.  Click on Options in Mail and 
>> switch to New Mail today or register for free at http://mail.yahoo.ca
>>
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 

--
View this message in context:
http://old.nabble.com/Struts2-on-Websphere-portal-6.1.0.0-tp18761735p282
87622.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



OGNL to define readonly of form fields

2010-04-19 Thread Oscar
Hi to all, i have a doubt. I want to define via ognl if fields are normal or
read only. To do that i do this:

1. In my action i set a request parameter named readonlyFields in this way:

requestMap.put("readonlyFields", "true");

And in my jsp i have this (inside form):




But none of the 2 ways work, only prints the select like this:


SOMETHING
...



SOMETHING
...


Is not possible to define that via OGNL?

Regards.

-- Forwarded message --
From: Griffith, Michael * 
Date: 2010/4/19
Subject: RE: Struts2 on Websphere portal 6.1.0.0
To: Struts Users Mailing List 


The problem is the URI parameter in your display tag table. This is how
DT invokes the action/HTTP request that originally got the request for
the table in the table. It should be something like:
requestURI="search.action" where the value is the action of the page.

MG

-Original Message-
From: Prabahar [mailto:prabahar.durais...@lntinfotech.com]
Sent: Monday, April 19, 2010 3:17 AM
To: user@struts.apache.org
Subject: Re: Struts2 on Websphere portal 6.1.0.0


I am facing an issue with Struts 2 portlet which uses Display Tag. I
have implemented a code to display a list using Display Table and also
implemented Sorting option. It is working fine with IBM WAS 7.0 and the
same code is not working with IBM Portal Server 6.1

It is displaying the data, but when i click on the pagination link
(First, Last, Next..) and the column header (to sort) then i am getting
page can not be found.

I have even mentioned page cotext, but still i am facing this issue. I
have also added the display tag portlet support jar
(displaytag-portlet-1.2.jar) along with displaytag-1.2.jar and its
supporting jars.


   
   
   

I have a doubt in the requestURI parameter... what exactly i should give
to that parameter. I have also used requestURIContext as well, but no
improvement.



Nils-Helge Garli wrote:
>
> Thanks for the summary, although I disagree with your conclusion ;)
>
> Nils-H
>
> On Fri, Aug 1, 2008 at 2:21 AM, Struts Two  wrote:
>> I am running Struts2.0.11.1 on Websphere 6.1.0.17 NOT THE WEBSPHERE
>> PORTAL. You need to keep the followings in mind:
>> 1- You need to have at least fixpack 13 or 15 ( I am not sure which
>> one, otherwise you CAN NOT RUN STRUTS 2 ON WAS)
>> 2- Struts 2.0.11.2 has problems running on Websphere 6.1 (it is
>> missing a patch), so you need to downgrade to 2.0.11.1 till next
>> release (2.0.11.3 or 2.0.12)
>> 3- Once the above you are done with above steps, you need to set the
>> following custom property for WAS server:
>> com.ibm.ws.webcontainer.invokefilterscompatibility   =  true
>> If you do not set the above property, you can not run struts 2 on WAS

>> as well.
>> However; I did a project using struts on Websphere portal 6.0. IBM
>> provides its own customized struts that works with portal (which is
>> based on struts1), and it is pretty good. I recommend use the IBM's
>> struts that comes with Portal server as you would have a hard time
>> using struts 2 with websphere portal.
>> Hope this helps,
>>
>>
>>
>> - Original Message 
>> From: Dinesh Narayanan 
>> To: user@struts.apache.org
>> Sent: Thursday, July 31, 2008 3:26:20 PM
>> Subject: Struts2 on Websphere portal 6.1.0.0
>>
>> Has Anybody tried Struts2 (Struts-2.0.11.2) on Websphere portal
6.1.0..0?
>> I
>> am running into issues when I tried  a very simple JSR168 example.
>> Any help would be appreciated. Is there some example of struts2
>> sample in websphere portal 6.1?
>>
>> A) My portlet.xml contains the following entries 
>> viewNamespace
>> /view
>> 
>>
>>   
>>   
>> defaultViewAction
>> index
>>   
>>
>>
>> B) My struts.xml is
>> 
>> 
>> 
>> /WEB-INF/view/index.jsp
>> 
>> 
>> 
>>
>>
>> Thanks
>> Dinesh
>>
>>
>>
>>
>> __
>> Be smarter than spam. See how smart SpamGuard is at giving junk email

>> the boot with the All-new Yahoo! Mail.  Click on Options in Mail and
>> switch to New Mail today or register for free at http://mail.yahoo.ca
>>
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
>

--
View this message in context:
http://old.nabble.com/Struts2-on-Websphere-portal-6.1.0.0-tp18761735p282
87622.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional command

Re: Using json in Struts 2.1.8.1

2010-04-19 Thread sharath karnati
Hi Dale,
 
  Can you please send me sample example using AJAX in struts 2.1.8, where 
action method returns json list to a page.
 
  Thanks in advance.
 
Regards,
Sharath.

--- On Fri, 4/16/10, Dale Newfield  wrote:


From: Dale Newfield 
Subject: Re: Using json in Struts 2.1.8.1
To: "Struts Users Mailing List" 
Date: Friday, April 16, 2010, 10:39 AM


>  namespace="/namespace_name">
>         
>             class="com.googlecode.jsonplugin.JSONResult" />
>         

Or just



-Dale

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org




  

RE: Struts2 on Websphere portal 6.1.0.0

2010-04-19 Thread Struts Two
When you run struts 2 on Websphere 6.1, there are a few properties you need to 
add to your Server custom properties. Without these properties set, you will 
not be able to run struts2. IBM portal server is bacisally and enterprise file 
that runs on Websphere application server, and I think you need to set those 
properties.

--- On Mon, 4/19/10, Griffith, Michael *  wrote:

> From: Griffith, Michael * 
> Subject: RE: Struts2 on Websphere portal 6.1.0.0
> To: "Struts Users Mailing List" 
> Received: Monday, April 19, 2010, 2:59 PM
> The problem is the URI parameter in
> your display tag table. This is how
> DT invokes the action/HTTP request that originally got the
> request for
> the table in the table. It should be something like:
> requestURI="search.action" where the value is the action of
> the page.
> 
> MG
> 
> -Original Message-
> From: Prabahar [mailto:prabahar.durais...@lntinfotech.com]
> 
> Sent: Monday, April 19, 2010 3:17 AM
> To: user@struts.apache.org
> Subject: Re: Struts2 on Websphere portal 6.1.0.0
> 
> 
> I am facing an issue with Struts 2 portlet which uses
> Display Tag. I
> have implemented a code to display a list using Display
> Table and also
> implemented Sorting option. It is working fine with IBM WAS
> 7.0 and the
> same code is not working with IBM Portal Server 6.1
> 
> It is displaying the data, but when i click on the
> pagination link
> (First, Last, Next..) and the column header (to sort) then
> i am getting
> page can not be found.
> 
> I have even mentioned page cotext, but still i am facing
> this issue. I
> have also added the display tag portlet support jar
> (displaytag-portlet-1.2.jar) along with displaytag-1.2.jar
> and its
> supporting jars.
> 
>  sort="list"
> defaultsort="2"
> pagesize="2" requestURI="">
>          sortable="true"
> property="name">
>          property="address">
>     
> 
> I have a doubt in the requestURI parameter... what exactly
> i should give
> to that parameter. I have also used requestURIContext as
> well, but no
> improvement.
> 
> 
> 
> Nils-Helge Garli wrote:
> > 
> > Thanks for the summary, although I disagree with your
> conclusion ;)
> > 
> > Nils-H
> > 
> > On Fri, Aug 1, 2008 at 2:21 AM, Struts Two 
> wrote:
> >> I am running Struts2.0.11.1 on Websphere 6.1.0.17
> NOT THE WEBSPHERE 
> >> PORTAL. You need to keep the followings in mind:
> >> 1- You need to have at least fixpack 13 or 15 ( I
> am not sure which 
> >> one, otherwise you CAN NOT RUN STRUTS 2 ON WAS)
> >> 2- Struts 2.0.11.2 has problems running on
> Websphere 6.1 (it is 
> >> missing a patch), so you need to downgrade to
> 2.0.11.1 till next 
> >> release (2.0.11.3 or 2.0.12)
> >> 3- Once the above you are done with above steps,
> you need to set the 
> >> following custom property for WAS server:
> >>
> com.ibm.ws.webcontainer.invokefilterscompatibility   = 
> true
> >> If you do not set the above property, you can not
> run struts 2 on WAS
> 
> >> as well.
> >> However; I did a project using struts on Websphere
> portal 6.0. IBM 
> >> provides its own customized struts that works with
> portal (which is 
> >> based on struts1), and it is pretty good. I
> recommend use the IBM's 
> >> struts that comes with Portal server as you would
> have a hard time 
> >> using struts 2 with websphere portal.
> >> Hope this helps,
> >>
> >>
> >>
> >> - Original Message 
> >> From: Dinesh Narayanan 
> >> To: user@struts.apache.org
> >> Sent: Thursday, July 31, 2008 3:26:20 PM
> >> Subject: Struts2 on Websphere portal 6.1.0.0
> >>
> >> Has Anybody tried Struts2 (Struts-2.0.11.2) on
> Websphere portal
> 6.1.0..0? 
> >> I
> >> am running into issues when I tried  a very
> simple JSR168 example.  
> >> Any help would be appreciated. Is there some
> example of struts2 
> >> sample in websphere portal 6.1?
> >>
> >> A) My portlet.xml contains the following entries
> 
> >>         
>    viewNamespace
> >>         
>    /view
> >>     
>    
> >>
> >>   
> >>   
> >>         
>    defaultViewAction
> >>         
>    index
> >>   
> >>
> >>
> >> B) My struts.xml is
> >> 
> >>  extends="struts-portlet-default"
> namespace="/view">
> >>      class="com.myCompany.proj1.ExampleAction">
> >>          name="success">/WEB-INF/view/index.jsp
> >>     
> >> 
> >> 
> >>
> >>
> >> Thanks
> >> Dinesh
> >>
> >>
> >>
> >>      
> >>
> __
> >> Be smarter than spam. See how smart SpamGuard is
> at giving junk email
> 
> >> the boot with the All-new Yahoo! Mail.  Click
> on Options in Mail and 
> >> switch to New Mail today or register for free at
> http://mail.yahoo.ca
> >>
> >>
> >>
> -
> >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> >> For additional commands, e-mail: user-h...@struts.apache.org
> >>
> >>
> > 
> >
> -
> > To unsubscribe, e-mail: user-unsubscr...@struts.apa

programatically add configuration

2010-04-19 Thread Bhaarat Sharma
ConfigurationManager (
http://struts.apache.org/2.0.11.1/struts2-core/apidocs/com/opensymphony/xwork2/config/ConfigurationManager.html)
API provides a reload method that will reload the configuration settings.

There is also a setConfiguration(Configuration configuration) method in
there.  Can this method be used to explicitly load the struts.xml file??

The implementing class for Configuration is DefaultConfiguration (
http://struts.apache.org/2.0.11.1/struts2-core/apidocs/com/opensymphony/xwork2/config/impl/DefaultConfiguration.html
)

I can't figure out how to explicitly load all the configurations that are in
struts.xml.

I want to do this because sometimes intermittently we notice that we get
action name not found errors.  At that point we'd like to explicitly load
the struts.xml file.

Can someone assist in this?


Re: Using json in Struts 2.1.8.1

2010-04-19 Thread Frans Thamura
what do u think if we using enunciate

enunciate.codehaus.org/

F

On Tue, Apr 20, 2010 at 1:14 AM, sharath karnati  wrote:

> Hi Dale,
>
>   Can you please send me sample example using AJAX in struts 2.1.8, where
> action method returns json list to a page.
>
>   Thanks in advance.
>
> Regards,
> Sharath.
>
> --- On Fri, 4/16/10, Dale Newfield  wrote:
>
>
> From: Dale Newfield 
> Subject: Re: Using json in Struts 2.1.8.1
> To: "Struts Users Mailing List" 
> Date: Friday, April 16, 2010, 10:39 AM
>
>
> >  > namespace="/namespace_name">
> > 
> >  class="com.googlecode.jsonplugin.JSONResult" />
> > 
>
> Or just
>
> 
>
> -Dale
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
>
>
>
>


Re: Xml based form validation not working

2010-04-19 Thread Lukasz Lenart
2010/4/19 Kartik Kumar :
>     class="gov.nasa.spacebook.ActionItemTrackingAction"
> method="fetchByCriteria">

XML file must have exactly the same name as action Class and method name, so

ActionItemTrackingAction-fetchByCriteria-validation.xml and must be in
the same package as action class.


Regards
-- 
Łukasz
http://www.lenart.org.pl/
Kapituła Javarsovia 2010
http://javarsovia.pl

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org