Re: JSP's in WEB-INF and action forward

2002-07-01 Thread Amir Nashat

Joe,

Seems like a simple solution to me but I might be over looking something. With what 
you have done as long as you forward to company.do then all the request parameters 
will be there. It is important to forward and not redirect. Thus, when you do forward 
all the query string parameters will be there and you can do a simple 
request.getParameter(parameter name goes in here) and that should do the trick. 
Nothing more to it.



>>> [EMAIL PROTECTED] 12:11:24 AM 07/02/02 >>>
Ok I am trying to tow the party line here...

Firstly, I have put all my JSP's in the WEB-INF directory. Now the only way
to get to these pages is by action forwards.

If I have an iterator which produces a grid which I would have previously
coded like this e.g.


bean:write name="comp.companyId" />
...
Update
   Delete




Now I must submit the form and have the action servlet forward onto
company.do with the correct companyId and action.
Do I have to submit the form with some javascript setting the companyId and
the action values, and then form.Submit()?

What is the preferred method?

Joe


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Design question

2002-04-29 Thread Amir Nashat

Couldn't you just configure your web.xml file to map all .jsp requests to some 
standard error page? 

amir



>>> [EMAIL PROTECTED] 6:02:54 PM 04/29/02 >>>
Or

you could put your jsp's under the WEB-INF directory.

Search posts from a few weeks ago about this.
It's quite a lengthy and enlightening thread.


JM

> -Original Message-
> From: Will Spies/Towers Perrin [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, April 29, 2002 4:08 PM
> To: Struts Users Mailing List
> Subject: Re: Design question
>
>
>
>
> Good idea but the other problem is your web server doesn't mix with
> non-Struts applications. I was kinda hoping for a struts only solution.
> Thanks for the idea though!
>
>
> ___
> Will Spies
> Towers Perrin
> Phone: (215)246-7145
> e-mail: [EMAIL PROTECTED] 
>
>
>
>
>
>
>To:   "Struts
> Users Mailing List" <[EMAIL PROTECTED]>
>   Kevin.Bedell@sunlcc:   (bcc:
> Will Spies/Towers Perrin)
>   ife.com  Subject:  Re:
> Design question
>
>
>   04/29/02 03:51 PM
>
>   Please respond to
>
>   "Struts Users
>
>   Mailing List"
>
>
>
>
>
>
>
>
>
>
>
>
> Configure the web server to not recognize the .jsp mime type.  Then any
> link to a .jsp page will generate an "Error 404 Page Not Found". The
> servlet mappings should still work fine.
>
> That being said, I've found that whenever I make a decision like
> this based
> on a design preference, I almost always find some unusual case where it
> really makes sense to do things the way I've said shouldn't be done.
>
>
> FWIW -
> Kevin
>
>
>
>
>
>
>
> "Will Spies/Towers Perrin" <[EMAIL PROTECTED]> on 04/29/2002 03:53:16 PM
>
> Please respond to "Struts Users Mailing List"
>   <[EMAIL PROTECTED]>
>
> To:   "Struts Users Mailing List" <[EMAIL PROTECTED]>
> cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
> Subject:  Design question
>
>
>
>
>
> In my opinion, most ( if not all ) links should be Action URIs.
> What I mean
> is, struts views should not post to urls which are JSP struts views.
> Rather, valid URLs that are posted to ( or even referenced in ) should
> always be controllers. For those who agree with this philosophy, can you
> give me some suggestions on how I can force this? One idea I've had is to
> place a customized on top of all JSP views which checks for a hidden
> request variable that only my controllers know about. So, if this request
> variable is not found than the view craps out. Any other ideas?
>
>
>
> ___
> Will Spies
> Towers Perrin
> Phone: (215)246-7145
> e-mail: [EMAIL PROTECTED] 
>
>
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>
>
> --
> -
> This e-mail message (including attachments, if any) is intended
> for the use
> of the individual or entity to which it is addressed and may contain
> information that is privileged, proprietary , confidential and exempt from
> disclosure.  If you are not the intended recipient, you are notified that
> any dissemination, distribution or copying of this communication is
> strictly prohibited.  If you have received this communication in error,
> please notify the sender and erase this e-mail message immediately.
> --
> -
>
>
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Debug Level

2002-04-29 Thread Amir Nashat

Does anyone know the different levels of granularity for debugging in struts? I know 
the default value for the ActionServlet is 0 and I was wondering what the other values 
there are and what they represent. Thanks.

amir




--
To unsubscribe, e-mail:   
For additional commands, e-mail: