RE: S2 - email client as action result

2008-05-05 Thread Jiang, Jane (NIH/NCI) [C]
ent as action result Jiang, Jane (NIH/NCI) [C] wrote: > I have a S2 action that looks up email address in the database. It > needs to open up an email client as the result with the address > populated (as if clicked on > mailto:[EMAIL PROTECTED]). > > What is the best way to set up t

S2 - email client as action result

2008-05-02 Thread Jiang, Jane (NIH/NCI) [C]
I have a S2 action that looks up email address in the database. It needs to open up an email client as the result with the address populated (as if clicked on mailto:[EMAIL PROTECTED]). What is the best way to set up the s2 result? Many thanks for your help, Jane ---

RE: Need help getting started with remote tabs

2008-04-10 Thread Jiang, Jane (NIH/NCI) [C]
://struts.apache.org/download.cgi musachy On Thu, Apr 10, 2008 at 1:38 PM, Jiang, Jane (NIH/NCI) [C] <[EMAIL PROTECTED]> wrote: > Musachy, > > Thanks for your suggestion. Do you mean this showcase? > > http://www.planetstruts.org/struts2-showcase/ajax/tabbedpanel/example3.j &

RE: Need help getting started with remote tabs

2008-04-10 Thread Jiang, Jane (NIH/NCI) [C]
, Jane (NIH/NCI) [C] <[EMAIL PROTECTED]> wrote: > Is there a complete working example for the tabbedPanel tag? I found > this example in the tag reference document. How do I set up the result > for AjaxTest.action? I loaded the dynamic contents in that action and > directed

Need help getting started with remote tabs

2008-04-09 Thread Jiang, Jane (NIH/NCI) [C]
Is there a complete working example for the tabbedPanel tag? I found this example in the tag reference document. How do I set up the result for AjaxTest.action? I loaded the dynamic contents in that action and directed it to the jsp that displays that content. The action was invoked, but the ta

RE: Message surviving redirect

