RE: XML to PDF(need sample servlet code...)

2003-01-22 Thread Maris Orbidans
I wrote my own XML->PDF FOP servlet. Here is the code. Maris -- import java.io.*; import java.net.*; import javax.servlet.*; import javax.servlet.http.*; import org.xml.sax.InputSource; import org.apache.fop.apps.Driver; import org.apache.fop.apps.Version; impor

RE: Struts based app. and SSL doesnt work together

2003-01-08 Thread Maris Orbidans
gt; Subject: Re: Struts based app. and SSL doesnt work together > > > I had a similar problem with JRUN 3.1, after following the > instruction and > recompiled JRUN connector, the problem is solved. > > What type of system are you using? > > -D > - Original M

RE: Struts based app. and SSL doesnt work together

2003-01-07 Thread Maris Orbidans
I have Apache on 80/443 and Tomcat on 8080/8443 with 8009 mod_jk. > Everything works fine for me... No matter if I access Apache and it's > SSL port or use Tomcat standalone (which I also configured to > use ssl on > 8443). > > Michael > > > -Original Message--

RE: Struts based app. and SSL doesnt work together

2003-01-03 Thread Maris Orbidans
omcat standalone (which I also configured to > use ssl on > 8443). > > Michael > > > -Original Message- > > From: Maris Orbidans [mailto:[EMAIL PROTECTED]] > > Sent: Freitag, 3. Januar 2003 14:36 > > To: Struts Users Mailing List > > Subject

Struts based app. and SSL doesnt work together

2003-01-03 Thread Maris Orbidans
Our architecture consists of Apache HTTP server, which talks to Tomcat. SSL support is installed in Apache server. Do you have ideas how to solve this problem ? Maris Orbidans app. architect -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <

RE: [STRUTS] Please !

2002-09-12 Thread Maris Orbidans
Try to comment this line. I think it's only plase which can cause NPE. Pls let us know if it works. Maris > -Original Message- > From: kiuma [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 12, 2002 8:18 PM > To: struts-user > Subject: Re: [STRUTS] Please ! > > > Thx,

RE: Re: Struts + EJB ?

2002-09-09 Thread Maris Orbidans
esign Patterns" ( http://www.theserverside.com/resources/index.jsp ). It advices to use fine grained getXXX setXXX methods through local interface, not DTO's as set/get parameter or ejbCreate with a lots of arguments. Maris Orbidans -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Struts 1.1 article on TSS

2002-08-28 Thread Maris Orbidans
http://www.theserverside.com/resources/article.jsp?l=Struts1_1 -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: stupid checkboxes

2002-08-28 Thread Maris Orbidans
I have solved it. I can read numbers of contracts to print as checkbox values. Maris > -Original Message- > From: Mâris Orbidâns > Sent: Wednesday, August 28, 2002 8:53 PM > To: Struts Users Mailing List > Subject: stupid checkboxes > > > > hi > > I have a bunch of checkboxes

stupid checkboxes

2002-08-28 Thread Maris Orbidans
hi I have a bunch of checkboxes genereted in a loop: But when I read values of checkboxes then only checked ones appear it this array: String[] izdrukas = request.getParameterValues("raditIzdruka"); I do set raditIzdruka=false in reset method of form bean. H

RE: html:text in logic:iterate ?

2002-08-16 Thread Maris Orbidans
Here you got sample code: Zurnals4Buvniecibas is form class, it has property saraksts which contains a vector with objects of Zurnals4CommonView. Zurnals4CommonView has properties jaiesniedzAtskaite, jaiesniedzDatums and so on ... Maris

How to specify RUNTIME EXPRESSION

2002-08-16 Thread Maris Orbidans
hello tag has styleId attribute which is Rt Expr. I havent figured out how to generate tags (in a loop) with different styleId attribs. Maris styleId Identifier to be assigned to this HTML element. [RT Expr] -- To unsubscribe, e-mail: For additional comma

RE: Is it possible to generate styleId ?

2002-08-15 Thread Maris Orbidans
sage- > From: Patrick Refondini [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 14, 2002 7:30 PM > To: Struts Users Mailing List > Subject: Re: Is it possible to generate styleId ? > > > Maris Orbidans wrote: > > Hello > > > > I would like t

Is it possible to generate styleId ?

2002-08-14 Thread Maris Orbidans
Hello I would like to have styleId different for each element. How to achieve it ? I want this because I will generate some JavaScript that will validate those date fields. Since property is the same then I need styleId different to distinguish my date fields in script.

RE: Character set problem, subclass action servlet

2002-07-22 Thread Maris Orbidans
in web.xml like this action lv.datapro.lad.pri.actions.LADActionServlet ... requestEncoding windows-1257 2 regards Maris Orbidans > -Original Message- > From: Eric Chow [mailto:[EMAIL PROTECTED]] > Sent: Sunday, July 21, 2002 4:55 AM >

RE: Pros and Cons of Struts

2002-06-14 Thread Maris Orbidans
We use Struts in our project. it's very good Pros: + you can apply your OOP skills and build large class hierarchies of form beans and +action classes Maris > -Original Message- > From: Struts Newsgroup (@Basebeans.com) [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 03, 2002 10:55

RE: IDE for EJB2.0 development

2002-04-18 Thread Maris Orbidans
I believe that the best IDE is TogetherSoft Control Center. Beats even .net Visual Studio. It's sad that CC costs so much :-( Maris Orbidans > -Original Message- > From: James Mitchell [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 18, 2002 5:13 PM > To: Str

RE: How can I forward to another action with userspecific data

2002-04-17 Thread Maris Orbidans
You can add attributes to HTTP request. // Action A request.setAttribute("DATA1","1"); // Action B String attr = (String) request.getAttribute("DATA1"); Maris > -Original Message- > From: Dirk Storck [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 17, 2002 11:09 AM > To: Struts

RE: Problem with multiple JSPs and one logon.jsp (do) / forwarding

2002-04-16 Thread Maris Orbidans
Maybe you can add a hidden param "formName" in all your JSPs. Then in your action class check which JSP page HTTP request came from and forward back to corresponding page. Don't know better solution. Maris > -Original Message- > From: "Pykäläinen, Eero" [mailto:[EMAIL PROTECTED]]

RE: When is it bad form to use form beans?

2002-04-16 Thread Maris Orbidans
> When is it bad form to use form beans? > > For example, if you are processing a web page with several form > fields and the only goal of the process is to get the information > from the form fields into the data base, is it ok to send a form bean > from the Action servlet directly to a class i

RE: logic-tags related to beans not derived from ActionForm?

2002-04-15 Thread Maris Orbidans
> Thank you Maris, > exactly what I needed. I suppose that is the way to > overcome the restriction that an Action can have only one > ActionForm. Yes. BTW You can add properties to you form bean, that don't correspond to HTML input fields. For example a field that determines that input fiel

RE: logic-tags related to beans not derived from ActionForm?

2002-04-15 Thread Maris Orbidans
Yes, of course, it's possible. There is no requirement that class you work with must be derived from ActionForm. A class derived from ActionForm is a bean. Logic tags also can work with cookies, request headers etc. ( see doc. of logic tags ) I'd suggest you to create some JavaBean ( in se

RE: Struts vs EJB, thoughts?

2002-04-15 Thread Maris Orbidans
> for the last 4 months and don't mind it. I see it as a "poor > mans" EJB. "Poor man's" EJB ? :-) No, EJB deals with very different problems. > Also, seems like Struts is more useful for "smaller > companies" and EJB is > more suitable for large corporations. Is this pretty much a v

RE: Struts Tutorial

2002-04-09 Thread Maris Orbidans
I like the tutorial. Thank you Stephan !!! Maris PS http://rzserv2.fhnon.de/~lg002556/struts/#pi2 Should be TLD instead of LTD, shouldn't it ? > -Original Message- > From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 09, 2002 3:10 PM > To: 'Struts Users Ma

RE: How to organize the CLASSPATH to compile and execute with struts.jar

2002-04-09 Thread Maris Orbidans
And don't put struts.jar in global classpath. Maris Orbidans > You specify classpath during compiling: > > > C:\>javac > Usage: javac > where possible options include: > > -classpath Specify where to find user class files > -sourcepath

RE: How to organize the CLASSPATH to compile and execute with struts.jar

2002-04-09 Thread Maris Orbidans
You specify classpath during compiling: C:\>javac Usage: javac where possible options include: -classpath Specify where to find user class files -sourcepath Specify where to find input source files > -Original Message- > From: Gilson Nascimento D Elrei [mailt

RE: hi

2002-04-05 Thread Maris Orbidans
ample: define forward to action class. In action class of first page do this: if (NextIsClicked) return mapping.findForward("Page2Action"); hope it helps Maris Orbidans > -Original Message- > From: arul [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 05, 2

when does STRUTS call reset() on form beans ?

2002-03-25 Thread Maris Orbidans
Does it depend on scope of a session bean ? thanx in advance Maris Orbidans -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

prints null at both ends of message

2002-03-11 Thread Maris Orbidans
hello folks prints null blablabla null Why null gets printed ? if(!user.isPasswordValid(request.getParameter("password"))) { log.info("Incorrect password for "+request.getParameter("username")); errors.add("password", new ActionError("error.

RE: i18n and struts problem

2002-03-11 Thread Maris Orbidans
Have you written your encoding in page tag like this ? <%@ page language="java" contentType="text/html; charset=windows-1257" %> Have you read http://tagunov.newmail.ru/i18n/i18n.html Maris -Original Message- From: Haider Kazmi [mailto:[EMAIL PROTECTED]] Sent: Monday, March 11,

indexed properties

2002-02-27 Thread Maris Orbidans
hello Do I have to use Nightly Build to get subj. ? 1.0.2 says "Lemums1.jsp": Attribute indexed invalid according to the specified TLD at line 194, column 5 Searched mail archive but didnt find any useful. Maris Orbidans -- To unsubscribe, e-mail: <

question about logic:equal

2002-02-27 Thread Maris Orbidans
hello What if there is no request attribute with name "READ" ? NPE ? Maris Orbidans -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

RE: iterate tag to repeat for a collection of individula objects

2002-02-26 Thread Maris Orbidans
sults")).size() %> Maris Orbidans -Original Message- From: Jay Milam [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 4:53 PM

indexed properties

2002-02-26 Thread Maris Orbidans
How to use indexed properties? Please, give me an URL with examples or documents. Maris Orbidans -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

EVAL_BODY_TAG has been deprecated ???

2002-02-22 Thread Maris Orbidans
hello If I compile my webapp with Tomcat 4.0 library it shows following warnings: "saraksts.jsp": Warning #: 368 : variable EVAL_BODY_TAG in interface javax.servlet.jsp.tagext.BodyTag has been deprecated at line 24 Could anybody tell why ? Maris -- To unsubscribe, e-mail:

Struts tag for label

2002-02-21 Thread Maris Orbidans
hello What if I want to just display some property of form bean (without any input field) ? Is there a tag for it ? thanx in advance Maris Orbidans Data Pro -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

RE: EJB = bad = MS.net

2002-02-21 Thread Maris Orbidans
esnt) , not that "claim to location independence is eroding". regards, Maris Orbidans DataPro -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

prev action class

2001-12-13 Thread Maris Orbidans
How can I determine ( in perform() method ) which was the previous ActionClass that forwarded to current class ? Maris -- To unsubscribe, e-mail: For additional commands, e-mail:

forward to jsp or to do ?

2001-12-13 Thread Maris Orbidans
What' s the difference between a forward to jsp or to do ? In case of forward to jsp just servlet compiled from the jsp file will be called. Am I right ? What will happen if I forward to *.do ? regards, Maris -- To unsubscribe, e-mail: For addition

access a Collection from JSP page

2001-12-11 Thread Maris Orbidans
hello all I need to pass a Collection from an Action class to JSP form. (to display search results) Which is the best way to do it ? Store a Collection in session ? Maris Orbidans -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mail

RE: design question

2001-11-23 Thread Maris Orbidans
ean should be in scope "session", shouldnt it ? > > 3) Where to put business logic (where I invoke JDBC) ? > Should business logic class be a bean ? > > thanx in advance > Maris Orbidans > > > > -- > To unsubscribe, e-mail: > <mail

RE: comments

2001-11-22 Thread Maris Orbidans
mments No! JSP Comments are not but <%-- --%> -- gR - Original Message - From: "Maris Orbidans" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, November 22, 2001 7:14 PM Subject: RE: comments >

RE: comments

2001-11-22 Thread Maris Orbidans
Yes JSP have the same comment Maris -Original Message- From: Henrick Chua [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 22, 2001 8:12 PM To: Struts Users Mailing List (E-mail) Subject: comments hi all! how can I comment out struts code? do i do it like any other html comments?

RE: placing a value to a button

2001-11-22 Thread Maris Orbidans
Maris -Original Message- From: Henrick Chua [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 22, 2001 7:38 PM To: Struts Users Mailing List (E-mail) Subject: placing a value to a button Hi! How can I place a value which is read from the applicationresource.properties to a butto

RE: OFFT: base for file reading in WEB apps

2001-11-22 Thread Maris Orbidans
Hi Gundars I have used new FileInputStream("servlet.properties") with no problems but then servlet.properties should be in Tomcat /bin directory. Method getClass().getResourceAsStream("servlet.properties"); will work if you have the file in the classpath. regards Ma

RE: JSP page without form bean ?

2001-11-20 Thread Maris Orbidans
> So why make an action ? Because I need a forward to main page and if I dont have the action I get: javax.servlet.ServletException: Cannot retrieve mapping for action /main Maris Attribut name in action element cannot be null, you must put the name of a form-bean. - Create a blank

RE: which button pressed?

2001-11-20 Thread Maris Orbidans
> I have several submit buttons like this: > > > > > key="button.prev"/> > key="button.next"/> > key="button.save"/> > key="button.delete"/> > key="button.add"/> > > > > The question is

RE: which button pressed?

2001-11-20 Thread Maris Orbidans
tton.save"/> > key="button.delete"/> > key="button.add"/> > > > > The question is: How to determine which one has been pressed ? > > > Maris Orbidans > > > > -- > To unsubscribe, e-mail: > <mailto:strut