RE: Deploying web app (.ear = .jar + .war) under Weblogic with Stru ts

2003-10-01 Thread Varun Garg
I have the ejb's and the war working without making the duplicate jar files. Basically put in a MANIFEST.MF file with the classpath in three places and it works for me. Basically move all the common jars to the root of the ear. Root of the ear looks like ejb.jar app.war struts.jar etc.jar META-I

RE: LabelValueBean - 3 fields?

2003-09-24 Thread Varun Garg
stores 10 Strings, you should be using an array instead of 10 different variables. David --- Varun Garg <[EMAIL PROTECTED]> wrote: > I created a StringsClass with upto 10 variables. > > > package com.xxx.valueobjects; > > import java.io.Serializable; > import java.u

RE: LabelValueBean - 3 fields?

2003-09-24 Thread Varun Garg
I created a StringsClass with upto 10 variables. package com.xxx.valueobjects; import java.io.Serializable; import java.util.Comparator; public class StringsClass implements Serializable, Comparable { private String var1 = ""; private String var2 = ""; private String var3 = "";

Re: Page Title

2003-09-22 Thread Varun Garg
I did this. --- "Craig R. McClanahan" <[EMAIL PROTECTED]> wrote: > Bryce Fischer wrote: > > >>How do i assign different title for each page > using tiles. Following is my tile layout which has > title "My Site Name". And it has Header, Side Menu, > BODY, Foote

Re: forward question

2003-09-22 Thread Varun Garg
There are many ways to store the requested page and then redirect to the login action and once it is done pass it back to thr requested resource, if it is a matter of just the url with the query parameters you can use the HTTP-REFERER from the header to see if a different page was requested. Or a

Re: Frames Question

2003-09-22 Thread Varun Garg
Frames are like indivdual request. So think about it this way, how would you send the information from one request to next request in the same sesssion. Usual way is to pass parameters in url's, another way is to do form posts with the data, the other way is to put info in session and the retrieve

RE: Struts + EJB

2003-07-17 Thread Varun Garg
Varun -Original Message- From: Marc Gibert Ginestà [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 1:04 PM To: Struts Users Mailing List Subject: Re: Struts + EJB Varun Garg wrote: > I would call the SessionEJB from the actions and copy over the > contents that need to be d

RE: JSP exception

2003-07-17 Thread Varun Garg
The best way I like is to use the ExceptionHandler. Catch the exceptions and then do whatever you would like to do with it. You can call your error page after that. Varun -Original Message- From: Peter Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 12:33 PM To: Struts User

RE: Struts + EJB

2003-07-17 Thread Varun Garg
I would call the SessionEJB from the actions and copy over the contents that need to be displayed either in the ActionForm or a VO/DTO in the form and then use that to display the information in the JSP. What is the SessionEJB returning you?? It should be some object serializable and that should b

RE: Select Tag and Options Tag

2003-07-17 Thread Varun Garg
Select -Original Message- From: Silverio Wagner Silva(Secorp) [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 12:16 PM To: 'Struts Users Mailing List' Subject: Select Tag and Options Tag I have difficulties to use

RE: struts: error/message handling: saveErrors

2003-07-03 Thread Varun Garg
Instead of doing a new ActionErrors I have a function in my base Action (U can just put it in the action that your are working on Baction). public ActionErrors getErrors(HttpServletRequest request){ if (request.getAttribute(ERROR_KEY) != null) { return (ActionErrors) reques

RE: Off Topic

2003-06-27 Thread Varun Garg
Who cares about those sponsored links, I don't even look at the ad space when doing a search. The real search results are all JAVA. Cheers -Original Message- From: Tim Jones [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 2:01 PM To: Struts Users Mailing List Subject: Re: Off Topic

RE: getting a file path to /WEB-INF from a HttpSession

2003-06-27 Thread Varun Garg
If you are tring to access a resource then u can do a getClass().getClassLoader() and get the resource from the WEB-INF/classes folder. I don't think this is the right or the best way, but one way you could do it is, get access to a resource using the above stated methods and then from the resourc

RE: How to read < init-parm> defined in web.xml in an Action class

2003-06-25 Thread Varun Garg
Try this this.servlet.getServletConfig().getInitParameter() -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 9:10 AM To: [EMAIL PROTECTED] Subject: How to read < init-parm> defined in web.xml in an Action class Hi I have this entry in

RE: accessing servlet from an ActionForm

2003-06-25 Thread Varun Garg
I will try this. but I dont know where we can set the System.setProperty();;; Thanks KiranKumar (Raj) ext 7203 -Original Message----- From: Varun Garg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 5:56 PM To: 'Struts Users Mailing List' Subject: RE: accessing servle

RE: Checking for a null property

2003-06-24 Thread Varun Garg
property But doesn't the present tag just check whether the property is present, and not if it is null or not? I was having some strange actions with this. --- Thanks... Mick Knutson --- >From: "Varun Garg" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Maili

RE: Checking for a null property

2003-06-24 Thread Varun Garg
-Original Message- From: Jindal, Ashwini [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 4:57 PM To: [EMAIL PROTECTED] Subject: Checking for a null property Importance: High Anyone, Can anyone please help me with the following situation? I am trying to display the A

RE: accessing servlet from an ActionForm

2003-06-24 Thread Varun Garg
KiranKumar (Raj) ext 7203 -Original Message- From: Varun Garg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 5:34 PM To: 'Struts Users Mailing List' Subject: RE: accessing servlet from an ActionForm What type of example are you looking for??? -Original Message-

RE: accessing servlet from an ActionForm

2003-06-24 Thread Varun Garg
t features included varun: I need one with html-el if possible Thanks KiranKumar (Raj) ext 7203 -Original Message----- From: Varun Garg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 5:05 PM To: 'Struts Users Mailing List' Subject: RE: accessing servlet from an ActionForm

RE: accessing servlet from an ActionForm

2003-06-24 Thread Varun Garg
the ActionForm and not from the ActionServlet. And with the ActionForm, I am afraid that the "validate" and the "reset" are not called by the , this is why i am using the constructor. any idea? --- Varun Garg <[EMAIL PROTECTED]> wrote: > I would access the ServletCont

RE: Looking for ideas for action servlet checking for logged in user.

2003-06-24 Thread Varun Garg
One way I did in the past was using a Servlet Filter where I would read a file to see what action is authorized to what role. I created a file with the mapping of path's to roles. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 3:59 PM

RE: accessing servlet from an ActionForm

2003-06-24 Thread Varun Garg
I would access the ServletContext from the execute or the perform method rather than the constructor. this.servlet.getServletContext().getAttribute("XXX") This is what I use from inside the execute and it works great. -Original Message- From: rab yazbeck [mailto:[EMAIL PROTECTED] Sent:

RE: JSP's taking too long in websphere

2003-06-24 Thread Varun Garg
neral. Along with all the suggestions that Varun had, have you try to reboot your machine? ;-) JP -Original Message- From: Varun Garg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 11:20 AM To: 'Struts Users Mailing List' Subject: RE: JSP's taking too long in websph

RE: JSP's taking too long in websphere

2003-06-24 Thread Varun Garg
Do you have lot of lists on your page, do you use drop downs etc and how is the length of the drop downs. What is the approximate size of the page being delivered. I would check all the parameters to see what is the size of the page that you are rendering, what is size of the lists etc. It can ta

RE: how to put a in a href=""

2003-06-05 Thread Varun Garg
Do this -Original Message- From: António Santos [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 11:54 AM To: [EMAIL PROTECTED] Subject: how to put a in a href="" Hi all, Maybe this is a simple question, but I'm stuck with this: How can I set a href in a tag with a string

RE: Advice with reading multiple html:selects

2003-06-04 Thread Varun Garg
It does not matter about building it dynamically, what matter is what was selected when the form was submitted. Only the selected values are transmitted back and they should all come back in that array. -Original Message- From: netizen1 [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03,

RE: Form submit without button or image?

2003-06-04 Thread Varun Garg
You can use javascript to do that. "javascript:document.forms[0].submit();" Just add this to a href if you are doing a link. -Original Message- From: Gregory F. March [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 2:23 PM To: Struts Users Mailing List Subject: Form submit wit

RE: taglibs - nonstatic javascript value

2003-06-04 Thread Varun Garg
o pass a dynamic value using javascript in struts tag libs, it's not doable, right? regardless of using another taglib or not. -Original Message- From: Varun Garg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 1:26 PM To: 'Struts Users Mailing List' Subject: RE: tag

RE: Storing the Output of a Servlet to Database

2003-06-04 Thread Varun Garg
The only way a servlet writes is when it uses a PrintWriter. So you have complete control over what you are sending out. If you are on the client side then you need to what type of client, if it is a java client then you could use a URL object to create a connection and then get the output.

RE: taglibs - nonstatic javascript value

2003-06-04 Thread Varun Garg
- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 12:21 PM To: 'Struts Users Mailing List' Subject: RE: taglibs - nonstatic javascript value Yes, thank you. So, this means that it is impossible to do it with struts taglibs? -Original Message----- From:

RE: taglibs - nonstatic javascript value

2003-06-04 Thread Varun Garg
ct: RE: taglibs - nonstatic javascript value eliminating "property" doesn't do it! -----Original Message- From: Varun Garg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 12:35 PM To: 'Struts Users Mailing List' Subject: RE: taglibs - nonstatic javas

RE: taglibs - nonstatic javascript value

2003-06-04 Thread Varun Garg
m and putting them in single quotes, I'm back to that same problem. It reads the whole thing as one string. Please advice! Mona -Original Message- From: Varun Garg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 12:06 PM To: 'Struts Users Mailing List' Subject: RE: tag

RE: taglibs - nonstatic javascript value

2003-06-04 Thread Varun Garg
I would just put a bean:write instead on the D. "'); document.forms[0].submit(); "> -Original Message- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 10:50 AM To: 'Struts Users Mailing List' Subject: taglibs

RE: How to prevent access to pdf files

2003-06-04 Thread Varun Garg
The way I have handled the problem in the past is to create a servlet streaming out the pdf and then I have complete control over authorizations. I would set the mime types to the pdf and then browser will treat it properly. -Original Message- From: John Brayton [mailto:[EMAIL PROTECTED]

RE: out-of-memory exp

2003-06-04 Thread Varun Garg
This comes when weblogic runs out of memory. If this happens often, then I would look at the code and check for any bad looping thats going on. -Original Message- From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 9:15 AM To: [EMAIL PROTECTED] Subject: