Re: Can struts2 tag embeded inside javascript

2007-11-29 Thread panpan
orTag has a cdata attribute > available for JS methods when XHTML="true" > http://struts.apache.org/1.x/struts-taglib/apidocs/org/apache/struts/taglib/ > html/JavascriptValidatorTag.html > > HTH > M-- > - Original Message - > From: "panpan" &

Re: S2: concat doesn't work.

2007-11-27 Thread panpan
Thanks, Dave. That explains the problem I had for this example. newton.dave wrote: > > --- panpan <[EMAIL PROTECTED]> wrote: >> But the below is not working if replace 1 with a >> variable >> >> >> var number = 1; >> var nam

RE: S2: concat doesn't work.

2007-11-27 Thread panpan
t the second example replace 1 with a variable. But the variable belongs to javascript. I guess i'm really confused. appreciate your time, panpan Hernandez, David wrote: > > > You're getting confused about the role of Javascript in your > application, panpan. Javascript does not

S2: concat doesn't work.

2007-11-27 Thread panpan
In one of my JSP page, I have javascript section var name = ''; alert("Name: " + name); It's working. I can see the valud of the Name. But the below is not working if replace 1 with a variable var number = 1; var nam

RE: Can struts2 tag embeded inside javascript

2007-11-27 Thread panpan
David, that is a good idea. I'll try it. Hernandez, David wrote: > > > Sorry panpan, I didn't see the original msg. > Most easily, you can change your .js file to .jsp > And > I don't see any reason that wouldn't work. Kind of cheesy though. >

Re: Can struts2 tag embeded inside javascript

2007-11-27 Thread panpan
Hi Richard, thank you! I have a seperate main.js for those functions. I've posted my code in my other post. I'll try to use single quotes. Thanks again. Richard Sayre wrote: > > I don't see any javascript in your post but if you are creating an > imput element this should work as long as the j

RE: Can struts2 tag embeded inside javascript

2007-11-27 Thread panpan
on you can't write: > > var x = <s:property value="x" />; > > inside a JSP file. > You're going to have to be more specific, panpan . . . > > -Original Message- > From: Dave Newton [mailto:[EMAIL PROTECTED] > Sent: Tuesday, Novemb

Re: Can struts2 tag embeded inside javascript

2007-11-27 Thread panpan
Thank you Dave. Ok, I see. Do you anyway I can do to solve my problem? thanks! newton.dave wrote: > > --- panpan <[EMAIL PROTECTED]> wrote: >> I've been struggling for this problem for several >> days. Please help me out. > > Okay. > > Non-JSP pa

Can struts2 tag embeded inside javascript

2007-11-27 Thread panpan
I've been struggling for this problem for several days. Please help me out. I'm using Javascript to dynamically generate something like below: It works if it's directly in the JSP page. But seems like Javascript doesn't recognice the Struts2 tag So in the page, the input field got "" instead

S2: how to go back and populate values the user input

2007-11-20 Thread panpan
Hi all, thank you for any helps. I'm new to struts2. I just got the below problem. In the first page, the user inputs the values in the fields which is a List variable additionalInterests from the Action. In the second page, I have a link "go back" which goes back to the first page to repopulat

S2: how to go back and populate values the user input

2007-11-20 Thread panpan
Hi all, thank you for any helps. I'm new to struts2. I just got the below problem. In the first page, the user inputs the values in the fields which is a List variable additionalInterests from the Action. In the second page, I have a link "go back" which goes back to the first page to repopulat

Re: [S2] how to configure Spring's OpenViewInSessionInterceptor for struts2

2007-07-09 Thread panpan
That's great! I got pretty clear pictures now. Thanks again cilquirm. cilquirm wrote: > > > > panpan wrote: >> >> The session is open, why do I need to reattach them? >> > > You wouldn't need to if you loaded and discarded your objects in a si

Re: [S2] how to configure Spring's OpenViewInSessionInterceptor for struts2

2007-07-09 Thread panpan
rly on, > and watch your transaction boundaries. > > Ask away if you have particular questions :-) > > hth, > -a > > panpan wrote: >> >> Thank you cilquirm. I think i'm a little bit confused and the filter is >> the one I needed. >> There is o

Re: [S2] how to configure Spring's OpenViewInSessionInterceptor for struts2

2007-07-09 Thread panpan
OSVI ) is an analog to the > OpenSessionInViewFilter (OSVF), but I belive it's primarily used for > SpringMVC ( and possibly related, like Grails ). > > OSVF is more generic and designed to be used in a larger number of > frameworks. > I believe, in this case, what you

Re: [S2] how to configure Spring's OpenViewInSessionInterceptor for struts2

2007-07-09 Thread panpan
what that page is doing in Struts documentation, > since it won't even compile with vanilla Struts 2. > > On 7/9/07, panpan <[EMAIL PROTECTED]> wrote: >> >> >> Thank you a lot! Toni. That answer cleared my question. >> >> Have you noticed there is

