Using JFace with Struts 2

2007-09-12 Thread Session A Mwamufiya
Hi, Is it at all possible to integrate the JFace treeviewer with struts 2? Are there examples out there? Thanks, Session - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: SessionAware vs ActionContext access to session - confused..

2007-09-12 Thread Nils-Helge Garli
In the next release, there will be *Aware interfaces for the portlet objects. Nils-H On 9/13/07, tom tom <[EMAIL PROTECTED]> wrote: > Yes in theory you are correct, but in side a S2 > portlet (which implements ServletRequestAware > interface) if you try to get a handler for > HttpServletRequest

Re: file upload exception

2007-09-12 Thread Session A Mwamufiya
Where is the uploaded file supposed to be found on the server once it is uploaded? I'm using Jboss. I only get a temp file that doesn't contain the content of the file I uploaded. Any ideas what could be going on? I have the details of my code in the previous threads. Thanks, Session > Th

Re: SessionAware vs ActionContext access to session - confused..

2007-09-12 Thread tom tom
Yes in theory you are correct, but in side a S2 portlet (which implements ServletRequestAware interface) if you try to get a handler for HttpServletRequest object via the setServletRequest method it basically gives null. How we make a handler for the HttpServletRequest object is as follows, Port

Re: [S2] Interceptor

2007-09-12 Thread Adam Ruggles
No they won't. Only the login interceptor will be called. hezjing wrote: Hi With the following struts.xml, index.jsp Will the interceptors configured in struts-default package be executed, followed by the login interceptor? Can we describe this

where can i download struts-layout.tld's

2007-09-12 Thread msg2ajay
hi, i am trying to use struts-layout for demonstration of Grid model. so Can anybady tell me from where i can download the relevent supported file's needed to me. i am using struts 1.2.9 and jdk1.5.. thanQ for anyKind of help. Ajay -- View this message in context: http://www.nabble.com/

nested:iterate Validator problem

2007-09-12 Thread Matthew Schrader
Users, I have been googling like crazy to find a workaround, or fix, to the problem of Validator not working properly with nested:iterate fields. Below I have included what I am doing for the code incase I have something wrong. Please let me know if anyone knows anything. My field is set u

problem with

2007-09-12 Thread msg2ajay
hi, i am trying to get the collection object (Vector) form Action Class to my Jsp. I already set to my FormBean and i am getting an error as.. javax.servlet.jsp.JspException: Cannot find bean: "X32Form" in any scope my Action class is (X32Action.java): ---

Re: file upload exception

2007-09-12 Thread Session A Mwamufiya
Thanks for the tip, it worked to get me by the errors I was having. I'm now stuck with not getting the actual file uploaded. I put logging in the getters and setters in my java class, though the filename field is fetched correctly, the actually file is not: there's a temp file that gets created

[S2] Interceptor

2007-09-12 Thread hezjing
Hi With the following struts.xml, index.jsp Will the interceptors configured in struts-default package be executed, followed by the login interceptor? Can we describe this behaviour in http://struts.apache.org/2.0.9/docs/interceptors.html as well?

RE: Call Oracle stored function using Hibernate

2007-09-12 Thread Hayrol Reyes Mejía
Well, calling SP's is not a Struts topic (don't care the version), of course it's for Hibernate or even Oracle!! Also, it has a lot to do with your persistence layer and Data Model design. Anyway, you have several ways to call an Oracle SP function, here you have two hints: a) Use Hibernate to

Re: SessionAware vs ActionContext access to session - confused..

2007-09-12 Thread Chris Pratt
On 9/12/07, tom tom <[EMAIL PROTECTED]> wrote: > If you are developing portlets with struts2 > I doubt *Aware interfaces work properly, you have to > do it differently. I don't know of anything that would preclude you (or anyone else) from writing a set of Portlet aware Interceptors. They could e

Re: SessionAware vs ActionContext access to session - confused..

2007-09-12 Thread Chris Pratt
> Hmm.. I've always handled session data by creating an application base action > that implements a "getUserData()" and a "setUserData() method. All my actions > extend this base action. I then use an interceptor to grab the session data > build whatever object I decide to use to hold the data and

