call Stored procedure using JSTL

Anybody can help me?I need to call a stored procedure program and I donnot have idea how can include this code intro JSTL(JSP)I need a sample of codeMessage was edited by: RIMA33
[213 byte] By [RIMA33a] at [2007-11-26 15:32:30]
# 1

Is this a stored procedure on a database?

Or a method on a bean?

What is the purpose of this stored procedure? To retrieve data? Store data? Trigger a process?

JSTL is designed to make it easier to write scriptless JSP pages - adding logic/looping/access to make it easier to render JSPs. It is not a programming language in itself. It is geared more towards display than modifying/calling data/actions.

It is possible what you want to do either can't be done in JSTL, or more rightly belongs in servlet/bean code.

Hope this helps,

evnafets

evnafetsa at 2007-7-8 21:49:29 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
my purpose is call a trigger, this trigger will call a program
RIMA33a at 2007-7-8 21:49:29 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

Sounds like something that should be done in a Servlet/bean as opposed to a JSP.

JSTL can call getter/setter method, but can't pass parameters.

If you have a JSP2.0 container, you could consider writing a user function which would do this - essentially that lets you execute any static method you define, and can take parameters.

evnafetsa at 2007-7-8 21:49:29 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Look,just I need to call a program this program is on AS400, this system can handle procedures, other issue is that I don't need return nothing, only need to call a program a the AS400 will be enchange to run this process
RIMA33a at 2007-7-8 21:49:29 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

You need to call a program on the AS400

I presume this is not a java program - it is elsewhere on the system?

The approach I would take would be to write a java class/java code to execute the procedure on the AS400.

I'm not entirely certain how you would do that probably with a call to Runtime.exec() to have it execute a system command?

I don't think JSTL will be of any direct help in this endeavour.

evnafetsa at 2007-7-8 21:49:29 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
there is another suggestion on doing that..make a web service that will talk to AS400 application and call that web service..
jgalacambraa at 2007-7-8 21:49:29 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...