You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Adwait B <ad...@rediffmail.com> on 2003/06/17 15:05:42 UTC

few questions from new struts user

Hi All,

I've few things to ask that i couldnt find in archive..

1.I'm in design phase of a project that is supposed to use struts.We will be recieving plain HTML forms(GUI) from our frontend designer and then we'll be converting that in struts jsp(jsp with struts tags)
During demo we found this process of conversion to be painful.
Is ther any tool/script availbale for converting plain pure html into struts jsp?

2.What are the struts development tools?Can anybody recommend me some tool?(like camino,exadel struts studio,metanology.com MDE)has anybody done development using these tools..

3.Now during development html(screen design) changes..waht are the ways we can make sure that jsp changes accordingly..

Thanks.
Adwait


Re: few questions from new struts user

Posted by Adam Hardy <ah...@cyberspaceroad.com>.
my 2 cents worth is that the best way for a front-end designer to work 
with programmers was not to share the code at all.

In my experience, webpage designers know nothing about programming, 
sometimes not even HTML, but they're great at putting creative graphic 
ideas together. What I would do - get the creatives to produce a web 
page exactly as they want it to look, and then get the programmers to 
reproduce it however they want.

If the creatives change the page, then the programmers have to reproduce 
their changes in their HTML. This leaves the programmers free to 
implement the design in whatever way they see fit without having to 
worry about whether their code will survive being put through 
Dreamweaver or Frontpage.

Adam

Adwait B wrote:
> Hi All,
> 
> I've few things to ask that i couldnt find in archive..
> 
> 1.I'm in design phase of a project that is supposed to use struts.We will be recieving plain HTML forms(GUI) from our frontend designer and then we'll be converting that in struts jsp(jsp with struts tags)
> During demo we found this process of conversion to be painful.
> Is ther any tool/script availbale for converting plain pure html into struts jsp?
> 
> 2.What are the struts development tools?Can anybody recommend me some tool?(like camino,exadel struts studio,metanology.com MDE)has anybody done development using these tools..
> 
> 3.Now during development html(screen design) changes..waht are the ways we can make sure that jsp changes accordingly..
> 
> Thanks.
> Adwait
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Perform() of action class is not called

Posted by Rajat Nayer <ra...@yahoo.com>.
Hi!!! 
I am trying to invoke an EJB from the Action class
thru the perform() method. However, the perform method
is not called - the println's do not show up on the
server console nor is any error thrown. 

---------<<<<!-- ========== Form Bean Definitions
================= --> 
  <form-beans> 

    <form-bean name="submitForm" 
                   
type="hansen.playground.SubmitForm"/> 

  </form-beans> 

  <!-- ========== Action Mapping Definitions
============ --> 
  <action-mappings> 

    <action path="/submit" 
              type="hansen.playground.SubmitAction" 
              name="submitForm" 
              input="/submit.jsp" 
              scope="request"> 
    <forward name="success" path="/submit.jsp"/> 
    <forward name="failure" path="/submit.jsp"/> 
    </action> 

  </action-mappings> 

----------------------------------- 


-------<<<Action class's perform method>>>------- 
 public ActionForward perform(ActionMapping mapping, 
      ActionForm form, 
      HttpServletRequest request, 
      HttpServletResponse response)throws IOException,
ServletException { 
System.out.println("perform called !!!"); 
    SubmitForm f = (SubmitForm) form; // get the form
bean 
    // and take the last name value 
    String lastName = f.getLastName(); 
    // Translate the name to upper case 
    //and save it in the request object 
    request.setAttribute("lastName",
lastName.toUpperCase()); 
     
/***** Calling EJB ***************************/ 

String op=""; 
  try { 
System.out.println("getting initial context"); 
    Context ctx = getInitialContext(); 
System.out.println("initial context got !!"); 
    DemoHome home = (DemoHome) ctx.lookup("Demo"); 
System.out.println("home got !!"); 
Demo ac = null; 
    try { 
      ac = (Demo) home.create(); 
System.out.println("create called!!"); 
if (ac==null) 
System.out.println("ac is null!"); 
    } 
    catch (Exception ee) { 
System.out.print("exception 1"); 
    } 
System.out.println("going to call method!"); 
if (ac!= null) 
op = ac.demoSelect(); 
else 
System.out.println("ac is null->error!!"); 
//out.println(ac.demoSelect()); 
//out.println("string got!!"); 
System.out.println("String="+op); 
    } 
    catch (Exception e) { 
       
e.printStackTrace(); 
System.out.println("error 2"); 
    } 
   /*********************************************/ 
    // Forward control to the specified success target

    return (mapping.findForward("success")); 
  } 
--------------------------------------- 

What is wrong???



__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: few questions from new struts user

Posted by Brandon Goodin <ma...@phase.ws>.
I think the functionality was removed... but strutsconsole does that.
http://www.jamesholmes.com/struts/console/. You might want to talk to James
Holmes about that. Email him...cuz he has dealt with this issue. Also, have
you considered customizing dreamweaver. It's fairly easy to set up the
Struts tags to be viewed as html elements. You designer could layout the
page visually using Dreamweaver and Struts tags.

Brandon Goodin

-----Original Message-----
From: Mike Jasnowski [mailto:mjasnows@bea.com]
Sent: Tuesday, June 17, 2003 7:15 AM
To: Struts Users Mailing List; Adwait B
Subject: RE: few questions from new struts user


Well, one possibility (although I'm not sure how feasible) would be to run
the JSP's through an XSLT stylesheet.  Although the pages need to have
well-formed tags.  I'm not sure you can entirely automate this type of
process.

-----Original Message-----
From: Adwait B [mailto:adwait111@rediffmail.com]
Sent: Tuesday, June 17, 2003 9:06 AM
To: Struts Users Mailing List
Subject: few questions from new struts user


Hi All,

I've few things to ask that i couldnt find in archive..

1.I'm in design phase of a project that is supposed to use struts.We will be
recieving plain HTML forms(GUI) from our frontend designer and then we'll be
converting that in struts jsp(jsp with struts tags)
During demo we found this process of conversion to be painful.
Is ther any tool/script availbale for converting plain pure html into struts
jsp?

2.What are the struts development tools?Can anybody recommend me some
tool?(like camino,exadel struts studio,metanology.com MDE)has anybody done
development using these tools..

3.Now during development html(screen design) changes..waht are the ways we
can make sure that jsp changes accordingly..

Thanks.
Adwait



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


https issue with IE

Posted by Steven Sajous <st...@dotmarketing.com>.
For those of you who are familiar with this you will recognize these
directives that have to be used in Apache to avoid that weird issue with
https links acting like they do not submit to the server at all in IE

 SetEnvIf User-Agent ".*MSIE.*" \
          nokeepalive ssl-unclean-shutdown \
          downgrade-1.0 force-response-1.0

Only I am using Resin. Have any of you have to deal with this and is there a
way to downgrade the protocol in code. This is not directly related to
struts but since I am pretty sure most of you deal with web stuff in Java I
thought this would be a good place to ask.

Thanks

Steve


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: ActionErrors.add(..) no doing what I expect

Posted by Steven Sajous <st...@dotmarketing.com>.
Does anyone have any ideas on this?

-----Original Message-----
From: Steven Sajous [mailto:steve@dotmarketing.com]
Sent: Tuesday, June 17, 2003 1:49 PM
To: Struts Users Mailing List
Subject: ActionErrors.add(..) no doing what I expect


I am working on an e-commerce piece and am trying something new with the
ActionErrors. Usually when I use add() I am pulling an key that exists in my
properties file already. I see that ActonError has a couple of constructors
one of which takes a key and a value and I since I do not know what the
value of the error I am going to get I thought that this would work:

errors.add(ActionErrors.GLOBAL_ERROR, new
ActionError("viaklix.error",via.getSsl_result_message()));

But if I do not have viaklix.error in my properties file already it prints
out the ??...?? value and if I do have it doing this do not override the
value that is in it. Is there a way to do this or what am I doing wrong?

Thanks
Steve


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


ActionErrors.add(..) no doing what I expect

Posted by Steven Sajous <st...@dotmarketing.com>.
I am working on an e-commerce piece and am trying something new with the
ActionErrors. Usually when I use add() I am pulling an key that exists in my
properties file already. I see that ActonError has a couple of constructors
one of which takes a key and a value and I since I do not know what the
value of the error I am going to get I thought that this would work:

errors.add(ActionErrors.GLOBAL_ERROR, new
ActionError("viaklix.error",via.getSsl_result_message()));

But if I do not have viaklix.error in my properties file already it prints
out the ??...?? value and if I do have it doing this do not override the
value that is in it. Is there a way to do this or what am I doing wrong?

Thanks
Steve


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: few questions from new struts user

Posted by Mike Jasnowski <mj...@bea.com>.
Well, one possibility (although I'm not sure how feasible) would be to run
the JSP's through an XSLT stylesheet.  Although the pages need to have
well-formed tags.  I'm not sure you can entirely automate this type of
process.

-----Original Message-----
From: Adwait B [mailto:adwait111@rediffmail.com]
Sent: Tuesday, June 17, 2003 9:06 AM
To: Struts Users Mailing List
Subject: few questions from new struts user


Hi All,

I've few things to ask that i couldnt find in archive..

1.I'm in design phase of a project that is supposed to use struts.We will be
recieving plain HTML forms(GUI) from our frontend designer and then we'll be
converting that in struts jsp(jsp with struts tags)
During demo we found this process of conversion to be painful.
Is ther any tool/script availbale for converting plain pure html into struts
jsp?

2.What are the struts development tools?Can anybody recommend me some
tool?(like camino,exadel struts studio,metanology.com MDE)has anybody done
development using these tools..

3.Now during development html(screen design) changes..waht are the ways we
can make sure that jsp changes accordingly..

Thanks.
Adwait



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: few questions from new struts user

Posted by Philip McILvenna <Ph...@McILvenna.net>.
Hi
I wrote this one time to process dream weaver code to Struts/ JSP.

It only really does the image tags and the message bean stuff.

Not finished and not very well tested but if it does you any good use it.

(Please forgive/ ignore the GUI I was playing with swing as well :) )

http://www.mcilvenna.net/ Strutinizer link.

Philip McILvenna
Struts developer
Vancouver, Canada.



-----Original Message-----
From: Adwait B [mailto:adwait111@rediffmail.com]
Sent: June 17, 2003 6:06 AM
To: Struts Users Mailing List
Subject: few questions from new struts user

Hi All,

I've few things to ask that i couldnt find in archive..

1.I'm in design phase of a project that is supposed to use struts.We will be
recieving plain HTML forms(GUI) from our frontend designer and then we'll be
converting that in struts jsp(jsp with struts tags)
During demo we found this process of conversion to be painful.
Is ther any tool/script availbale for converting plain pure html into struts
jsp?

2.What are the struts development tools?Can anybody recommend me some
tool?(like camino,exadel struts studio,metanology.com MDE)has anybody done
development using these tools..

3.Now during development html(screen design) changes..waht are the ways we
can make sure that jsp changes accordingly..

Thanks.
Adwait


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.489 / Virus Database: 288 - Release Date: 06/10/2003


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org