Re: SessionAware vs ActionContext access to session - confused..

2007-09-12 Thread tom tom
Hi, If you are developing portlets with struts2 I doubt *Aware interfaces work properly, you have to do it differently. For example How we get a handler for Http request or session is not via *Aware interfaces for portlets. --- j alex <[EMAIL PROTECTED]> wrote: > Hi, > > In the Struts 2 docs,

Re: JAAS struts 2 Tutorial?

2007-09-12 Thread tom tom
what exactly you are trying to do? --- Muhammad Momin Rashid <[EMAIL PROTECTED]> wrote: > Hello Everyone, > > I am looking for a tutorial for integrating JAAS > into my Struts 2 + > Hibernate Application. Can anyone point me to the > right resources? > > Is JAAS the best way to go, or there

Re: file upload exception

2007-09-12 Thread Randall Svancara
Make sure you have commons-io, commons-fileupload, and commons-collections jar files in your WEB-INF/lib directory. At least this worked for me. Thanks, On Wed, 2007-09-12 at 19:07 -0400, Session A Mwamufiya wrote: > Hi, > > I'm using struts 2.0.6, and I keep getting the following exception whe

Re: file upload exception

2007-09-12 Thread Randall Svancara
Make sure you have commons-io, commons-fileupload, and commons-collections jar files in your WEB-INF/lib directory. At least this worked for me. Thanks, On Wed, 2007-09-12 at 19:07 -0400, Session A Mwamufiya wrote: > Hi, > > I'm using struts 2.0.6, and I keep getting the following exception wh

file upload exception

2007-09-12 Thread Session A Mwamufiya
Hi, I'm using struts 2.0.6, and I keep getting the following exception when I try to replicate the fileupload example in the showcase: Unable to load bean org.apache.struts2.dispatcher.multipart.MultiPartRequest (jakarta) - [unknown location] org.apache.struts2.config.BeanSelectionProvider$Obje

Re: How to invalidate a session in struts 2.0

2007-09-12 Thread Alvaro Sanchez-Mariscal
There is one extra reason in favour of doing in the action: it's really simple. Sure. You can implement ServletRequestAware, an call request.getSession().invalidate(); Alvaro. On 9/13/07, Chris Pratt <[EMAIL PROTECTED]> wrote: > On 9/12/07, Gabriel Belingueres <[EMAIL PROTECTED]> wrote: > > I ag

Re: How to invalidate a session in struts 2.0

2007-09-12 Thread Chris Pratt
On 9/12/07, Gabriel Belingueres <[EMAIL PROTECTED]> wrote: > I agree too that (generally speaking) we must introduce the least > possible quantity of scripting into JSP pages as we can, so we honor > the MVC architecture, however, in this particular case (invalidating > the session), I don't unders

Re: Struts2 select taglib

2007-09-12 Thread Randall Svancara
Ummm, i apologize.I made a very simple mistake: I put an extra " in the select tag. On Wed, 2007-09-12 at 14:35 -0700, Randall Svancara wrote: > > > I mostly have experience with original struts. But now I am attempting > to use Struts 2. I am trying to figure out how I can populate t

Re: How to invalidate a session in struts 2.0

2007-09-12 Thread Gabriel Belingueres
I agree too that (generally speaking) we must introduce the least possible quantity of scripting into JSP pages as we can, so we honor the MVC architecture, however, in this particular case (invalidating the session), I don't understand why would be better to do it in the action class rather than i

[OT] Re: Any idea how the tree viewer in this link is created? Or how I could get it

2007-09-12 Thread Dave Newton
--- Session A Mwamufiya wrote: > If you have any ideas how that tree is created, or > what tool is used, please let me know. If the Dojo treeview isn't what you want try searching the web for tree controls; there's a million of them (figuratively speaking). d. --

Any idea how the tree viewer in this link is created? Or how I could get it

2007-09-12 Thread Session A Mwamufiya
Hi, Yet another tree question, but one more interested. I found the type of tree viewer I wanted, it's like the one on this IBM link: http://publib.boulder.ibm.com/infocenter/wasinfo/v5r0/index.jsp?topic=/com.ibm.websphere.exp.doc/info/exp/ae/rxml_propscript.html If you have any ideas how that

Re: Struts2 select taglib

2007-09-12 Thread Randall Svancara
I mostly have experience with original struts. But now I am attempting to use Struts 2. I am trying to figure out how I can populate the select tag. I have created an action class, called Blast with the following attributes: 1. List databases = new ArrayList(); There are two methods, getDatab

Struts2 select taglib

2007-09-12 Thread Randall Svancara
I mostly have experience with original struts. But now I am attempting to use Struts 2. I am trying to figure out how I can populate the select tag. I have created an action class, called Blast with the following attributes: 1. List databases = new ArrayList(); There are two methods, getDatabas

Re: Parameter Mapping with Set elements

2007-09-12 Thread Nicolás Pace
On 6/10/07, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Nicolás Pace <[EMAIL PROTECTED]> wrote: > > The point here is that Sets are not indexable, so i > > can't name elements by their unique id... > > Let me rephrase: I don't know how you'd be able to use > a Set directly on a web page simply bec

Re: Iterate Hashmap with s:iterate

2007-09-12 Thread Cory D. Wiles
That worked perfectly. Thanks everyone for all the help. -Cory On 9/12/07, Josh Vickery <[EMAIL PROTECTED]> wrote: > > Looking through some code here, this is what I have: > > > > > > > The above seems to work OK, though I'm a little curious about the > inclusion of the double parenthese

Re: Iterate Hashmap with s:iterate

2007-09-12 Thread Dave Newton
--- Josh Vickery <[EMAIL PROTECTED]> wrote: > I'm a little curious about the inclusion of the > double parentheses at the end of "entrySet" -- OGNL, > as far as I am concerned, is a bit of strange beast. It's a method call -- not property access. d.

Re: Iterate Hashmap with s:iterate

2007-09-12 Thread Josh Vickery
Looking through some code here, this is what I have: The above seems to work OK, though I'm a little curious about the inclusion of the double parentheses at the end of "entrySet" -- OGNL, as far as I am concerned, is a bit of strange beast. Josh On 9/12/07, Cory D. Wiles <[EMAIL PROTEC

Re: Default tab in tabbedPanel loaded twice

2007-09-12 Thread Marco Carnevale
Hmmm, Do you have a real simple test using 2.0.6 vs 2.0.8? I recall the problem was eliminated at the 2.0.8. We only changed to 2.0.9 to get the security fix. On 9/11/07, Alvaro Sanchez-Mariscal <[EMAIL PROTECTED]> wrote: > > I'm using 2.0.8. I will try 2.0.9 right now. > > Alvaro. > > On 9/1

Re: Iterate Hashmap with s:iterate

2007-09-12 Thread Cory D. Wiles
It is still not working the way that I want to, but I do appreciate the help. I'll just have to keep plugging away at it. Thanks, Cory On 9/12/07, Dave Newton <[EMAIL PROTECTED]> wrote: > > The OGNL manual. > > http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/index.html > > --- "Cory D

Re: Iterate Hashmap with s:iterate

2007-09-12 Thread Dave Newton
The OGNL manual. http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/index.html --- "Cory D. Wiles" <[EMAIL PROTECTED]> wrote: > Dave, > Where did you find the documentation on the > "pseudo-property"? > > On 9/12/07, Dave Newton <[EMAIL PROTECTED]> > wrote: > > > > IIRC OGNL supplies

Re: Iterate Hashmap with s:iterate

2007-09-12 Thread Cory D. Wiles
Dave, Where did you find the documentation on the "pseudo-property"? On 9/12/07, Dave Newton <[EMAIL PROTECTED]> wrote: > > IIRC OGNL supplies a pseudo-property "keys" that will > return a list of keys present in the map. > > --- Wesley Wannemacher <[EMAIL PROTECTED]> > wrote: > > > If I remembe