2008-03-27 Thread Jiang, Jane (NIH/NCI) [C]
Instead of type="redirect-action", did you try "chain"? -Original Message- From: chubi [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2008 4:05 PM To: user@struts.apache.org Subject: Message surviving redirect Hello, I have posted the same problem in a previous thread, yet g

RE: Calling Action on form load

2008-03-27 Thread Jiang, Jane (NIH/NCI) [C]
Aum, After you retrieve the list in your action, save it in session using session.put("mySelectionList", list); Then in your jsp, use the list in session for s:selection. Hope this helps, Jane -Original Message- From: aum strut [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27

RE: Calling Action on form load

2008-03-27 Thread Jiang, Jane (NIH/NCI) [C]
Aum, I know what you are talking about. I end up putting all lists for select tag in the session. Otherwise, you will have to reload the list every time the form submits and when validation error happens. I'd like to find out if there are other ways to get around too. Jane -Original Mes

Tabbed panel question

2008-03-27 Thread Jiang, Jane (NIH/NCI) [C]
I just started using tabbed panel. I started with these simple 3 tabs. I now want to add a link to tab one that when clicked opens up tab 2. I know I can use the selectedTab attribute to dynamically select a tab. Is there a better/simpler way to do that? Thanks a lot for your help, Jane

RE: Required validator dosen't work

2007-12-10 Thread Jiang, Jane (NIH/NCI) [C]
Checked my validation files, I've only used "required" validator for selection and checkboxes that contains number value. How about set required="true" for your textfield? -Original Message- From: Arpan Debroy [mailto:[EMAIL PROTECTED] Sent: Monday, December 10, 2007 2:33 PM To: Struts

RE: Struts Validation issue

2007-12-10 Thread Jiang, Jane (NIH/NCI) [C]
We had the same problem. When you submit a form, only the information in form gets submitted and repopulated when there is a validation error. Since the list is not part of form submission, it is not saved any where. The same applies to disabled fields and dynamically generated labels. I asked t

RE: Required validator dosen't work

2007-12-10 Thread Jiang, Jane (NIH/NCI) [C]
Use "required" validator only when a field contains a number. Use requiredstring for String based field. -Original Message- From: Arpan Debroy [mailto:[EMAIL PROTECTED] Sent: Monday, December 10, 2007 11:00 AM To: Struts Users Mailing List Subject: Re: Required validator dosen't work

RE: [S2] Display Tag? (2.0.11)

2007-11-21 Thread Jiang, Jane (NIH/NCI) [C]
Hi Musachy, Thank you so much for your post. I had the same issue and came across your email. It worked great for me. How did you find out about #attr? Is that something specific to displaytag? Thank you, Jane -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent:

RE: [S2] s:if in 2.0.11

2007-11-21 Thread Jiang, Jane (NIH/NCI) [C]
I changed to I assume acr should be in pageContext. Now I am having no error but the value is not populated. What did I do wrong? Thanks, Jane -Original Message- From: Jiang, Jane (NIH/NCI) [C] Sent: Wednesday, November 21, 2007 12:23 PM To: Struts Users Mailing List

RE: [S2] s:if in 2.0.11

2007-11-21 Thread Jiang, Jane (NIH/NCI) [C]
tion. This is arguably a better practice anyway. If the list itself is available on the stack then you can call the size() method on the list in your OGNL expression and do away with the request attribute altogether, which is arguably cleaner anyway. d. --- "Jiang, Jane (NIH/NCI) [C]&

[S2] s:if in 2.0.11

2007-11-21 Thread Jiang, Jane (NIH/NCI) [C]
I am upgrading to 2.0.11 from 2.0.9 and got this error SEVERE: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: /jsp/content/findAcrResults.jsp(6,0) According to TLD or attribute directive in tag file, attribute test does not accept any expressions for this lin

RE: [S2] Tooltip and simple theme

2007-11-21 Thread Jiang, Jane (NIH/NCI) [C]
the HTML. Most browsers will render this like a tool tip when the user hovers over the element. On Nov 20, 2007, at 4:21 PM, Jiang, Jane (NIH/NCI) [C] wrote: > Hi, > > I have an application developed ready for test. Now I have added > requirement for tooltips for a few components

[S2] Tooltip and simple theme

2007-11-20 Thread Jiang, Jane (NIH/NCI) [C]
Hi, I have an application developed ready for test. Now I have added requirement for tooltips for a few components. I just noticed that tooltip is only available in xhmtl theme. How should I implement tooltips in simple theme? Thanks a lot for your help, Jane -Original Message- Fro

S2: dynamic forwarding from Action class to external url

2007-11-09 Thread Jiang, Jane (NIH/NCI) [C]
I am also trying to forward my Action to an external report URL after process the form. I tried to use redirect and it always prefix my URL with my application context. I also tried to implement ServletResponseAware and use response.sendRedirect(). It does not seem to do anything. The default

RE: actionPackages parameter provokes PermGen memory error

2007-10-17 Thread Jiang, Jane (NIH/NCI) [C]
I am having the same problem with Tomcat. I tried the IntrospectorCleanupListener and still got the PermGen memory error after 5 to 6 deployments. -Original Message- From: wild_oscar [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 09, 2007 9:56 AM To: user@struts.apache.org Subject: Re:

RE: Disable validation when "delete" button is pressed

2007-10-17 Thread Jiang, Jane (NIH/NCI) [C]
You can use the @SkipValidation annotation in front of your delete method. -Original Message- From: Igor Vlasov [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 9:59 AM To: user@struts.apache.org Subject: Disable validation when "delete" button is pressed Hello. I have

RE: Struts 2 Themes

2007-10-09 Thread Jiang, Jane (NIH/NCI) [C]
e template name is "text" ;) Regards, Sami Dalouche Le mardi 09 octobre 2007 à 13:07 -0400, Jiang, Jane (NIH/NCI) [C] a écrit : > Sorry, my fault. I did not notice the code I used to test checkbox > defined the theme inside the tag. So checkbox.ftl is the template for > s:check

RE: Struts 2 Themes

2007-10-09 Thread Jiang, Jane (NIH/NCI) [C]
Message- From: Jiang, Jane (NIH/NCI) [C] Sent: Tuesday, October 09, 2007 12:57 PM To: Struts Users Mailing List Subject: Struts 2 Themes I am trying to get a better understanding of S2 themes. I read the document and the create themes page in the cookbook. My question is how I can find the

Struts 2 Themes

2007-10-09 Thread Jiang, Jane (NIH/NCI) [C]
I am trying to get a better understanding of S2 themes. I read the document and the create themes page in the cookbook. My question is how I can find the right template file for a tag. I tried to change text.ftl and found that ties to s:textfield. I am now trying to figure out what is the one

RE: Disabling struts UI objects

2007-10-04 Thread Jiang, Jane (NIH/NCI) [C]
I found that same problem trying to use the disabled parameter of the form tag. I did a search on the generated html and found not one element with the disabled attribute. Any one else? -Original Message- From: Session A Mwamufiya [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 08, 20

RE: how to keep object from action to action

2007-10-04 Thread Jiang, Jane (NIH/NCI) [C]
: RE: how to keep object from action to action Yes, this is it. How to setup StrutsSpringObjectFactory as current? web.xml? struts.xml? Thanks. Jiang, Jane (NIH/NCI) [C] wrote: > > If you use org.apache.struts2.spring.StrutsSpringObjectFactory as your > object factory, and you define

RE: how to keep object from action to action

2007-10-04 Thread Jiang, Jane (NIH/NCI) [C]
pojo loaded by action1.save? Will struts2 call action2.setMypojo and pass pojo from action1 to action2? Can my2.jsp see mypojo loaded by action1.save? Does pojo stays in request scope? Thanks. Jiang, Jane (NIH/NCI) [C] wrote: > > If you use the Spring framework, you can define your objec

RE: ognl problem ?

2007-10-04 Thread Jiang, Jane (NIH/NCI) [C]
So you have no problem if you only nest attribute less than 4 times? I thought you have to use the value parameter to pull the value to the page. Were you able to set the attribute? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 04, 2007 6:4

RE: how to keep object from action to action

2007-10-04 Thread Jiang, Jane (NIH/NCI) [C]
If you use the Spring framework, you can define your object as Spring beans and have them injected to your action. -Original Message- From: ros [mailto:[EMAIL PROTECTED] Sent: Thursday, October 04, 2007 10:21 AM To: user@struts.apache.org Subject: how to keep object from action to actio

[s2] redisplay page after validation failed

2007-10-03 Thread Jiang, Jane (NIH/NCI) [C]
I have a page that has some dynamic contents that is not part of the form that is being submitted. When validation fails after the form is submitted, I lost the dynamic contents. I use tiles and the result "input" is defined as type "tiles" that points back to the same page. Is there a way get ar

RE: select problem

2007-09-25 Thread Jiang, Jane (NIH/NCI) [C]
Is your currentProject in session? If so, try list="${#session.currentProject.projects}" -Original Message- From: Pablo Vázquez Blázquez [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 25, 2007 6:53 AM To: Struts Users Mailing List Subject: s:select problem Hi! How can I retrieve

RE: [s2.0.9] Is there a better way to do this...

2007-09-21 Thread Jiang, Jane (NIH/NCI) [C]
Hi Al, I am having the same problem with s:select and validation. I found your thread when I searched the user group for answers. Have you found a better solution to this problem? Has it be identified as a bug? Unfortunately, I am so far along on my validation code that I really don't want to

RE: [S2] validation issue

2007-09-12 Thread Jiang, Jane (NIH/NCI) [C]
hecks, but i think there's no out-of-the-box solution if we want the expression to act as a guard condition alone and not as a validation. Please check the archives for comments on this. -Joseph On 9/11/07, Jiang, Jane (NIH/NCI) [C] <[EMAIL PROTECTED]> wrote: > > Did you look int

RE: [S2] validation issue

2007-09-11 Thread Jiang, Jane (NIH/NCI) [C]
Did you look into expression validator? -Original Message- From: Pablo Vázquez Blázquez [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 11, 2007 10:28 AM To: Struts Users Mailing List Subject: [S2] validation issue Hi all! I´m trying to validate two fields that depends on another f

RE: How to get exception in action class for error page?

2007-09-10 Thread Jiang, Jane (NIH/NCI) [C]
I am trying to get the exception in action class also. I have previous defined an error page that displays the error and have user type in more information and click a button to email to support. That works fine. But we also need to log exceptions. So I tried to change the handler from a jsp pag

RE: Struts 2 ABC book

2007-09-07 Thread Jiang, Jane (NIH/NCI) [C]
https://www.arctechsoftware.com/tutorial/tutorial.do?subcatId=4 -Original Message- From: Mirbek Nosinov [mailto:[EMAIL PROTECTED] Sent: Friday, September 07, 2007 6:52 AM To: user@struts.apache.org Subject: Struts 2 ABC book Can anybody recommend good Struts 2 ABC book? Thanks in adva

RE: YUI plug in display issue

2007-09-05 Thread Jiang, Jane (NIH/NCI) [C]
Subject: Re: YUI plug in display issue Are you applying any styles to it? musachy On 9/4/07, Jiang, Jane (NIH/NCI) [C] <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to use YUI calendar plug in. It works fine except that the > pop up calendar is as wide as the screen. It o

YUI plug in display issue

2007-09-04 Thread Jiang, Jane (NIH/NCI) [C]
Hi, I am trying to use YUI calendar plug in. It works fine except that the pop up calendar is as wide as the screen. It opened at the right position, but extended past the visible area of the screen. Is there anything I can do to make it look right? Thanks, Jane ---

RE: message resources in struts.xml

2007-08-23 Thread Jiang, Jane (NIH/NCI) [C]
I think it is the value of struts.custom.i18n.resources in struts.properties. You can also put it in struts.xml as -Original Message- From: Pavel Sapozhnikov [mailto:[EMAIL PROTECTED] Sent: Thursday, August 23, 2007 2:14 PM To: Struts Users Mailing List Subject: message resources in stru

RE: struts2.0.6 -> struts2.0.9 : trouble with tiles

2007-08-23 Thread Jiang, Jane (NIH/NCI) [C]
You need to change To -Original Message- From: rom3ro [mailto:[EMAIL PROTECTED] Sent: Thursday, August 23, 2007 6:21 AM To: user@struts.apache.org Subject: struts2.0.6 -> struts2.0.9 : trouble with tiles Hello, I updgrade struts2.0.6 to struts2.0.9. All seem work expcet tiles

RE: Struts2 Tiles question

2007-08-23 Thread Jiang, Jane (NIH/NCI) [C]
I don't think you need tile-config.xml. You can just add your tiles definition to tiles.xml in WEB-INF. -Original Message- From: Pavel Sapozhnikov [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 22, 2007 3:09 PM To: user@struts.apache.org Subject: Struts2 Tiles question Hi everybody.

RE: redirect to jsp when cancel button is pressed(without executing the corresponding action)

2007-08-22 Thread Jiang, Jane (NIH/NCI) [C]
Your form buttons do not have to invoke the same action. Try this -Original Message- From: abhiram [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 22, 2007 11:30 AM To: struts forum Subject: redirect to jsp when cancel button is pressed(without executing the correspo

RE: S2- How to use Constants in s:select tag

2007-08-08 Thread Jiang, Jane (NIH/NCI) [C]
That works. Thanks a lot, Dale! -Original Message- From: Dale Newfield [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 08, 2007 2:25 PM To: Struts Users Mailing List Subject: Re: S2- How to use Constants in s:select tag Jiang, Jane (NIH/NCI) [C] wrote: > But when I tried to cha

S2- How to use Constants in s:select tag

2007-08-08 Thread Jiang, Jane (NIH/NCI) [C]
Hi, I am having trouble using my constants class in my jsp. I defined a service for lookup list of values for my select box. This in my jsp works fine But when I tried to change the list="%{lookupService.getList('type')}" to list="%{lookupService.getList(MyConstants.Type)}" I got this error:

Spring 2.0 Session scope beans

2007-08-01 Thread Jiang, Jane (NIH/NCI) [C]
Hi, I am experimenting with the Session scope beans. I was able to define on and verify that one bean is created and associated with each session. Could I get access to the session from the bean? I plan to use this bean to store user information. I need to get the user id from the request head

S2: How to display exception stack?

2007-07-30 Thread Jiang, Jane (NIH/NCI) [C]
I defined a jsp page in global-exception-mappings to catch all exceptions not handled by the application. The application is still in development. I tried to display the exception stack using It never showed anything. The error page always came up with this section empty. I had to take out th

RE: Struts 2 Spring plug-in

2007-07-26 Thread Jiang, Jane (NIH/NCI) [C]
st Subject: RE: Struts 2 Spring plug-in Hi Try http://www.roseindia.net/struts/hibernate-spring/ Thanks -Original Message----- From: Jiang, Jane (NIH/NCI) [C] [mailto:[EMAIL PROTECTED] Sent: Thursday, July 26, 2007 3:19 AM To: user@struts.apache.org Subject: Struts 2 Spring plug-in Hi,

Struts 2 Spring plug-in

2007-07-25 Thread Jiang, Jane (NIH/NCI) [C]
Hi, Has anyone got Struts Spring plug-in to work? I am getting this error starting the application. I removed all the beans except the dataSource and sessionFactory. Please see attached. I'd really appreciate any help you can offer. Thanks, Jane ERROR http-8080-Processor24 org.apache.ca

RE: Tiles 2.0.3 Plug-in

2007-07-19 Thread Jiang, Jane (NIH/NCI) [C]
ate at least my tiles tags between 2.0.6 > -> 2.0.8. > > d. > > --- "Jiang, Jane (NIH/NCI) [C]" <[EMAIL PROTECTED]> > wrote: > >> Hi all, >> >> Has any one got tiles plug-in to work with tiles >> version 2.0.3 or 2.0.4? >> >>

Tiles 2.0.3 Plug-in

2007-07-18 Thread Jiang, Jane (NIH/NCI) [C]
Hi all, Has any one got tiles plug-in to work with tiles version 2.0.3 or 2.0.4? We have developed a Struts 2 application that uses tiles plug in 2.0.6 with tiles-api-2.0-20070207.130156-4.jar and tiles-core-2.0-20070207.130156-4.jar. When I tried to replace these two jar files with the three 2.

RE: S2 - checkbox list

2007-05-29 Thread Jiang, Jane (NIH/NCI) [C]
Did you try this? Action: private String[] selectedDOW; public String[] getSelectedDOW (); public void set selectedDOW (String[] ids); Jsp: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

[S2] html:multibox in S2

2007-05-29 Thread Jiang, Jane (NIH/NCI) [C]
I am experiencing multi selection boxes in Struts 2. I have a list of checkboxes in a table that spreads to more than one page. I am using the displaytag for the table. Here is my attempt In my action class, I defined selectedGrants as private String[]