Re: [S2] how to configure Spring's OpenViewInSessionInterceptor for struts2

2007-07-09 Thread panpan
to > write one yourself for Struts 2. I don't think the one in Spring can be > configured to work with the interceptor stack in Struts 2 because it's so > heavily tied to Spring interfaces and concepts. > > On 7/9/07, panpan <[EMAIL PROTECTED]> wrote: >> >&g

Re: [S2] how to configure Spring's OpenViewInSessionInterceptor for struts2

2007-07-09 Thread panpan
ext.ContextLoaderListener > > > > contextConfigLocation > /WEB-INF/applicationContext*.xml > > .. > > > Of course you also need to have your (Hibernate) SessionFactory set in > Spring's applicationContext-file. > > > On 7/9/07, panpan <[EMAIL P

[S2] how to configure Spring's OpenViewInSessionInterceptor for struts2

2007-07-09 Thread panpan
I'm new to Spring and Struts2 and currently working on an existing project(Spring 1.2.8+ struts+hibernate 3) which is upgrading to struts2. Need to add OpenViewInSessionInterceptor to the project to enalbe the lazy loaing in the presentation layor. I've searched the forum and didn't get the answer

S2: Localization doesn't work

2007-06-07 Thread panpan
I add ActionSupport.properties in the classpath. Inside the ActionSuppport.properties I have one entry: no_email="blah blah blah" I have a NewAction class which extends from ActionSupport. public class NewActoin extends Action

Re: Can I Redirect Action Result to Strut1 action in struts.xml

2007-06-06 Thread panpan
quot;, so you can't forward to a Struts-1 > action using the action attribute. Instead use the 'value' attribute, and > you can then forward to 'myaction.do', and it works. > > > > panpan wrote: >> >> It was very sad to find out that

Re: Can I Redirect Action Result to Strut1 action in struts.xml

2007-06-05 Thread panpan
panpan wrote: > > Thanks, Dave. I just tried it. It worked. > > ⩽param name="actionName">Menu.do⩽/param> > ⩽param name="namespace">/restricted/main⩽/param> > > S2 knows to how to redirect to S1 action. That's great. > > >

Re: Can I Redirect Action Result to Strut1 action in struts.xml

2007-06-05 Thread panpan
Thanks, Dave. I just tried it. It worked. ⩽param name="actionName">Menu.do ⩽param name="namespace">/restricted/main S2 knows to how to redirect to S1 action. That's great. Dave Newton-4 wrote: > > --- panpan <[EMAIL PROTECTED]> wrote: >&

Can I Redirect Action Result to Strut1 action in struts.xml

2007-06-05 Thread panpan
In the struts 2 configuration file struts.xml /restricted/main/Mene.do I know I cann't do that but anyone knows the way to fulfill the same functionality. Any suggestion would be appreciated!

Re: NullPointerException with Struts and Struts2 plus Sitemesh

2007-06-04 Thread panpan
Hi Dave. I found the problem is because this logon page has been configured externally for jboss server. The jboss server dosn't know the S2. Thanks, Yan panpan wrote: > > Hi Dave, > > Thanks for your reply and time. > In the web.xml, I have both S1 and S2 configurati

Re: NullPointerException with Struts and Struts2 plus Sitemesh

2007-06-04 Thread panpan
Any user User Dave Newton-4 wrote: > > --- panpan <[EMAIL PROTECTED]> wrote: >> They're served throught S1 and S2 since I'm in the >> middle for migration from S1 to S2. > > It is not clear

Re: NullPointerException with Struts and Struts2 plus Sitemesh

2007-06-04 Thread panpan
are probably understand more of the situation i guess as it involves both sturts1 and struts2. It doesn't look like its a problem with sitemesh. Issue WW-1388 looks like a different issue althogether. Cheers. Thanks, Yan Dave Newton-4 wrote: > > --- panpan <[EMAIL PROTE

Re: NullPointerException with Struts and Struts2 plus Sitemesh

2007-06-01 Thread panpan
with mine. Both the FIlterDispatcher.doFilter() didn't been called. Thanks a lot, Yan Dave Newton-4 wrote: > > --- panpan <[EMAIL PROTECTED]> wrote: >> This page is originally served through struts1. >> During the migration to struts 2, I need to add a > new >>

Re: NullPointerException with Struts and Struts2 plus Sitemesh

2007-06-01 Thread panpan
;m confused. > > --- panpan <[EMAIL PROTECTED]> wrote: >> This logon.jsp page doesn't use sitemesh and I only >> add one struts2 tag line . I don't >> know what happen

NullPointerException with Struts and Struts2 plus Sitemesh

2007-06-01 Thread panpan
I have this logon.jsp page which was developed from struts. I got this new assigment to add struts2 tag to it. I've migrated other mixed pages with sitemesh successfully. This logon.jsp page doesn't use sitemesh and I only add one struts2 tag line . I don't know what happend. The below is the exec