RE: Iterate Hashmap with s:iterate

2007-09-12 Thread Dave Newton
IIRC OGNL supplies a pseudo-property "keys" that will return a list of keys present in the map. --- Wesley Wannemacher <[EMAIL PROTECTED]> wrote: > If I remember correctly, to use the s:iterator tag, > you have to use an > object that has an 'iterator()' method. HashMap does > not implement > jav

RE: Iterate Hashmap with s:iterate

2007-09-12 Thread Wesley Wannemacher
If I remember correctly, to use the s:iterator tag, you have to use an object that has an 'iterator()' method. HashMap does not implement java.util.List... To iterate over a Hashmap, get the keyset [tempMap.ketSet()] from it. The keyset is a List and you can get an iterator from there. -Wes -

Iterate Hashmap with s:iterate

2007-09-12 Thread Cory D. Wiles
I have an action that returns a hash map that I need to output both the key and value, but I can't figure out how to access each property with s:iterate. Any suggestions would help. The HashMap is being set in my action and returned populated (verified with ). // Action snippet Iterator category

Re: SessionAware vs ActionContext access to session - confused..

2007-09-12 Thread Roger Varley
On Tuesday 11 September 2007 23:03, Nils-Helge Garli wrote: > You could, but I would recommend using the *Aware interfaces in your > actions. It makes them easier to test. > Hmm.. I've always handled session data by creating an application base action that implements a "getUserData()" and a "setU

Re: Taglib documentation

2007-09-12 Thread Paul Benedict
Wendy, I would like to fix this in 1.3.10 but I'll have to check if there is new version out. I did log a defect a long time ago and the last time I checked it had no work. I wonder who we can bug to get it fixed :-) Paul On 9/12/07, Wendy Smoak <[EMAIL PROTECTED]> wrote: > > On 9/12/07, Slattery

Re: datetimepicker with displayFormat always return error msg?

2007-09-12 Thread Emi Lu
Are you running it under Struts 2? Tried datetimepicker, whenever I give the displayFormat="-MM-dd", always get the following warning: Invalid field value for field "todayDate". Something wrong with my code? my code: I am using struts 2 . If I change to: without display format,

Re: Taglib documentation

2007-09-12 Thread Wendy Smoak
On 9/12/07, Slattery, Tim - BLS <[EMAIL PROTECTED]> wrote: > That one doesn't look very good either. The text lines don't wrap, I > have to scroll nearly forever to get to the end of a line, then come way > back to the left edge to see the next one. Besides it's a Javadoc, not a > reference doc th

RE: Taglib documentation

2007-09-12 Thread Slattery, Tim - BLS
> > What's with the taglib reference docs (at least for Struts 1.x). The > > 1.3.8 HTML taglib doc, for example, at > > > http://struts.apache.org/1.3.8/struts-taglib/tagreference.html#struts- > > ht > > ml.tld > > > > There are all kinds of what should be HTML tags and > entities showing up:

RE: org.apache.jasper.JasperException: File "C:/struts/taglibs/struts-bean.tld" not found

2007-09-12 Thread Dave Newton
Post the relevant portions of your web.xml and JSP. --- "Mehmood, Qaiser" <[EMAIL PROTECTED]> wrote: > Yes it didn't. > > Thanks, > > Qaiser Mehmood > Work (512) 248-4269 > Cell (571) 438-8639 > > > -Original Message- > From: Dave Newton [mailto:[EMAIL PROTECTED] > Sent: Wednesday

Proper way to access action from JSP

2007-09-12 Thread kkjacks
I am teaching myself Struts 2 after using Struts 1. In Struts 1 I would access data from the action form in my jsp using the bean tag (ex. ). However Struts 2 seems to have merged the action class with the action form so I am not sure how to access this now. I know there is the tag but I want

Action instances

2007-09-12 Thread Zhang, Larry \(L.\)
Say I have two version design: (1) Some other things go here... onePeople one Employee (2) Some other things go here... one People on Employee The verion 1 has three actions to render three pages, while version 2 use one action to render three pages. The arguments for version 1 is that t

