Struts 1.3 and OAuth2

2019-03-09 Thread Asad Habib
Has anyone successfully been able to integrate OAuth2 to authorize calls made to an API built using Struts 1.3? I haven't seen any examples of this online. Any help would be appreciated. Thanks.

Use of html:image with Internet Explorer 6/7

2008-11-14 Thread Asad Habib
Hello. Has anyone been able to successfully use html:image to pass a value to a Struts Action with Internet Explorer? I am using Struts 1.3.8 and the following line of code does not work in Internet Explorer but does work in Firefox: html:image property=operation value=update srcKey=image.update

Re: Client Side Validation with Struts

2008-03-29 Thread Asad Habib
Hello. I am using Struts 1.3.8. The issue is not one of making the Javascript work (it is working correctly), but rather preventing a Struts action from being called. Is this possible given that the action of a form is a Struts action? - Asad On Sat, Mar 29, 2008 at 6:44 AM, Lukasz Lenart

Client Side Validation with Struts

2008-03-28 Thread Asad Habib
Hello. I am validating data on the client-side using the Javascript onsubmit event handler and this is working just fine. The problem I am having is with trying to prevent the action from being called after the alert window is closed. Is it possible to do this? If so, how? Also, for client side

Determining the Current Page

2008-03-06 Thread Asad Habib
Is there a way to use Struts tags only to determine which page a user is currently on? I know this can be done using the JSP request object but I'd rather use Struts tags if possible. Thank you. - Asad - To unsubscribe, e-mail:

Hiding the Path of Links

2008-03-06 Thread Asad Habib
How do I hide the path of links in Struts? Should I use the action attribute of html:link for this or is there a better way to accomplish this? - Asad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Default validator-rules.xml and validator.xml

2008-02-27 Thread Asad Habib
Hello. Where can I find these files for Struts 1.3.8? - Asad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Using Variables with Messages in Struts

