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
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
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 = "";
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
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
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
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
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
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
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
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
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
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
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
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
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
-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
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-
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
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
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
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:
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
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
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
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,
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
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
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.
-
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:
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
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
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
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]
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:
35 matches
Mail list logo