RolesInterceptor - how to use annotations

2007-09-12 Thread wild_oscar
I am trying to use the RolesInterceptor to limit actions to certain roles. Is there a way to use annotations to define the roles on an action by action basis? Or, if annotations are not yet implemented for this interceptor, how difficult is it to create them? Can anyone orientate me on the way t

Re: [S2] validation issue

2007-09-12 Thread Pablo Vázquez Blázquez
Thank you. It works :) Jiang, Jane (NIH/NCI) [C] escribió: I don't know much about s1 validation, so I cannot do exactly what you did in s1. Here is the validator I use for s2 to make sure field 2 is required when field1 has value. You can use the expression validator most of the time. Hope it

RE: org.apache.jasper.JasperException: File "C:/struts/taglibs/struts-bean.tld" not found

2007-09-12 Thread Mehmood, Qaiser
Yes it didn't. Thanks, Qaiser Mehmood Work (512) 248-4269 Cell   (571) 438-8639 -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 12, 2007 11:53 AM To: Struts Users Mailing List Subject: RE: org.apache.jasper.JasperException: File "C:/struts/tag

Re: JAAS struts 2 Tutorial?

2007-09-12 Thread wild_oscar
Hi Muhammad, Try searching my messages chronologically and you'll get plenty to start with! Muhammad Momin Rashid-2 wrote: > > Hello Everyone, > > I am looking for a tutorial for integrating JAAS into my Struts 2 + > Hibernate Application. Can anyone point me to the right resources? > > Is

RE: org.apache.jasper.JasperException: File "C:/struts/taglibs/struts-bean.tld" not found

2007-09-12 Thread Dave Newton
With: - The TLDs in your WEB-INF and - the same WEB-INF path in your JSP it didn't work?! d. --- "Mehmood, Qaiser" <[EMAIL PROTECTED]> wrote: > Yes I tried them in WEB-INF also. Same problem... :) > > Thanks, > > Qaiser Mehmood > Work (512) 248-4269 > Cell (571) 438-8639 > > -Orig

Re: datetimepicker with displayFormat always return error msg?

2007-09-12 Thread Dave Newton
Are you running it under Struts 2? --- Emi Lu <[EMAIL PROTECTED]> wrote: > Hello List, > > Tried datetimepicker, whenever I give the > displayFormat="-MM-dd", > always get the following warning: > > Invalid field value for field "todayDate". > > Something wrong with my code? > > my code:

RE: org.apache.jasper.JasperException: File "C:/struts/taglibs/struts-bean.tld" not found

2007-09-12 Thread Mehmood, Qaiser
Yes I tried them in WEB-INF also. Same problem... :) Thanks, Qaiser Mehmood Work (512) 248-4269 Cell   (571) 438-8639 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 12, 2007 11:31 AM To: Struts Users Mailing List Subject: Re: org.apache.j

Re: org.apache.jasper.JasperException: File "C:/struts/taglibs/struts-bean.tld" not found

2007-09-12 Thread sriharsha . chevuru
Try putting those tld's in your webapp's WEB-INF directory. And then make sure you have those listed them in you web.xml file. Not neccessarily in WEB-INF but just making sure they are there for sure. Should have something similar in your web.xml. /WEB-

datetimepicker with displayFormat always return error msg?

2007-09-12 Thread Emi Lu
Hello List, Tried datetimepicker, whenever I give the displayFormat="-MM-dd", always get the following warning: Invalid field value for field "todayDate". Something wrong with my code? my code: - To unsubscribe, e-mail

org.apache.jasper.JasperException: File "C:/struts/taglibs/struts-bean.tld" not found

2007-09-12 Thread Mehmood, Qaiser
I am using Struts 1.1 with Java 1.4 and Tomcat 5.0.28 and getting this error: org.apache.jasper.JasperException: File "C:/struts/taglibs/struts-bean.tld" not found org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand ler.java:50) org.apache.jasper.compiler.ErrorDispatche