2008-02-20 Thread Asad Habib
the answer for Struts 1.x Asad Habib wrote: Hello Jeromy. What tag library are you using for this? - Asad On Feb 19, 2008 11:19 PM, Jeromy Evans [EMAIL PROTECTED] wrote: You may be able to do it with s:property, disabling escaping of the html: s:property value=getText('some.key

Using Variables with Messages in Struts

2008-02-19 Thread Asad Habib
Hello. How do I represent the following in a message resources file? Representing a string literal is easy but the following string contains a link. Can this even be done? I have used variables with the validator before but there is no validator involved in this case. Thank you. Please a

Re: Using Variables with Messages in Struts

2008-02-19 Thread Asad Habib
Hello Jeromy. What tag library are you using for this? - Asad On Feb 19, 2008 11:19 PM, Jeromy Evans [EMAIL PROTECTED] wrote: You may be able to do it with s:property, disabling escaping of the html: s:property value=getText('some.key') escape=false/ Asad Habib wrote: Hello. How do I

Re: Advanced Use of Struts Tiles

2008-02-12 Thread Asad Habib
help. Thank you. - Asad On Feb 12, 2008 3:10 AM, Antonio Petrelli [EMAIL PROTECTED] wrote: 2008/2/12, Asad Habib [EMAIL PROTECTED]: Hello. I have the following definitions in place in my tiles-def.xml file: ... There are several layers of nested tiles. I am having trouble using

Re: Advanced Use of Struts Tiles

2008-02-12 Thread Asad Habib
Hello Antonio. Do you have access to any examples that I could look at? Thanks. - Asad On Feb 12, 2008 4:27 AM, Antonio Petrelli [EMAIL PROTECTED] wrote: 2008/2/12, Asad Habib [EMAIL PROTECTED]: Hello Antonio. Are you saying that multiple level nesting is not possible with Struts Tiles

Advanced Use of Struts Tiles

2008-02-11 Thread Asad Habib
Hello. I have the following definitions in place in my tiles-def.xml file: definition name=.leftContentLayout path=/external/jsp/layouts/leftContentLayout.jsp put name=leftUpperContent value=/external/jsp/common/leftMenu.jsp / put name=leftLowerContent

Using the html:img tag inside html:submit

2007-03-03 Thread Asad Habib
Is their a way to do this? I have the following code but it does not work as expected: html:submit property=updateMyInformationMethod html:img srcKey=image.rightBorderedArrow altKey=image.rightArrow.alt border=1/html:img /html:submit Also, using the html:img tag like html:img / instead of

Transfer Object (TO) vs. Entity Bean

2007-02-04 Thread Asad Habib
Hello. I have a question concerning transfer objects. If a transfer object contains another object represented by a POJO, is this contained object also considered a transfer object or simply an entity bean? Is their any literature that discusses this? Any help would be appreciated. Thank you.

Using Message Resource Keys in Tiles Definitions

2007-01-18 Thread Asad Habib
I know the following is not possible because the put tag does not have a key attribute but can the same result be achieved in another way? definition name=.mainLayout path=/layouts/mainLayout.jsp put name=title key=mainLayout.title / /definition Any help would be greatly appreciated. Thank

Re: Best Practices for Form-Based Authentication With Struts

2006-10-31 Thread Asad Habib
that, you 'd enable SSL. On 10/31/06, Asad Habib [EMAIL PROTECTED] wrote: What is the best way to authenticate a user with Struts? I have a table in my database which holds the credentials for valid users and this table needs to be checked when a user trys to log in via a form. I am also using

Best Practices for Form-Based Authentication With Struts

2006-10-30 Thread Asad Habib
What is the best way to authenticate a user with Struts? I have a table in my database which holds the credentials for valid users and this table needs to be checked when a user trys to log in via a form. I am also using Hibernate as an ORM. Any help would be appreciated. Thanks. - Asad

Re: Creating partly restricted sites

2006-10-16 Thread Asad Habib
Andreas, the second method is definitely better from the perspective of long-term maintainence. You really need just 1 jsp to achieve the task at hand. Also, using tags should not make the code unreadable since tags were developed for exactly that purpose. They embed nicely with markup. If you

Re: Placement of Application Logic

2006-10-05 Thread Asad Habib
. The test would pass in known values, while Struts would pass in values from the request. -- HTH, Ted. * http://www.husted.com/struts/ On 10/4/06, Asad Habib [EMAIL PROTECTED] wrote: I have a Struts action which extracts field values from the request object and then uses these values to set the name

Placement of Application Logic

2006-10-04 Thread Asad Habib
I have a Struts action which extracts field values from the request object and then uses these values to set the name of a file which the application reads from. The code responsible for forming the file name currently resides in the action. Is this the best place to put it? This code cannot

File I/O with Struts

2006-09-07 Thread Asad Habib
I am trying to read from a file using a utility class that I invoke from an action. However, my application is unable to find the file and a java.io.FileNotFoundException is thrown. I have tried placing the file in /WEB-INF/classes as well as the root directory of the application however the

Re: File I/O with Struts

2006-09-07 Thread Asad Habib
Hi Laurie. Actually, I am not using any method to determine the path of the file. Should I be doing that? In general, where should one place files used for I/O within the WAR structure? Thanks for your help. - Asad On Thu, 7 Sep 2006, Laurie Harper wrote: Asad Habib wrote: I am trying

Declarative Exception Handling with Struts Validation

2006-05-16 Thread Asad Habib
Okay, I've finally got this working except for one piece. I use form.validate in my action to retrieve errors placed by the Struts Validator in the ActionErrors object. Depending on the type of error in ActionErrors, my action throws an exception and this in turn triggers forwarding to a

Re: Declarative Exception Handling with Struts Validation

2006-05-16 Thread Asad Habib
messages in the session. Paul --- Asad Habib [EMAIL PROTECTED] wrote: Okay, I've finally got this working except for one piece. I use form.validate in my action to retrieve errors placed by the Struts Validator in the ActionErrors object. Depending on the type of error in ActionErrors, my action throws

Declarative Excpetion Handling

2006-05-12 Thread Asad Habib
Has anyone successfully used declarative exception handling with Struts? For some reason, my application always forwards to the input attribute of the action element instead of the path element of the exception element as defined in my struts configuration file. I have confirmed that the error

Accessing Validation Errors in an Action

2006-04-27 Thread Asad Habib
How do I access errors that the Validator places in the ActionErrors object instance within a Struts action? I need to do this in my action code so I can throw the appropriate kind of exception. Thanks. - Asad - To

Re: Accessing Validation Errors in an Action

2006-04-27 Thread Asad Habib
Hello Rick. Great! Thank you for the URL. This site has a wealth of information on it! - Asad On Thu, 27 Apr 2006, Rick Reumann wrote: Asad Habib wrote: How do I access errors that the Validator places in the ActionErrors object instance within a Struts action? I need to do this in my

DynaValidatorForm

2006-04-25 Thread Asad Habib
Does DynaValidatorForm have to be explicitly instantiated in an action? Thanks. - Asad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Declarative Exception Handling

2006-04-21 Thread Asad Habib
When using declarative exception handling, where do you create the exception instances? In the action itself? I would like to use the ModuleException class and pass a resource key to the constructor but don't know where this should be accomplished. On another note, are there any resources

Embedding Struts Tags

2006-04-18 Thread Asad Habib
Hello. The following statement in one of my views is generating an error at runtime: html:img srcKey=bean:message key=image.logo / / The error is as follows: org.apache.jasper.JasperException: /test.jsp(4,54) equal symbol expected Is it not possible to embedd tags in Struts? Any help would

Error Loading/Instantiating TagExtraInfo class

2006-04-15 Thread Asad Habib
I ported my Struts application from Tomcat 5.5.9 to Tomcat 5.5.16. When I ran the application, I got the following error: org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: org.apache.struts.taglib.tiles.UseAttributeTei

Validation Rules and Messages

2006-04-13 Thread Asad Habib
Is there a way to associate multiple messages with a single validation rule? In particular, I would like to associate multiple messages with the required rule so that I can have a different message displayed depending on the field being validated. Thanks. - Asad

Struts 1.2.9

2006-04-12 Thread Asad Habib
Does Struts 1.2.9 come bundled with the latest version of the validator? - Asad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Some questions

2006-04-05 Thread Asad Habib
Well, it depends on what you need to do. Struts 1.x is NOT inferior to any other framework out there. In fact, it does what it was designed to do perfectly. I would caution against listening to people on this list who tell you otherwise because they dislike Struts because it does not fit all

Re: The Mytical stagnation

2006-03-31 Thread Asad Habib
Do WE think that Dakota has said his fair share and that his ideas are STALE? Do WE think that Dakota should stop harassing others on this list? Do WE think that too much Dakota talk is bad? Do WE think that Dakota is talking nonsense? Yes, indeed, WE do! Paul, I, and lots of others on this

Struts and Result Beans

2006-03-27 Thread Asad Habib
What is the best way to use result beans with Struts (i.e. beans that are not associated with a form). In particular, I have a plugin class that's called by the Struts action servlet upon startup and this class calculates the current date. This date needs to be stored in a bean having session

Re: Struts and Result Beans

2006-03-27 Thread Asad Habib
On Mon, 27 Mar 2006, Dave Newton wrote: Asad Habib wrote: What is the best way to use result beans with Struts (i.e. beans that are not associated with a form). In particular, I have a plugin class that's called by the Struts action servlet upon startup and this class calculates the current

Re: Struts and Result Beans

2006-03-27 Thread Asad Habib
On Mon, 27 Mar 2006, Dave Newton wrote: Asad Habib wrote: Well, your right since the date will be shared by all sessions. However, if I go this route I will need a method to update the date every time it changes. You need that anyway, as a user might be on the site over the midnight hour

Re: [FRIDAY] Re: has struts reached the saturation

2006-03-25 Thread Asad Habib
Jack, I think folks on this list have heard enough complaining and whinning by you and others. You claim that your right of free speech is being violated, but all I have heard from you is insults. This is a list for professional developers, not gangsters! Also, how are contributing by

Re: has struts reached the saturation

2006-03-21 Thread Asad Habib
Hello everyone. This thread has gone on way too long and quite honestly most of us are just basic Struts users who are still learning the framework. Various points have been made and all have their merits. Is it worth it to butcher each other over petty differences or to use our time wisely to

Struts and Swingweb/WebOnSwing

2006-03-03 Thread Asad Habib
Hello. Has anyone had experience integrating Swingweb or WebOnSwing with Struts. I have a Swing application that I want to web enable and if possible, I would like to use Struts for the controller framework. Thanks. - Asad -

Database Access

2006-01-19 Thread Asad Habib
What are the different ways in designing the persistence layer so that it works with a Struts application? I am looking for a simple way to access a database. Should I use hibernate? Are there any articles online that discuss these alternatives and their tradeoffs? Thanks. - Asad

html:select And html:option Tags

2006-01-12 Thread Asad Habib
Hello. I am using the select and options tags in one of my JSP pages. My first option has the value attribute set to an empty string (i.e. value='') and the second option has the value attribute equal to 0 (i.e. value=0). For some reason, when the page is accessed the first time by a user, the

Access Denied Error

2005-12-14 Thread Asad Habib
Hello. I am receiving the following error when trying to use the Struts HTML tag library. Has anyone experienced something similar? I have provided the stack trace below. Thanks. - Asad Dec 14, 2005 7:21:17 AM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service()

Struts Error

2005-11-25 Thread Asad Habib
Hello. I have a web application in which I am only using the Tiles component of Struts. Up until recently this application was running without any errors. However, after incorporation of JNDI into this project I get the following error: org.apache.jasper.JasperException: Unresolved

Re: Struts Error

2005-11-25 Thread Asad Habib
Hello. I just wanted to let all of you that I figured this out. I had to flush the compiled files in the Eclipse work directory and then everything worked. Thanks. - Asad On Fri, 25 Nov 2005, Asad Habib wrote: Hello. I have a web application in which I am only using the Tiles component

Form Beans

2005-11-16 Thread Asad Habib
Hello. I am new to Struts and would like some advice. Is it better to use one form bean to capture data from several forms that are being submitted in succession or to use one form bean per form (i.e. multiple form beans)? What are the advantages or disadvantages of either approach? Also, I

Re: Form Beans

2005-11-16 Thread Asad Habib
Hello Michael. Thanks for your input. Doesn't this approach defeat the purpose of using Struts though? Simplicity is achieved but then the web app can no longer be considered a standard Struts app, can it? - Asad On Wed, 16 Nov 2005, Michael Jouravlev wrote: On 11/16/05, Asad Habib [EMAIL

Struts Form Logic Error

2005-10-24 Thread Asad Habib
Hello. I am new to Struts and currently developing a Struts application. For some reason, form variables are not being transmitted upon form submission and at the same time there is no error or stack trace that I can reference to diagnose the error. I am not able to access the form variables

Re: Struts Form Logic Error

2005-10-24 Thread Asad Habib
/ This assumes your testForm has a getter/setter for zipCode. Hope this helps. ATTA On 10/24/05, Asad Habib [EMAIL PROTECTED] wrote: Hello. I am new to Struts and currently developing a Struts application. For some reason, form variables are not being transmitted upon form submission