How to run Struts program with the help of tomcat
Hello Everybody
This is Adesh.I am a newcomer of java and facing a problem with struts, so if any one know how to set the path of struts and how to run struts program, so plz inform me.
THX in Advance.............................................
struts-config.xml
<struts-config>
<action-mappings>
<action path = "/welcome"
type = "Welcome"
scope="session">
<forward name="success" path=".welcome"/>
<forward name="failure" path=".base.error"/>
</action>
</action-mappings>
<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml"/>
<set-property property="definitions-debug" value="1"/>
<set-property property="definitions-parser-details" value="0"/>
<set-property property="definitions-parser-validate" value="true"/>
</plug-in>
</struts-config>tiles-defs.xml
<tiles-definitions>
<definition name = ".base" path = "/include/template.jsp">
<put name = "title" value = "${title}"/>
<put name = "header" value = "/include/top.jsp"/>
<put name = "body" value = "${body}"/>
<put name = "footer" value = "/include/footer.jsp"/>
</definition>
</tiles-definitions>web.xml
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>definitions-config</param-name>
<param-value>/WEB-INF/tiles-defs.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>init</servlet-name>
<servlet-class>Init</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<jsp-config>
<taglib>
<taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/wall.tld</taglib-uri>
<taglib-location>/WEB-INF/wall.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/c.tld</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/fn.tld</taglib-uri>
<taglib-location>/WEB-INF/fn.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/fmt.tld</taglib-uri>
<taglib-location>/WEB-INF/fmt.tld</taglib-location>
</taglib>
</jsp-config>
<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/SQLServerDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>This should help....
Similar Messages
-
How to run hardware diagnostic with the help of terminal?
how to run hardware diagnostic with the help of terminal? any cmds
Macs newer than 10.7's release just need to boot with the 'D' key.
Otherwise you need to find the original installer disk of the Mac, or call AppleCare for it to be able to run the hardware diagnostic. -
How to Run std program with a specific variant for specific user?
Hi guys
We have a std program which will be run by different users in the company. Now the requirement is to make sure that each user runs the report with a specific varaint. Can we control this if yes how?
one options we thought about was to create a transaction in SE93 and define the program to run with a predefined varaint and assign the new custom tcode to the user profile. But we have many different users and we will end up with creating many transactions which we would like to avoid. Is there any other option to control the std program such that each user can run the program only with a pre-defined varaint and the one which only the user is suppoed to run. thanks in advance.We have a std program which will be run by different users in the company. Now the requirement is to make sure that each user runs the report with a specific varaint. Can we control this if yes how
you can do this..
You can create a Custom table
userid keyfield
program keyfield
variant keyfield
programdesc
Make the table Maintaintable(usnig table maintenance )
Now create another Program
It takes input of the Program name( using selection screen)
LOGIC
in side that place a logic ,
Based on the user name and program name Get the variant name from above table
Now Submit the program with the variant you have selected above.
Use Variant Addition when you use SUBMIT
So now program executed based on user variant.
Now you create a Transaction for this program.
When use Runs the Transaction , user needs to input the Program name which he wants to execute.
and Output will be shown based on the variants
Regards
Vijay Babu Dudla -
How to run native program with Java program?
Hello
I've got following problem. I'd like to write file browser which would work for Linux and
Windows. Most of this program would be independent of the system but running programs not. How to run Linux program from Java program (or applet) and how to do it in Windows?.
CheersTry this:
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec("ls -l");
InputStream stream = proc.getInputStream();
InputStreamReader isr = new InputStreamReader(stream);
BufferedReader br = new BufferedReader(isr);
String line = null;
while ( (line = br.readLine()) != null) .....
"if the program you launch produces output or expects input, ensure that you process the input and output streams" (http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html) -
How to Run a Display with the MacBook closed
Is there a way to run a display with the Macbook closed, without using a dock?
Click here and follow the instructions.
(33321) -
How to install Jetspeed2.0 with the help of installer
Dear All,
i am having Jetspeed2.0-MultiDb-install.jar file for Jetspeed2.0 install i tried to run it with the following command and get the exception everytime i am attaching the details of the errors along with the problem can anyone please let me know with full command like
java -jar Jetspeed2.0-MultiDb-install.jar command with full parameters sample how to install Jetspeed
thanks in advance i tried with following options.for oracle database.and got the following messages.
C:\Program Files\Jetspeed>java -jar Jetspeed2.0-MultiDb-install.jar oracle,scott,tiger,jdbc:sun:oracle://localhost:1521;SID=P
:\Program Files\Sun\Creator2\SunAppServer8\lib\driveradapter.jar
Loading self extractor...
java.lang.NullPointerException
at java.util.Hashtable.get(Unknown Source)
at javax.swing.UIDefaults.get(Unknown Source)
at javax.swing.MultiUIDefaults.get(Unknown Source)
at javax.swing.UIDefaults.getUIClass(Unknown Source)
at javax.swing.UIDefaults.getUI(Unknown Source)
at javax.swing.UIManager.getUI(Unknown Source)
at javax.swing.JPanel.updateUI(Unknown Source)
at javax.swing.JPanel.<init>(Unknown Source)
at javax.swing.JPanel.<init>(Unknown Source)
at javax.swing.JRootPane.createGlassPane(Unknown Source)
at javax.swing.JRootPane.<init>(Unknown Source)
at javax.swing.JFrame.createRootPane(Unknown Source)
at javax.swing.JFrame.frameInit(Unknown Source)
at javax.swing.JFrame.<init>(Unknown Source)
at org.tp23.antinstaller.selfextract.ProgressIndicator.<init>(Unknown Source)
at org.tp23.antinstaller.selfextract.SelfExtractor.extract(Unknown Source)
at org.tp23.antinstaller.selfextract.SelfExtractor.main(Unknown Source)
Exception in thread "main" java.lang.NullPointerException
at java.util.Hashtable.get(Unknown Source)
at javax.swing.UIDefaults.get(Unknown Source)
at javax.swing.MultiUIDefaults.get(Unknown Source)
at javax.swing.UIDefaults.getUIClass(Unknown Source)
at javax.swing.UIDefaults.getUI(Unknown Source)
at javax.swing.UIManager.getUI(Unknown Source)
at javax.swing.JOptionPane.updateUI(Unknown Source)
at javax.swing.JOptionPane.<init>(Unknown Source)
at javax.swing.JOptionPane.showOptionDialog(Unknown Source)
at javax.swing.JOptionPane.showMessageDialog(Unknown Source)
at javax.swing.JOptionPane.showMessageDialog(Unknown Source)
at javax.swing.JOptionPane.showMessageDialog(Unknown Source)
at org.tp23.antinstaller.selfextract.SelfExtractor.printXorTextWarning(Unknown Source)
at org.tp23.antinstaller.selfextract.SelfExtractor.main(Unknown Source)
kindly reply if any ideas.Are you using a recent JVM? does it work if you do:
java -jar Jetspeed2.0-MultiDb-install.jar -
How to run a program with a specific WM?
I am unsure if this is programming related, or what.. but:
I am programming something and when I run it I have no visible window manager. This is probably because I use DWM. However, when I compile and run this on a machine with a DE the application has a window manager bar, such as GTK, or what ever the DE uses. My question is, how in my setup (DWM or in any DE-less environment) can we force an application to use a title bar/window manager bar such as GTK?Firstly, we've got to get some terminology straight :-)
I think what you're referring to is usually called one of several things:
- A client's parent window.
- A client's decorations.
- A client's extents.
- A client's frame.
Also, GTK is a GUI toolkit... Like Qt, tkinter, or wxWidgets. They are not responsible for a client's decorations. Traditionally (with the famous exception being Chrome), window managers create those decorations by re-parenting the window you create.
Usually, tiling window managers don't bother with decorations (although, they may still re-parent the client for other reasons).
In short, you can't "force" your application to use a title bar, unless you physically create one yourself (again, like Chrome... and they do it so tabs can be at the very top). I don't think toolkits do this, since window managers traditionally do this manually.
You don't need to have a DE to have window decorations. If you were just running Openbox, you would see a title bar too.
If a window manager doesn't create decorations for you, you need to create your own (probably from scratch, unless a toolkit exists to do this for you, but I'm not aware of any). This is a non-trivial task that would probably require low level X programming (using Xlib or XCB). If you want to pursue this venue, I'd be happy to give you a few pointers. (I am building a re-parenting window manager right now.) -
How to: Create a Program with the rs232 Device -Magcard Reader Writer
Hi Guys!.
Im New in using VB.net 2010 express
and it is my first time to do a project with a device needed to incorporate with it.
I have a device Magnetic Card Reader writer and a i want to create a connection and UI
that interacts with the device alone without using the default application and process.start command.
the main problem i want to be solve is to perform the connection and commands on a single form by allowing the user to read and write the data on a single form.
what i want to do is to create a main form that executes the commands needed to activate the event or allows the user to use the device w/o using the software. with the use of text box and button, while the read executes automatically if the card is swipe
to it end fill out the focus textbox given.
i have here a document that discuss commands for the device and i think it is needed to successfully connect all the process from device to the system
can you help me to do this project? tnx.. :)Hi,
Welcome to MSDN.
I am afraid that this is not the proper forum for this issue, since each Magnetic Card Reader writer has its API for developers.
You could consider getting supports by connecting with the publisher of that Magnetic Card Reader writer which should have the sample about using its API.
In addition, I did a research, you could refer to
Build a .NET Class for Serial Device Communications with P/Invoke to get how to communicate with that serial device.
Thanks for your understanding.
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to run group solve with the batch manager
I'd like to know if it is possible (and how) to run group solve defined in OFA with the batch manager.
Thank you
Luigi Polverini
Synesis s.r.l.OFA uses its Task Processor rather than Batch Manager to run tasks in batch. Group solves can be scheduled this way by submitting the group solve task to the TP, and then rescheduling it in the Task Queue window.
null -
How to send email notification with the help of OID
I have a query,is there a way to send email notification (something like password change) to users from OID(Oracle Internet Directory)?
Regards,
Arun K MMacs newer than 10.7's release just need to boot with the 'D' key.
Otherwise you need to find the original installer disk of the Mac, or call AppleCare for it to be able to run the hardware diagnostic. -
How to run two programs with one PC and two monitors
Good Morning,
I have a requirement to run a parallel loop and update the progress in two monitors with one computer.
For ex: its a two test stage, the process and progress of the 1st stage needs to displayed in monitor1 and similarly for 2nd stage to monitor 2 with program running with one computer.Would it be possible to do that.
Thanks in advanceHi Parker,
yes, it's possible. You also have properties to set windows to specific monitors...
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome -
How to get Accounting document with the help of Controlling document?
Hi
Where do we get FI document and CO document link?
Issue is we are trying to generate a CO report and trying to get transactional data from BSEG.So is there any table where we find FI document&CO document LINK?
regardsHi,
Good afternoon and greetings,
Link it between COSP, COEP and COBK for Cost Centre and for Profit Centre GLPCT, GLPCA, GLPCO and GLPCC.
Please reward points if found useful.
Thanking you,
With kindest regards
Ramesh Padmanabhan -
I have an issue where show env o/p is as below, I suspect the FAN 1 which shows failed is not present in router, how do i find out with the help of CLI , how many fans are present in router.
#show environment all
SYS PS1 is present.
Fan status: Normal
Input Voltage status: Normal
DC Output Voltage status: Normal
Type: AC
Thermal status: Normal
SYS PS2 is present.
Fan status: Normal
Input Voltage status: Normal
DC Output Voltage status: Normal
Type: AC
Thermal status: Normal
AUX(-48V) PS1 is absent.
AUX(-48V) PS2 is absent.
Fan 1 Failed
Fan 2 Normal
Fan 3 Normal
Fan Speed is Normal
Alert settings:
Intake temperature warning: Enabled, Threshold: 55 Core temperature warning: Enabled, Threshold: 70 (CPU: 90)
Board Temperature: Normal
Internal-ambient temperature = 28, Normal CPU temperature = 41, Normal Intake temperature = 22, Normal Backplane temperature = 19, Normal
Voltage 1(3300) is Normal, Current voltage = 3284 mV Voltage 2(5150) is Normal, Current voltage = 5153 mV Voltage 3(2500) is Normal, Current voltage = 2525 mV Voltage 4(1200) is Normal, Current voltage = 1203 mV
Nominal frequencyThis means that FAN1 has failed.
Fan 1 Failed
Feb 14 07:31:01.996 GMT: %FAN-3-FAN_FAILED: Fan 1 had a rotation error reported.
Feb 14 07:31:21.996 GMT: %FAN-3-FAN_FAILED: Fan 1 had a rotation error reported.
Feb 14 07:31:41.995 GMT: %FAN-3-FAN_FAILED: Fan 1 had a rotation error reported.
Feb 14 07:32:01.994 GMT: %FAN-3-FAN_FAILED: Fan 1 had a rotation error reported. Feb 14 07:31:01.996 GMT: %FAN-3-FAN_FAILED: Fan 1 had a rotation error reported.
Feb 14 07:31:21.996 GMT: %FAN-3-FAN_FAILED: Fan 1 had a rotation error reported.
Feb 14 07:31:41.995 GMT: %FAN-3-FAN_FAILED: Fan 1 had a rotation error reported.
Feb 14 07:32:01.994 GMT: %FAN-3-FAN_FAILED: Fan 1 had a rotation error reported. -
How to start a program with Admin rights without UAC dialog?
I want to run a program with the user's admin rights,but i don't want windows pop up the UAC dialog.How can i do that?tks.
Hello,
The Windows Desktop Perfmon and Diagnostic tools forum is to discuss performance monitor (perfmon), resource monitor (resmon), and task manager, focusing on HOW-TO, Errors/Problems, and usage scenarios.
Since your post is off-topic, I am moving it to the
off topic forum.
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book:
Windows PowerShell 2.0 Bible
My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}}) -
Running 10.4.11 and trying to restore OS9 as well as iLife etc. I tried to install iLifer from the original disc and the computer doesn't open the install program with the .mpkg file extension. Can you help?
Hi Barbara,
Try Pacifist...
http://www.charlessoft.com/
then extract/install what you need from your Install Disc.
Maybe you are looking for
-
I think I've covered this from the question I asked!
-
Adding my Win XP-32-SP device icc/icm color profiles for dropdown PSE 10
In the printer color management I only see choices for color spaces and generic devices. I do not see my printer profiles, some custom, in the list. All are registered properly in Win color management for the the proper devices - display and printers
-
Sound stutters in Firefox flash applications over time
If firefox is left open too long, flash sound stutters (each second of the sound will play about 5+ times before playing the next). While the problem is happening in Firefox, I can open other browsers to the exact same web page and all is fine. A Hot
-
Hi all, I created one custom idoc type with six segments. I heard that one idoc type can have any number of message types if it is so pls tell me how to assign these two message types for my idoc . i want to create multiple message types because i wa
-
Help with links in Dreamweaver8
I am trying to get on speed with Dreamweaver8, then CS3. I built a custom site using Adobe CS2, Fireworks and then Dreamweaver8. I have 7 pages built from 3 different templates (with the same element but different layout). All the hyperlinks and link