Re: JAAS struts 2 Tutorial?

2007-09-12 Thread Mark McLaren
Muhammad, Starting out from scratch should you use JAAS? I'm not a JAAS expert (I tend to use JASIG CAS which uses JAAS internally and SecurityFilter) but I imagine it all depends on your circumstances. >From what I can gather if you need to reuse the exact same login mechanism for desktop applic

Based on struts 1.3.8 , now adding 2.0.9 jar to use funcs from 2.x

2007-09-12 Thread Emi Lu
Hello List, I am using struts1.3.8. May I know is it possible that I can use some functions/tags provided by 2.0.9. For example, . do not change any 1.3.8 .jar files . Add struts2-core-2.0.9.jar xwork-2.0.4.jar ognl-2.6.11.jar And then use " " ? Thanks a lot! --

Re: Taglib documentation

2007-09-12 Thread Antonio Petrelli
2007/9/12, Slattery, Tim - BLS <[EMAIL PROTECTED]>: > > What's with the taglib reference docs (at least for Struts 1.x). The > 1.3.8 HTML taglib doc, for example, at > http://struts.apache.org/1.3.8/struts-taglib/tagreference.html#struts-ht > ml.tld > > There are all kinds of what should be HTML ta

Taglib documentation

2007-09-12 Thread Slattery, Tim - BLS
What's with the taglib reference docs (at least for Struts 1.x). The 1.3.8 HTML taglib doc, for example, at http://struts.apache.org/1.3.8/struts-taglib/tagreference.html#struts-ht ml.tld There are all kinds of what should be HTML tags and entities showing up: , , , <> on and on. It makes the doc

Re: Struts anchor question

2007-09-12 Thread Emi Lu
Hello list, I saw datetimepicker is a very func in the tutorial. However, when I tried this: format="#-#MM-#dd" /> I got the following exceptions, my version is struts.2.0.9, should I use other jar file or only struts2.1 provides this func: Thanks a lot! org.apache.jasper.JasperExc

RE: Struts anchor question

2007-09-12 Thread Slattery, Tim - BLS
> Because the HTML anchor tag with a URL created via > replaces the "&" character between parameters > with "amp;" characters and my link doesn't work. It should. The xhtml spec insists on that, and it works just fine in the browsers my employer lets us run (IE6, Netscape 7). -- Tim Slattery

Re: Struts anchor question

2007-09-12 Thread Dave Newton
http://struts.apache.org/2.x/docs/url.html --- TonyD <[EMAIL PROTECTED]> wrote: > > Because the HTML anchor tag with a URL > created via replaces the "&" character > between parameters with > "amp;" characters > and my link doesn't work. > > > > newton.dave wrote: > > > > --- TonyD <[EMAIL

Re: How to invalidate a session in struts 2.0

2007-09-12 Thread Alvaro Sanchez-Mariscal
I keep on saying that you can perform exactly the same with LogoutAction, but keeping away code from JSP. However, I agree that in very small apps is ok to do a little scripting. Alvaro. On 9/12/07, Gabriel Belingueres <[EMAIL PROTECTED]> wrote: > I'm not a purist myself, so it may break the MVC

Re: Struts anchor question

2007-09-12 Thread TonyD
Because the HTML anchor tag with a URL created via replaces the "&" character between parameters with "amp;" characters and my link doesn't work. newton.dave wrote: > > --- TonyD <[EMAIL PROTECTED]> wrote: >> How to obtain the equivalent html anchor in struts? >> >> <.a href= >> target="_b

Re: How to invalidate a session in struts 2.0

2007-09-12 Thread Gabriel Belingueres
I'm not a purist myself, so it may break the MVC model somewhere, but (at lest in the apps I coded) I didn't find any use case that forced my to invalidate the session into a Logout action class. In addition, I like to present messages like "Thank you " and this information is usually in session s

RE: [S2] validation issue

2007-09-12 Thread Jiang, Jane (NIH/NCI) [C]
I don't know much about s1 validation, so I cannot do exactly what you did in s1. Here is the validator I use for s2 to make sure field 2 is required when field1 has value. You can use the expression validator most of the time. Hope it helps. field1 == null || field2 != null

Re: JAAS struts 2 Tutorial?

2007-09-12 Thread Muhammad Momin Rashid
Hello Mark, Thanks for your response. Actually I am writing a Web Application from Scratch, using Struts 2 and Hibernate. I need to implement security so that only authorised User can access the desired pages. The user names, passwords and their roles are stored in the database. I am look

[OT] Re: Call Oracle stored function using Hibernate

2007-09-12 Thread Dave Newton
--- GEDA <[EMAIL PROTECTED]> wrote: > now I have to call some stored functions from the DB > using the hibernate api. You might want to ask this on a Hibernate list / forum or STFW with a query resembling "hibernate +call stored proc" or similar. d. ---

Re: JAAS struts 2 Tutorial?

2007-09-12 Thread Mark McLaren
Hi Muhammad, With respect to JAAS integration. Do you mean something like this? I'm new to Struts 2 but I would imagine you probably want an interceptor of some kind (RolesInterceptor, PrincipalAware etc.) to pass yo

Re: Call Oracle stored function using Hibernate

2007-09-12 Thread Antonio Petrelli
2007/9/12, GEDA <[EMAIL PROTECTED]>: > > > Hi. I am using Spring, Struts 2, Hibernate and Oracle as DB. Until now > everything worked ok since I only needed full entity objects but now I > have > to call some stored functions from the DB using the hibernate api. Until > now > I have used the follow

Call Oracle stored function using Hibernate

2007-09-12 Thread GEDA
Hi. I am using Spring, Struts 2, Hibernate and Oracle as DB. Until now everything worked ok since I only needed full entity objects but now I have to call some stored functions from the DB using the hibernate api. Until now I have used the following syntax: Query q = getEntityManager().createQuery

Re: Struts anchor question

2007-09-12 Thread Dave Newton
--- TonyD <[EMAIL PROTECTED]> wrote: > How to obtain the equivalent html anchor in struts? > > <.a href= > target="_blank"> >... > <./a> > > I tried with the "targets" parameter but it doesn't > work. > > >... > Why not just use an HTML tag with a URL created via ? d.

Struts anchor question

2007-09-12 Thread TonyD
I would like to display the URL link in a new window. How to obtain the equivalent html anchor in struts? <.a href= target="_blank"> ... <./a> I tried with the "targets" parameter but it doesn't work. ... Thanks in advance. -- View this message in context: http://ww

Re: [OT] Re: writing dynamic content using JspWriter out

2007-09-12 Thread Antonio Petrelli
It works, but it is not your original request... anyway if it is ok for you... 2007/9/12, temp temp <[EMAIL PROTECTED]>: > > > > > > > > > > > > > > > > > > In my resource Iinsteand of > > > > I used > and in this jsp I used > . > This way

Struts anchor question

2007-09-12 Thread TonyD
I would like to display the URL link in a new window. How to obtain the equivalent html anchor in struts? ... I tried with the "targets" parameter but it doesn't work. ... Thanks in advance. -- View this message in context: http://www

Re: [OT] Re: writing dynamic content using JspWriter out

2007-09-12 Thread temp temp
> > > > > > In my resource Iinsteand of I used and in this jsp I used . This way i can write all my dynamic stuff in a in a jsp and call that jsp in iframe. miro Antonio Petrelli <[EMAIL PROTECTED]> wrote: 2007/9/12, temp t

Re: [OT] Re: writing dynamic content using JspWriter out

2007-09-12 Thread temp temp
miro Antonio Petrelli <[EMAIL PROTECTED]> wrote: 2007/9/12, temp temp : > > What if I use Iframe I tested it it worked do you see any problems using > iframe ? What do you put in the iframe? Antonio - Take the Internet to Go: Yahoo!Go puts the Int

Re: [OT] Re: writing dynamic content using JspWriter out

2007-09-12 Thread Antonio Petrelli
2007/9/12, temp temp <[EMAIL PROTECTED]>: > > What if I use Iframe I tested it it worked do you see any problems using > iframe ? What do you put in the iframe? Antonio

Re: [OT] Re: writing dynamic content using JspWriter out

2007-09-12 Thread temp temp
What if I use Iframe I tested it it worked do you see any problems using iframe ? Miro Antonio Petrelli <[EMAIL PROTECTED]> wrote: 2007/9/12, temp temp : > > > My applications writes html out of an xml file.this xml has feilds > with there presentation type.This field element in xml can

JAAS struts 2 Tutorial?

2007-09-12 Thread Muhammad Momin Rashid
Hello Everyone, I am looking for a tutorial for integrating JAAS into my Struts 2 + Hibernate Application. Can anyone point me to the right resources? Is JAAS the best way to go, or there are better alternates? If anyone thinks there are better alternates, can you provide me with the links

Re: [OT] Re: writing dynamic content using JspWriter out

2007-09-12 Thread Antonio Petrelli
2007/9/12, temp temp <[EMAIL PROTECTED]>: > > > My applications writes html out of an xml file.this xml has feilds > with there presentation type.This field element in xml can have cdata > section which allows user to write any thing like > scripts or bean tags or any other custom tag libr

[s2] Is it possible to have seperate validtion files for each method without using wildcards.

2007-09-12 Thread David Harland
Is it possible to have seperate validtion files for each method. Bascially it would be very nice to be able to have and be able to have seperate validations for both methods instead of using the alias. This approach seems to be a more elegant way of valida

Re: [OT] Re: writing dynamic content using JspWriter out

2007-09-12 Thread temp temp
My applications writes html out of an xml file.this xml has feilds with there presentation type.This field element in xml can have cdata section which allows user to write any thing like scripts or bean tags or any other custom tag library ,html. for example

Re: [S2] Issues with AJAX in IE

2007-09-12 Thread Grish
Well I checked out the samples in the struts 2 showcase and I get the same problem. It seems that when I submit a form using the enter key instead of clicking the button my results displayed in a new page still. Again this only occurs in IE 6, 7 (haven't tested with lower versions). I figured I c

Re: [OT] Re: writing dynamic content using JspWriter out

2007-09-12 Thread Antonio Petrelli
2007/9/12, temp temp <[EMAIL PROTECTED]>: > > in this case is there is no way to invoke jsp compiler or is there any > workaround for this problem ? Do you want to invoke a JSP compiler inside a webapp? If it is possible, surely it is not portable. I suggest you to write pure HTML. Antonio

Re: [OT] Re: writing dynamic content using JspWriter out

2007-09-12 Thread temp temp
in this case is there is no way to invoke jsp compiler or is there any workaround for this problem ? Miro Antonio Petrelli <[EMAIL PROTECTED]> wrote: 2007/9/12, temp temp : > In my jsp I use JspWriter to write my page content .I can write lot of > static data but I cannot write dynamic con

[OT] Re: writing dynamic content using JspWriter out

2007-09-12 Thread Antonio Petrelli
2007/9/12, temp temp <[EMAIL PROTECTED]>: > In my jsp I use JspWriter to write my page content .I can write lot of > static data but I cannot write dynamic content like scriptlet or tag > library ie even if I write tag library or scriptlet it will not be executed > .Is there any solution for

writing dynamic content using JspWriter out

2007-09-12 Thread temp temp
In my jsp I use JspWriter to write my page content .I can write lot of static data but I cannot write dynamic content like scriptlet or tag library ie even if I write tag library or scriptlet it will not be executed .Is there any solution for this ? Miro ---

[Resolved] [S2] Setting current value of an iterator inside "onClick" of a "s:a" tag

2007-09-12 Thread Cyril Gambis
Hi everybody, One of my programmer asked me the following: I try to set the current value of a s:iterator in the "onclick" of a "s:a" tag, but it doesn't work. How can I do this? I know that I can't use something like overlapping tags: Here, I put inside onclick attribute, the o